:root {
  --bg: #03060E;
  --c1: #00E5FF;
  --c2: #5B8CFF;
  --c3: #B14DFF;
  --text: #EAF6FF;
  --muted: #8FA3BF;
  --dim: #4D5F7A;
  --panel: rgba(10, 18, 36, .55);
  --border: rgba(91, 140, 255, .22);
  --grad: linear-gradient(90deg, var(--c1), var(--c2) 55%, var(--c3));
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- background layers ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.grid-floor {
  position: fixed; left: -50%; right: -50%; bottom: 0; height: 45vh; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(380px) rotateX(62deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
          mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
  opacity: .35;
  animation: gridmove 3s linear infinite;
  pointer-events: none;
}
@keyframes gridmove { to { background-position: 0 60px, 0 0; } }
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 14px; z-index: 3; pointer-events: none; }
.corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(143, 163, 191, .45); }
.corner.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud-top {
  position: absolute; top: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .18em; color: var(--muted);
}
.status { color: var(--c1); display: inline-flex; align-items: center; gap: 8px; }
.status i, .badge i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c1);
  box-shadow: 0 0 10px var(--c1); animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .2; } }

/* ---------- layout ---------- */
main, footer { position: relative; z-index: 2; }
main { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
section { padding: 0; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px 0 70px;
}
.mark {
  width: clamp(130px, 22vw, 200px); height: auto;
  filter: drop-shadow(0 0 24px rgba(91, 140, 255, .45));
  animation: float 6s ease-in-out infinite 3s;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s cubic-bezier(.65, 0, .35, 1) forwards; }
.hex { animation-delay: .2s; }
.hex-in { animation-delay: .5s; }
.l { animation-delay: .9s; animation-duration: 1s; }
.arrow { animation-delay: 1.6s; animation-duration: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .4s ease-out forwards; }
.d1 { animation-delay: 2s; }
.d2 { animation-delay: 2.15s; }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.6); } 100% { opacity: .9; transform: scale(1); } }

.wordmark {
  position: relative;
  margin: 26px 0 0;
  font-size: clamp(64px, 15vw, 150px);
  font-weight: 800;
  letter-spacing: .14em;
  margin-right: -.14em; /* balance trailing letter-spacing */
  line-height: 1;
  color: #F2FAFF;
  text-shadow: 0 0 18px rgba(0, 229, 255, .55), 0 0 48px rgba(91, 140, 255, .35);
  opacity: 0;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards 2.1s;
}
.wordmark::before, .wordmark::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
}
.wordmark::before { color: var(--c1); animation: glitch1 6s infinite 3.2s; }
.wordmark::after { color: var(--c3); animation: glitch2 6s infinite 3.2s; }
@keyframes glitch1 {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  93% { opacity: .8; transform: translate(-4px, 1px); clip-path: inset(20% 0 55% 0); }
  95% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(60% 0 10% 0); }
  97% { opacity: 0; }
}
@keyframes glitch2 {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  94% { opacity: .7; transform: translate(4px, 0); clip-path: inset(45% 0 30% 0); }
  96% { opacity: .7; transform: translate(-3px, 1px); clip-path: inset(5% 0 75% 0); }
  98% { opacity: 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

.tagline {
  margin: 18px 0 0; min-height: 1.6em;
  font-size: clamp(10.5px, 2.6vw, 14px);
  letter-spacing: .2em; text-transform: uppercase; color: #9FC4E8;
}
.soon {
  margin-top: 34px; display: flex; align-items: center; gap: 18px;
  width: min(560px, 100%);
  opacity: 0; animation: fadein .8s ease forwards 3.4s;
}
.soon .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--c1)); }
.soon .line:last-child { background: linear-gradient(90deg, var(--c1), transparent); }
.soon-text {
  font-size: clamp(15px, 3.6vw, 22px); font-weight: 700;
  letter-spacing: .4em; margin-right: -.4em;
  color: var(--c1); text-shadow: 0 0 14px rgba(0, 229, 255, .7);
  white-space: nowrap;
  animation: pulse 2.6s ease-in-out infinite 4.2s;
}
@keyframes pulse { 50% { text-shadow: 0 0 4px rgba(0, 229, 255, .3); opacity: .75; } }
@keyframes fadein { to { opacity: 1; } }

.cue {
  margin-top: 46px; display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  color: #C9D6E6; text-decoration: none; font-size: 15px; font-weight: 500;
  opacity: 0; animation: fadein .8s ease forwards 4s;
}
.cue:hover { color: var(--c1); }
.chev {
  width: 12px; height: 12px; border-right: 2px solid var(--c1); border-bottom: 2px solid var(--c1);
  transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px) rotate(45deg); } }

/* ---------- intro ---------- */
.intro { text-align: center; padding: 40px 0 70px; }
.kicker { color: var(--c1); font-size: 12px; letter-spacing: .25em; margin: 0 0 14px; }
h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5.4vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em;
}
.lead { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 46px; text-align: left;
}
.card {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, .5); box-shadow: 0 10px 40px -12px rgba(0, 229, 255, .35); }
.card:hover::before, .card.in::before { transform: scaleX(1); }
.card:nth-child(2) { transition-delay: .08s; }
.card:nth-child(3) { transition-delay: .16s; }
.icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, .16), rgba(177, 77, 255, .16));
  border: 1px solid rgba(91, 140, 255, .35);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--c1); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 16px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- registrations ---------- */
.register { padding: 30px 0 80px; }
.panel {
  position: relative; text-align: center;
  padding: 48px 28px 40px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(0, 229, 255, .10), transparent 60%),
    radial-gradient(120% 140% at 50% 100%, rgba(177, 77, 255, .12), transparent 60%),
    var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  overflow: hidden;
}
.panel::after { /* sweeping light */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .07), transparent);
  animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep { to { left: 120%; } }
.pc { position: absolute; width: 16px; height: 16px; border: 0 solid var(--c1); opacity: .8; }
.pc.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.pc.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.pc.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.pc.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px; padding: 6px 14px;
  font-size: 11.5px; letter-spacing: .18em; color: var(--c1);
  border: 1px solid rgba(0, 229, 255, .35); border-radius: 999px;
  background: rgba(0, 229, 255, .06);
}
.panel > p:not(.badge) { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: clamp(15.5px, 2.1vw, 17px); }
.loader {
  margin: 32px auto 0; width: min(320px, 80%); height: 4px; border-radius: 4px;
  background: rgba(91, 140, 255, .18); overflow: hidden;
}
.loader span {
  display: block; height: 100%; width: 35%; border-radius: 4px;
  background: var(--grad); box-shadow: 0 0 12px var(--c1);
  animation: load 2.4s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* ---------- footer ---------- */
footer { text-align: center; padding: 10px 20px 70px; }
.by { margin: 0; font-size: 12px; letter-spacing: .45em; margin-right: -.45em; color: var(--muted); }
.club {
  margin: 10px 0 0; font-weight: 700; font-size: clamp(22px, 4.6vw, 34px); color: #DCE7F2;
  text-shadow: 0 0 18px rgba(234, 246, 255, .25);
}
.underline { display: block; width: min(360px, 70%); height: 2px; margin: 16px auto 0; background: var(--grad); border-radius: 2px; }
.copy { margin: 26px 0 0; font-size: 11px; letter-spacing: .2em; color: var(--dim); }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .hud { inset: 8px; }
  .hud-top { top: 12px; left: 12px; right: 12px; font-size: 10px; }
  .panel { padding: 42px 20px 34px; }
  .soon { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .grid-floor, .panel::after { animation: none; }
}
