/* ============================================================
   SENTINEL — Marketing Site Design System
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Primary — indigo (marketing) */
  --primary: #4f46e5;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-500: #6366f1;
  --primary-400: #818cf8;
  --primary-300: #a5b4fc;
  --primary-soft: #eef0fe;

  /* Brand blues (from product) */
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-900: #1e3a8a;

  /* Ink / dark sections */
  --ink-950: #070b1c;
  --ink-900: #0a0e23;
  --ink-850: #0e1430;
  --ink-800: #131a3d;
  --ink-700: #1c2550;
  --ink-border: #232c54;

  /* Light / slate (from product) */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-150: #eef2f7;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Status (from product) */
  --emerald: #10b981;
  --emerald-700: #047857;
  --red: #ef4444;
  --red-700: #b91c1c;
  --amber: #f59e0b;
  --amber-700: #b45309;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --teal: #2dd4bf;

  /* Fonts */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --maxw: 1200px;
  --radius: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--blue-500); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 104px 0; position: relative; }
.section--tight { padding: 80px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-600);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--primary-500);
  display: inline-block;
}
.dark .eyebrow { color: var(--primary-300); }
.dark .eyebrow::before { background: var(--primary-400); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: var(--slate-900); }
.dark h1, .dark h2, .dark h3 { color: #fff; }

.section-title { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 0; }
.section-lead {
  font-size: 18px; color: var(--slate-600); max-width: 620px; margin-top: 20px;
  text-wrap: pretty;
}
.dark .section-lead { color: #aab4d4; }

.section-head { margin-bottom: 56px; max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--primary-600); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(79,70,229,.6);
}
.btn-primary:hover { background: var(--primary-700); transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(79,70,229,.7); }
.btn-ghost {
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--slate-800); border: 1px solid var(--slate-200); }
.btn-light:hover { background: var(--slate-50); transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(15,23,42,.2); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 70px;
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(150deg, var(--primary-500), var(--primary-700));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -3px rgba(79,70,229,.55);
}
.brand-badge svg { width: 20px; height: 20px; color: #fff; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--slate-900); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--slate-600);
  padding: 8px 14px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--slate-900); background: var(--slate-100); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 22px; font-size: 15px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 9px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--slate-800); position: relative; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--slate-800); transition: .25s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Mobile menu — hidden by default on all viewports; shown below 900px when open */
.mobile-menu {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0; z-index: 99;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  padding: 16px 28px 26px; flex-direction: column; gap: 4px;
  box-shadow: 0 18px 40px -20px rgba(15,23,42,.2);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(820px 480px at 6% -6%, rgba(99,102,241,.20), transparent 58%),
    radial-gradient(820px 520px at 100% 0%, rgba(45,212,191,.18), transparent 56%),
    linear-gradient(180deg, #fbfbff, #ffffff 72%);
  color: var(--slate-900);
  padding: 150px 0 96px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,70,229,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 600px at 80% 10%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 8px 16px 8px 13px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px -8px rgba(15,23,42,.25);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 800;
  margin: 24px 0 0;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--slate-900);
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--primary-600), var(--blue-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 19px; color: var(--slate-600); margin-top: 26px; max-width: 520px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 42px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.65);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 34px -20px rgba(15,23,42,.22);
  max-width: 560px;
}
.hero-trust .ht { padding: 16px 18px; border-right: 1px solid var(--slate-200); min-width: 0; }
.hero-trust .ht:last-child { border-right: none; }
.hero-trust .ht b { display: block; font-family: var(--font-display); font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; white-space: nowrap; }
.hero-trust .ht span { font-size: 12.5px; color: var(--slate-500); display: block; margin-top: 3px; }

/* Hero visual — live agent-chain card */
.hero-visual { position: relative; }
.live-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 40px 80px -34px rgba(49,46,129,.4), 0 8px 24px -16px rgba(15,23,42,.2);
}
.live-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; margin-bottom: 16px; border-bottom: 1px solid var(--slate-150); }
.live-head .lt b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--slate-900); }
.live-head .lt span { font-size: 13px; color: var(--slate-500); }
.live-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 5px 10px; border-radius: 7px; background: #ecfdf5; color: var(--emerald-700); border: 1px solid #a7f3d0; }
.chain-step {
  padding: 14px 16px; border-radius: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-150);
  margin-bottom: 10px;
}
.chain-step:last-child { margin-bottom: 0; }
.chain-step .csr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chain-step .csr b { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--slate-800); }
.chain-step .csr .num { font-family: var(--font-mono); font-size: 12px; color: var(--primary-500); font-weight: 500; }
.chain-bar { height: 6px; border-radius: 100px; background: var(--slate-200); overflow: hidden; position: relative; }
.chain-bar i {
  display: block; height: 100%; border-radius: 100px;
  width: var(--w, 60%);
  background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
  background-size: 200% 100%;
  animation: barCycle 3.6s ease-in-out infinite, barShimmer 1.6s linear infinite;
  animation-delay: var(--d, 0s), 0s;
  will-change: width, background-position;
}
@keyframes barCycle {
  0%      { width: 6%; }
  8%      { width: 6%; }
  48%     { width: var(--w, 60%); }
  82%     { width: var(--w, 60%); }
  100%    { width: 6%; }
}
@keyframes barShimmer {
  0%   { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.decision-float {
  position: absolute; left: 20px; bottom: -34px; z-index: 3;
  filter: drop-shadow(0 24px 40px rgba(15,23,42,.22));
}
.decision-float .dcard {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 14px;
  padding: 15px 18px; min-width: 248px;
}
.decision-float .dcard .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--cyan); font-weight: 600; }
.decision-float .dcard .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 7px; }
.decision-float .dcard .row b { font-family: var(--font-display); font-size: 15.5px; color: var(--slate-900); font-weight: 600; }
.decision-float .dcard .rev { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: #fffbeb; color: var(--amber-700); border: 1px solid #fde68a; }

/* Agent plan card (inside live card) */
.agent-plan {
  margin-top: 16px; padding: 16px 18px; border-radius: 13px;
  background: linear-gradient(160deg, var(--primary-soft), #fff);
  border: 1px solid #dfe1fb;
}
.agent-plan .ap-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-600); font-weight: 600; white-space: nowrap; }
.agent-plan .ap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.agent-plan .ap-badge { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 7px; background: #e0e2fd; color: var(--primary-700); }
.agent-plan .ap-title { display: block; font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--slate-900); margin-bottom: 6px; }
.agent-plan p { font-size: 13px; color: var(--slate-600); line-height: 1.55; }

/* ============================================================
   LOGO / TRUST STRIP
   ============================================================ */
.strip { background: #fff; border-bottom: 1px solid var(--slate-200); padding: 22px 0; }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 18px 40px; flex-wrap: wrap; }
.strip-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); }
.strip-tags { display: flex; gap: 10px 28px; flex-wrap: wrap; justify-content: center; }
.strip-tag { font-size: 14.5px; font-weight: 600; color: var(--slate-600); display: inline-flex; align-items: center; gap: 9px; }
.strip-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-400); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.prob-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.prob-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(15,23,42,.28); border-color: var(--slate-300); }
.prob-ic { width: 46px; height: 46px; border-radius: 11px; background: var(--slate-100); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.prob-ic svg { width: 23px; height: 23px; color: var(--red); }
.prob-card h3 { font-size: 18.5px; margin-bottom: 9px; }
.prob-card p { font-size: 14.5px; color: var(--slate-600); }
.prob-card .stat { font-family: var(--font-mono); font-size: 12.5px; color: var(--red-700); margin-top: 14px; font-weight: 500; background: #fef2f2; display: inline-block; padding: 4px 10px; border-radius: 6px; }

/* Icon color utilities (used in pipeline steps) */
.ic-blue { background: rgba(99,102,241,.16); color: var(--primary-400); }
.ic-violet { background: rgba(139,92,246,.16); color: #b794f6; }
.ic-amber { background: rgba(245,158,11,.16); color: var(--amber); }
.ic-emerald { background: rgba(16,185,129,.16); color: var(--emerald); }

/* ============================================================
   PIPELINES (dark)
   ============================================================ */
.pipelines { background: linear-gradient(180deg, var(--ink-900), var(--ink-850)); color: #fff; }
.pipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 16px; }
.pipe-card {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--ink-border);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.pipe-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.pipe-card.p1::before { background: linear-gradient(90deg, var(--blue-500), var(--cyan)); }
.pipe-card.p2::before { background: linear-gradient(90deg, var(--violet), var(--teal)); }
.pipe-num { font-family: var(--font-mono); font-size: 12px; color: #7e8ab5; letter-spacing: .1em; }
.pipe-card h3 { font-size: 24px; margin: 8px 0 6px; }
.pipe-card > p { font-size: 15px; color: #aab4d4; margin-bottom: 24px; }
.pipe-steps { display: flex; flex-direction: column; gap: 0; }
.pstep { display: flex; gap: 14px; align-items: flex-start; }
.pstep-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.pstep-dot { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--ink-border); background: var(--ink-850); }
.pstep-dot svg { width: 15px; height: 15px; }
.pstep-line { width: 1.5px; flex: 1; min-height: 16px; background: var(--ink-border); margin: 3px 0; }
.pstep:last-child .pstep-line { display: none; }
.pstep-body { padding-bottom: 18px; }
.pstep-body b { display: block; font-family: var(--font-display); font-size: 15px; color: #eef1fb; font-weight: 600; }
.pstep-body span { font-size: 13px; color: #8b97bd; font-family: var(--font-mono); }
.pstep:last-child .pstep-body { padding-bottom: 0; }

.hitl-note {
  margin-top: 24px; padding: 16px 18px; border-radius: 12px;
  background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.22);
  display: flex; gap: 13px; align-items: flex-start;
}
.hitl-note svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.hitl-note p { font-size: 13.5px; color: #d9c9a8; }
.hitl-note b { color: #fbbf24; }

/* ============================================================
   SHOWCASE
   ============================================================ */
.showcase { background: var(--slate-50); }
.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.shot-row:last-child { margin-bottom: 0; }
.shot-row.reverse .shot-text { order: 2; }
.shot-text .feat-tag { font-family: var(--font-mono); font-size: 12px; color: var(--primary-600); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.shot-text h3 { font-size: 30px; margin: 12px 0 14px; }
.shot-text p { font-size: 16px; color: var(--slate-600); margin-bottom: 20px; text-wrap: pretty; }
.shot-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.shot-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--slate-700); }
.shot-list li svg { width: 19px; height: 19px; color: var(--emerald); flex-shrink: 0; margin-top: 1px; }

.browser {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--slate-200);
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(15,23,42,.45), 0 8px 24px -16px rgba(15,23,42,.2);
  transition: transform .3s ease;
}
.browser:hover { transform: translateY(-5px); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: var(--ink-900); border-bottom: 1px solid var(--ink-border); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-bar .dots i:nth-child(1) { background: #ff5f57; }
.browser-bar .dots i:nth-child(2) { background: #febc2e; }
.browser-bar .dots i:nth-child(3) { background: #28c840; }
.browser-bar .url { flex: 1; margin-left: 8px; background: rgba(255,255,255,.06); border-radius: 7px; padding: 5px 12px; font-family: var(--font-mono); font-size: 11.5px; color: #9aa5cc; display: flex; align-items: center; gap: 7px; }
.browser-bar .url svg { width: 11px; height: 11px; color: var(--primary-400); }
.browser img { width: 100%; display: block; }
.browser-img-clip { max-height: 440px; overflow: hidden; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(15,23,42,.25); border-color: var(--slate-300); }
.feat-ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--primary-soft); }
.feat-ic svg { width: 24px; height: 24px; color: var(--primary-600); }
.feat-card h3 { font-size: 18px; margin-bottom: 9px; }
.feat-card p { font-size: 14.5px; color: var(--slate-600); }

/* ============================================================
   PERSONAS
   ============================================================ */
.personas { background: var(--slate-50); }
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.persona-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(15,23,42,.22); }
.persona-card .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--ink-900); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.persona-card .ic svg { width: 21px; height: 21px; color: var(--primary-400); }
.persona-card h3 { font-size: 17px; margin-bottom: 8px; }
.persona-card p { font-size: 14px; color: var(--slate-600); }

/* ============================================================
   SELF-IMPROVING LOOP (dark)
   ============================================================ */
.loop { background: linear-gradient(180deg, var(--ink-850), var(--ink-900)); color: #fff; }
.loop-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.loop-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.loop-step {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255,255,255,.025); border: 1px solid var(--ink-border);
  border-radius: 14px; padding: 22px 24px;
  transition: border-color .2s, transform .2s, background .2s;
}
.loop-step:hover { border-color: rgba(129,140,248,.45); transform: translateY(-3px); background: rgba(99,102,241,.06); }
.loop-step .ln { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--primary-400); line-height: 1; flex-shrink: 0; width: 34px; }
.loop-step h3 { font-size: 19px; margin-bottom: 6px; }
.loop-step p { font-size: 14.5px; color: #aab4d4; }
.loop-step.feature { border-color: rgba(129,140,248,.4); background: linear-gradient(150deg, rgba(99,102,241,.12), rgba(99,102,241,.03)); }
.loop-step.feature .badge { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: #c7cdff; background: rgba(99,102,241,.2); border: 1px solid rgba(129,140,248,.4); padding: 3px 8px; border-radius: 6px; margin-bottom: 9px; }

.loop-visual {
  background: rgba(255,255,255,.025); border: 1px solid var(--ink-border);
  border-radius: 18px; padding: 26px;
  box-shadow: 0 40px 80px -34px rgba(0,0,0,.6);
}
.loop-visual .lv-head { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7e8ab5; margin-bottom: 18px; }
.rec-card { background: var(--ink-850); border: 1px solid var(--ink-border); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.rec-card .rch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.rec-card .rch b { font-family: var(--font-mono); font-size: 13px; color: #c7cdff; }
.rec-card .imp { font-family: var(--font-body); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 7px; background: var(--primary-600); color: #fff; }
.rec-card p { font-size: 12.5px; color: #98a3c7; line-height: 1.55; }
.rec-card .conf { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.rec-card .conf .cbar { flex: 1; height: 5px; border-radius: 100px; background: rgba(255,255,255,.08); overflow: hidden; }
.rec-card .conf .cbar i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--emerald), #34d399); }
.rec-card .conf span { font-family: var(--font-mono); font-size: 11px; color: #6ee7b7; }
.loop-arrow { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 0; font-family: var(--font-mono); font-size: 11.5px; color: #7e8ab5; }
.loop-arrow svg { width: 15px; height: 15px; color: var(--primary-400); }

/* ============================================================
   STACK (legacy - retained for safety, unused)
   ============================================================ */
.stack { background: linear-gradient(180deg, var(--ink-850), var(--ink-900)); color: #fff; }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack-card {
  background: rgba(255,255,255,.025); border: 1px solid var(--ink-border); border-radius: 12px;
  padding: 20px; transition: border-color .2s, transform .2s, background .2s;
}
.stack-card:hover { border-color: rgba(96,165,250,.4); transform: translateY(-3px); background: rgba(37,99,235,.06); }
.stack-card .role { font-family: var(--font-mono); font-size: 11px; color: #7e8ab5; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.stack-card .tech { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.stack-card .desc { font-size: 13px; color: #98a3c7; }

/* ============================================================
   METRICS BAND
   ============================================================ */
.metrics { background: var(--ink-950); color: #fff; position: relative; overflow: hidden; }
.metrics::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 50% 0%, rgba(37,99,235,.22), transparent 65%);
}
.metric-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.metric { text-align: center; padding: 20px 24px; border-right: 1px solid var(--ink-border); }
.metric:last-child { border-right: none; }
.metric b { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(120deg, #fff, var(--primary-300)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric span { font-size: 14px; color: #98a3c7; margin-top: 6px; display: block; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--slate-50); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: clamp(30px, 4vw, 42px); }
.contact-info p { font-size: 17px; color: var(--slate-600); margin-top: 18px; margin-bottom: 30px; text-wrap: pretty; }
.contact-points { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; }
.contact-points .ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--slate-200); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-points .ic svg { width: 19px; height: 19px; color: var(--primary-600); }
.contact-points b { display: block; font-size: 15px; color: var(--slate-800); font-family: var(--font-display); font-weight: 600; }
.contact-points span { font-size: 14px; color: var(--slate-600); }

.form-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 18px; padding: 34px; box-shadow: 0 30px 60px -40px rgba(15,23,42,.3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; font-family: var(--font-display); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--slate-800);
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 9px;
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-400); background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-toggle { display: flex; gap: 10px; margin-bottom: 22px; }
.form-toggle button {
  flex: 1; padding: 11px; border-radius: 9px; font-family: var(--font-display); font-weight: 600; font-size: 14px;
  border: 1px solid var(--slate-200); background: var(--slate-50); color: var(--slate-600); transition: .15s;
}
.form-toggle button.active { background: var(--primary-600); color: #fff; border-color: var(--primary-600); box-shadow: 0 6px 18px -8px rgba(79,70,229,.5); }
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--slate-500); margin-top: 14px; text-align: center; }
.form-success {
  display: none; text-align: center; padding: 30px 0;
}
.form-success.show { display: block; }
.form-success .check { width: 58px; height: 58px; border-radius: 50%; background: #ecfdf5; border: 1px solid #a7f3d0; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success .check svg { width: 28px; height: 28px; color: var(--emerald); }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--slate-600); font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-950); color: #fff; padding: 64px 0 32px; border-top: 1px solid var(--ink-border); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--ink-border); }
.footer-brand p { font-size: 14.5px; color: #98a3c7; margin-top: 16px; max-width: 300px; }
.footer .brand-name { color: #fff; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #6c789f; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 14.5px; color: #b8c2e0; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: 13.5px; color: #6c789f; font-family: var(--font-mono); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--ink-border); display: flex; align-items: center; justify-content: center; transition: .18s; }
.footer-socials a:hover { background: rgba(255,255,255,.06); border-color: var(--blue-400); transform: translateY(-2px); }
.footer-socials a svg { width: 18px; height: 18px; color: #b8c2e0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .flow-step { opacity: 1; transform: none; }
  .chain-bar i { animation: none; width: var(--w, 60%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-text-hide { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span { background: transparent; }
  .nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { color: var(--slate-700); font-size: 16px; padding: 13px 0; border-bottom: 1px solid var(--slate-150); }
  .mobile-menu a:last-of-type { border-bottom: none; }
  .mobile-menu .btn { margin-top: 14px; justify-content: center; }

  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 520px; }
  .loop-grid { grid-template-columns: 1fr; gap: 44px; }
  .pipe-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .feat-grid, .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 64px; }
  .shot-row.reverse .shot-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .metric:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .wrap { padding: 0 20px; }
  .feat-grid, .persona-grid, .stack-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr; }
  .hero-trust .ht { border-right: none; border-bottom: 1px solid var(--slate-200); }
  .hero-trust .ht:last-child { border-bottom: none; }
  .hero-trust .ht b { font-size: 20px; white-space: normal; }
  .footer-top { grid-template-columns: 1fr; }
  .browser-img-clip { max-height: 300px; }
}
