/* ===================================================
   Agentic Usage — Styles
   Dark + Light theme via [data-theme]
   =================================================== */

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- THEME VARIABLES ---------- */
:root {
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-w: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
}

/* DARK (default) */
[data-theme="dark"] {
  --bg: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #1c1c1e;
  --border: #222222;
  --border-accent: #333333;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-dim: #6e6e73;
  --accent: #2997ff;
  --accent-light: #64b5f6;
  --accent-glow: rgba(41, 151, 255, .08);
  --accent-glow-strong: rgba(41, 151, 255, .18);
  --gradient-1: #2997ff;
  --gradient-2: #30d5c8;
  --danger: #ff453a;
  --warn: #ff9f0a;
  --success: #30d158;
  --terminal-bg: #0a0a0a;
  --terminal-border: #1d1d1f;
  --nav-bg: rgba(18, 18, 18, .75);
  --code-bg: #0a0a0a;
}

/* LIGHT */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-surface: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f7;
  --bg-elevated: #ebebed;
  --border: #d2d2d7;
  --border-accent: #c0c0c5;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-dim: #aeaeb2;
  --accent: #0071e3;
  --accent-light: #2997ff;
  --accent-glow: rgba(0, 113, 227, .06);
  --accent-glow-strong: rgba(0, 113, 227, .12);
  --gradient-1: #0071e3;
  --gradient-2: #28b5a1;
  --danger: #ff3b30;
  --warn: #ff9500;
  --success: #34c759;
  --terminal-bg: #1d1d1f;
  --terminal-border: #2c2c2e;
  --nav-bg: rgba(255, 255, 255, .78);
  --code-bg: #f5f5f7;
}

body {
  background: var(--bg);
  color: var(--text-primary);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: -.01em;
}

.btn-sm { font-size: .875rem; padding: 8px 18px; }
.btn-lg { font-size: 1rem; padding: 14px 32px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow-strong);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-accent);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-1px);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease,
              backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease,
              box-shadow .35s ease;
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(200%) blur(30px);
  -webkit-backdrop-filter: saturate(200%) blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 4px 24px rgba(0,0,0,.18);
}
[data-theme="light"] .navbar.scrolled {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 24px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}
img.logo-icon { display: inline-block; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* ---------- GRADIENT TEXT ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- SECTION LABELS ---------- */
.section-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  text-align: center;
}

.section-title.left { text-align: left; }

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.lead.center { text-align: center; }

.dim-text { color: var(--text-dim); }
.bright-text { color: var(--accent-light); font-weight: 600; }

/* ---------- HERO ---------- */
.hero {
  padding: 120px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 36px;
}

.hero-statements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--text-secondary);
}

.hero-pivot {
  margin-bottom: 28px;
  font-size: 1.15rem;
}
.hero-pivot .dim-text { margin-bottom: 6px; }
.hero-pivot .bright-text { font-size: 1.35rem; }

.hero-sub {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 0;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-bottom: 24px;
}

/* logo bar */
.logo-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.logo-bar-label {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.logo-bar-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-bar-img {
  height: 40px;
  width: auto;
  opacity: .5;
  filter: grayscale(100%);
  transition: opacity .3s ease, filter .3s ease;
}

[data-theme="light"] .logo-bar-img {
  filter: grayscale(100%) brightness(0.3);
}

.logo-bar-img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

[data-theme="light"] .logo-bar-img:hover {
  filter: grayscale(0%) brightness(1);
}

/* scroll cue */
.scroll-cue {
  margin-top: auto;
  padding-bottom: 24px;
  color: var(--text-tertiary);
  opacity: .5;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* terminal mockup */
.hero-terminal {
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--terminal-border);
  text-align: left;
  position: relative;
  z-index: 1;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--terminal-bg);
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
}

.terminal-body {
  background: var(--terminal-bg);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: .825rem;
  line-height: 1.9;
}

.terminal-line { white-space: nowrap; }
.t-prompt { color: var(--success); }
.t-cmd { color: var(--text-primary); }
.t-dim { color: var(--text-dim); }
.t-warn { color: var(--warn); }
.t-danger { color: var(--danger); }
.highlight-line { background: rgba(255, 179, 71, .06); margin: 0 -20px; padding: 0 20px; }

.t-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--text-primary);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ---------- BEFORE / AFTER TOGGLE ---------- */
.ba-container {
  max-width: 960px;
  width: 80%;
  margin: 0 auto;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.ba-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px auto 0;
  width: fit-content;
}

.ba-sep {
  color: var(--text-tertiary);
  font-size: .8rem;
  user-select: none;
  opacity: .4;
}

.ba-btn {
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color .3s ease;
  white-space: nowrap;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ba-btn.active { color: var(--text-primary); font-weight: 600; }
.ba-btn:hover:not(.active) { color: var(--text-secondary); }

.ba-panel {
  display: none;
  animation: fadeIn .4s ease;
}
.ba-panel.active { display: block; }

/* ── BEFORE: Blind State ── */
.hero-terminal.blind {
  position: relative;
}

.hero-terminal.blind .terminal-body {
  filter: blur(1px);
  opacity: .35;
}

.blind-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  border-radius: var(--radius);
  z-index: 5;
  text-align: center;
  padding: 32px;
}

[data-theme="light"] .blind-overlay {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
}

/* Light-mode before terminal */
[data-theme="light"] .hero-terminal {
  --terminal-bg: #f5f5f7;
  --terminal-border: #d2d2d7;
}
[data-theme="light"] .blind-label {
  color: #1d1d1f;
}
[data-theme="light"] .blind-sub {
  color: rgba(29, 29, 31, .6);
}
[data-theme="light"] .blind-icon {
  color: #86868b;
}

.blind-icon {
  color: var(--text-dim);
  margin-bottom: 16px;
  opacity: .7;
}

.blind-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.blind-sub {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ── AFTER: HUD Capture View ── */
.hud-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.hud-badge.live {
  color: var(--success);
  background: rgba(48, 209, 88, .12);
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ── Product Mockup ── */
.app-mockup {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 24px 80px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.03);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--terminal-bg);
  border-bottom: 1px solid var(--border);
}
.app-titlebar-name {
  margin-left: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -.01em;
}

.app-layout {
  display: flex;
  position: relative;
  min-height: 320px;
}

/* Sidebar */
.app-sidebar {
  width: 180px;
  flex-shrink: 0;
  background: var(--terminal-bg);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-section { margin-bottom: 20px; }
.sidebar-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  padding: 0 16px;
  margin-bottom: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: .78rem;
  color: var(--text-secondary);
  cursor: default;
  transition: background .15s ease;
}
.sidebar-item.active {
  background: var(--accent-glow);
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.sidebar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red { background: var(--danger); }
.dot-green { background: var(--success); }
.dot-blue { background: var(--accent); }
.dot-dim { background: var(--text-dim); opacity: .4; }

.sidebar-stats {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.sidebar-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: .72rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.sidebar-stat-num {
  font-weight: 700;
  color: var(--text-primary);
  font-size: .82rem;
}
.red-num { color: var(--danger) !important; }

/* Main content */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-topbar-title {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-primary);
}
.app-topbar-agent {
  font-size: .75rem;
  color: var(--accent-light);
  font-weight: 500;
}
.app-topbar-time {
  font-size: .7rem;
  color: var(--text-dim);
}

.app-topbar-right {
  display: flex;
  gap: 16px;
}
.topbar-stat {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
  font-weight: 500;
}
.topbar-stat.alert { color: var(--danger); }

/* Event log */
.app-events {
  flex: 1;
  overflow-y: auto;
}

.app-event {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}

.app-event.event-warn {
  background: rgba(255, 149, 0, .03);
  border-left: 2px solid var(--warn);
  padding-left: 18px;
}
.app-event.event-danger {
  background: rgba(255, 59, 48, .04);
  border-left: 2px solid var(--danger);
  padding-left: 18px;
}

.event-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-icon-cmd { background: rgba(41, 151, 255, .1); color: var(--accent); }
.event-icon-git { background: rgba(41, 151, 255, .1); color: var(--accent-light); }
.event-icon-file { background: rgba(41, 151, 255, .08); color: var(--accent); }
.event-icon-warn { background: rgba(255, 149, 0, .1); color: var(--warn); }
.event-icon-danger { background: rgba(255, 59, 48, .1); color: var(--danger); }

.event-body { flex: 1; min-width: 0; }
.event-title {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-meta {
  font-size: .7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.event-time {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* Notification stack */
.notif-stack {
  position: absolute;
  top: 16px;
  right: -12px;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.notif {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateX(30px);
  animation: notifSlideIn .5s ease forwards;
}

.notif-1 { animation-delay: .3s; }
.notif-2 { animation-delay: .7s; }
.notif-3 { animation-delay: 1.1s; }
.notif-4 { animation-delay: 1.5s; }

@keyframes notifSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.notif-dot-blue { background: var(--accent); }
.notif-dot-warn { background: var(--warn); }
.notif-dot-danger { background: var(--danger); animation: pulse-dot 1.5s ease infinite; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .4); }
  50% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
}

.notif-content { min-width: 0; }
.notif-title {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.notif-detail {
  font-size: .67rem;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-warn { border-color: rgba(255, 149, 0, .2); }
.notif-danger { border-color: rgba(255, 59, 48, .25); background: rgba(255, 59, 48, .05); }

/* ── Light-mode mockup ── */
[data-theme="light"] .app-mockup {
  --bg-card: #ffffff;
  --bg-elevated: #f5f5f7;
  --border: #d2d2d7;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-dim: #aeaeb2;
  --accent-glow: rgba(0, 113, 227, .06);
  --terminal-bg: #f5f5f7;
  background: #ffffff;
  border-color: #d2d2d7;
  box-shadow: 0 24px 80px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
}

[data-theme="light"] .app-mockup .app-titlebar {
  background: #ebebed;
}

[data-theme="light"] .app-mockup .app-sidebar {
  background: #f5f5f7;
}

[data-theme="light"] .app-event.event-warn {
  background: rgba(255, 149, 0, .06);
}
[data-theme="light"] .app-event.event-danger {
  background: rgba(255, 59, 48, .06);
}

[data-theme="light"] .notif-stack .notif {
  background: #ffffff;
  border-color: #d2d2d7;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
[data-theme="light"] .notif-stack .notif-title {
  color: #1d1d1f;
}
[data-theme="light"] .notif-stack .notif-detail {
  color: #86868b;
}
[data-theme="light"] .notif-stack .notif-warn {
  border-color: rgba(255, 149, 0, .25);
}
[data-theme="light"] .notif-stack .notif-danger {
  border-color: rgba(255, 59, 48, .3);
  background: rgba(255, 59, 48, .04);
}

/* ---------- SHIFT SECTION ---------- */
.shift-section { background: var(--bg-surface); }

.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.check-list {
  margin-top: 16px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.callout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.callout-from, .callout-to {
  color: var(--text-dim);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.callout-quote {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.callout-quote.accent { color: var(--accent-light); }

.callout-divider {
  width: 48px;
  height: 2px;
  background: var(--border-accent);
  margin: 20px auto;
}

.callout-bottom {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- PLATFORM SECTION ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0 36px;
}

.platform-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 12px;
  transition: border-color var(--transition);
}
.platform-card:hover { border-color: var(--accent); }

.platform-from {
  font-weight: 700;
  font-size: 1rem;
}
.platform-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
}
.platform-to {
  color: var(--accent-light);
  font-weight: 600;
}
.platform-to.missing {
  color: var(--danger);
  font-size: 1.6rem;
  font-weight: 800;
}

.gap-card {
  border-color: var(--danger);
  background: rgba(255, 77, 106, .04);
}

.platform-gap {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---------- USE-CASE TABS ---------- */
.usecases-section { background: var(--bg-surface); }

.tabs { margin-top: 16px; }

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
  margin: 0 auto 32px;
}

.tab-btn {
  padding: 10px 24px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active {
  background: var(--accent);
  color: #fff;
}
.tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: var(--accent-glow);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .35s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tab-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.tab-subtitle {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.tab-desc p { color: var(--text-secondary); margin-bottom: 16px; }

.highlight-p {
  font-weight: 600;
  color: var(--text-primary) !important;
  line-height: 1.6;
}

.tab-features h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: .95rem;
}
.feat-icon {
  color: var(--accent);
  font-size: .6rem;
}

.tab-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-primary);
  font-size: .95rem;
}

/* ---------- MATTERS ---------- */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0;
}

.risk-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.risk-card:hover {
  border-color: var(--danger);
  transform: translateY(-3px);
}

.risk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 16px;
}

.risk-card p { font-weight: 600; color: var(--text-primary); }

.matters-callout {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.matters-callout p { margin-bottom: 8px; font-size: 1.1rem; }

/* ---------- RISK CURVE ---------- */
.curve-section { background: var(--bg-surface); }

.curve-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.curve-bar-group { margin-bottom: 24px; }
.curve-bar-label {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.curve-bar-track {
  height: 14px;
  background: var(--bg-elevated);
  border-radius: 10px;
  overflow: hidden;
}
.curve-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(.25,.8,.25,1);
}
.bar-1 { background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2)); }
.bar-2 { background: linear-gradient(90deg, var(--gradient-1), var(--accent-light)); }
.bar-3 { background: var(--accent); }
.bar-4.danger { background: var(--danger); }

.curve-text p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 16px; }

/* ---------- VISIBILITY ---------- */
.visibility-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin: 48px 0;
}

.vis-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.vis-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.vis-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 14px;
}

.vis-card h4 { font-size: 1rem; margin-bottom: 6px; }
.vis-card p { font-size: .85rem; color: var(--text-secondary); }

.vis-bottom {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-light);
}

/* ---------- DESIGNED ---------- */
.designed-section { background: var(--bg-surface); }

.designed-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 48px 0 24px;
}

.designed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-weight: 500;
  font-size: .95rem;
  transition: border-color var(--transition);
}
.designed-item:hover { border-color: var(--accent); }

.designed-check {
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
}

.designed-tagline {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ---------- AUDIENCE / WHY NOW ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.audience-list {
  margin: 24px 0;
}
.audience-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.audience-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.audience-bottom {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

.why-now-callout {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.why-now-callout p { margin-bottom: 6px; }

/* ---------- CTA ---------- */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 36px;
  line-height: 1.2;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-copy {
  font-size: .85rem;
  color: var(--text-dim);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .visibility-grid { grid-template-columns: repeat(3, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-inner { height: 56px; }
  .logo { font-size: .95rem; gap: 8px; }
  .logo .logo-icon { width: 26px; height: 26px; }
  .nav-actions { gap: 10px; }
  .theme-toggle { width: 34px; height: 34px; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .nav-actions .btn-sm { font-size: .75rem; padding: 6px 14px; }

  .hero { padding: 110px 0 60px; }
  .hero-title { font-size: 2.2rem; }

  .shift-grid { grid-template-columns: 1fr; gap: 32px; }
  .platform-grid { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .visibility-grid { grid-template-columns: repeat(2, 1fr); }
  .curve-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .tab-content-grid { grid-template-columns: 1fr; padding: 28px; gap: 28px; }

  .tab-nav {
    flex-direction: column;
    width: 100%;
  }
  .tab-btn { text-align: center; }

  .hero-terminal { margin: 0 -8px; border-radius: var(--radius-sm); }
  .terminal-body { font-size: .75rem; overflow-x: auto; }

  .ba-btn { padding: 8px 16px; font-size: .8rem; }
  .app-sidebar { display: none; }
  .notif-stack { display: none; }
  .app-topbar-right { display: none; }
  .blind-sub + .blind-sub { margin-top: 4px; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .risk-grid { grid-template-columns: 1fr; }
  .visibility-grid { grid-template-columns: 1fr; }
  .designed-grid { flex-direction: column; }
}
