:root {
  --canvas: #010102;
  --surface-1: #0f1011;
  --surface-2: #131416;
  --surface-3: #16181b;
  --surface-4: #191a1b;
  --hairline: #23252a;
  --hairline-strong: #2c2e34;
  --hairline-bright: #3e3e44;

  --ink: #f7f8f8;
  --ink-muted: #d0d6e0;
  --ink-subtle: #8a8f98;
  --ink-tertiary: #62666d;

  --accent: #5e6ad2;
  --accent-hover: #828fff;
  --accent-focus: #5e69d1;
  --success: #27a644;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-glow: 0 0 0 1px rgba(94, 106, 210, 0.4), 0 16px 40px rgba(94, 106, 210, 0.25);

  --font-display: "Inter", "Linear Display", -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-text: "Inter", "Linear Text", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Linear Mono", ui-monospace, Menlo, monospace;
}

@supports (font-variation-settings: normal) {
  :root {
    --font-display: "Inter var", "Inter", -apple-system, system-ui, sans-serif;
    --font-text: "Inter var", "Inter", -apple-system, system-ui, sans-serif;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.bg-gradient {
  position: fixed;
  inset: -20vh -10vw auto -10vw;
  height: 80vh;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(94, 106, 210, 0.28) 0%, rgba(94, 106, 210, 0) 70%),
    radial-gradient(40% 35% at 18% 8%, rgba(130, 143, 255, 0.18) 0%, rgba(130, 143, 255, 0) 70%),
    radial-gradient(40% 35% at 82% 12%, rgba(94, 106, 210, 0.14) 0%, rgba(94, 106, 210, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
}

.topnav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
}

.brand__mark svg { width: 16px; height: 16px; }

.brand__name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface-1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-cta:hover {
  border-color: var(--hairline-bright);
  background: var(--surface-2);
}

.nav-cta__arrow {
  font-size: 14px;
  color: var(--ink-subtle);
  transition: transform 160ms ease, color 160ms ease;
}

.nav-cta:hover .nav-cta__arrow {
  color: var(--ink);
  transform: translateX(2px);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px 20px 120px;
}

/* Hero */
.hero {
  padding: 56px 0 48px;
  text-align: left;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--surface-1);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  transition: border-color 160ms ease, color 160ms ease;
}

.pill:hover { border-color: var(--hairline-bright); color: var(--ink); }

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(39, 166, 68, 0.18);
}

.pill__arrow { color: var(--ink-subtle); font-size: 13px; }

.display {
  margin: 24px 0 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.display__accent {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #c5c8d9 60%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}

.lede {
  margin: 24px 0 0;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
}

.hero-meta {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--hairline);
  border-bottom-color: var(--hairline-strong);
  border-radius: var(--r-sm);
  background: var(--surface-1);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--surface-1);
  color: var(--ink);
  border-color: var(--hairline);
}

.btn--secondary:hover {
  background: var(--surface-2);
  border-color: var(--hairline-bright);
}

.btn--full { width: 100%; }

.btn__icon { display: inline-flex; width: 16px; height: 16px; }
.btn__icon svg { width: 100%; height: 100%; }

/* Grid */
.grid {
  display: grid;
  gap: 12px;
  margin: 56px 0 0;
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  border-color: var(--hairline-bright);
  transform: translateY(-2px);
}

.card__index {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
}

.card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.card__copy {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-subtle);
}

/* Channel card */
.channel-card {
  margin: 56px 0 0;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(94, 106, 210, 0.12) 0%, rgba(94, 106, 210, 0) 60%),
    var(--surface-1);
  box-shadow: var(--shadow-lg);
}

.channel-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-card__avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-3);
}

.channel-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.channel-card__title {
  margin: 6px 0 2px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.channel-card__handle {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-subtle);
}

.channel-card__copy {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.stat-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin: 22px 0 22px;
  padding: 0;
  list-style: none;
}

.stat-row li {
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.stat-row__value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-row__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-subtle);
}

/* Quote */
.quote {
  margin: 56px 0 0;
  padding: 28px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(94, 106, 210, 0.06) 0%, rgba(94, 106, 210, 0) 100%);
  border-radius: var(--r-md);
}

.quote__copy {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.quote__attr {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-subtle);
}

/* Footer */
.footer {
  margin: 80px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--hairline);
}

.footer__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-subtle);
}

.footer__brand { color: var(--ink); }
.footer__sep { color: var(--ink-tertiary); }
.footer__muted { color: var(--ink-subtle); }

.footer__fineprint {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-tertiary);
  max-width: 80ch;
}

/* Sticky CTA (mobile only) */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 30;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsive */
@media (min-width: 720px) {
  .page { padding: 32px 24px 140px; }

  .hero { padding: 72px 0 56px; }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 72px;
  }

  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .channel-card {
    padding: 36px;
    margin-top: 72px;
  }

  .channel-card__title { font-size: 32px; }

  .quote { padding: 36px; margin-top: 72px; }
}

@media (min-width: 980px) {
  .topnav { padding: 0 24px; height: 64px; }

  .hero { padding: 96px 0 72px; }

  .display { font-size: clamp(56px, 6.5vw, 80px); }

  .lede { font-size: 19px; }

  .channel-card { padding: 44px; }

  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .nav-cta, .pill { transition: none; }
}
