/* ============================================
   NotDory — Website Styles
   Dark-first, deep-ocean / minimal aesthetic
   ============================================ */

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

/* ============================================
   Theme Tokens — DARK is the default
   ============================================ */
:root,
[data-theme="dark"] {
  --bg: #050a14;
  --bg-elevated: #08101e;
  --bg-alt: #060d19;
  --surface: rgba(255, 255, 255, 0.026);
  --surface-hover: rgba(255, 255, 255, 0.052);
  --surface-solid: #0b1424;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f7fc;
  --text-secondary: #95a3b8;
  --text-muted: #5d6b80;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-2: #22d3ee;
  --code-bg: #060c18;
  --code-bar: #0a1322;
  --code-text: #d6e1ee;
  --success: #4ade80;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --nav-height: 68px;
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  --maxw: 1180px;
}

/* --- Light theme overrides --- */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-alt: #f4f8fc;
  --surface: #ffffff;
  --surface-hover: #f4f8fc;
  --surface-solid: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #071322;
  --text-secondary: #475569;
  --text-muted: #7c8a9e;
  --accent: #0284c7;
  --accent-soft: rgba(2, 132, 199, 0.1);
  --accent-2: #0891b2;
  --code-bg: #071020;
  --code-bar: #0d1a2e;
  --code-text: #d6e1ee;
  --shadow-lg: 0 20px 40px -18px rgba(8, 30, 60, 0.18);
  --shadow-xl: 0 30px 60px -24px rgba(8, 30, 60, 0.22);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ============================================
   Global Background Imagery (fixed, behind all)
   ============================================ */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
}

.bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 50% -8%, rgba(56, 189, 248, 0.24) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 84% 10%, rgba(34, 211, 238, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 12% 24%, rgba(37, 99, 235, 0.12) 0%, transparent 55%);
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(to right, rgba(8, 30, 60, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 30, 60, 0.06) 1px, transparent 1px);
}
[data-theme="light"] .bg-glow {
  background:
    radial-gradient(ellipse 55% 40% at 50% -8%, rgba(2, 132, 199, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 6%, rgba(8, 145, 178, 0.1) 0%, transparent 55%);
}

/* --- Rising bubbles (hero only) --- */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bubbles span {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(186, 230, 253, 0.28), rgba(56, 189, 248, 0.04) 70%);
  animation: rise linear infinite;
  opacity: 0;
}
.bubbles span:nth-child(1) { left: 8%;  width: 14px; height: 14px; animation-duration: 14s; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 18%; width: 8px;  height: 8px;  animation-duration: 11s; animation-delay: 3s; }
.bubbles span:nth-child(3) { left: 30%; width: 20px; height: 20px; animation-duration: 18s; animation-delay: 6s; }
.bubbles span:nth-child(4) { left: 72%; width: 10px; height: 10px; animation-duration: 13s; animation-delay: 1s; }
.bubbles span:nth-child(5) { left: 84%; width: 16px; height: 16px; animation-duration: 16s; animation-delay: 4s; }
.bubbles span:nth-child(6) { left: 92%; width: 7px;  height: 7px;  animation-duration: 10s; animation-delay: 7s; }
[data-theme="light"] .bubbles span { border-color: rgba(2, 132, 199, 0.28); }

@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translate(14px, -45vh); }
  90%  { opacity: 0.6; }
  100% { transform: translate(-8px, -95vh); opacity: 0; }
}

/* --- Container --- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(5, 10, 20, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(5, 10, 20, 0.84);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.9); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 36px; width: 36px; }

/* Wordmark: "Not" muted, "Dory" in the accent gradient */
.wordmark {
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}
.wordmark .not { color: var(--text-secondary); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a:not(.nav-github) {
  font-size: 0.86rem;
  font-weight: 450;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:not(.nav-github):hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-github {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-github:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-icon-moon { display: none; }
.theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: none; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 64px) 0 96px;
  overflow: hidden;
}
.hero-content { position: relative; text-align: center; max-width: 920px; margin: 0 auto; }

.hero-logo {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 18px 40px rgba(56, 189, 248, 0.35));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 30px;
  font-family: 'JetBrains Mono', monospace;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.16rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 42px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-size: 0.92rem;
  font-weight: 550;
  border-radius: 100px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.9; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--text-muted); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* --- Terminal / Code blocks --- */
.hero-terminal {
  text-align: left;
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--code-bg);
  border: 1px solid var(--border);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--code-bar);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.terminal-body {
  padding: 22px 24px;
  overflow-x: auto;
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--code-text);
}
.terminal-body code { font-size: inherit; background: none; }

.t-prompt { color: #22d3ee; }
.t-comment { color: #56657a; }
.t-string { color: #a6e3a1; }
.t-keyword { color: #cba6f7; }
.t-type { color: #89b4fa; }
.t-num { color: #fab387; }
.t-key { color: #7dd3fc; }
.t-dim { color: #7a889c; }

/* ============================================
   Trust / Stats Bar
   ============================================ */
.trust-bar {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px 44px;
  flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trust-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.trust-number span { color: var(--accent); }
.trust-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.trust-divider { width: 1px; height: 38px; background: var(--border); }

/* ============================================
   Sections
   ============================================ */
.section { padding: 108px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 68px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}
.section-tag::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Problem Section --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.problem-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s;
}
.problem-card:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.problem-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.problem-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.problem-card p { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.6; }

/* --- "Not Dory" pivot line --- */
.pivot {
  text-align: center;
  margin: 72px auto 44px;
  max-width: 720px;
}
.pivot h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pivot p { color: var(--text-secondary); font-size: 1.05rem; }

/* ============================================
   Benefits
   ============================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-item {
  display: flex;
  gap: 15px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, background 0.25s;
}
.benefit-item:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.benefit-check {
  width: 28px; height: 28px; min-width: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-2);
  border-radius: 50%;
  margin-top: 2px;
}
.benefit-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.benefit-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }

/* ============================================
   Benchmark comparison bars
   ============================================ */
.compare {
  max-width: 760px;
  margin: 64px auto 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compare h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.compare > p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 24px; }
.compare-row {
  display: grid;
  grid-template-columns: 130px 1fr 56px;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.compare-label { font-size: 0.88rem; color: var(--text-secondary); }
.compare-track {
  height: 12px;
  border-radius: 100px;
  background: var(--border);
  overflow: hidden;
}
.compare-fill {
  height: 100%;
  border-radius: 100px;
  width: 0;
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.compare-fill.with { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.compare-fill.without { background: var(--text-muted); }
.compare.visible .compare-fill { width: var(--w); }
.compare-value { font-family: 'JetBrains Mono', monospace; font-size: 0.92rem; font-weight: 500; text-align: right; }
.compare-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }
.compare-note a { color: var(--accent); }

/* ============================================
   Features Grid
   ============================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-hover); }
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.25s, color 0.25s;
}
.feature-card:hover .feature-icon { border-color: var(--accent); color: var(--accent); }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
.feature-card code,
.arch-detail code,
.step p code {
  font-size: 0.82rem;
  padding: 2px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--accent);
}

/* ============================================
   Architecture
   ============================================ */
.arch-diagram { display: flex; flex-direction: column; align-items: center; margin-bottom: 60px; }
.arch-row { display: flex; gap: 20px; justify-content: center; width: 100%; max-width: 760px; }
.arch-arrow { color: var(--text-muted); padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.arch-arrow small { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text-muted); }
.arch-box {
  flex: 1;
  padding: 22px 26px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  position: relative;
}
.arch-box::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--accent-soft));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.arch-box.core {
  border-color: var(--accent);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--surface);
}
.arch-box.core .arch-box-label { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.1rem; }
.arch-box.core img { width: 30px; height: 30px; }
.arch-box-label { font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.arch-box-sub { font-size: 0.8rem; color: var(--text-secondary); }

.arch-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.arch-detail { padding-top: 24px; border-top: 1px solid var(--border); }
.arch-detail h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 8px; }
.arch-detail p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   Harness Tabs
   ============================================ */
.sdk-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  background: var(--code-bar);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 8px 8px 0;
  max-width: 820px;
  margin: 0 auto;
}
.sdk-tab {
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.2s;
}
.sdk-tab:hover { color: var(--text-secondary); }
.sdk-tab.active { background: var(--code-bg); color: #f2f7fc; }
.sdk-panels { max-width: 820px; margin: 0 auto; }
.sdk-panel {
  display: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-top: none;
}
.sdk-panel.active { display: block; }
.sdk-panel .terminal-body { min-height: 200px; }
.harness-note {
  max-width: 820px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.harness-note code { color: var(--accent); font-size: 0.84rem; }

/* ============================================
   Use Cases
   ============================================ */
.usecases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usecase-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.usecase-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-hover); }
.usecase-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  transition: border-color 0.25s, color 0.25s;
}
.usecase-card:hover .usecase-icon { border-color: var(--accent); color: var(--accent); }
.usecase-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.usecase-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   Quick Start Steps
   ============================================ */
.steps-grid {
  display: flex;
  flex-direction: column;
  margin: 0 auto 56px;
  max-width: 740px;
}
.step { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 0 20px; }
.step-number-col { display: flex; flex-direction: column; align-items: center; }
.step-connector { width: 1px; flex: 1; background: var(--border); }
.step:last-child .step-connector { display: none; }
.step-content { padding-bottom: 40px; min-width: 0; }
.step:last-child .step-content { padding-bottom: 0; }
.step-number {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.step-code {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  overflow-x: auto;
}
.step-code pre { font-size: 0.78rem; line-height: 1.65; color: var(--code-text); }
.step p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #95a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.copy-btn:hover { color: #f2f7fc; border-color: rgba(255, 255, 255, 0.24); }

/* --- Credentials --- */
.quickstart-creds {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 980px;
  margin: 0 auto;
}
.quickstart-creds h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 20px; text-align: center; }
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred-item { text-align: center; }
.cred-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cred-item code {
  font-size: 0.82rem;
  padding: 5px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  display: inline-block;
}
.creds-warning { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 20px; }

/* ============================================
   CTA
   ============================================ */
.section-cta { text-align: center; overflow: hidden; }
.cta-shell {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--surface);
  overflow: hidden;
}
.cta-logo { display: block; width: 96px; height: 96px; margin: 0 auto 24px; }
.cta-content h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; margin-bottom: 16px; letter-spacing: -0.025em; }
.cta-content p { font-size: 1.1rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto 36px; line-height: 1.7; }
.cta-actions { display: flex; gap: 14px; justify-content: center; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-alt);
  color: var(--text-secondary);
  padding: 72px 0 36px;
  border-top: 1px solid var(--border);
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 64px; margin-bottom: 52px; }
.footer-brand .nav-logo { margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 300px; color: var(--text-muted); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 0.89rem; padding: 4px 0; color: var(--text-secondary); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.footer-bottom a:hover { color: var(--text); }
.footer-disclaimer { font-size: 0.76rem; color: var(--text-muted); margin-top: 18px; text-align: center; opacity: 0.8; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .features-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-actions { margin-top: 6px; }
  .nav-toggle { display: flex; }

  .container, .nav-inner { padding: 0 16px; }
  .hero { padding: calc(var(--nav-height) + 40px) 0 64px; }
  .hero-logo { width: 150px; height: 150px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; max-width: 320px; }

  .trust-divider { display: none; }
  .section { padding: 72px 0; }
  .problem-grid, .features-grid, .usecases-grid, .benefits-grid, .arch-details { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .compare { padding: 24px 18px; }
  .compare-row { grid-template-columns: 96px 1fr 48px; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
  .sdk-tabs { flex-wrap: wrap; }
  .sdk-tab { padding: 8px 12px; }
  .arch-row { flex-direction: column; align-items: center; }
  .arch-box { width: 100%; max-width: 420px; }
  .cta-shell { padding: 56px 20px; }
}

@media (max-width: 480px) {
  .trust-items { gap: 22px; }
  .creds-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

/* --- Fade-in animation --- */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-logo, .bubbles span { animation: none; }
  .bubbles { display: none; }
  .compare-fill { transition: none; }
  html { scroll-behavior: auto; }
}
