:root {
  --bg: #05060d;
  --bg-2: #0a0b18;
  --ink: #eef1ff;
  --muted: #9aa0c7;
  --faint: #5b6188;
  --c1: #00e5ff;   /* cyan  */
  --c2: #7a5cff;   /* violet */
  --c3: #ff4fd8;   /* magenta */
  --grad: linear-gradient(100deg, var(--c1), var(--c2) 45%, var(--c3));
  --glass: rgba(255, 255, 255, 0.045);
  --glass-brd: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(122, 92, 255, 0.4); color: #fff; }

/* ---------- Backdrops ---------- */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(5, 6, 13, 0.62) 0%, rgba(5, 6, 13, 0.38) 40%, rgba(5, 6, 13, 0.82) 100%),
    url("../images/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.05);
  opacity: 0.9;
  transform: scale(1.05);
  animation: bgDrift 40s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  display: block;
  opacity: 0.6;
}

.aurora {
  position: fixed;
  inset: -30% 0 0 0;
  z-index: -2;
  opacity: 0.5;
  background:
    radial-gradient(38% 32% at 18% 12%, rgba(0, 229, 255, 0.16), transparent 70%),
    radial-gradient(42% 38% at 82% 8%, rgba(255, 79, 216, 0.14), transparent 70%),
    radial-gradient(60% 50% at 50% 120%, rgba(122, 92, 255, 0.22), transparent 70%);
  filter: blur(30px);
  animation: auroraShift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes auroraShift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(0, 2%, 0) scale(1.08); }
  100% { transform: translate3d(0, -2%, 0) scale(1.12); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-brd);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-name .dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.links {
  display: flex;
  gap: 1.6rem;
}
.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}
.links a:hover { color: var(--ink); }
.links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--grad);
  transition: width 0.3s var(--ease);
}
.links a:hover::after { width: 100%; }
.nav-cta {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  transition: 0.25s var(--ease);
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ---------- Infinity logo ---------- */
.brand-mark {
  width: 40px;
  height: 20px;
  display: inline-flex;
}
.infinity {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ring-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 4;
  stroke-linecap: round;
}
.ring-flow {
  fill: none;
  stroke: url(#flow);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(122, 92, 255, 0.55));
}
.spark {
  fill: #fff;
  offset-path: path("M18,30 C18,12 46,8 60,30 C74,52 102,48 102,30 C102,12 74,8 60,30 C46,52 18,48 18,30 Z");
  offset-rotate: 0deg;
  offset-distance: 0%;
  animation: sparkRun 3.2s linear infinite;
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 9px var(--c1));
}
@keyframes sparkRun {
  0%   { offset-distance: 0%; opacity: 0.2; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0.2; }
}
@keyframes flowPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(122, 92, 255, 0.5)); }
  50%      { filter: drop-shadow(0 0 12px rgba(122, 92, 255, 0.9)); }
}
.ring-flow { animation: flowPulse 4s ease-in-out infinite; }

/* ---------- Hero ---------- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(9rem, 16vh, 12rem) 1.5rem 5rem;
  text-align: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 1rem;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: var(--glass);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 10px var(--c1);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shimmer {
  position: relative;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--c1) 50%, #fff 60%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}
.brk { display: none; }
@media (min-width: 700px) { .brk { display: inline; } }
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn {
  --pad: 0.95rem 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  font-family: inherit;
}
.btn-primary {
  color: #05060d;
  background: var(--grad);
  background-size: 180% 180%;
  box-shadow: 0 10px 30px -8px rgba(122, 92, 255, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(122, 92, 255, 0.8);
  animation: bgShift 3s ease infinite;
}
@keyframes bgShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.btn-ghost {
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.hero-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--faint);
  font-style: italic;
  font-size: 0.95rem;
}
.hero-ticker .sep { color: var(--c2); font-style: normal; }

/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) 1.5rem;
}
.section-head { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.1;
}
.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.18); }
.card:hover::before { opacity: 1; }
.card-ico {
  font-size: 2rem;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  color: var(--c1);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(122, 92, 255, 0.14));
  border: 1px solid var(--glass-brd);
}
.card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); margin: 0 0 1.3rem; font-size: 0.98rem; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c3);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 79, 216, 0.3);
  background: rgba(255, 79, 216, 0.08);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.stat {
  padding: 2rem 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
}
.stat-num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Reveal / countdown ---------- */
.reveal-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5rem) 1.5rem;
}
.reveal-box {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(122, 92, 255, 0.14), transparent 60%),
    var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
}
.reveal-kicker {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 1.8rem;
}
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 1.2rem);
  flex-wrap: wrap;
}
.cd-unit {
  min-width: 74px;
  padding: 1rem 0.4rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-brd);
}
.cd-num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-lab {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.cd-sep { color: var(--c2); font-size: 1.6rem; }
.reveal-line { margin: 1.8rem 0 0; color: var(--muted); }

/* ---------- Join ---------- */
.join {
  max-width: 720px;
  margin: 0 auto;
}
.join-inner {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(0, 229, 255, 0.1), transparent 55%),
    radial-gradient(70% 100% at 50% 100%, rgba(255, 79, 216, 0.1), transparent 55%),
    var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
}
.join-logo { width: 90px; height: 45px; margin: 0 auto 1.5rem; }
.join-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.join-sub { color: var(--muted); max-width: 520px; margin: 0 auto 2rem; }
.join-form {
  display: flex;
  gap: 0.7rem;
  max-width: 480px;
  margin: 0 auto 1.2rem;
  flex-wrap: wrap;
}
.join-form input {
  flex: 1 1 240px;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--glass-brd);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.join-form input::placeholder { color: var(--faint); }
.join-form input:focus {
  border-color: rgba(122, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(122, 92, 255, 0.18);
}
.join-form .btn { flex: 0 0 auto; }
.join-note { margin: 0 0 1.5rem; color: var(--faint); font-size: 0.85rem; }
.join-note.ok { color: var(--c1); }
.join-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.join-trust strong { color: var(--ink); }
.av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(122, 92, 255, 0.5);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--glass-brd);
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-brand .brand-mark { width: 32px; height: 16px; }
.footer-line { color: var(--muted); margin: 0; }
.footer-legal { color: var(--faint); font-size: 0.82rem; margin: 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-section .reveal-box,
.cards .card { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .links { display: none; }
  .nav-cta { display: none; }
  .brk { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
