@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --ink: #0e0c13;
  --ink-2: #18161f;
  --surface: #18161f;
  --surface-2: #252032;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dim: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.45);
  --gold: #facc15;
  --mist: #ffffff;
  --muted: #a89eb8;
  --line: rgba(58, 53, 72, 0.95);
  --border: #3a3548;
  --danger: #ff6b6b;
  --ok: #8b5cf6;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--mist);
  background: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold);
}

button {
  font: inherit;
}

/* ── Site stage ── */
.site-stage {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(139, 92, 246, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #0e0c13 0%, #15121d 42%, #0e0c13 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: rgba(27, 27, 36, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--mist);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--mist);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.12);
}

.nav-cta {
  display: inline-flex;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: currentColor;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dim) 100%);
  color: #fff;
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 36px var(--accent-glow);
}

.btn-secondary {
  background: rgba(36, 36, 47, 0.85);
  border-color: var(--border);
  color: var(--mist);
}

.btn-secondary:hover {
  color: var(--accent-light);
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(36, 36, 47, 0.95);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--mist);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(14, 12, 19, 0.94) 18%, rgba(14, 12, 19, 0.55) 48%, rgba(14, 12, 19, 0.28) 100%),
    url("../assets/hero-terrain.svg") center center / cover no-repeat;
  animation: terrain-drift 28s ease-in-out infinite alternate;
}

@keyframes terrain-drift {
  from { background-position: 48% 42%; transform: scale(1); }
  to { background-position: 56% 48%; transform: scale(1.045); }
}

.hero-copy {
  max-width: min(100%, 46rem);
  padding-bottom: 0.25rem;
  overflow: visible;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-lockup {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 8.5vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--mist);
  margin-bottom: 1.35rem;
  width: max-content;
  max-width: 100%;
  overflow: visible;
  padding-right: 0.12em;
}

.brand-lockup span {
  display: inline-block;
  padding-right: 0.08em;
  background: linear-gradient(120deg, var(--mist) 0%, var(--accent-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  max-width: 18ch;
}

.hero-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(36, 36, 47, 0.9);
  backdrop-filter: blur(8px);
}

.ip-chip code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent-light);
}

.ip-chip button {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: rgba(139, 92, 246, 0.16);
  color: var(--mist);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.ip-chip button:hover {
  background: rgba(139, 92, 246, 0.28);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.status-float {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(36, 36, 47, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.is-online {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.status-dot.is-offline {
  background: var(--danger);
}

/* ── Sections ── */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 3vw, 2.5rem);
  max-width: 1120px;
  margin: 0 auto;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  max-width: 16ch;
}

.section-lede {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 2rem;
}

/* Launcher band */
.launcher-band {
  position: relative;
  margin: 0 clamp(1rem, 3vw, 2.5rem);
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background:
    radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(37, 32, 50, 0.98), rgba(14, 12, 19, 0.98));
}

.launcher-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/topo.svg") center / 720px repeat;
  opacity: 0.08;
  pointer-events: none;
}

.launcher-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.launcher-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.launcher-copy {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.launcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.launcher-meta {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.launcher-meta strong {
  color: var(--gold);
  font-weight: 700;
}

.launcher-badge {
  justify-self: end;
  width: min(100%, 16rem);
  padding: 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(14, 12, 19, 0.55);
  text-align: center;
}

.launcher-badge svg {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.9rem;
}

.launcher-badge p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.launcher-badge span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Feature strips — not cards in the AI sense; editorial sections */
.feature-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.feature-strip:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature-strip.reverse .feature-copy {
  order: 2;
}

.feature-strip.reverse .feature-media {
  order: 1;
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.feature-copy p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  max-width: 38ch;
}

.feature-media {
  position: relative;
  min-height: 14rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.feature-media img,
.feature-media object {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}

.join-steps {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.join-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  color: var(--muted);
}

.join-steps strong {
  color: var(--mist);
}

.step-num {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
}

/* Page interiors */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2.5rem) 4rem;
}

.page-header {
  margin-bottom: 2.5rem;
  animation: rise 0.7s var(--ease) both;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--muted);
  max-width: 48ch;
}

.rule {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.6s var(--ease) both;
}

.rule:nth-child(2) { animation-delay: 0.05s; }
.rule:nth-child(3) { animation-delay: 0.1s; }
.rule:nth-child(4) { animation-delay: 0.15s; }
.rule:nth-child(5) { animation-delay: 0.2s; }
.rule:nth-child(6) { animation-delay: 0.25s; }
.rule:nth-child(7) { animation-delay: 0.3s; }

.rule h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.rule p {
  color: var(--muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 2rem 0;
}

.stat {
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.stat .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--accent-light);
  margin-bottom: 0.25rem;
}

.stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.player-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
}

.player-list li {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
}

.player-list li:last-child {
  border-bottom: 0;
}

.player-list li.is-empty {
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-legal {
  max-width: 36rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(168, 158, 184, 0.75);
}

.loader-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  width: min(100%, 14rem);
  margin: 0;
  padding: 0;
}

.loader-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 0.75rem;
  background: rgba(139, 92, 246, 0.08);
  color: var(--mist);
  text-align: center;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--nav-h));
    align-items: flex-end;
    padding-top: 3rem;
  }

  .launcher-inner,
  .feature-strip,
  .feature-strip.reverse {
    grid-template-columns: 1fr;
  }

  .feature-strip.reverse .feature-copy,
  .feature-strip.reverse .feature-media {
    order: initial;
  }

  .launcher-badge {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: rgba(14, 12, 19, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .brand-lockup {
    font-size: clamp(3.2rem, 18vw, 4.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero::before {
    animation: none;
  }
}
