:root {
  --bg: #0b1024;
  --bg-2: #121a38;
  --surface: #171f42;
  --text: #f3f1ec;
  --muted: #a8b0c8;
  --line: rgba(243, 241, 236, 0.12);
  --blue: #4a90ff;
  --teal: #2ec4b6;
  --green: #4caf50;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1100px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(640px, 100% - 2 * var(--pad));
}

/* —— Top bar —— */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: linear-gradient(180deg, rgba(11, 16, 36, 0.92), rgba(11, 16, 36, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: auto;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.nav-cta:hover {
  border-color: rgba(74, 144, 255, 0.55);
  background: rgba(74, 144, 255, 0.12);
}

.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.menu {
  position: fixed;
  inset: 4.5rem var(--pad) auto;
  z-index: 39;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(18, 26, 56, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.menu[hidden] {
  display: none !important;
}

.menu a {
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--text);
}

.menu a:hover {
  background: rgba(74, 144, 255, 0.12);
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }

  .menu-btn,
  .menu {
    display: none !important;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7rem var(--pad) 4rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(74, 144, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(46, 196, 182, 0.12), transparent 55%),
    linear-gradient(180deg, #0b1024 0%, #0f1630 55%, #0b1024 100%);
}

.hero-glow {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 144, 255, 0.18), transparent 65%);
  filter: blur(20px);
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}

.hero-logo {
  width: min(220px, 48vw);
  margin: 0 auto 1.25rem;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(74, 144, 255, 0.25));
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  from {
    transform: translate(-8%, -4%);
  }
  to {
    transform: translate(10%, 6%);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #6aa8ff);
  color: #fff;
  box-shadow: 0 10px 30px rgba(74, 144, 255, 0.35);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(74, 144, 255, 0.5);
}

/* —— Sections —— */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section.band {
  background: linear-gradient(180deg, rgba(23, 31, 66, 0.55), rgba(11, 16, 36, 0));
  border-block: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 18ch;
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 54ch;
}

.uni-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--text);
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: middle;
}

.dot.usal {
  background: var(--blue);
}

.dot.upsa {
  background: var(--green);
}

/* Modules — editorial, no cards */
.modules {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.module {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.module-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.module h3 {
  margin: 0;
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.module p {
  margin: 0;
  grid-column: 2;
  color: var(--muted);
  max-width: 48ch;
}

@media (min-width: 800px) {
  .modules {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .module:nth-child(odd) {
    padding-right: 1.5rem;
  }
}

.team-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.team-grid h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.team-grid p {
  margin: 0;
  color: var(--muted);
}

/* Sponsors */
.sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin: 2rem 0 1.5rem;
}

.sponsor {
  margin: 0;
  min-width: 140px;
  padding: 1.1rem 1.35rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sponsor img {
  max-height: 64px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.sponsor figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: #5a6278;
  text-align: center;
}

.sponsor-note {
  color: var(--muted);
}

.sponsor-note a {
  color: var(--blue);
  font-weight: 600;
}

.cta-block {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(74, 144, 255, 0.18), transparent 60%),
    var(--bg);
}

.cta-block .lede {
  margin-inline: auto;
}

.cta-block .btn {
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: #080c1c;
}

.footer-inner {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand img {
  width: 22px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Legal pages */
.legal {
  padding: 7rem var(--pad) 4rem;
  width: min(720px, 100% - 2 * var(--pad));
  margin-inline: auto;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
}

.legal p {
  color: var(--muted);
}

.legal a {
  color: var(--blue);
}
