/* ═══════════════════════════════════════════════════════════════════════════
   Operanix — Marketing site
   Built on the portal's premium dark / violet system (Geist, oklch neutrals)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: oklch(0.115 0.012 280);
  --bg-2: oklch(0.145 0.012 280);
  --card: oklch(0.165 0.009 280);
  --card-2: oklch(0.195 0.009 280);
  --border: oklch(0.3 0.012 280 / 0.5);
  --border-soft: oklch(0.27 0.012 280 / 0.32);

  --fg: oklch(0.98 0 0);
  --muted: oklch(0.66 0.01 270);
  --muted-2: oklch(0.52 0.01 270);
  --faint: oklch(0.4 0.01 270);

  --accent-h: 277;          /* tweakable hue — indigo #6366F1 */
  --accent: oklch(0.62 0.2 var(--accent-h));
  --accent-bright: oklch(0.7 0.2 var(--accent-h));
  --accent-text: oklch(0.72 0.15 var(--accent-h));
  --accent-grad: linear-gradient(135deg, oklch(0.52 0.2 var(--accent-h)), oklch(0.56 0.2 calc(var(--accent-h) + 25)));
  --accent-glow: oklch(0.6 0.2 var(--accent-h) / 0.25);

  --green: oklch(0.76 0.15 155);
  --green-dim: oklch(0.55 0.1 155 / 0.18);
  --amber: oklch(0.8 0.15 75);
  --red: oklch(0.7 0.18 25);

  --r-lg: 16px;
  --r-md: 11px;
  --r-sm: 8px;

  --maxw: 1240px;
  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
}

/* ── Light theme (tweakable; sidebar & preview chrome stay dark) ──────────── */
body.theme-light {
  --bg: oklch(0.99 0.003 270);
  --bg-2: oklch(0.97 0.004 270);
  --card: oklch(1 0 0);
  --card-2: oklch(0.985 0.003 270);
  --border: oklch(0.9 0.006 270 / 0.9);
  --border-soft: oklch(0.92 0.005 270 / 0.7);
  --fg: oklch(0.18 0.01 270);
  --muted: oklch(0.45 0.01 270);
  --muted-2: oklch(0.58 0.01 270);
  --faint: oklch(0.7 0.01 270);
}
body.theme-light .nav.scrolled {
  background: oklch(0.99 0.003 270 / 0.8);
  border-bottom-color: var(--border-soft);
}
body.theme-light .btn-ghost { background: oklch(0.97 0.004 270); }
body.theme-light .btn-ghost:hover { background: oklch(0.95 0.005 270); }
body.theme-light .preview::before { background: linear-gradient(to bottom, transparent 60%, var(--bg) 99%); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-glow); color: white; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.section { padding: var(--sec-pad, 7rem) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 1rem 0 1.1rem;
  text-wrap: balance;
}
.section-sub {
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  text-wrap: pretty;
}
.section-head.center .section-sub { margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.72rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: white;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.15) inset, 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 oklch(1 0 0 / 0.2) inset, 0 12px 30px -8px var(--accent-glow); }
.btn-ghost {
  background: oklch(0.2 0.006 270 / 0.6);
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover { background: oklch(0.24 0.008 270 / 0.8); border-color: oklch(0.35 0.01 270 / 0.7); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.nav.scrolled {
  background: oklch(0.12 0.01 270 / 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 66px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 2rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand-name { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 0.3rem; margin-left: 0.5rem; }
.nav-link {
  font-size: 0.88rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  padding: 0.45rem 0.7rem; border-radius: 7px; transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--fg); background: oklch(0.2 0.006 270 / 0.5); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.nav-signin { font-size: 0.88rem; font-weight: 500; color: var(--muted); padding: 0.5rem 0.7rem; transition: color 0.15s; white-space: nowrap; }
.nav-signin:hover { color: var(--fg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 6.5rem 0 5rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(oklch(0.6 0.2 var(--accent-h) / 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 30%, transparent 72%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 30%, transparent 72%);
}
.hero-bg::after {
  content: ''; position: absolute;
  top: -240px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 620px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  opacity: 0.85;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 500;
  color: var(--muted);
  background: oklch(0.18 0.006 270 / 0.7);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  margin-bottom: 1.8rem;
}
.hero-pill b { color: var(--fg); font-weight: 600; }
.hero-pill .tag {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--accent-grad); color: white;
  padding: 0.15rem 0.5rem; border-radius: 100px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-bright), oklch(0.78 0.13 calc(var(--accent-h) + 40)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 620px; margin: 0 auto 2.2rem;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 1.5rem; font-size: 0.82rem; color: var(--muted-2);
  display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap;
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-note svg { width: 14px; height: 14px; color: var(--green); }

/* ── Product preview (portal mock) ───────────────────────────────────────── */
.preview {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 4.5rem auto 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 40px 100px -30px oklch(0 0 0 / 0.7), 0 0 0 1px oklch(1 0 0 / 0.02) inset;
  overflow: hidden;
}
.preview::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 99%);
}
.pv-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  background: oklch(0.13 0.008 270);
}
.pv-dots { display: flex; gap: 6px; }
.pv-dots i { width: 11px; height: 11px; border-radius: 50%; background: oklch(0.3 0.01 270); display: block; }
.pv-url {
  margin: 0 auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2);
  background: oklch(0.1 0.006 270); padding: 0.25rem 0.9rem; border-radius: 6px;
  border: 1px solid var(--border-soft);
}
.pv-body { display: flex; min-height: 440px; }

/* mock sidebar */
.pv-side {
  width: 188px; flex-shrink: 0;
  background: oklch(0.105 0.01 270);
  border-right: 1px solid var(--border-soft);
  padding: 0.9rem 0.6rem;
  display: flex; flex-direction: column; gap: 2px;
}
.pv-side-logo { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.5rem 0.9rem; }
.pv-side-logo img { width: 22px; height: 22px; border-radius: 6px; }
.pv-side-logo span { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.02em; color: white; }
.pv-nav {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.48rem 0.6rem; border-radius: 7px;
  font-size: 0.78rem; font-weight: 500; color: oklch(0.6 0.01 270);
}
.pv-nav svg { width: 15px; height: 15px; opacity: 0.7; }
.pv-nav.active { background: oklch(0.2 0.04 var(--accent-h) / 0.5); color: white; position: relative; }
.pv-nav.active svg { color: var(--accent-bright); opacity: 1; }
.pv-nav.active::before {
  content: ''; position: absolute; left: -0.6rem; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--accent-bright);
}

/* mock main */
.pv-main { flex: 1; padding: 1.3rem 1.5rem; overflow: hidden; }
.pv-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.pv-h h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.pv-h-sub { font-size: 0.74rem; color: var(--muted-2); margin-top: 2px; }
.pv-chip {
  font-size: 0.68rem; font-weight: 600; font-family: var(--font-mono);
  padding: 0.25rem 0.6rem; border-radius: 100px;
  background: var(--green-dim); color: var(--green);
  border: 1px solid oklch(0.5 0.1 155 / 0.3);
}
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.1rem; }
.pv-stat { background: var(--card-2); border: 1px solid var(--border-soft); border-radius: 9px; padding: 0.7rem 0.8rem; }
.pv-stat .k { font-size: 0.66rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.pv-stat .v { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 3px; }
.pv-stat .v small { font-size: 0.68rem; color: var(--green); font-weight: 600; margin-left: 4px; }

.pv-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.85rem; border-radius: 9px;
  border: 1px solid var(--border-soft); background: var(--card-2);
  margin-bottom: 0.55rem;
}
.pv-row-ic { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; }
.pv-row-ic svg { width: 15px; height: 15px; }
.pv-row-main { flex: 1; min-width: 0; }
.pv-row-t { font-size: 0.8rem; font-weight: 600; }
.pv-row-d { font-size: 0.7rem; color: var(--muted-2); margin-top: 1px; }
.pv-tag {
  font-size: 0.62rem; font-weight: 600; font-family: var(--font-mono);
  padding: 0.18rem 0.45rem; border-radius: 5px; white-space: nowrap;
}
.pv-tag.ok { background: var(--green-dim); color: var(--green); }
.pv-tag.wait { background: oklch(0.6 0.12 75 / 0.16); color: var(--amber); }
.pv-tag.block { background: oklch(0.6 0.15 25 / 0.16); color: var(--red); }
.pv-mini-btn {
  font-size: 0.68rem; font-weight: 600; padding: 0.32rem 0.7rem; border-radius: 6px;
  background: var(--accent-grad); color: white; border: none;
}

/* ── Logo strip ──────────────────────────────────────────────────────────── */
.strip { padding: 3rem 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.strip-label { text-align: center; font-size: 0.74rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.6rem; }
.strip-logos { display: flex; flex-wrap: wrap; gap: 2.5rem 3.5rem; justify-content: center; align-items: center; }
.strip-logo { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--muted-2); opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.strip-logo:hover { opacity: 1; color: var(--fg); }

/* ── Compliance badges ───────────────────────────────────────────────────── */
.compliance { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2rem; }
.cert {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.95rem; border-radius: 100px;
  background: oklch(0.18 0.006 270 / 0.5);
  border: 1px solid var(--border);
}
.cert svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.cert b { font-size: 0.82rem; font-weight: 600; letter-spacing: -0.01em; }
.cert span { font-size: 0.7rem; color: var(--muted-2); }
body.theme-light .cert { background: oklch(0.97 0.004 270); }

/* ── Testimonial ─────────────────────────────────────────────────────────── */
.quote-wrap { max-width: 920px; margin: 0 auto; text-align: center; }
.quote-mark { font-size: 4rem; line-height: 0.5; color: var(--accent); font-family: Georgia, serif; height: 2rem; }
.quote-text {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.32;
  text-wrap: balance; margin-bottom: 2rem;
}
.quote-text em { font-style: normal; color: var(--accent-text); }
.quote-by { display: inline-flex; align-items: center; gap: 0.85rem; }
.quote-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; color: white;
}
.quote-meta { text-align: left; }
.quote-name { font-size: 0.95rem; font-weight: 600; }
.quote-role { font-size: 0.82rem; color: var(--muted-2); }

/* ── Enterprise section ──────────────────────────────────────────────────── */
.ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--r-lg); overflow: hidden; }
.ent-cell {
  background: var(--card); padding: 1.6rem 1.5rem;
  transition: background 0.2s;
}
.ent-cell:hover { background: var(--card-2); }
.ent-cell-ic { width: 38px; height: 38px; border-radius: 10px; background: oklch(0.22 0.04 var(--accent-h) / 0.45); display: grid; place-items: center; margin-bottom: 1rem; }
.ent-cell-ic svg { width: 19px; height: 19px; color: var(--accent-bright); }
.ent-cell h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.ent-cell p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
body.theme-light .ent-grid { background: var(--border); }

@media (max-width: 980px) {
  .ent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ent-grid { grid-template-columns: 1fr; }
}

/* ── Pipeline (governance flow) ──────────────────────────────────────────── */
.pipe { display: flex; flex-direction: column; gap: 0; }
.pipe-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  position: relative;
}
.pipe-node {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 0.9rem 1.1rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.pipe-node:hover { transform: translateY(-3px); border-color: oklch(0.4 0.06 var(--accent-h) / 0.6); background: var(--card-2); }
.pipe-step { font-family: var(--font-mono); font-size: 0.66rem; color: var(--accent-text); font-weight: 600; }
.pipe-ic { width: 30px; height: 30px; border-radius: 8px; background: oklch(0.22 0.04 var(--accent-h) / 0.4); display: grid; place-items: center; margin: 0.55rem 0; }
.pipe-ic svg { width: 16px; height: 16px; color: var(--accent-bright); }
.pipe-node.gate .pipe-ic { background: oklch(0.3 0.1 75 / 0.2); }
.pipe-node.gate .pipe-ic svg { color: var(--amber); }
.pipe-node.audit .pipe-ic { background: var(--green-dim); }
.pipe-node.audit .pipe-ic svg { color: var(--green); }
.pipe-name { font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; }
.pipe-desc { font-size: 0.74rem; color: var(--muted-2); margin-top: 0.25rem; line-height: 1.45; }
.pipe-arrow { color: var(--faint); }

.guard-banner {
  margin-top: 1.4rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.3rem;
  border-radius: var(--r-md);
  background: oklch(0.6 0.15 25 / 0.08);
  border: 1px solid oklch(0.6 0.15 25 / 0.25);
}
.guard-banner svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
.guard-banner b { color: var(--fg); }
.guard-banner span { font-size: 0.92rem; color: var(--muted); }

/* ── Feature grid ────────────────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative; overflow: hidden;
}
.feat:hover { transform: translateY(-3px); border-color: oklch(0.4 0.06 var(--accent-h) / 0.55); background: var(--card-2); }
.feat-ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: oklch(0.22 0.04 var(--accent-h) / 0.45);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.feat-ic svg { width: 21px; height: 21px; color: var(--accent-bright); }
.feat h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.feat p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.feat-tag { display: inline-block; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-2); }

/* ── Split / governance callout ──────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.split-item { display: flex; gap: 0.9rem; }
.split-item-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--green-dim); display: grid; place-items: center; flex-shrink: 0; }
.split-item-ic svg { width: 17px; height: 17px; color: var(--green); }
.split-item h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.2rem; }
.split-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* audit log visual */
.audit-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.3rem; box-shadow: 0 30px 70px -35px oklch(0 0 0 / 0.7);
}
.audit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border-soft); }
.audit-head-t { font-size: 0.84rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.audit-head-t svg { width: 15px; height: 15px; color: var(--green); }
.audit-live { font-family: var(--font-mono); font-size: 0.66rem; color: var(--green); display: flex; align-items: center; gap: 0.4rem; }
.audit-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.audit-line { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0; font-family: var(--font-mono); font-size: 0.72rem; border-bottom: 1px dashed var(--border-soft); }
.audit-line:last-child { border-bottom: none; }
.audit-time { color: var(--muted-2); flex-shrink: 0; }
.audit-actor { color: var(--accent-text); flex-shrink: 0; }
.audit-act { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-badge { font-size: 0.62rem; padding: 0.12rem 0.4rem; border-radius: 4px; flex-shrink: 0; }
.audit-badge.ok { background: var(--green-dim); color: var(--green); }
.audit-badge.block { background: oklch(0.6 0.15 25 / 0.16); color: var(--red); }

/* ── Stats band ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.04em; background: linear-gradient(120deg, var(--accent-bright), oklch(0.78 0.13 calc(var(--accent-h) + 40))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.88rem; color: var(--muted); margin-top: 0.3rem; }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; border-radius: 24px; padding: 5rem 3rem; text-align: center; background: var(--card); border: 1px solid var(--border); }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(oklch(0.6 0.2 var(--accent-h) / 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, black, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, black, transparent 75%);
}
.cta::after {
  content: ''; position: absolute; bottom: -180px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; background: radial-gradient(circle, var(--accent-glow), transparent 65%); filter: blur(40px);
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1rem; text-wrap: balance; }
.cta p { font-size: 1.1rem; color: var(--muted); max-width: 500px; margin: 0 auto 2rem; }
.cta .hero-cta { margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border-soft); padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; color: var(--muted-2); line-height: 1.55; max-width: 280px; }
.footer-col h5 { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--muted); padding: 0.32rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; padding-top: 1.8rem; border-top: 1px solid var(--border-soft); flex-wrap: wrap; gap: 1rem; }
.footer-bot p { font-size: 0.82rem; color: var(--muted-2); }
.footer-soc { display: flex; gap: 0.6rem; }
.footer-soc a { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted-2); transition: all 0.15s; }
.footer-soc a:hover { color: var(--fg); border-color: var(--border); background: oklch(0.2 0.006 270 / 0.6); }
.footer-soc svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Product-grounded sections (added after reading the Operanix docs)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Writes vs Does contrast ─────────────────────────────────────────────── */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cpanel { border-radius: var(--r-lg); border: 1px solid var(--border); padding: 1.8rem; background: var(--card); }
.cpanel.dim { background: oklch(0.14 0.004 270 / 0.5); }
.cpanel-tag { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.45rem; }
.cpanel.dim .cpanel-tag { color: var(--muted-2); }
.cpanel.lit .cpanel-tag { color: var(--accent-text); }
.cpanel h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.cstep { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.55rem 0; font-size: 0.92rem; }
.cstep svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.cpanel.dim .cstep { color: var(--muted-2); }
.cpanel.dim .cstep svg { color: var(--faint); }
.cpanel.lit .cstep svg { color: var(--green); }
.cstep.stop { color: var(--muted-2); }
.cstep.stop svg { color: var(--red); }
.cpanel-foot { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); font-size: 0.86rem; }
.cpanel.dim .cpanel-foot { color: var(--muted-2); }
.cpanel.lit .cpanel-foot { color: var(--fg); font-weight: 500; }

/* ── Autopilots ──────────────────────────────────────────────────────────── */
.auto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.auto-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.7rem; transition: transform 0.2s, border-color 0.2s; }
.auto-card:hover { transform: translateY(-3px); border-color: oklch(0.4 0.06 var(--accent-h) / 0.55); }
.auto-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.auto-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-grad); display: grid; place-items: center; flex-shrink: 0; }
.auto-ic svg { width: 20px; height: 20px; color: white; }
.auto-card h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.auto-card > p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.auto-steps { display: flex; flex-direction: column; gap: 0.5rem; }
.auto-steps li { list-style: none; display: flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; color: var(--muted); }
.auto-steps svg { width: 15px; height: 15px; color: var(--accent-bright); flex-shrink: 0; }

/* ── Team / agent roster ─────────────────────────────────────────────────── */
.ceo-card {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  background: linear-gradient(120deg, oklch(0.2 0.05 var(--accent-h) / 0.5), var(--card));
  border: 1px solid oklch(0.4 0.08 var(--accent-h) / 0.5);
  border-radius: var(--r-lg); padding: 1.5rem 1.8rem; margin-bottom: 1.2rem;
}
.ceo-ic { width: 52px; height: 52px; border-radius: 13px; background: var(--accent-grad); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 8px 24px -8px var(--accent-glow); }
.ceo-ic svg { width: 26px; height: 26px; color: white; }
.ceo-meta { flex: 1; min-width: 240px; }
.ceo-meta .role { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent-text); font-weight: 600; letter-spacing: 0.04em; }
.ceo-meta h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; margin: 0.2rem 0 0.3rem; }
.ceo-meta p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.ceo-badge { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-2); border: 1px solid var(--border); border-radius: 100px; padding: 0.35rem 0.8rem; white-space: nowrap; }

.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.agent {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.1rem; transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.agent:hover { transform: translateY(-3px); border-color: oklch(0.4 0.06 var(--accent-h) / 0.5); background: var(--card-2); }
.agent-ic { width: 34px; height: 34px; border-radius: 9px; background: oklch(0.22 0.04 var(--accent-h) / 0.4); display: grid; place-items: center; margin-bottom: 0.7rem; }
.agent-ic svg { width: 17px; height: 17px; color: var(--accent-bright); }
.agent-name { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }
.agent-tools { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted-2); margin-top: 0.35rem; line-height: 1.4; }

/* ── 12-layer governance grid ────────────────────────────────────────────── */
.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.layer {
  display: flex; align-items: flex-start; gap: 0.7rem;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--r-md);
  padding: 0.85rem 0.95rem; transition: border-color 0.18s, background 0.18s;
}
.layer:hover { border-color: oklch(0.4 0.06 var(--accent-h) / 0.5); background: var(--card-2); }
.layer-n { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--accent-text); flex-shrink: 0; width: 1.4rem; }
.layer-t { font-size: 0.82rem; font-weight: 500; line-height: 1.35; }
.layer.gate { border-color: oklch(0.5 0.1 75 / 0.35); }
.layer.gate .layer-n { color: var(--amber); }
.layer.approve { border-color: oklch(0.5 0.12 var(--accent-h) / 0.45); }

/* ── Channels / LLM strip ────────────────────────────────────────────────── */
.chan-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chan-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; }
.chan-card h4 { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 1.1rem; }
.chan-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chan-pill { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; font-weight: 500; padding: 0.5rem 0.9rem; border-radius: 100px; background: oklch(0.2 0.006 270 / 0.6); border: 1px solid var(--border); }
.chan-pill svg { width: 16px; height: 16px; color: var(--accent-bright); }
body.theme-light .chan-pill { background: oklch(0.97 0.004 270); }
.chan-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chan-pill.soon { opacity: 0.62; }
.chan-pill.soon .dot { background: var(--amber); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.price {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.7rem 1.5rem; position: relative;
}
.price.featured { border-color: oklch(0.5 0.14 var(--accent-h) / 0.6); box-shadow: 0 0 0 1px oklch(0.5 0.14 var(--accent-h) / 0.3), 0 24px 60px -30px var(--accent-glow); }
.price-flag { position: absolute; top: -10px; left: 1.5rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: var(--accent-grad); color: white; padding: 0.2rem 0.7rem; border-radius: 100px; }
.price-name { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.price-amt { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.7rem 0 0.1rem; }
.price-amt small { font-size: 0.86rem; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.price-for { font-size: 0.8rem; color: var(--muted-2); min-height: 2.4em; margin-bottom: 1.1rem; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.4rem; flex: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.price-feats svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.price .btn { width: 100%; }

/* ── Responsive (new sections) ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .layers { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-grid { grid-template-columns: 1fr; }
  .contrast { grid-template-columns: 1fr; }
  .chan-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .layers { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}

/* ── Training studio: "no AI engineer required" ──────────────────────────── */
.ingest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.src {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.4rem; transition: transform 0.2s, border-color 0.2s;
}
.src:hover { transform: translateY(-3px); border-color: oklch(0.4 0.06 var(--accent-h) / 0.55); }
.src-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.src-ic { width: 36px; height: 36px; border-radius: 9px; background: oklch(0.22 0.04 var(--accent-h) / 0.45); display: grid; place-items: center; flex-shrink: 0; }
.src-ic svg { width: 18px; height: 18px; color: var(--accent-bright); }
.src h4 { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.src p { font-size: 0.84rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.9rem; }
.src-demo {
  border: 1px dashed var(--border); border-radius: var(--r-sm);
  background: oklch(0.12 0.005 270 / 0.5); padding: 0.7rem 0.8rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2);
  display: flex; flex-direction: column; gap: 0.4rem;
}
body.theme-light .src-demo { background: oklch(0.97 0.004 270); }
.src-chip { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--fg); }
.src-chip svg { width: 13px; height: 13px; color: var(--accent-bright); flex-shrink: 0; }
.src-crawl { display: flex; align-items: center; gap: 0.4rem; }
.src-crawl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; flex-shrink: 0; }
.src-bar { height: 5px; border-radius: 3px; background: oklch(0.25 0.01 270); overflow: hidden; margin-top: 0.2rem; }
.src-bar i { display: block; height: 100%; width: 68%; border-radius: 3px; background: var(--accent-grad); }

.flow-down { display: flex; justify-content: center; padding: 1.3rem 0; color: var(--accent); }
.flow-down svg { width: 24px; height: 24px; }

.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
.stage {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--r-md);
  padding: 0.95rem 0.85rem; transition: border-color 0.18s, background 0.18s; position: relative;
}
.stage:hover { border-color: oklch(0.4 0.06 var(--accent-h) / 0.5); background: var(--card-2); }
.stage-n { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; color: var(--accent-text); }
.stage-name { font-size: 0.85rem; font-weight: 600; letter-spacing: -0.01em; margin: 0.45rem 0 0.3rem; }
.stage-d { font-size: 0.72rem; color: var(--muted-2); line-height: 1.4; }
.stage.gate { border-color: oklch(0.5 0.1 155 / 0.4); }
.stage.gate .stage-n { color: var(--green); }

.train-foot {
  margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.3rem; border-radius: var(--r-md);
  background: var(--green-dim); border: 1px solid oklch(0.5 0.1 155 / 0.3);
}
.train-foot svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.train-foot span { font-size: 0.92rem; color: var(--muted); }
.train-foot b { color: var(--fg); }

@media (max-width: 980px) {
  .ingest { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .stages { grid-template-columns: 1fr 1fr; }
}

/* ── Continuous feedback loop ────────────────────────────────────────────── */
.loop-track {
  display: flex; align-items: stretch; gap: 0.5rem; flex-wrap: nowrap;
}
.loop-node {
  flex: 1; min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.1rem 0.95rem; text-align: center; transition: transform 0.2s, border-color 0.2s;
}
.loop-node:hover { transform: translateY(-3px); border-color: oklch(0.4 0.06 var(--accent-h) / 0.55); }
.loop-ic { width: 38px; height: 38px; border-radius: 10px; margin: 0 auto 0.7rem; display: grid; place-items: center; background: oklch(0.22 0.04 var(--accent-h) / 0.45); }
.loop-ic svg { width: 19px; height: 19px; color: var(--accent-bright); }
.loop-node.fail .loop-ic { background: oklch(0.6 0.15 25 / 0.16); }
.loop-node.fail .loop-ic svg { color: var(--red); }
.loop-node.win .loop-ic { background: var(--green-dim); }
.loop-node.win .loop-ic svg { color: var(--green); }
.loop-name { font-size: 0.84rem; font-weight: 600; letter-spacing: -0.01em; }
.loop-d { font-size: 0.71rem; color: var(--muted-2); line-height: 1.4; margin-top: 0.25rem; }
.loop-arrow { display: flex; align-items: center; color: var(--faint); flex-shrink: 0; }
.loop-arrow svg { width: 18px; height: 18px; }
.loop-return {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin-top: 0.7rem; padding: 0.7rem; border-radius: var(--r-md);
  border: 1px dashed oklch(0.5 0.12 var(--accent-h) / 0.45);
  background: oklch(0.2 0.04 var(--accent-h) / 0.12);
  font-size: 0.86rem; color: var(--muted);
}
.loop-return svg { width: 17px; height: 17px; color: var(--accent-bright); }
.loop-return b { color: var(--fg); }

.loop-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; align-items: stretch; }
.loop-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; }
.loop-panel h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1.1rem; }
.triggers { display: flex; flex-direction: column; gap: 0.55rem; }
.trigger { display: flex; align-items: center; gap: 0.7rem; font-size: 0.86rem; }
.trigger-name { flex: 1; color: var(--fg); }
.trigger-name code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-2); }
.trigger-badge { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; padding: 0.18rem 0.5rem; border-radius: 100px; white-space: nowrap; }
.trigger-badge.auto { background: var(--green-dim); color: var(--green); border: 1px solid oklch(0.5 0.1 155 / 0.3); }
.trigger-badge.review { background: oklch(0.6 0.12 75 / 0.14); color: var(--amber); border: 1px solid oklch(0.5 0.1 75 / 0.3); }

/* eval trend chart */
.trend-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.2rem; }
.trend-score { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.trend-delta { font-size: 0.8rem; font-weight: 600; color: var(--green); font-family: var(--font-mono); }
.trend-sub { font-size: 0.78rem; color: var(--muted-2); margin-bottom: 1.2rem; }
.trend-bars { display: flex; align-items: flex-end; gap: 0.6rem; height: 130px; }
.trend-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; height: 100%; justify-content: flex-end; }
.trend-bar .bar { width: 100%; border-radius: 6px 6px 0 0; background: var(--accent-grad); opacity: 0.5; transition: opacity 0.2s; }
.trend-bar:last-child .bar { opacity: 1; }
.trend-bar:hover .bar { opacity: 1; }
.trend-bar .wk { font-size: 0.66rem; color: var(--muted-2); font-family: var(--font-mono); }

@media (max-width: 980px) {
  .loop-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .loop-track { flex-wrap: wrap; }
  .loop-node { flex: 1 1 40%; }
  .loop-arrow { display: none; }
}

/* ── Reveal animation ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .pipe-track { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .section { padding: 4.5rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .pipe-track { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pv-side { display: none; }
  .cta { padding: 3rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Spec redesign — Agent Operating System (indigo, enterprise, 15 sections)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section kicker number ───────────────────────────────────────────────── */
.kicker { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.05em; }

/* ── Industry strip (social proof — no fake logos) ───────────────────────── */
.industries { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.6rem; }
.ind {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  padding: 0.6rem 1.1rem; border-radius: 100px;
  background: oklch(0.19 0.008 280 / 0.5); border: 1px solid var(--border);
}
.ind svg { width: 17px; height: 17px; color: var(--accent-bright); }
body.theme-light .ind { background: oklch(0.97 0.004 280); }

/* ── Problem: 2x2 pain grid ──────────────────────────────────────────────── */
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pain {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.6rem; position: relative; overflow: hidden;
}
.pain::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, oklch(0.6 0.18 25 / 0.07), transparent 55%); pointer-events: none; }
.pain-ic { width: 40px; height: 40px; border-radius: 10px; background: oklch(0.6 0.18 25 / 0.14); display: grid; place-items: center; flex-shrink: 0; }
.pain-ic svg { width: 20px; height: 20px; color: var(--red); }
.pain h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.pain p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* ── Lifecycle pipeline (7-stage, arrowed) ───────────────────────────────── */
.lifecycle { display: flex; align-items: stretch; gap: 0.45rem; flex-wrap: nowrap; }
.lc { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 0.7rem; text-align: center; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.lc:hover { transform: translateY(-3px); border-color: oklch(0.45 0.1 var(--accent-h) / 0.6); background: var(--card-2); }
.lc-n { font-family: var(--font-mono); font-size: 0.64rem; color: var(--accent-text); font-weight: 600; }
.lc-ic { width: 34px; height: 34px; border-radius: 9px; margin: 0.5rem auto 0.55rem; background: oklch(0.24 0.06 var(--accent-h) / 0.4); display: grid; place-items: center; }
.lc-ic svg { width: 17px; height: 17px; color: var(--accent-bright); }
.lc-name { font-size: 0.82rem; font-weight: 600; letter-spacing: -0.01em; }
.lc-arrow { display: flex; align-items: center; color: var(--faint); flex-shrink: 0; }
.lc-arrow svg { width: 16px; height: 16px; }

/* ── Module grid (9 modules) ─────────────────────────────────────────────── */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.mod {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.05rem 1.1rem; transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.mod:hover { transform: translateY(-2px); border-color: oklch(0.45 0.1 var(--accent-h) / 0.55); background: var(--card-2); }
.mod-ic { width: 38px; height: 38px; border-radius: 10px; background: oklch(0.24 0.06 var(--accent-h) / 0.4); display: grid; place-items: center; flex-shrink: 0; }
.mod-ic svg { width: 19px; height: 19px; color: var(--accent-bright); }
.mod-name { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }
.mod-d { font-size: 0.76rem; color: var(--muted-2); margin-top: 1px; }

.os-banner {
  margin-top: 1.4rem; text-align: center;
  padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  background: oklch(0.22 0.05 var(--accent-h) / 0.18); border: 1px solid oklch(0.45 0.1 var(--accent-h) / 0.4);
  font-size: 0.98rem; color: var(--muted);
}
.os-banner b { color: var(--fg); }

/* ── Agent Studio tabs preview ───────────────────────────────────────────── */
.studio-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.6rem; justify-content: center; }
.studio-tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.84rem; font-weight: 500; color: var(--muted);
  padding: 0.5rem 1rem; border-radius: 100px;
  background: oklch(0.19 0.008 280 / 0.5); border: 1px solid var(--border);
}
.studio-tab.on { background: var(--accent-grad); color: white; border-color: transparent; }
.studio-tab svg { width: 15px; height: 15px; }

/* ── Readiness verdict gauge + 7 dimensions ──────────────────────────────── */
.readiness { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; align-items: center; }
.verdict-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 2rem; text-align: center;
}
.gauge { width: 180px; height: 180px; margin: 0 auto 1.2rem; position: relative; border-radius: 50%;
  background: conic-gradient(var(--green) 0% 87%, oklch(0.3 0.01 280) 87% 100%);
}
.gauge::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; background: var(--card); }
.gauge-inner { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.gauge-score { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.gauge-label { font-size: 0.72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }
.verdict-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem; border-radius: 100px;
  background: var(--green-dim); color: var(--green); border: 1px solid oklch(0.5 0.1 155 / 0.4);
}
.verdict-badge svg { width: 16px; height: 16px; }
.dims { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 2rem; }
.dim { }
.dim-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.4rem; }
.dim-name { font-size: 0.86rem; font-weight: 500; }
.dim-val { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-2); }
.dim-bar { height: 6px; border-radius: 3px; background: oklch(0.28 0.01 280); overflow: hidden; }
.dim-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent-grad); }

/* ── Trust score (5-dimension) ───────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: center; }
.trust-ring-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; text-align: center; }
.trust-ring { width: 190px; height: 190px; margin: 0 auto 1.1rem; position: relative; border-radius: 50%;
  background: conic-gradient(from 0deg, oklch(0.62 0.2 var(--accent-h)) 0%, oklch(0.66 0.18 calc(var(--accent-h) + 30)) 91%, oklch(0.3 0.01 280) 91% 100%);
}
.trust-ring::after { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: var(--card); }
.trust-ring-inner { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.trust-num { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.posture { font-size: 0.74rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }
.tdims { display: flex; flex-direction: column; gap: 0.95rem; }
.tdim-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.35rem; }
.tdim-name { font-size: 0.9rem; font-weight: 500; }
.tdim-name span { color: var(--muted-2); font-weight: 400; font-family: var(--font-mono); font-size: 0.74rem; margin-left: 0.4rem; }
.tdim-val { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-text); }
.tdim-bar { height: 7px; border-radius: 4px; background: oklch(0.28 0.01 280); overflow: hidden; }
.tdim-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent-grad); }

/* ── Workflow flow chain ─────────────────────────────────────────────────── */
.wf-chain { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }
.wf-node { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.86rem; font-weight: 500; padding: 0.65rem 1.05rem; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--border); }
.wf-node svg { width: 16px; height: 16px; color: var(--accent-bright); }
.wf-node.human { border-color: oklch(0.5 0.1 75 / 0.4); }
.wf-node.human svg { color: var(--amber); }
.wf-arrow { color: var(--faint); }
.wf-arrow svg { width: 15px; height: 15px; }
.integrations { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.integ { font-size: 0.82rem; font-weight: 500; color: var(--muted); padding: 0.45rem 0.85rem; border-radius: 100px; background: oklch(0.19 0.008 280 / 0.5); border: 1px solid var(--border); }
body.theme-light .integ, body.theme-light .studio-tab:not(.on), body.theme-light .wf-node { background: oklch(0.97 0.004 280); }

/* ── Marketplace cards ───────────────────────────────────────────────────── */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mkt { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem; transition: transform 0.2s, border-color 0.2s; }
.mkt:hover { transform: translateY(-3px); border-color: oklch(0.45 0.1 var(--accent-h) / 0.55); }
.mkt-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.mkt-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-grad); display: grid; place-items: center; flex-shrink: 0; }
.mkt-ic svg { width: 21px; height: 21px; color: white; }
.mkt-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.mkt-pub { font-size: 0.74rem; color: var(--muted-2); display: flex; align-items: center; gap: 0.3rem; }
.mkt-pub svg { width: 12px; height: 12px; color: var(--accent-bright); }
.mkt p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 1rem; min-height: 3.8em; }
.mkt-foot { display: flex; align-items: center; justify-content: space-between; }
.mkt-tier { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 5px; text-transform: uppercase; }
.mkt-tier.free { background: var(--green-dim); color: var(--green); }
.mkt-tier.pro { background: oklch(0.55 0.15 var(--accent-h) / 0.2); color: var(--accent-text); }
.mkt-tier.ent { background: oklch(0.6 0.12 75 / 0.16); color: var(--amber); }
.mkt-installs { font-size: 0.74rem; color: var(--muted-2); }

/* ── ROI metric cards ────────────────────────────────────────────────────── */
.roi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; }
.metric-k { font-size: 0.76rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.metric-v { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.5rem 0 0.1rem;
  background: linear-gradient(120deg, var(--accent-bright), oklch(0.78 0.13 calc(var(--accent-h) + 40))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric-trend { font-size: 0.78rem; font-weight: 600; color: var(--green); font-family: var(--font-mono); }

/* ── Security checklist (two-column) ─────────────────────────────────────── */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 2rem; }
.check { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border-soft); }
.check-ic { width: 24px; height: 24px; border-radius: 7px; background: var(--green-dim); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.check-ic svg { width: 14px; height: 14px; color: var(--green); }
.check-t { font-size: 0.9rem; font-weight: 500; }
.check-t span { display: block; font-size: 0.78rem; color: var(--muted-2); font-weight: 400; margin-top: 1px; }

/* ── Role use-case cards ─────────────────────────────────────────────────── */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.role { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.7rem; transition: transform 0.2s, border-color 0.2s; }
.role:hover { transform: translateY(-3px); border-color: oklch(0.45 0.1 var(--accent-h) / 0.55); }
.role-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.role-ic { width: 44px; height: 44px; border-radius: 11px; background: oklch(0.24 0.06 var(--accent-h) / 0.45); display: grid; place-items: center; flex-shrink: 0; }
.role-ic svg { width: 22px; height: 22px; color: var(--accent-bright); }
.role h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }
.role-tag { font-size: 0.74rem; color: var(--muted-2); }
.role p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin-bottom: 0.9rem; }
.role-feat { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--accent-text); font-weight: 500; }
.role-feat svg { width: 15px; height: 15px; }

@media (max-width: 980px) {
  .pain-grid { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: 1fr 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr 1fr; }
  .readiness, .trust { grid-template-columns: 1fr; gap: 1.8rem; }
  .role-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .lifecycle { flex-wrap: wrap; }
  .lc { flex: 1 1 28%; }
  .lc-arrow { display: none; }
  .dims { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mod-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr 1fr; }
  .lc { flex: 1 1 42%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Multi-page chrome — sub-page heroes, pricing, FAQ, code, forms
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-link.active { color: var(--fg); background: oklch(0.22 0.02 var(--accent-h) / 0.4); }

/* ── Page hero (sub-pages) ───────────────────────────────────────────────── */
.page-hero { position: relative; padding: 5.5rem 0 3.5rem; overflow: hidden; text-align: center; }
.page-hero .hero-bg::after { top: -300px; height: 560px; opacity: 0.7; }
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.038em; line-height: 1.05; margin: 1rem 0 1.1rem; text-wrap: balance; }
.page-hero h1 .grad { background: linear-gradient(120deg, var(--accent-bright), oklch(0.78 0.13 calc(var(--accent-h) + 40))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: 1.1rem; color: var(--muted); line-height: 1.6; max-width: 600px; margin: 0 auto; text-wrap: pretty; }
.page-hero .hero-cta { margin-top: 2rem; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.crumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted-2); justify-content: center; }
.crumb a { color: var(--muted-2); transition: color 0.15s; }
.crumb a:hover { color: var(--fg); }
.crumb svg { width: 13px; height: 13px; opacity: 0.6; }

/* ── Trust signal row ────────────────────────────────────────────────────── */
.signal-row { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.signal { text-align: center; }
.signal-v { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; background: linear-gradient(120deg, var(--accent-bright), oklch(0.78 0.13 calc(var(--accent-h) + 40))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signal-k { font-size: 0.78rem; color: var(--muted-2); margin-top: 0.2rem; }

/* ── Pricing table ───────────────────────────────────────────────────────── */
.ptiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.ptier { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem 1.8rem; position: relative; }
.ptier.featured { border-color: oklch(0.5 0.14 var(--accent-h) / 0.65); box-shadow: 0 0 0 1px oklch(0.5 0.14 var(--accent-h) / 0.3), 0 30px 70px -30px var(--accent-glow); }
.ptier-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: var(--accent-grad); color: white; padding: 0.25rem 0.85rem; border-radius: 100px; white-space: nowrap; }
.ptier-name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.ptier-price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; margin: 0.8rem 0 0.1rem; }
.ptier-price small { font-size: 0.9rem; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.ptier-for { font-size: 0.86rem; color: var(--muted-2); min-height: 3em; margin-bottom: 1.3rem; line-height: 1.5; }
.ptier-feats { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.6rem; flex: 1; }
.ptier-feats li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.ptier-feats svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.ptier .btn { width: 100%; }

/* ── Comparison table ────────────────────────────────────────────────────── */
.compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-soft); }
.compare thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); font-weight: 600; }
.compare thead th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare td:first-child { color: var(--muted); }
.compare tbody tr:hover { background: oklch(0.2 0.006 280 / 0.4); }
.compare .grp td { font-weight: 600; color: var(--fg); background: oklch(0.2 0.006 280 / 0.3); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.compare .yes { color: var(--green); }
.compare .no { color: var(--faint); }
.compare .yes svg, .compare .no svg { width: 17px; height: 17px; }
body.theme-light .compare tbody tr:hover, body.theme-light .compare .grp td { background: oklch(0.96 0.004 280); }

/* ── FAQ accordion ───────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font-family: inherit; font-size: 1.02rem; font-weight: 600; color: var(--fg); text-align: left; letter-spacing: -0.01em; }
.faq-q svg { width: 20px; height: 20px; color: var(--accent-bright); flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 0 1.3rem; font-size: 0.94rem; color: var(--muted); line-height: 1.6; max-width: 92%; }

/* ── Code block (API) ────────────────────────────────────────────────────── */
.code { background: oklch(0.1 0.008 280); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border-soft); background: oklch(0.13 0.008 280); }
.code-bar span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); }
.code-method { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 5px; background: var(--green-dim); color: var(--green); }
.code pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; }
.code code { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.65; color: oklch(0.85 0.02 280); white-space: pre; }
.code .k { color: var(--accent-bright); }
.code .s { color: oklch(0.78 0.13 155); }
.code .c { color: var(--muted-2); }

.api-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.api-group { display: flex; align-items: center; gap: 0.75rem; background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--r-sm); padding: 0.85rem 1rem; transition: border-color 0.18s; }
.api-group:hover { border-color: oklch(0.45 0.1 var(--accent-h) / 0.5); }
.api-group code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-text); }
.api-group span { font-size: 0.8rem; color: var(--muted-2); margin-left: auto; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.84rem; font-weight: 500; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.92rem; color: var(--fg);
  background: oklch(0.12 0.008 280 / 0.6); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem; transition: border-color 0.15s, box-shadow 0.15s;
}
body.theme-light .field input, body.theme-light .field select, body.theme-light .field textarea { background: oklch(0.98 0.003 280); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.78rem; color: var(--muted-2); margin-top: 0.8rem; text-align: center; }
.form-ok { display: none; text-align: center; padding: 2rem 1rem; }
.form-ok.show { display: block; }
.form-ok svg { width: 48px; height: 48px; color: var(--green); margin-bottom: 1rem; }
.form-ok h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.form-ok p { color: var(--muted); }

/* ── Demo split + what-you-get list ──────────────────────────────────────── */
.demo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.get-list { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 1.8rem; }
.get-item { display: flex; gap: 0.9rem; }
.get-ic { width: 36px; height: 36px; border-radius: 9px; background: oklch(0.24 0.06 var(--accent-h) / 0.45); display: grid; place-items: center; flex-shrink: 0; }
.get-ic svg { width: 18px; height: 18px; color: var(--accent-bright); }
.get-item h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.2rem; }
.get-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* ── Prose (legal) ───────────────────────────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 2.5rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 0.96rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { font-size: 0.96rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.4rem; }
.prose .updated { font-size: 0.84rem; color: var(--muted-2); font-family: var(--font-mono); margin-bottom: 2rem; }

/* ── Tabs (legal switcher) ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn { font-family: inherit; font-size: 0.88rem; font-weight: 500; color: var(--muted); background: oklch(0.19 0.008 280 / 0.5); border: 1px solid var(--border); border-radius: 100px; padding: 0.5rem 1.1rem; cursor: pointer; transition: all 0.15s; }
.tab-btn.on { background: var(--accent-grad); color: white; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

@media (max-width: 900px) {
  .ptiers { grid-template-columns: 1fr; max-width: 420px; }
  .api-groups { grid-template-columns: 1fr; }
  .demo-split { grid-template-columns: 1fr; gap: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  .compare { font-size: 0.82rem; }
  .compare th, .compare td { padding: 0.7rem 0.6rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Production additions — nav dropdown, cookie banner, case studies, resources, 404
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Nav dropdown ────────────────────────────────────────────────────────── */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > .nav-link { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-item > .nav-link .caret { width: 13px; height: 13px; transition: transform 0.2s; opacity: 0.7; }
.nav-item:hover > .nav-link .caret { transform: rotate(180deg); }
.nav-dd {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 460px; padding: 0.7rem;
  background: oklch(0.15 0.01 280 / 0.97); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: 0 24px 60px -20px oklch(0 0 0 / 0.7);
  opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem;
}
.nav-item:hover .nav-dd { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dd-link { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.6rem 0.7rem; border-radius: var(--r-sm); transition: background 0.15s; }
.dd-link:hover { background: oklch(0.22 0.02 var(--accent-h) / 0.4); }
.dd-ic { width: 30px; height: 30px; border-radius: 8px; background: oklch(0.24 0.06 var(--accent-h) / 0.4); display: grid; place-items: center; flex-shrink: 0; }
.dd-ic svg { width: 16px; height: 16px; color: var(--accent-bright); }
.dd-t { font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; }
.dd-d { font-size: 0.74rem; color: var(--muted-2); margin-top: 1px; line-height: 1.35; }
.dd-full { grid-column: 1 / -1; margin-top: 0.2rem; padding: 0.7rem; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; font-weight: 600; color: var(--accent-text); }
.dd-full svg { width: 15px; height: 15px; }
body.theme-light .nav-dd { background: oklch(0.99 0.003 280 / 0.98); }

/* ── Cookie consent ──────────────────────────────────────────────────────── */
.cookie {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 540px; z-index: 90;
  margin: 0 auto;
  background: oklch(0.16 0.01 280 / 0.97); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.1rem 1.3rem; box-shadow: 0 24px 60px -20px oklch(0 0 0 / 0.7);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  transform: translateY(150%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cookie.show { transform: translateY(0); }
.cookie p { font-size: 0.84rem; color: var(--muted); line-height: 1.5; flex: 1; min-width: 220px; }
.cookie p a { color: var(--accent-text); }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie .btn { padding: 0.5rem 0.95rem; font-size: 0.84rem; }
body.theme-light .cookie { background: oklch(0.99 0.003 280 / 0.98); }

/* ── Case studies ────────────────────────────────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.case { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.case:hover { transform: translateY(-3px); border-color: oklch(0.45 0.1 var(--accent-h) / 0.55); }
.case-top { padding: 1.5rem 1.5rem 1.2rem; background: linear-gradient(135deg, oklch(0.22 0.05 var(--accent-h) / 0.35), transparent); border-bottom: 1px solid var(--border-soft); }
.case-ind { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-text); }
.case-metric { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.5rem 0 0.2rem; background: linear-gradient(120deg, var(--accent-bright), oklch(0.78 0.13 calc(var(--accent-h) + 40))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-metric-k { font-size: 0.82rem; color: var(--muted); }
.case-body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.case-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; flex: 1; }
.case-by { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border-soft); }
.case-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-grad); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: white; flex-shrink: 0; }
.case-name { font-size: 0.82rem; font-weight: 600; }
.case-role { font-size: 0.74rem; color: var(--muted-2); }

.featured-case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 1.5rem; }
.featured-case-l { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-case-r { padding: 2.5rem; background: linear-gradient(135deg, oklch(0.24 0.06 var(--accent-h) / 0.4), oklch(0.16 0.01 280)); display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.fc-quote { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; text-wrap: balance; }
.fc-quote em { font-style: normal; color: var(--accent-text); }
.fc-metric-v { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.fc-metric-k { font-size: 0.86rem; color: var(--muted); margin-top: 0.3rem; }

/* ── Resources ───────────────────────────────────────────────────────────── */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.res { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.res:hover { transform: translateY(-3px); border-color: oklch(0.45 0.1 var(--accent-h) / 0.55); }
.res-thumb { height: 150px; background: linear-gradient(135deg, oklch(0.26 0.07 var(--accent-h) / 0.5), oklch(0.16 0.02 calc(var(--accent-h) + 30) / 0.4)); display: grid; place-items: center; position: relative; }
.res-thumb svg { width: 40px; height: 40px; color: oklch(0.9 0.05 var(--accent-h) / 0.7); }
.res-cat { position: absolute; top: 0.8rem; left: 0.8rem; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.6rem; border-radius: 100px; background: oklch(0.12 0.01 280 / 0.7); color: var(--fg); backdrop-filter: blur(6px); }
.res-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.res-body h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 0.5rem; }
.res-body p { font-size: 0.84rem; color: var(--muted); line-height: 1.5; flex: 1; }
.res-meta { font-size: 0.74rem; color: var(--muted-2); margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.res-link { font-size: 0.84rem; font-weight: 600; color: var(--accent-text); margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.res-link svg { width: 14px; height: 14px; }

.newsletter { display: flex; gap: 0.6rem; max-width: 440px; margin: 1.5rem auto 0; }
.newsletter input { flex: 1; font-family: inherit; font-size: 0.92rem; color: var(--fg); background: oklch(0.12 0.008 280 / 0.6); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.7rem 0.9rem; }
.newsletter input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
body.theme-light .newsletter input { background: oklch(0.98 0.003 280); }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.notfound-code { font-size: clamp(6rem, 18vw, 12rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(120deg, var(--accent-bright), oklch(0.78 0.13 calc(var(--accent-h) + 40))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; margin: 0.5rem 0 0.8rem; }
.notfound p { font-size: 1.05rem; color: var(--muted); max-width: 440px; margin-bottom: 2rem; }

/* ── Module sub-page intro mock ──────────────────────────────────────────── */
.mock-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: 0 30px 70px -35px oklch(0 0 0 / 0.7); }
.mock-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border-soft); }
.mock-row:last-child { border-bottom: none; }
.mock-ic { width: 32px; height: 32px; border-radius: 8px; background: oklch(0.24 0.06 var(--accent-h) / 0.4); display: grid; place-items: center; flex-shrink: 0; }
.mock-ic svg { width: 16px; height: 16px; color: var(--accent-bright); }
.mock-main { flex: 1; min-width: 0; }
.mock-t { font-size: 0.84rem; font-weight: 600; }
.mock-d { font-size: 0.72rem; color: var(--muted-2); }
.mock-badge { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; padding: 0.18rem 0.5rem; border-radius: 5px; background: var(--green-dim); color: var(--green); white-space: nowrap; }
.mock-badge.amber { background: oklch(0.6 0.12 75 / 0.16); color: var(--amber); }

@media (max-width: 980px) {
  .case-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .featured-case { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-dd { display: none; }
}
