/* ==========================================================================
   Attestra — Light Theme (Titanium Console + Blue Accent)
   Design System: AgentBuilders.app quality bar
   Fonts: Space Grotesk (display), Plus Jakarta Sans (body), JetBrains Mono (code)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;

  /* Typography Scale (matched to AgentBuilders) */
  --text-hero: 48px;
  --text-h2: 32px;
  --text-h3: 18px;
  --text-body: 16px;
  --text-sm: 14px;
  --text-xs: 12px;
  --text-label: 13px;
  --text-hero-sub: 18px;

  /* Colors — Backgrounds (Titanium Console) */
  --bg: #eaeef3;
  --bg-surface: #e1e6ed;
  --bg-elevated: #f7f9fb;
  --bg-hover: #d2d9e3;
  --bg-dark: #0d131c;

  /* Colors — Accent (Attestra Dark Blue-Grey) */
  --accent: #1e3a5f;
  --accent-hover: #162d4a;
  --accent-light: #2d5a8a;
  --accent-accessible: #234b78;
  --accent-glow: rgba(30, 58, 95, 0.14);
  --accent-subtle: rgba(30, 58, 95, 0.08);
  --accent-ghost: rgba(30, 58, 95, 0.04);

  /* Colors — Text */
  --text: #0d131c;
  --text-secondary: rgba(13, 19, 28, 0.78);
  --text-tertiary: rgba(13, 19, 28, 0.50);
  --text-quaternary: rgba(13, 19, 28, 0.28);
  --text-on-accent: #fff;

  /* Colors — Semantic */
  --success: #16a34a;
  --error: #dc2626;

  /* Colors — Borders */
  --border: rgba(13, 19, 28, 0.10);
  --border-default: rgba(13, 19, 28, 0.15);
  --border-strong: rgba(13, 19, 28, 0.25);
  --border-accent: rgba(30, 58, 95, 0.25);

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --container: 1120px;
  --padding-x: clamp(1.25rem, 1rem + 1.5vw, 3rem);
  --banner-h: 40px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 19, 28, 0.05);
  --shadow-md: 0 4px 12px rgba(13, 19, 28, 0.08);
  --shadow-lg: 0 8px 24px rgba(13, 19, 28, 0.12);
  --shadow-glow: 0 0 24px rgba(30, 58, 95, 0.18);

  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-reveal: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

/* ── Dark Mode Tokens ── */
[data-theme="dark"] {
  --bg: #09090b;
  --bg-surface: #111114;
  --bg-elevated: #1a1a1e;
  --bg-hover: #232328;
  --bg-dark: #050506;

  --accent: #4a7fad;
  --accent-hover: #5a8fbd;
  --accent-light: #6b9fcf;
  --accent-accessible: #5a8fbd;
  --accent-glow: rgba(74, 127, 173, 0.15);
  --accent-subtle: rgba(74, 127, 173, 0.10);
  --accent-ghost: rgba(74, 127, 173, 0.05);

  --text: #e8e8ec;
  --text-secondary: rgba(232, 232, 236, 0.60);
  --text-tertiary: rgba(232, 232, 236, 0.40);
  --text-quaternary: rgba(232, 232, 236, 0.20);
  --text-on-accent: #ffffff;

  --success: #34d399;
  --error: #f87171;

  --border: rgba(232, 232, 236, 0.08);
  --border-default: rgba(232, 232, 236, 0.12);
  --border-strong: rgba(232, 232, 236, 0.20);
  --border-accent: rgba(74, 127, 173, 0.25);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(74, 127, 173, 0.20);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --bg-surface: #111114;
    --bg-elevated: #1a1a1e;
    --bg-hover: #232328;
    --bg-dark: #050506;

    --accent: #4a7fad;
    --accent-hover: #5a8fbd;
    --accent-light: #6b9fcf;
    --accent-accessible: #5a8fbd;
    --accent-glow: rgba(74, 127, 173, 0.15);
    --accent-subtle: rgba(74, 127, 173, 0.10);
    --accent-ghost: rgba(74, 127, 173, 0.05);

    --text: #e8e8ec;
    --text-secondary: rgba(232, 232, 236, 0.60);
    --text-tertiary: rgba(232, 232, 236, 0.40);
    --text-quaternary: rgba(232, 232, 236, 0.20);
    --text-on-accent: #ffffff;

    --success: #34d399;
    --error: #f87171;

    --border: rgba(232, 232, 236, 0.08);
    --border-default: rgba(232, 232, 236, 0.12);
    --border-strong: rgba(232, 232, 236, 0.20);
    --border-accent: rgba(74, 127, 173, 0.25);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px rgba(74, 127, 173, 0.20);
  }
}

/* ── Base ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  padding-top: calc(var(--banner-h) + 56px);
  transition: background-color var(--duration-slow) ease, color var(--duration-slow) ease;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--duration-fast) ease; }
a:hover { color: var(--accent-accessible); }

/* ── Skip Link ── */
.at-skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--accent);
  color: var(--text-on-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  z-index: 200;
}
.at-skip-link:focus { top: var(--space-2); }

/* ── Banner ── */
.at-pub__banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 10px var(--space-6);
  text-align: center;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.at-pub__banner strong {
  font-weight: 700;
  letter-spacing: 0.08em;
}
.at-pub__banner a {
  color: var(--text-on-accent);
  text-decoration: underline;
  font-weight: 600;
}
.at-pub__banner-close {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-on-accent);
  opacity: 0.7;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.at-pub__banner-close:hover { opacity: 1; }

/* Banner dismiss persistence */
.at-banner-off .at-pub__banner { display: none; }
.at-banner-off body { padding-top: 56px; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

/* ── Nav ── */
.at-pub__nav {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(234, 238, 243, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.67px solid var(--border-default);
  transition: padding var(--duration-base) ease, backdrop-filter var(--duration-base) ease;
}
.at-pub__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}
.at-pub__nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.at-pub__nav-logo {
  width: 40px;
  height: auto;
}
.at-pub__nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  list-style: none;
}
.at-pub__nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}
.at-pub__nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.at-pub__nav-links .at-btn--primary {
  color: var(--text-on-accent);
}
.at-pub__nav-links .at-btn--primary:hover {
  color: var(--text-on-accent);
}

/* Nav — Wordmark Collapse */
.at-pub__nav-wordmark {
  display: flex;
  align-items: baseline;
  overflow: hidden;
}
.at-pub__nav-letter {
  display: inline-block;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1), transform 1.2s cubic-bezier(0.4,0,0.2,1);
}
.at-pub__nav--scrolled .at-pub__nav-letter {
  opacity: 0;
  transform: translateX(-8px);
}
.at-pub__nav-tail {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 200px;
  transition: max-width 1.4s cubic-bezier(0.4,0,0.2,1), opacity 1s cubic-bezier(0.4,0,0.2,1) 0.1s;
}
.at-pub__nav--scrolled .at-pub__nav-tail {
  max-width: 0;
  opacity: 0;
}

/* Nav — Scrolled State */
.at-pub__nav--scrolled {
  background: rgba(234, 238, 243, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

/* Nav — CTA Hover Scale */
.at-pub__nav-links .at-btn--primary:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-glow);
}

/* Nav — Mobile Toggle */
.at-pub__nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--text);
  font-size: var(--text-h3);
  line-height: 1;
}

/* ── Buttons ── */
.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease-out;
  text-decoration: none;
  gap: var(--space-1);
}

/* Button Sizes */
.at-btn--sm { padding: var(--space-2) 18px; font-size: var(--text-sm); }
.at-btn--md { padding: var(--space-3) var(--space-6); font-size: var(--text-sm); }
.at-btn--lg { padding: 12px 24px; font-size: 15px; font-weight: 600; }

/* Button Variants */
.at-btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}
.at-btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(30, 58, 95, 0.22), var(--shadow-md);
  color: var(--text-on-accent);
  text-decoration: none;
}
.at-btn--primary:active {
  transform: translateY(1px);
  box-shadow: none;
}

.at-btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.at-btn--secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

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

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

/* ── Scroll Reveal ── */
[data-motion] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
}
[data-motion].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */
.at-splash__hero {
  padding: var(--space-10) 0 var(--space-9);
  text-align: center;
}
.at-splash__hero-label {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}
.at-splash__hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.96px;
  max-width: 780px;
  margin: 0 auto var(--space-4);
}
.at-splash__hero-title .text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 60%, #4a7fad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.at-splash__hero-buyer {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--space-1);
  margin-bottom: var(--space-1);
}
.at-splash__hero-subtitle {
  font-size: var(--text-hero-sub);
  color: var(--text-secondary);
  line-height: 28px;
  max-width: 560px;
  margin: 0 auto var(--space-7);
}
.at-splash__hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.at-splash__hero-proof {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-3);
}
.at-splash__hero-social {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

/* ── Code Demo ── */
.at-splash__code {
  max-width: 680px;
  margin: var(--space-8) auto 0;
}
.at-splash__code-window {
  background: var(--bg-dark);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.at-splash__code-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.at-splash__code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.at-splash__code-dot--red { background: #ff5f57; }
.at-splash__code-dot--yellow { background: #ffbd2e; }
.at-splash__code-dot--green { background: #28c840; }
.at-splash__code-title {
  margin-left: var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: rgba(232, 234, 237, 0.40);
}
.at-splash__code-body {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 1.8;
  color: rgba(232, 234, 237, 0.72);
  overflow-x: auto;
}

/* Code Token Colors */
.at-token--prompt { color: rgba(232, 234, 237, 0.40); }
.at-token--dim { color: rgba(232, 234, 237, 0.40); }
.at-token--success { color: #34d399; }
.at-token--error { color: #f87171; }
.at-token--highlight { color: #60a5fa; }
.at-token--score { color: #fbbf24; font-weight: 600; }

/* ── Badges Row ── */
.at-splash__badges {
  padding: var(--space-8) 0;
  text-align: center;
}
.at-splash__badges-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
}
.at-splash__badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.at-badge {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.at-badge:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* ── Sections ── */
.at-section {
  padding: var(--space-10) 0;
}
.at-section--surface {
  background: var(--bg-surface);
}
.at-section__header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.at-section__header-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}
.at-section__header h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.64px;
  margin-bottom: var(--space-2);
}
.at-section__header p {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.at-section__cta {
  text-align: center;
  margin-top: var(--space-8);
}

/* ── Cards ── */
.at-card {
  background: rgba(247, 249, 251, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.67px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--duration-fast) ease-out, transform var(--duration-fast) ease-out, box-shadow var(--duration-fast) ease-out;
}
.at-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06), 0 0 0 1px var(--accent-subtle);
  transform: translateY(-2px);
}
.at-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.at-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Problem Grid ── */
.at-splash__problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 880px;
  margin: 0 auto;
}

/* ── Steps ── */
.at-splash__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.at-splash__step-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--bg-hover);
  opacity: 1;
  margin-bottom: var(--space-3);
}
.at-splash__step-title {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.at-splash__step-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Hunter List (used in steps) */
.at-splash__hunter-list {
  list-style: none;
  margin: var(--space-2) 0;
}
.at-splash__hunter-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 3px 0 3px var(--space-4);
  position: relative;
  line-height: 1.5;
}
.at-splash__hunter-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.at-splash__hunter-list li strong { color: var(--text); }
.at-splash__step-note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

/* ── Split Cards (Features) ── */
.at-splash__split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.at-splash__card-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.at-splash__card-badge--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.at-splash__card-badge--green {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.at-splash__split-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.at-splash__split-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

/* Feature List (inside split cards) */
.at-splash__feature-list {
  list-style: none;
}
.at-splash__feature-list li {
  font-size: var(--text-label);
  color: var(--text-secondary);
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  position: relative;
  line-height: 1.55;
}
.at-splash__feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Score Visual ── */
.at-splash__score-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.at-splash__score-dims {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.at-splash__score-dim-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}
.at-splash__score-dim-weight {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.at-splash__score-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.at-splash__score-bar-fill {
  height: 100%;
  background: var(--accent-light);
  border-radius: 4px;
  transition: width var(--duration-reveal) var(--ease-out);
}
.at-splash__score-bar-fill--warn { background: #ca8a04; }
.at-splash__score-info { text-align: center; }
.at-splash__score-big {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.at-splash__score-big span {
  font-size: 1.5rem;
  color: var(--text-tertiary);
  font-weight: 400;
}
.at-splash__score-grade {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}
.at-splash__score-detail {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-4);
  line-height: 1.6;
}
.at-splash__score-improve {
  font-size: var(--text-sm);
  color: var(--accent);
  margin-top: var(--space-4);
}

/* ── Pillar Grid (Agent-First) ── */
.at-splash__pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.at-splash__pillar-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}
.at-splash__pillar-badge--blue {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.20);
}
.at-splash__pillar-badge--green {
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.20);
}
.at-splash__pillar-badge--amber {
  background: rgba(202, 138, 4, 0.08);
  color: #ca8a04;
  border: 1px solid rgba(202, 138, 4, 0.20);
}
.at-splash__privacy-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 560px;
  margin: var(--space-7) auto 0;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.at-splash__privacy-callout svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.at-splash__privacy-callout p {
  font-size: var(--text-label);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Comparison Details (Collapsible) ── */
.at-compare-details { margin: 0; }
.at-compare-summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  padding: var(--space-4) 0;
}
.at-compare-summary::-webkit-details-marker { display: none; }
.at-compare-summary-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.64px;
  display: inline;
}
.at-compare-summary-hint {
  display: block;
  font-size: var(--text-sm);
  color: var(--accent);
  margin-top: var(--space-2);
  transition: opacity var(--duration-fast) ease;
}
.at-compare-details[open] .at-compare-summary-hint { opacity: 0; }

/* ── Comparison Table ── */
.at-splash__compare-wrap {
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  -webkit-overflow-scrolling: touch;
}
.at-splash__compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.at-splash__compare-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}
.at-splash__compare-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.at-splash__compare-table tbody tr:hover {
  background: var(--accent-subtle);
}
.at-splash__compare-highlight th,
.at-splash__compare-highlight td {
  background: var(--accent-ghost);
}
.at-splash__compare-highlight th {
  color: var(--accent);
}
.at-splash__compare-yes { color: var(--success); font-weight: 600; }
.at-splash__compare-no { color: var(--text-quaternary); }
.at-splash__compare-partial { color: #ca8a04; }

/* Founder Callout */
.at-splash__founder-callout {
  margin-top: var(--space-7);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.at-splash__founder-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
}
.at-splash__founder-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.at-splash__founder-link {
  font-size: var(--text-sm);
  color: var(--accent);
  text-decoration: underline;
}
/* ── Waitlist ── */
.at-splash__waitlist {
  padding: var(--space-10) 0;
  text-align: center;
}
.at-splash__waitlist-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.at-splash__waitlist-subtitle {
  font-size: var(--text-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-7);
}
.at-splash__waitlist-form {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-3);
  max-width: 520px;
  margin: 0 auto;
}
.at-splash__waitlist-form .at-form-group { flex: 1; text-align: left; }
.at-splash__waitlist-form .at-form-group--name { flex: 0.5; }
.at-form-input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
/* Spark Focus on Waitlist Form */
.at-splash__waitlist-form.spark-focus {
  filter: drop-shadow(0 0 16px rgba(30, 58, 95, 0.35));
}

.at-form-input::placeholder { color: var(--text-tertiary); }
.at-form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}
.at-form-input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}
.at-form-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: var(--space-1);
}
.at-form-error.visible { display: block; }

/* Waitlist Success */
.at-splash__waitlist-success {
  display: none;
  text-align: center;
}
.at-splash__waitlist-success.visible { display: block; }
.at-splash__waitlist-success .at-checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
.at-splash__waitlist-success .at-checkmark::after {
  content: "";
  display: block;
  width: 14px;
  height: 24px;
  border: solid var(--text-on-accent);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translateY(-2px);
}
.at-splash__waitlist-success p {
  font-size: var(--text-body);
  color: var(--text);
  font-weight: 500;
}
.at-splash__waitlist-success .at-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: var(--space-1);
}

/* Spinner */
.at-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text-on-accent);
  border-radius: 50%;
  animation: at-spin 0.6s linear infinite;
  margin-right: 6px;
}
@keyframes at-spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
.at-pub__footer {
  background: var(--bg-dark);
  color: #e8eaed;
  padding: var(--space-10) 0 var(--space-7);
}
.at-pub__footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.at-pub__footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.at-pub__footer-brand-logo { width: 24px; }
.at-pub__footer-brand-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(232, 234, 237, 0.56);
  margin-top: var(--space-2);
  line-height: 1.6;
  max-width: 260px;
}
.at-pub__footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 234, 237, 0.40);
  margin-bottom: var(--space-4);
}
.at-pub__footer-col ul { list-style: none; }
.at-pub__footer-col li { margin-bottom: var(--space-2); }
.at-pub__footer-col a {
  font-size: var(--text-sm);
  color: rgba(232, 234, 237, 0.56);
  transition: color var(--duration-fast) ease;
}
.at-pub__footer-col a:hover {
  color: #e8eaed;
  text-decoration: none;
}
.at-pub__footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-5);
  font-size: var(--text-label);
  color: rgba(232, 234, 237, 0.40);
}

/* ── Focus + Screen Reader ── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
*:focus:not(:focus-visible) { outline: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Dark Mode Component Overrides ── */

/* Nav glass in dark */
[data-theme="dark"] .at-pub__nav { background: rgba(9,9,11,0.85); }
[data-theme="dark"] .at-pub__nav--scrolled { background: rgba(9,9,11,0.90); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .at-pub__nav { background: rgba(9,9,11,0.85); }
  :root:not([data-theme="light"]) .at-pub__nav--scrolled { background: rgba(9,9,11,0.90); }
}

/* Cards glass in dark */
[data-theme="dark"] .at-card { background: rgba(26,26,30,0.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .at-card { background: rgba(26,26,30,0.6); }
}

/* Banner in dark — slightly muted */
[data-theme="dark"] .at-pub__banner { background: var(--accent); }

/* Hero gradient text — lighter in dark */
[data-theme="dark"] .at-splash__hero-title .text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 60%, #8ab4d4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .at-splash__hero-title .text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 60%, #8ab4d4 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
}

/* Footer in dark — slightly different surface */
[data-theme="dark"] .at-pub__footer { background: #050506; }

/* Spark focus glow in dark */
[data-theme="dark"] .at-splash__waitlist-form.spark-focus {
  filter: drop-shadow(0 0 16px rgba(74, 127, 173, 0.4));
}

/* ── Theme Toggle Button ── */
.at-pub__theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: none;
  border: 0.67px solid var(--border-default);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease, background var(--duration-fast) ease;
  padding: 0;
}
.at-pub__theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}
[data-theme="dark"] .at-pub__theme-toggle { color: #fbbf24; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .at-pub__theme-toggle { color: #fbbf24; }
}

/* Sun/Moon icon swap */
[data-theme="dark"] .at-theme-moon { display: none; }
[data-theme="dark"] .at-theme-sun { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .at-theme-moon { display: none; }
  :root:not([data-theme="light"]) .at-theme-sun { display: block !important; }
}

/* ── Logo Swap in Dark Mode ── */
.at-pub__nav-logo--dark { display: none; }
[data-theme="dark"] .at-pub__nav-logo--light { display: none; }
[data-theme="dark"] .at-pub__nav-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .at-pub__nav-logo--light { display: none; }
  :root:not([data-theme="light"]) .at-pub__nav-logo--dark { display: block; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-motion] { opacity: 1; transform: none; }
}

/* ── Tablet (max-width: 1023px) ── */
@media (max-width: 1023px) {
  .at-splash__steps { grid-template-columns: repeat(2, 1fr); }
  .at-splash__split-grid { grid-template-columns: 1fr; }
  .at-splash__score-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .at-splash__score-info { text-align: center; }
  .at-splash__pillar-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .at-splash__founder-callout { flex-direction: column; text-align: center; gap: var(--space-4); }
  .at-pub__footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .at-pub__footer-brand { grid-column: 1 / -1; }
}

/* ── Mobile (max-width: 639px) ── */
@media (max-width: 639px) {
  .at-splash__hero {
    padding: var(--space-9) 0 var(--space-8);
  }
  .at-splash__hero-title {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
  }
  .at-splash__steps { grid-template-columns: 1fr; }
  .at-splash__problem-grid { grid-template-columns: 1fr; }
  .at-splash__compare-table { font-size: var(--text-xs); }
  .at-splash__compare-table th,
  .at-splash__compare-table td { padding: var(--space-2) var(--space-3); }
  .at-splash__waitlist-form { flex-direction: column; }
  .at-splash__waitlist-form .at-btn { width: 100%; }
  .at-pub__footer-inner { grid-template-columns: 1fr; gap: var(--space-5); }

  /* Mobile Nav */
  .at-pub__nav-toggle { display: block; }
  .at-pub__nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(234, 238, 243, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--padding-x);
    gap: var(--space-4);
    display: none;
  }
  [data-theme="dark"] .at-pub__nav-links {
    background: rgba(9,9,11,0.95);
  }
  .at-pub__nav-links--open { display: flex; }
}
