/* Stream Clipper — creator-first marketing */
:root {
  --bg: #050507;
  --bg-elevated: #0c0c10;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #9ca3af;
  --dim: #6b7280;
  --accent: #4a7fd4;
  --accent-soft: rgba(74, 127, 212, 0.12);
  --accent-glow: rgba(74, 127, 212, 0.2);
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --success: #4a7fd4;
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --nav-h: 64px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 140, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 85% 15%, rgba(244, 114, 182, 0.06), transparent 50%),
    linear-gradient(180deg, #08080c 0%, var(--bg) 40%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
em { font-style: normal; color: var(--accent); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-tight { padding-top: 3rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 0 2.5rem;
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 7, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 5, 7, 0.9);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg) !important;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-auth-google,
.btn-auth-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-auth-google:hover,
.btn-auth-ghost:hover {
  border-color: rgba(91, 140, 255, 0.5);
  background: var(--accent-soft);
}

.nav-user {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-quota {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 140, 255, 0.3);
}

.nav-admin {
  font-size: 0.78rem;
  color: var(--accent);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.demo-auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.demo-auth-left,
.demo-auth-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.demo-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.demo-user-meta strong {
  font-size: 0.88rem;
}

.demo-user-meta span {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover { box-shadow: 0 0 32px rgba(255, 255, 255, 0.12); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

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

.btn-accent:hover { box-shadow: 0 4px 16px rgba(74, 127, 212, 0.25); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* —— Hero sell —— */
.hero-sell {
  min-height: auto;
  padding: calc(var(--nav-h) + 4.5rem) 0 3.5rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-sell-inner {
  max-width: 760px;
}

.hero-sell .hero-brand {
  margin-bottom: 1rem;
}

.hero-sell h1 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: none;
}

.hero-sell .hero-sub {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-sell .btn-row {
  justify-content: center;
}

.hero-trust {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--dim);
}

.hero-preview {
  margin-top: 2.75rem;
  text-align: left;
}

.hero-preview-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  padding: 1.15rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.hp-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 140, 255, 0.3);
}

.hp-clips {
  display: grid;
  gap: 0.65rem;
}

.hp-clip {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.hp-thumb {
  width: 44px;
  height: 56px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hp-react { background: linear-gradient(160deg, rgba(244, 114, 182, 0.45), #121018); }
.hp-story { background: linear-gradient(160deg, rgba(91, 140, 255, 0.45), #10131c); }
.hp-game { background: linear-gradient(160deg, rgba(52, 211, 153, 0.4), #0e1612); }

.hp-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
}

.hp-name {
  font-size: 0.92rem;
  font-weight: 560;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.why-item {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
}

.why-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Demo shell */
.demo-shell {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.demo-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.demo-topbar-left,
.demo-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.demo-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.demo-shell[data-state="processing"] .demo-pill {
  color: var(--accent);
  border-color: rgba(91, 140, 255, 0.4);
  background: var(--accent-soft);
}

.demo-shell[data-state="results"] .demo-pill {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}

.demo-shell[data-state="exhausted"] .demo-pill,
.demo-shell[data-state="error"] .demo-pill {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}

.demo-quota-big {
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--text);
}

.demo-panel {
  padding: 1.5rem 1.25rem 1.75rem;
}

.demo-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.demo-panel > p {
  color: var(--muted);
  margin: 0 0 1.15rem;
  max-width: 36rem;
}

.demo-panel-error {
  border-top: 1px solid rgba(248, 113, 113, 0.25);
}

.demo-label {
  display: block;
  font-size: 0.78rem;
  color: var(--dim);
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
}

.demo-processing-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.demo-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(91, 140, 255, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo-after-results {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.demo-after-copy strong {
  display: block;
  margin-bottom: 0.25rem;
}

.demo-after-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.beta-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
}

.beta-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.beta-card > p {
  color: var(--muted);
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.beta-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--dim);
}

.beta-form label span {
  color: #f87171;
}

.beta-form input,
.beta-form select {
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.beta-form input:focus,
.beta-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.beta-success {
  color: var(--success);
  font-size: 0.9rem;
  margin: 0;
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.75rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.65rem;
}

.hero-outcome {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 32rem;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.hero-emotions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hero-emotions span {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

/* Hero dashboard */
.hero-dash {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

.hdash-chrome,
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }

.demo-url-bar {
  flex: 1;
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dim);
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
}

.hdash-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 280px;
}

.hdash-side {
  border-right: 1px solid var(--border);
  padding: 0.85rem 0.55rem;
  background: rgba(0, 0, 0, 0.25);
}

.hdash-nav {
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.hdash-nav.active {
  background: var(--accent-soft);
  color: var(--text);
}

.hdash-main { padding: 1.1rem; }

.hdash-banner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(91, 140, 255, 0.35);
  background: var(--accent-soft);
  margin-bottom: 0.85rem;
}

.hdash-banner strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.hdash-banner span {
  font-size: 0.78rem;
  color: var(--muted);
}

.hdash-clips {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hdash-clip {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  animation: clipIn 0.5s ease both;
}

.hdash-clip:nth-child(2) { animation-delay: 0.12s; }
.hdash-clip:nth-child(3) { animation-delay: 0.24s; }

.hdash-thumb {
  width: 44px;
  height: 58px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hdash-react { background: linear-gradient(160deg, rgba(244, 114, 182, 0.45), #121018); }
.hdash-story { background: linear-gradient(160deg, rgba(91, 140, 255, 0.45), #10131c); }
.hdash-game { background: linear-gradient(160deg, rgba(52, 211, 153, 0.4), #0e1612); }

.hdash-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.hdash-name {
  font-size: 0.88rem;
  font-weight: 560;
}

.hdash-pct {
  font-size: 0.75rem;
  color: var(--dim);
}

@keyframes clipIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* —— Demo —— */
.demo-frame {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.demo-body { padding: 1.5rem; }

.demo-input-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.demo-input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.demo-input:focus { border-color: var(--accent); }

.demo-hint {
  margin: -0.65rem 0 1rem;
  font-size: 0.8rem;
  color: var(--dim);
}

.demo-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  font-size: 0.88rem;
}

.demo-progress {
  display: none;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.demo-progress.show { display: flex; }

.prog-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
}

.prog-row span:first-child { color: var(--muted); }
.prog-row span:last-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
  text-align: right;
}

.prog-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.demo-result-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 127, 212, 0.35);
  background: rgba(74, 127, 212, 0.08);
  margin-bottom: 1rem;
  animation: clipIn 0.4s ease;
}

.demo-result-banner.show { display: flex; }

.demo-result-banner strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.demo-result-banner span {
  font-size: 0.8rem;
  color: var(--muted);
}

.demo-clips {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.demo-clips.show { display: grid; }

.clip-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  animation: clipIn 0.45s ease both;
}

.clip-card-media {
  display: flex;
  flex-direction: column;
}

.clip-media {
  position: relative;
  background: #000;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.clip-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.clip-actions {
  margin-top: 0.65rem;
}

.clip-dl {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(91, 140, 255, 0.45);
  background: rgba(91, 140, 255, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
}

.clip-dl:hover {
  background: rgba(91, 140, 255, 0.22);
}

.clip-card:nth-child(2) { animation-delay: 0.1s; }
.clip-card:nth-child(3) { animation-delay: 0.2s; }

.clip-thumb {
  aspect-ratio: 16/10;
  max-height: 140px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.65rem;
  overflow: hidden;
  background: #0a0a10;
}

.clip-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-react { background: linear-gradient(160deg, #3a1528, #0a0a10); }
.clip-story { background: linear-gradient(160deg, #152040, #0a0a10); }
.clip-game { background: linear-gradient(160deg, #123028, #0a0a10); }
.clip-talk { background: linear-gradient(160deg, #2a1f12, #0a0a10); }
.clip-meme { background: linear-gradient(160deg, #2a1538, #0a0a10); }

.clip-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 2.5rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.clip-info .quote {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clip-badge {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin-right: auto;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
}

.clip-info { padding: 0.75rem; }
.clip-info .cat {
  font-size: 0.72rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}
.clip-info .name {
  font-size: 0.88rem;
  font-weight: 560;
  margin-bottom: 0.2rem;
}
.clip-info .score {
  font-size: 0.75rem;
  color: var(--dim);
}

/* —— Outcome —— */
.outcome-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}

.outcome-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease,
    transform 0.28s ease;
}

/* Default = neon blue glow (middle card always lit) */
.outcome-card-accent {
  border-color: rgba(91, 140, 255, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 140, 255, 0.22), transparent 62%),
    var(--bg-elevated);
  box-shadow:
    0 0 0 1px rgba(91, 140, 255, 0.25),
    0 0 28px rgba(91, 140, 255, 0.35),
    0 0 64px rgba(91, 140, 255, 0.18);
}

/* Hover on any card → same neon blue glow */
.outcome-card:hover {
  border-color: rgba(91, 140, 255, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 140, 255, 0.22), transparent 62%),
    var(--bg-elevated);
  box-shadow:
    0 0 0 1px rgba(91, 140, 255, 0.25),
    0 0 28px rgba(91, 140, 255, 0.35),
    0 0 64px rgba(91, 140, 255, 0.18);
  transform: translateY(-2px);
}

.outcome-card-accent:hover {
  box-shadow:
    0 0 0 1px rgba(91, 140, 255, 0.35),
    0 0 36px rgba(91, 140, 255, 0.5),
    0 0 80px rgba(91, 140, 255, 0.28);
}

.outcome-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.outcome-big {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.outcome-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.outcome-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.5rem;
  opacity: 0.7;
}

/* —— Netflix episode board —— */
.netflix-board {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  padding: 1.5rem;
  overflow: hidden;
}

.nf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.nf-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nf-header span {
  font-size: 0.82rem;
  color: var(--dim);
}

.nf-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(91, 140, 255, 0.3);
}

.nf-ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--dim);
  margin-bottom: 0.85rem;
  padding-left: 130px;
}

.nf-lanes {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.nf-lane {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.nf-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.nf-emo { font-size: 1rem; }

.nf-track {
  height: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  position: relative;
  border: 1px solid var(--border);
}

.nf-block {
  position: absolute;
  top: 5px;
  height: calc(100% - 10px);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  opacity: 0.92;
  padding: 0;
}

.nf-block:hover,
.nf-block:focus-visible {
  transform: scaleY(1.25);
  filter: brightness(1.2);
  z-index: 2;
  box-shadow: 0 0 22px currentColor;
  outline: none;
}

.nf-block.react { background: var(--pink); color: var(--pink); }
.nf-block.story { background: var(--accent); color: var(--accent); }
.nf-block.game { background: var(--green); color: var(--green); }
.nf-block.talk { background: #8b7cff; color: #8b7cff; }
.nf-block.meme { background: var(--amber); color: var(--amber); }

.nf-preview {
  min-height: 110px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  display: flex;
  align-items: center;
}

.nf-preview-empty {
  color: var(--dim);
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
}

.nf-preview-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  animation: clipIn 0.25s ease;
}

.nf-preview-emo {
  width: 72px;
  height: 96px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(160deg, rgba(91, 140, 255, 0.25), #101018);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.nf-preview-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.nf-preview-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.nf-preview-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.nf-preview-gens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nf-preview-gens span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* —— Proof —— */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.proof-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

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

.proof-stage {
  height: 180px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a0a10;
}

.proof-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.proof-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.15) 0%, rgba(5, 5, 7, 0.55) 100%),
    radial-gradient(circle at 50% 40%, transparent 30%, rgba(5, 5, 7, 0.45) 100%);
  pointer-events: none;
}

.proof-card:hover .proof-img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.08);
}

.proof-timestamp {
  z-index: 1;
}

@keyframes emoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.proof-timestamp {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  color: var(--muted);
}

.proof-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.15rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.proof-step {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.proof-step strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}

.proof-step p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.proof-card > h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 1rem 1.15rem 0.35rem;
}

.proof-card > p {
  margin: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Subtitles —— */
.sub-stage { max-width: 720px; }

.sub-video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0a0a10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  margin-bottom: 1rem;
}

.sub-bg-motion {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 35% 40%, rgba(91, 140, 255, 0.28), transparent 45%),
    radial-gradient(ellipse at 70% 55%, rgba(244, 114, 182, 0.18), transparent 40%),
    linear-gradient(160deg, #14141e, #08080c);
  animation: bgDrift 8s ease-in-out infinite alternate;
}

@keyframes bgDrift {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.sub-caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.25;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
  min-height: 1.4em;
}

.sub-caption .kw {
  display: inline-block;
  margin: 0 0.12em;
  opacity: 0.28;
  transform: scale(0.92);
  transition: opacity 0.12s, transform 0.12s, color 0.12s, text-shadow 0.12s;
  color: #fff;
}

.sub-caption .kw.active {
  opacity: 1;
  transform: scale(1.18);
  color: #fff;
  text-shadow: 0 0 28px var(--accent-glow), 0 4px 20px rgba(0, 0, 0, 0.8);
}

.sub-caption .kw.past {
  opacity: 0.85;
  transform: scale(1);
  color: #e4e4e7;
}

.sub-caption.classic .kw {
  opacity: 1;
  transform: none;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.05em 0.2em;
  border-radius: 4px;
  text-shadow: none;
}

.sub-hud {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  z-index: 1;
}

.sub-toggle {
  display: flex;
  gap: 0.5rem;
}

.sub-pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.sub-pill.active {
  border-color: rgba(91, 140, 255, 0.5);
  background: var(--accent-soft);
  color: var(--text);
}

/* —— Publish —— */
.publish-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
}

.pub-card {
  width: 118px;
  height: 98px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 550;
  opacity: 0.4;
  transform: scale(0.94);
  transition: opacity 0.4s, transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.pub-card.active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 0 28px rgba(91, 140, 255, 0.15);
}

.pub-card .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

.pub-card .icon.yt { background: rgba(255, 0, 51, 0.15); color: #ff4466; }
.pub-card .icon.tt { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pub-card .icon.ig { background: rgba(225, 48, 108, 0.15); color: #e1306c; }
.pub-card .icon.fb { background: rgba(24, 119, 242, 0.15); color: #1877f2; }

.pub-arrow {
  color: var(--dim);
  font-size: 1.25rem;
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}

.pub-arrow.lit {
  opacity: 1;
  color: var(--accent);
}

/* —— Why / comparison —— */
.why-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
}

.why-row {
  display: grid;
  grid-template-columns: 140px 1fr 120px;
  gap: 1rem;
  align-items: center;
}

.why-name {
  font-size: 0.9rem;
  color: var(--muted);
}

.why-row-best .why-name {
  color: var(--text);
  font-weight: 600;
}

.why-track {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.why-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-fill.accent {
  background: linear-gradient(90deg, var(--accent), var(--pink));
  box-shadow: 0 0 16px var(--accent-glow);
}

.why-bars.in-view .why-fill { width: var(--w); }

.why-note {
  font-size: 0.78rem;
  color: var(--dim);
  font-family: var(--font-mono);
}

.why-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.why-pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(91, 140, 255, 0.35);
  background: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 550;
}

.why-plus { color: var(--dim); }

.compare-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cm-col {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
}

.cm-yours {
  border-color: rgba(91, 140, 255, 0.4);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 140, 255, 0.1), transparent 55%),
    var(--bg-elevated);
}

.cm-col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.cm-yours h4 { color: var(--accent); }

.cm-col li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cm-col li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--dim);
}

.cm-yours li::before {
  content: "✓";
  color: var(--success);
}

/* —— Simple steps —— */
.simple-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.simple-step {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
}

.ss-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
  border: 1px solid rgba(91, 140, 255, 0.3);
}

.simple-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.simple-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Architecture zoom —— */
.arch-zoom {
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 140, 255, 0.08), transparent 50%),
    var(--bg-elevated);
  overflow: hidden;
}

.arch-canvas {
  min-height: 380px;
  padding: 2rem 1.5rem;
  position: relative;
}

.arch-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: opacity 0.35s, transform 0.45s;
}

.arch-overview.hiding {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  inset: 2rem 1.5rem;
}

.az-node {
  width: min(100%, 220px);
  padding: 0.85rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  font-weight: 550;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
}

.az-node:hover {
  border-color: rgba(91, 140, 255, 0.6);
  background: var(--accent-soft);
  box-shadow: 0 0 28px rgba(91, 140, 255, 0.18);
  transform: translateY(-1px);
}

.az-line {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.5), var(--border));
}

.az-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: min(100%, 300px);
}

.arch-detail {
  animation: detailIn 0.4s ease;
}

.arch-detail[hidden] { display: none; }

@keyframes detailIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}

.arch-back {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.arch-back:hover { color: var(--text); }

.arch-detail h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.arch-detail > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 320px;
  margin: 0 auto;
}

.arch-flow .flow-node {
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: center;
  border: 1px solid rgba(91, 140, 255, 0.35);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 550;
  animation: clipIn 0.35s ease both;
}

.arch-flow .flow-arrow {
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0.7;
  animation: clipIn 0.35s ease both;
}

.arch-cta-row {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

/* —— Performance —— */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.perf-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 0.9rem;
  transition: border-color 0.25s, background 0.25s;
}

.perf-item:hover {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.04);
}

.perf-check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* —— CTA —— */
.cta-section {
  padding: 7rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 20% 10%;
  background: radial-gradient(ellipse at center, rgba(91, 140, 255, 0.12), transparent 65%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 auto 1rem;
  max-width: 16ch;
  position: relative;
}

.cta-section p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  max-width: 28rem;
  position: relative;
}

.cta-section .btn-row {
  justify-content: center;
  position: relative;
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-tag {
  color: var(--dim);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 360px;
  margin-left: auto;
}

.footer-cols h5 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin: 0 0 0.85rem;
}

.footer-cols a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}

.footer-cols a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--dim);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* —— Architecture page —— */
.docs-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  position: relative;
  z-index: 1;
}

.docs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
}

.docs-hero p {
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}

.docs-card {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.docs-card .label {
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 0.4rem;
}

.docs-card .value {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
}

.docs-module {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.docs-module h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.docs-module p {
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.docs-module ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem;
}

.docs-module li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.docs-module li::before {
  content: none;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  margin-right: 0.4rem;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .outcome-flow,
  .proof-grid,
  .simple-steps,
  .compare-mini,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .outcome-arrow { transform: rotate(90deg); padding: 0.25rem 0; }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2.5rem); }

  .demo-clips { grid-template-columns: 1fr; }
  .perf-grid { grid-template-columns: repeat(2, 1fr); }
  .why-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .nf-ruler { padding-left: 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(5, 5, 7, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem; border-radius: 6px; }
  .nav-links .nav-cta { justify-content: center; margin-top: 0.5rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .demo-after-results { flex-direction: column; align-items: stretch; }
  .hdash-body { grid-template-columns: 1fr; }
  .hdash-side {
    display: flex;
    gap: 0.35rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .nf-lane { grid-template-columns: 1fr; gap: 0.35rem; }
  .perf-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .prog-row { grid-template-columns: 100px 1fr 36px; }
  .pub-card { width: 100px; height: 88px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
