:root {
  /* UNLISTED RP – neon city palette */
  --clr-bg-1: #02030a;
  --clr-bg-2: #050616;

  /* Main gradient colours from the logo */
  --clr-primary: #00d2ff;    /* bright cyan/blue */
  --clr-secondary: #7b61ff;  /* electric blue-purple */
  --clr-accent: #ff4bff;     /* neon pink/magenta */

  --clr-text: #f7f2ff;
  --clr-muted: #9a9ac6;

  /* Glassmorphism */
  --glass-bg: rgba(4, 7, 24, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.28);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.75);
}

/* GLOBAL */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--clr-text);
  background: radial-gradient(circle at top, #14162c 0, #02030a 60%);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Background layers */

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 210, 255, 0.3) 0, transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(123, 97, 255, 0.35) 0, transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(255, 75, 255, 0.28) 0, transparent 55%);
  z-index: -2;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1600 900' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  opacity: 0.7;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
}

/* NAVBAR */

.nav {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0.9rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, rgba(5, 9, 30, 0.94), rgba(15, 16, 41, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(22px);

  animation: slideDown 0.6s ease-out both;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--clr-primary), var(--clr-secondary), var(--clr-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--clr-muted);
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--clr-muted);
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  transition: all 0.18s ease-out;
}

.nav-links a:hover {
  color: var(--clr-text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--clr-text);
  background: rgba(123, 97, 255, 0.25);
  box-shadow: 0 0 18px rgba(123, 97, 255, 0.65);
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary), var(--clr-accent));
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.9);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--clr-text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--clr-text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* HERO */

.hero {
  max-width: 1200px;
  margin: 3.5rem auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 1.8rem;
  padding: 0 1.2rem;
}

.glass-card {
  position: relative;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.6rem;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.15), transparent 55%);
  opacity: 0.5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-content {
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  margin: 0 0 0.6rem;
}

.hero .accent {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary), var(--clr-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  color: var(--clr-muted);
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 13, 35, 0.8);
  color: var(--clr-muted);
}

.hero-side {
  z-index: 1;
}

.hero-side h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.hero-list {
  padding-left: 1rem;
  margin: 0.8rem 0 0.9rem;
  color: var(--clr-muted);
  font-size: 0.9rem;
}

.hero-list li {
  margin-bottom: 0.35rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--clr-muted);
}

/* SECTIONS */

.section {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 1.2rem;
}

.section-header {
  text-align: left;
  max-width: 720px;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.section-header p {
  margin: 0;
  color: var(--clr-muted);
  font-size: 0.95rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  z-index: 1;
  padding: 1.4rem 1.3rem;
}

.card h3 {
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--clr-muted);
  font-size: 0.9rem;
}

/* RULES PAGE */

.rules-block {
  margin-bottom: 1.3rem;
}

.rules-list {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
  color: var(--clr-muted);
  font-size: 0.9rem;
}

.rules-list li {
  margin-bottom: 0.35rem;
}

.rules-note {
  margin-top: 1.6rem;
}

/* APPLY PAGE */

.apply-card {
  max-width: 900px;
  margin: 0 auto 2rem;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.85rem;
  color: var(--clr-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(3, 7, 25, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.55rem 0.75rem;
  color: var(--clr-text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(0, 210, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.5);
  background: rgba(8, 16, 50, 0.95);
}

.form-note {
  font-size: 0.84rem;
  color: var(--clr-muted);
}

/* MINI LISTS */

.mini-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--clr-muted);
  font-size: 0.86rem;
}

.mini-list li {
  margin-bottom: 0.25rem;
}

/* JOIN */

.section-join {
  margin-bottom: 3rem;
}

.join-card {
  text-align: center;
}

.join-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.join-card p {
  margin: 0;
  margin-bottom: 1.3rem;
  color: var(--clr-muted);
}

.join-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* FOOTER */

.footer {
  max-width: 1200px;
  margin: 0 auto 1.8rem;
  padding: 1.1rem 1.4rem;
  text-align: center;
  color: var(--clr-muted);
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
}

/* ANIMATIONS & REVEALS */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out, box-shadow 0.3s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

.delay-3 {
  transition-delay: 0.32s;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
  }

  .nav-links {
    display: none; /* simple: hide menu on small screens */
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    margin: 1rem auto 0;
    padding-inline: 1rem;
  }

  .hero {
    margin-top: 2.2rem;
  }
}
