/* =====================================================
   Geobox v2
   ===================================================== */

/* Neue Kaine. font-display: block on visible weights to avoid a fallback swap flash. */
@font-face { font-family: "Neue Kaine"; src: url("fonts/NeueKaine-Light.ttf") format("truetype");      font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Kaine"; src: url("fonts/NeueKaine-Regular.ttf") format("truetype");    font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Neue Kaine"; src: url("fonts/NeueKaine-Medium.ttf") format("truetype");     font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Neue Kaine"; src: url("fonts/NeueKaine-SemiBold.ttf") format("truetype");   font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "Neue Kaine"; src: url("fonts/NeueKaine-Bold.ttf") format("truetype");       font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: "Neue Kaine"; src: url("fonts/NeueKaine-ExtraBold.ttf") format("truetype");  font-weight: 800; font-style: normal; font-display: block; }
@font-face { font-family: "Neue Kaine"; src: url("fonts/NeueKaine-Black.ttf") format("truetype");      font-weight: 900; font-style: normal; font-display: swap; }

/* =====================================================
   Theme tokens
   ===================================================== */
:root {
  --accent: #4500F9;
  --accent-press: #3a00d6;
  --bg: #000;
  --surface: #0a0a0c;
  --surface-2: #111114;
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --fg: #ffffff;
  --fg-2: rgba(255,255,255,0.62);
  --fg-3: rgba(255,255,255,0.38);

  --nav-glass: rgba(8,8,10,0.85);
  --card-tint: rgba(255,255,255,0.02);
  --card-tint-hover: rgba(255,255,255,0.04);
  --card-tint-strong: rgba(255,255,255,0.06);
  --hero-dot: rgba(255,255,255,0.10);
  --halo-alpha: 0.32;
  --marquee-edge: #000000;

  --green: #34d399;
  --gold: #fbbf24;

  --r-sm: 8px;
  --r:    12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Neue Kaine", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* =====================================================
   NAV - Apple-style floating pill: thin, full-width-ish, logo only
   ===================================================== */
/* =====================================================
   NAV - floating centered bar
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 24px;
  pointer-events: none; /* only the pill catches clicks, not the gap around it */
}
.nav-inner {
  display: flex; align-items: center;
  gap: 12px;
  height: 48px;
  width: fit-content;
  max-width: calc(100vw - 24px);
  margin: 0 auto;
  padding: 0 10px;
  background: var(--nav-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}
.nav-brand {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.nav-brand img { width: 24px; height: 24px; border-radius: 5px; display: block; }

/* Links flow inline between logo and CTA so spacing stays even. */
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 150ms, background 150ms;
}
.nav-links a:hover { color: var(--fg); background: var(--card-tint-hover); }

.nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 700; font-size: 13.5px;
  line-height: 1;
  transition: background 150ms, transform 150ms;
}
.nav-pill:hover { background: var(--accent-press); transform: translateY(-1px); }
.nav-pill svg { width: 13px; height: 13px; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav { padding: 10px 12px; }
  .nav-inner { padding: 0 10px; height: 48px; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  overflow: hidden;
  isolation: isolate;
}
.hero > * { position: relative; z-index: 2; }

/* Hero backdrop: canvas frame sequence over a static poster. */
.hero > .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000 url("hero.jpg") center 55% / cover no-repeat;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  display: block;
}

/* Scrim: a stable (non-parallaxed) layer that keeps the headline legible over
   the brightest part of the glow and melts the bottom edge into the page. */
.hero > .hero-media-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 34%, transparent 0%, transparent 44%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg,
      rgba(0,0,0,0.74) 0%,
      rgba(0,0,0,0.30) 26%,
      rgba(0,0,0,0.16) 48%,
      rgba(0,0,0,0.55) 82%,
      var(--bg) 100%);
}

/* Backdrop variants - single ::before drives all four. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* 1. none - flat black */
.hero[data-bg="none"]::before { display: none; }

/* 2. grid - subtle dot grid, faded to center via radial mask */
.hero[data-bg="grid"]::before {
  background-image:
    radial-gradient(var(--hero-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 90%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 90%);
}

/* 3. halo - original centered indigo glow (kept as an option) */
.hero[data-bg="halo"]::before {
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(69, 0, 249, var(--halo-alpha)) 0%, transparent 60%);
}

/* 4. spotlight - narrow vertical cone from top */
.hero[data-bg="spotlight"]::before {
  background:
    radial-gradient(ellipse 36% 80% at 50% -10%, rgba(69, 0, 249, calc(var(--halo-alpha) + 0.13)) 0%, transparent 55%),
    linear-gradient(180deg, var(--card-tint-hover) 0%, transparent 30%);
}

/* 5. lines - horizontal scanlines behind, faded */
.hero[data-bg="lines"]::before {
  background-image:
    linear-gradient(180deg, transparent 0, transparent 39px, var(--card-tint-strong) 39px, var(--card-tint-strong) 40px);
  background-size: 100% 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 80%);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border-2);
  background: var(--card-tint);
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 12px; font-weight: 500;
  color: var(--fg-2);
  letter-spacing: -0.01em;
}
.hero-eyebrow .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52,211,153,0.6);
  animation: pulse 1.6s ease-in-out infinite;
}
.hero-eyebrow strong { color: var(--fg); font-weight: 600; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  font-weight: 700;
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 980px;
}
.hero-title .indigo { color: var(--accent); }

/* Massive watermark sitting behind the hero text. 
   No fill, very low alpha. */
.hero-watermark {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(140px, 22vw, 320px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.05);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  user-select: none;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  color: var(--fg-2);
  max-width: 600px;
  line-height: 1.55;
}

.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r);
  border: none; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  transition: transform 150ms var(--ease), background 150ms;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-press); transform: translateY(-1px); }
.btn-ghost {
  background: var(--card-tint-hover);
  border: 1px solid var(--border-2);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--card-tint-strong); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.hero-proof {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-2);
  padding: 7px 12px 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--card-tint);
  text-decoration: none;
  transition: border-color 150ms, background 150ms, transform 150ms;
  cursor: pointer;
}
.hero-proof:hover {
  border-color: var(--border-2);
  background: var(--card-tint-hover);
  transform: translateY(-1px);
}
.hero-proof b { color: var(--fg); font-weight: 600; }
.hero-proof .star { color: var(--gold); letter-spacing: 1px; font-size: 12px; }
.hero-proof-sep { color: var(--fg-3); }
.hero-proof-whop {
  color: var(--fg);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 13px;
  line-height: 1;
  transition: color 150ms;
  position: relative;
  top: -0.5px; /* nudge up to align with the baseline of the smaller runs */
}
.hero-proof:hover .hero-proof-whop { color: #ff6b00; }
.hero-proof svg { stroke: var(--fg-3); transition: stroke 150ms, transform 150ms; }
.hero-proof:hover svg { stroke: var(--fg); transform: translate(1px, -1px); }

/* =====================================================
   STATS STRIP
   ===================================================== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
}
.stat-num {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  font-feature-settings: "tnum" 1;
}
.stat-num.accent { color: var(--accent); }
.stat-num.green  { color: var(--green); }
.stat-label { font-size: 13px; color: var(--fg-2); font-weight: 500; }

@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr; gap: 32px; } }

/* =====================================================
   MARQUEE - creators trust strip
   ===================================================== */
.marquee {
  padding: 56px 0 40px;
  text-align: center;
}
.marquee-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-3);
  font-weight: 600;
  margin-bottom: 24px;
}
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, var(--marquee-edge) 8%, var(--marquee-edge) 92%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--marquee-edge) 8%, var(--marquee-edge) 92%, transparent 100%); }
.marquee-track { display: flex; animation: marquee 42s linear infinite; width: max-content; will-change: transform; }
.marquee-item {
  font-size: 24px;
  font-weight: 700;
  color: var(--fg-2);
  white-space: nowrap;
  letter-spacing: -0.02em;
  padding-right: 56px; /* per-item gap so the doubled track loops seamlessly at -50% */
  transition: color 200ms;
}
.marquee-item:hover { color: var(--fg); }
@keyframes marquee { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%,0,0); } }

/* =====================================================
   SHOWCASE - the search panel mockup, hero-style.
   Wrapped in an indigo block (same treatment as Final CTA)
   so the product gets its own visual moment.
   ===================================================== */
.showcase {
  padding: 40px 0 80px;
}
.showcase-block {
  background: var(--accent);
  border-radius: var(--r-lg);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
/* Soft radial highlight at the top-left for depth. */
.showcase-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 0%, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* Subtle dot pattern over the block - gives it texture without noise.
   Faded out so it doesn't fight with content. */
.showcase-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, transparent 70%);
          mask-image: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Floating LIVE sticker top-right - tilted, status-pulse driven */
.showcase-sticker {
  position: absolute;
  top: 24px; right: 28px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  transform: rotate(3deg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.showcase-sticker .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52,211,153,0.7);
  animation: pulse 1.6s ease-in-out infinite;
}

/* Massive faded watermark logo in the bottom-right corner.
   Big confident brand-mark presence, partially clipped by the rounded edge. */
.showcase-watermark {
  position: absolute;
  bottom: -80px; right: -80px;
  width: 360px; height: 360px;
  opacity: 0.07;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}
.showcase-watermark img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }

@media (max-width: 720px) {
  .showcase-sticker { top: 16px; right: 16px; }
  .showcase-watermark { width: 220px; height: 220px; bottom: -60px; right: -60px; }
}
@media (max-width: 720px) { .showcase-block { padding: 40px 28px; border-radius: var(--r-md); } }

.showcase-inner {
  display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.showcase-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.showcase-text h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 20px;
  color: #fff;
}
/* Inside the indigo block we no longer use the .indigo accent - it'd be invisible.
   Use a soft pearl wash for emphasis instead. */
.showcase-text h2 .indigo {
  color: #fff;
  opacity: 0.65;
}
.showcase-text p {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 24px;
}
.showcase-bullets { display: flex; flex-direction: column; gap: 12px; }
.showcase-bullet {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: #fff;
}
.showcase-bullet .tick {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.showcase-bullet .tick svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; }

@media (max-width: 960px) {
  .showcase-inner { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .showcase-text { text-align: left; }
}

/* Panel mockup - stays dark in both themes since it represents a Discord embed.
   Override theme vars locally so internals don't flip with the page. */
.panel-window {
  --surface: #0a0a0c;
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --fg: #ffffff;
  --fg-2: rgba(255,255,255,0.62);
  --fg-3: rgba(255,255,255,0.38);
  --card-tint: rgba(255,255,255,0.02);
  --card-tint-hover: rgba(255,255,255,0.04);
  --card-tint-strong: rgba(255,255,255,0.06);

  width: 420px;
  background: var(--surface);
  /* Visible edge against the bright indigo background.
     - Outer dark ring (1.5px) blocks light from bleeding into the corner.
     - Real 1px white border defines the actual edge.
     - Inner top highlight catches light from above.
     - Two-stop drop shadow for depth. */
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--fg);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 8px 24px rgba(0,0,0,0.45),
    0 28px 60px rgba(0,0,0,0.6);
}
@media (max-width: 520px) { .panel-window { width: 100%; max-width: 420px; } }
.panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.panel-header img { width: 22px; height: 22px; border-radius: 5px; }
.panel-header .title { font-weight: 700; font-size: 14px; }
.panel-body { padding: 16px 18px; }
.panel-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.panel-row .label { color: var(--fg-3); min-width: 60px; font-weight: 500; }
.panel-row .value { color: var(--fg); font-weight: 500; }
.panel-row .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  transition: background 300ms ease, box-shadow 300ms ease; }
.panel-row .dot.red    { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.panel-row .dot.yellow { background: #eab308; box-shadow: 0 0 8px rgba(234,179,8,0.5); }
.panel-row .dot.green  { background: var(--green); box-shadow: 0 0 8px rgba(52,211,153,0.5); }
.panel-row .value { color: var(--fg); font-weight: 500; }

/* Animated ellipsis used after "Searching" */
.panel-ellipsis {
  display: inline-block;
  min-width: 14px;
  text-align: left;
  color: var(--fg-2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* Status banner - tone classes drive color */
.panel-lobby {
  padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  transition: background 400ms ease, border-color 400ms ease, color 400ms ease;
}
.panel-lobby .lobby-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  transition: background 300ms ease, box-shadow 300ms ease;
}
.panel-lobby.tone-ready {
  background: rgba(52,211,153,0.08);
  border-top: 1px solid rgba(52,211,153,0.15);
  border-bottom: 1px solid rgba(52,211,153,0.15);
  color: var(--green);
}
.panel-lobby.tone-ready .lobby-dot { background: var(--green); box-shadow: 0 0 8px rgba(52,211,153,0.5); }

.panel-lobby.tone-searching {
  background: rgba(69,0,249,0.10);
  border-top: 1px solid rgba(69,0,249,0.20);
  border-bottom: 1px solid rgba(69,0,249,0.20);
  color: #b4a0ff;
}
.panel-lobby.tone-searching .lobby-dot { background: var(--accent); box-shadow: 0 0 8px rgba(69,0,249,0.6); animation: pulse 1.2s ease-in-out infinite; }

.panel-lobby.tone-connecting {
  background: rgba(234,179,8,0.08);
  border-top: 1px solid rgba(234,179,8,0.15);
  border-bottom: 1px solid rgba(234,179,8,0.15);
  color: #eab308;
}
.panel-lobby.tone-connecting .lobby-dot { background: #eab308; box-shadow: 0 0 8px rgba(234,179,8,0.55); animation: pulse 0.8s ease-in-out infinite; }

.panel-lobby.tone-connected {
  background: rgba(52,211,153,0.14);
  border-top: 1px solid rgba(52,211,153,0.25);
  border-bottom: 1px solid rgba(52,211,153,0.25);
  color: var(--green);
}
.panel-lobby.tone-connected .lobby-dot { background: var(--green); box-shadow: 0 0 10px rgba(52,211,153,0.7); }

/* Spinner used inside the Searching button */
.panel-btn .spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Button transition between the Search, Searching, and Cancel states */
.panel-btn { transition: background 250ms ease, color 250ms ease; }

.panel-instructions {
  margin-top: 14px;
  padding: 14px;
  background: var(--card-tint);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.panel-instructions .head {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-3); font-weight: 600; margin-bottom: 8px;
}
.panel-instructions .line { font-size: 13px; color: var(--fg-2); line-height: 1.6; }
.panel-instructions .line strong { color: var(--fg); font-weight: 600; }

.panel-version { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--fg-3); text-align: center; }

.panel-controls { padding: 14px 18px 16px; }
.panel-select {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: var(--card-tint-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px; color: var(--fg);
  cursor: pointer;
}
.panel-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-btn {
  flex: 1; min-width: 110px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer; border: none;
  font-family: var(--font);
}
.panel-btn.primary { background: var(--accent); color: #fff; }
.panel-btn.primary:hover { background: var(--accent-press); }
.panel-btn.ghost { background: var(--card-tint-hover); border: 1px solid var(--border); color: var(--fg-2); }
.panel-btn.ghost:hover { color: var(--fg); border-color: var(--border-2); }
.panel-btn svg { width: 12px; height: 12px; stroke-width: 2; }

/* =====================================================
   FEATURES - clean grid, big icon
   ===================================================== */
.features {
  padding: 80px 0 100px;
}
.features .container { max-width: 1340px; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(69,0,249,0.4);
  background: rgba(69,0,249,0.10);
  color: var(--accent);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 12px;
}
.section-sub { font-size: 17px; color: var(--fg-2); max-width: 580px; margin: 0 auto; line-height: 1.6; }

.feature-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
@media (max-width: 1080px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 22px;
  transition: border-color 200ms, transform 200ms;
}
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(69,0,249,0.14);
  border: 1px solid rgba(69,0,249,0.32);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--fg-2); line-height: 1.55; }

/* =====================================================
   HOW IT WORKS - 3 steps
   ===================================================== */
.how {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 960px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--fg-2); line-height: 1.55; }

/* =====================================================
   NO VPN - comparison section
   ===================================================== */
.novpn {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.novpn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
}
@media (max-width: 720px) { .novpn-grid { grid-template-columns: 1fr; } }
.novpn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 26px;
}
.novpn-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.novpn-card li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--fg);
  line-height: 1.4;
}
.novpn-card li .x,
.novpn-card li .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.novpn-card li svg { width: 12px; height: 12px; }

.novpn-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 22px;
}

.novpn-bad .novpn-label { background: rgba(239, 68, 68, 0.14); color: #ef4444; }
.novpn-bad li { color: var(--fg-2); }
.novpn-bad li .x { background: rgba(239, 68, 68, 0.14); color: #ef4444; }

.novpn-good {
  border-color: rgba(69, 0, 249, 0.35);
  background: linear-gradient(180deg, rgba(69, 0, 249, 0.06) 0%, var(--surface) 60%);
}
.novpn-good .novpn-label { background: var(--accent); color: #fff; }
.novpn-good li .tick { background: var(--accent); color: #fff; }
/* =====================================================
   PRICING
   ===================================================== */
.pricing {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 880px; margin: 0 auto;
}
.pricing-grid.stacked { grid-template-columns: 1fr; max-width: 480px; }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; } }
.plan {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 32px 30px;
  position: relative;
  display: flex; flex-direction: column;
  color: var(--fg);
}
.plan-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  min-height: 24px;
}

/* ELITE - gold role color. Flat dark card, gold accents only. */
.plan.elite {
  border-color: rgba(251, 191, 36, 0.30);
}
.plan.elite .plan-tier { background: rgba(251, 191, 36, 0.18); color: #fbbf24; }
.plan.elite .plan-feature .check { background: rgba(251, 191, 36, 0.22); color: #fbbf24; }
.plan.elite .plan-cta.solid { background: #fbbf24; color: #1a1206; }
.plan.elite .plan-cta.solid:hover { background: #facc15; }
.plan.elite .plan-price .num { color: #fbbf24; }

/* ULTRA - Discord's holographic role color. iridescent
   gradient, applied to the border ring, tier label, price, badge, and CTA. */
.plan.ultra {
  position: relative;
  background: var(--surface);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.plan.ultra::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from 200deg at 50% 50%,
    #A9C9FF 0deg,
    #FFBBEC 120deg,
    #FFC3A0 240deg,
    #A9C9FF 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.plan.ultra > * { position: relative; z-index: 1; }

.plan.ultra .plan-tier {
  background: linear-gradient(90deg, rgba(169,201,255,0.22), rgba(255,187,236,0.22), rgba(255,195,160,0.22));
  color: #ffffff;
}
.plan.ultra .plan-badge {
  background: linear-gradient(90deg, #A9C9FF, #FFBBEC, #FFC3A0);
  color: #1a0a2a;
  box-shadow: 0 0 14px rgba(255, 187, 236, 0.4);
}
.plan.ultra .plan-price .num {
  background: linear-gradient(90deg, #A9C9FF 0%, #FFBBEC 50%, #FFC3A0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.plan.ultra .plan-feature .check {
  background: linear-gradient(135deg, #A9C9FF, #FFBBEC);
  color: #1a0a2a;
}
.plan.ultra .plan-feature .check svg { stroke: #1a0a2a; }
.plan.ultra .plan-cta.solid {
  background: linear-gradient(90deg, #A9C9FF 0%, #FFBBEC 50%, #FFC3A0 100%);
  color: #1a0a2a;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 187, 236, 0.25);
}
.plan.ultra .plan-cta.solid:hover { filter: brightness(1.08); transform: translateY(-1px); }
.plan-badge {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #fff;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.plan-tier {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--card-tint-strong);
  border-radius: 6px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
}
.plan-price {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px;
}
.plan-price .num { font-size: 56px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.plan-price .per { font-size: 15px; color: var(--fg-3); }
.plan-desc { font-size: 14px; color: var(--fg-2); margin-bottom: 22px; }

.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.plan-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg); }
.plan-feature.muted { color: var(--fg-3); text-decoration: line-through; }
.plan-feature .check { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: rgba(69,0,249,0.18); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.plan-feature .check svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 3; }

.plan-cta {
  display: block; width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px; font-weight: 600;
  transition: all 150ms;
  cursor: pointer; border: none; font-family: var(--font);
}
.plan-cta.ghost { background: var(--card-tint-hover); border: 1px solid var(--border-2); color: var(--fg); }
.plan-cta.ghost:hover { background: var(--card-tint-strong); }
.plan-cta.solid { background: var(--accent); color: #fff; }
.plan-cta.solid:hover { background: var(--accent-press); }

/* =====================================================
   FAQ
   ===================================================== */
.faq {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 150ms;
}
.faq-item:hover { border-color: var(--border-2); }
.faq-q {
  width: 100%;
  padding: 18px 22px;
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--fg);
  text-align: left;
}
.faq-q svg { flex-shrink: 0; transition: transform 200ms var(--ease); width: 18px; height: 18px; stroke: var(--fg-2); stroke-width: 2; fill: none; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 260ms var(--ease);
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner { padding: 0 22px 18px; color: var(--fg-2); font-size: 15px; line-height: 1.65; }

/* =====================================================
   FINAL CTA
   ===================================================== */
.cta-block {
  margin: 40px 0 80px;
  padding: 80px 32px;
  text-align: center;
  background: var(--accent);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.cta-block h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 16px;
}
.cta-block p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta-block .btn {
  background: #fff; color: var(--accent);
  font-size: 16px; padding: 16px 32px;
}
.cta-block .btn:hover { background: #ededed; transform: translateY(-1px); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { padding: 40px 0 60px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 22px; height: 22px; border-radius: 5px; }
.footer-meta { display: flex; align-items: center; gap: 18px; }
.footer-meta a { color: var(--fg-2); transition: color 150ms; }
.footer-meta a:hover { color: var(--fg); }
.footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* =====================================================
   CHECKOUT MODAL - Whop embedded checkout iframe lives inside.
   ===================================================== */
.checkout-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2147483600;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fade-in 200ms ease-out;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.checkout-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 32px 28px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: pop-in 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.checkout-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-tint-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-2);
  cursor: pointer;
  transition: all 150ms;
}
.checkout-close:hover { background: var(--card-tint-strong); color: var(--fg); }

.checkout-header { margin-bottom: 22px; }
.checkout-header h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  margin-top: 10px;
}
.checkout-header p { font-size: 13px; color: var(--fg-3); line-height: 1.5; }

.checkout-tier {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.checkout-tier.elite { background: rgba(251, 191, 36, 0.18); color: #fbbf24; }
.checkout-tier.ultra {
  background: linear-gradient(90deg, rgba(255,209,255,0.20), rgba(181,236,255,0.20), rgba(201,184,255,0.20));
  color: #ece6ff;
}

.checkout-embed-wrap {
  border-radius: 8px;
  overflow: hidden;
  min-height: 540px;
}
/* Whop wraps the embedded iframe in .whop-checkout-wrapper - we can style
   that wrapper but not the iframe contents (Whop blocks that for security). */
.checkout-embed-wrap .whop-checkout-wrapper iframe {
  width: 100%;
  border: none;
  background: transparent;
}

/* Post-checkout success panel. */
.checkout-modal.checkout-done { max-width: 440px; text-align: center; padding-bottom: 32px; }
.checkout-done-badge {
  width: 56px; height: 56px;
  margin: 6px auto 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.checkout-done .checkout-header { margin-top: 16px; }
.checkout-done-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 8px;
}
