/* ============================================================
   CORTEX — design system
   ============================================================ */
:root {
  --bg: #0B0A08;
  --bg-2: #12100C;
  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, 0.64);
  --ink-3: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --gold: #E4B95B;
  --copper: #C87E3C;
  --cream: #F3E2B3;
  --jade: #5BC08F;
  --accent-hi: #E7C77F;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.055);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(228, 185, 91, 0.35); }

.mono { font-family: var(--mono); }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* film grain */
.noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9998;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* cursor glow */
.cursor-glow {
  position: fixed; z-index: 0;
  width: 560px; height: 560px;
  border-radius: 50%;
  pointer-events: none;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(228, 185, 91, 0.07), rgba(200, 126, 60, 0.04) 40%, transparent 70%);
  transition: opacity 0.4s;
  opacity: 0;
}

/* ============================================================
   TYPE
   ============================================================ */
.grad-text {
  background: linear-gradient(100deg, #F6E7BC 0%, #E4B95B 48%, #C87E3C 108%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.body {
  color: var(--ink-2);
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 560px;
}
.body.center { margin-inline: auto; text-align: center; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.section { padding: clamp(96px, 11vw, 168px) 0; position: relative; }

.section-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .kicker { margin-bottom: 14px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s, border-color 0.35s, color 0.35s;
  position: relative;
}
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn:not(.btn-sm):not(.btn-lg) { padding: 12px 24px; font-size: 14.5px; }

.btn-primary {
  color: #251A06;
  background: linear-gradient(120deg, #F2CF82, #D99C43);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset,
              0 8px 32px rgba(228, 185, 91, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset,
              0 12px 44px rgba(228, 185, 91, 0.45),
              0 0 24px rgba(200, 126, 60, 0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--ink);
  background: var(--glass);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--glass-2);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 10, 8, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { filter: drop-shadow(0 0 8px rgba(233, 199, 127, 0.5)); }
.logo-word { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); background: var(--glass-2); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(140px, 18vh, 190px) 0 0;
  min-height: 100vh;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-glow {
  position: absolute; z-index: 0;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(228, 185, 91, 0.14), rgba(200, 126, 60, 0.07) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 10px var(--cream);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  position: relative;
  font-size: clamp(42px, 7.2vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 28px;
  /* NOTE: no text-shadow here — it gets clipped by the .line-mask overflow
     and paints a visible rectangle. The glow lives on ::before instead. */
}
.hero-title::before {
  content: "";
  position: absolute;
  inset: -34% -12%;
  z-index: -1;
  background: radial-gradient(ellipse 55% 52% at 50% 52%,
    rgba(233, 199, 127, 0.1), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line { display: block; }

.hero-sub {
  color: var(--ink-2);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(64px, 8vw, 96px); }

/* ---------- editor mockup ---------- */
.hero-mock-wrap {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  perspective: 1400px;
}
.hero-mock {
  position: relative; z-index: 2;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: rgba(20, 17, 13, 0.66);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(255,255,255,0.02) inset,
              0 0 80px rgba(228, 185, 91, 0.06);
  overflow: hidden;
  transform: rotateX(8deg);
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  text-align: left;
}
.hero-mock-glow {
  position: absolute; z-index: 1;
  inset: -10% -6% -20%;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(200, 126, 60, 0.22), rgba(228, 185, 91, 0.1) 45%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}

.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.tb-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); opacity: 0.85; }
.tb-title { margin-left: 12px; font-size: 11.5px; color: var(--ink-3); }
.tb-sync { margin-left: auto; font-size: 10.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); }

.mock-body {
  display: grid;
  grid-template-columns: 218px 1fr 232px;
  min-height: 380px;
}
.mock-sidebar {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  font-size: 12.5px;
}
.ms-search {
  font-size: 10.5px; color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.02);
}
.ms-section { font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink-3); margin: 14px 6px 8px; }
.ms-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 7px;
  color: var(--ink-2);
  transition: background 0.2s;
}
.ms-item.active { background: rgba(228, 185, 91, 0.13); color: var(--ink); }
.ms-item:hover { background: var(--glass-2); }
.ms-ico { width: 7px; height: 7px; border-radius: 2px; background: var(--c); flex-shrink: 0; }
.ms-pulse {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--jade); box-shadow: 0 0 8px var(--jade);
  animation: pulse-dot 1.8s infinite;
}
.ms-pulse.alt { background: var(--copper); box-shadow: 0 0 8px var(--copper); animation-delay: 0.6s; }
.ms-tag {
  margin-left: auto; font-size: 8.5px; letter-spacing: 0.1em;
  padding: 2px 7px; border-radius: 99px;
  background: var(--glass-2); color: var(--ink-3);
}

.mock-editor { padding: 24px 28px; }
.me-crumb { font-size: 10.5px; color: var(--ink-3); margin-bottom: 16px; }
.me-h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.me-p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 11px; line-height: 1.65; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.me-link { color: var(--accent-hi); border-bottom: 1px dashed rgba(231, 199, 127, 0.4); cursor: pointer; }
.me-check {
  width: 13px; height: 13px; border-radius: 4px;
  border: 1.5px solid var(--line-2);
  flex-shrink: 0; align-self: center;
}
.me-check.done {
  border-color: var(--gold);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' stroke='%23251A06' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/8px no-repeat;
}
.me-quote {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--copper);
  color: var(--ink-3);
  font-style: italic;
  font-size: 13px;
}

.mock-agentlog {
  border-left: 1px solid var(--line);
  padding: 16px 14px;
  background: rgba(0,0,0,0.25);
  font-size: 10.5px;
  overflow: hidden;
}
.mal-head { font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-3); margin-bottom: 12px; }
.mal-lines { display: flex; flex-direction: column; gap: 7px; }
.mal-line { color: var(--ink-3); line-height: 1.5; opacity: 0; animation: log-in 0.4s forwards; }
.mal-line .t { color: rgba(243, 226, 179, 0.75); }
.mal-line .ok { color: rgba(91, 192, 143, 0.85); }
.mal-line .act { color: rgba(200, 126, 60, 0.9); }
@keyframes log-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .mock-agentlog { display: none; }
  .mock-body { grid-template-columns: 190px 1fr; }
}
@media (max-width: 640px) {
  .mock-sidebar { display: none; }
  .mock-body { grid-template-columns: 1fr; min-height: 300px; }
  .hero-mock { transform: none; }
}

.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 3; pointer-events: none;
}

/* ============================================================
   2. CAPTURE
   ============================================================ */
.capture-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
@media (max-width: 880px) {
  .capture-grid { grid-template-columns: 1fr; }
  .capture-visual { order: 2; }
}

.capture { overflow-x: clip; }
.capture-visual { position: relative; display: flex; justify-content: center; }
.capture-glow {
  position: absolute; inset: 10% -10%;
  background: radial-gradient(ellipse at center, rgba(200, 126, 60, 0.14), transparent 65%);
  filter: blur(30px);
  z-index: 0; pointer-events: none;
}

.phone {
  position: relative; z-index: 1;
  width: min(276px, 74vw);
  aspect-ratio: 9 / 17.4;
  border-radius: 40px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #171410, #0D0C09);
  box-shadow: 0 30px 90px rgba(0,0,0,0.6),
              0 0 0 8px rgba(255,255,255,0.02),
              0 0 60px rgba(200, 126, 60, 0.1);
  padding: 10px;
}
.phone-notch {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 19px; border-radius: 99px;
  background: #000; z-index: 3;
  border: 1px solid rgba(255,255,255,0.05);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  background: radial-gradient(ellipse at 50% 0%, #15120C, #0B0A08 60%);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.ph-status {
  display: flex; justify-content: space-between;
  padding: 14px 22px 0;
  font-size: 10px; color: var(--ink-3);
}
.ph-header {
  text-align: center;
  font-size: 9.5px; letter-spacing: 0.2em; color: var(--ink-3);
  padding: 22px 0 4px;
}
.wave-canvas {
  width: 100%;
  flex: 1;
  min-height: 0;
}
.ph-transcript {
  position: absolute;
  top: 78px; left: 20px; right: 20px; bottom: 90px;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.pt-line {
  font-size: 10.5px; line-height: 1.5;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.pt-line.on { opacity: 1; transform: none; }
.t-h { color: var(--accent-hi); font-weight: 500; }
.t-p { color: var(--ink-2); font-size: 11px; }
.t-todo { color: rgba(255,255,255,0.75); }
.t-tag { color: var(--cream); }
.t-meta { color: var(--ink-3); font-size: 9px; margin-top: 4px; }

.ph-mic {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #E4B95B, #C87E3C);
  box-shadow: 0 0 32px rgba(228, 185, 91, 0.55), 0 8px 24px rgba(0,0,0,0.4);
  z-index: 2;
}
.ph-mic-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(228, 185, 91, 0.55);
  animation: mic-ring 2.4s var(--ease) infinite;
}
.ph-mic-ring.r2 { animation-delay: 1.2s; }
@keyframes mic-ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.1); opacity: 0; }
}

.check-list { list-style: none; margin: 28px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.cl-ico {
  flex-shrink: 0; margin-top: 3px;
  width: 18px; height: 18px; border-radius: 6px;
  background: linear-gradient(140deg, rgba(228,185,91,0.25), rgba(200,126,60,0.25)) padding-box,
              linear-gradient(140deg, rgba(228,185,91,0.7), rgba(200,126,60,0.7)) border-box;
  border: 1px solid transparent;
  position: relative;
}
.cl-ico::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' stroke='%23EFD9A0' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

.mini-metric {
  display: inline-flex; align-items: baseline; gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
}
.mm-num { font-size: 30px; font-weight: 500; color: var(--accent-hi); }
.mm-unit { font-size: 16px; color: var(--accent-hi); margin-left: -8px; }
.mm-label { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; max-width: 180px; line-height: 1.4; }

/* ============================================================
   3. AGENT BUILDER
   ============================================================ */
.agents {
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(200, 126, 60, 0.06), transparent),
    var(--bg);
}

.builder {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
  margin: 0 auto clamp(56px, 7vw, 88px);
  max-width: 1060px;
  padding: 8px 0;
}
.builder-wires {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.b-node {
  position: relative; z-index: 1;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(23, 20, 15, 0.85);
  backdrop-filter: blur(12px);
  padding: 16px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
  animation: node-float 7s ease-in-out infinite;
}
.b-node:nth-child(3) { animation-delay: -1.8s; }
.b-node:nth-child(4) { animation-delay: -3.5s; }
.b-node:nth-child(5) { animation-delay: -5.2s; }
@keyframes node-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.b-node:hover {
  border-color: rgba(200, 126, 60, 0.5);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(200, 126, 60, 0.15);
}
.bn-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-3);
  margin-bottom: 10px;
}
.bn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.bn-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 5px; }
.bn-sub { font-size: 10.5px; color: var(--ink-3); }
.bn-status {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px; color: rgba(200, 126, 60, 0.95);
  display: flex; align-items: center; gap: 7px;
}
.bn-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 8px var(--copper);
  animation: pulse-dot 1.4s infinite;
}

@media (max-width: 880px) {
  .builder { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
@media (max-width: 520px) {
  .builder { grid-template-columns: 1fr; gap: 28px; max-width: 340px; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.f-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.f-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(228, 185, 91, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.f-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.f-card:hover::before { opacity: 1; }

.f-orb {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #2A1B06;
  background: radial-gradient(circle at 32% 28%, var(--o1), var(--o2) 78%);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.28),
              inset 0 2px 5px rgba(255, 255, 255, 0.28),
              0 8px 18px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}
.f-orb::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background-image: var(--grain);
  opacity: 0.55;
  mix-blend-mode: overlay;
}
.f-orb-ico { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.25)); }
[data-theme="light"] .f-orb {
  box-shadow: inset 0 -8px 16px rgba(90, 50, 10, 0.25),
              inset 0 2px 5px rgba(255, 255, 255, 0.45),
              0 8px 18px rgba(120, 80, 30, 0.28);
}
.f-title { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 10px; }
.f-body { color: var(--ink-2); font-size: 14.5px; margin-bottom: 20px; }
.f-foot { font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3); }

/* ============================================================
   4. GRAPH SECTION
   ============================================================ */
.graph-section { padding: 0; }
.graph-stage {
  position: relative;
  min-height: clamp(640px, 100vh, 900px);
  display: flex; align-items: center;
  overflow: hidden;
}
.graph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg), transparent 18%, transparent 82%, var(--bg)),
    linear-gradient(to right, rgba(11,10,8,0.85), transparent 55%);
}
.graph-copy { position: relative; z-index: 2; max-width: 560px; margin-left: max(calc((100% - 1180px) / 2), 24px); }

.graph-query {
  display: flex; align-items: center; gap: 10px;
  margin-top: 32px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(17, 15, 11, 0.8);
  backdrop-filter: blur(12px);
  font-size: 13.5px;
  max-width: 480px;
  box-shadow: 0 0 40px rgba(228, 185, 91, 0.07);
}
.gq-prompt { color: var(--gold); }
.gq-text { color: rgba(255,255,255,0.85); min-height: 1.4em; }
.gq-caret {
  width: 8px; height: 17px;
  background: rgba(233, 199, 127, 0.8);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }

.graph-answer {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  font-size: 13px; color: var(--ink-2);
  opacity: 0;
  transition: opacity 0.8s var(--ease) 0.2s;
}
.graph-answer.on { opacity: 1; }
.ga-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 10px var(--jade); flex-shrink: 0; }
.ga-ref { color: var(--accent-hi); }

@media (max-width: 760px) {
  .graph-copy { margin-inline: 24px; }
  .graph-vignette { background: linear-gradient(to bottom, var(--bg), rgba(11,10,8,0.4) 30%, rgba(11,10,8,0.4) 70%, var(--bg)); }
}

/* ============================================================
   5. PRICING
   ============================================================ */
.pricing {
  background:
    radial-gradient(ellipse 800px 460px at 50% 20%, rgba(228, 185, 91, 0.05), transparent),
    var(--bg);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  max-width: 1060px;
  margin-inline: auto;
}
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; max-width: 420px; } }

.p-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.p-card:hover { transform: translateY(-6px); border-color: var(--line-2); }

.p-pro {
  background: rgba(24, 20, 13, 0.9);
  transform: translateY(-14px) scale(1.02);
  z-index: 1;
}
.p-pro:hover { transform: translateY(-20px) scale(1.02); }

@property --gb-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.p-glowborder {
  position: absolute; inset: -1px;
  border-radius: var(--r-lg);
  padding: 1px;
  background: conic-gradient(from var(--gb-angle),
    rgba(228,185,91,0.9), rgba(200,126,60,0.9), rgba(34,211,238,0.7),
    rgba(200,126,60,0.9), rgba(228,185,91,0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gb-spin 5s linear infinite;
  pointer-events: none;
}
@keyframes gb-spin { to { --gb-angle: 360deg; } }

.p-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; letter-spacing: 0.16em;
  padding: 5px 14px; border-radius: 99px;
  color: #251A06; font-weight: 600;
  background: linear-gradient(120deg, #F2CF82, #D99C43);
  box-shadow: 0 4px 18px rgba(228, 185, 91, 0.4);
  white-space: nowrap;
}
.p-name { font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); margin-bottom: 14px; }
.p-price { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.p-per { font-size: 14px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.p-tag { color: var(--ink-2); font-size: 13.5px; margin-bottom: 26px; }
.p-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.p-list li {
  font-size: 14px; color: var(--ink-2);
  padding-left: 26px;
  position: relative;
}
.p-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' stroke='%23E7C77F' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ============================================================
   6. FINAL CTA + FOOTER
   ============================================================ */
.final-cta {
  position: relative;
  padding: clamp(120px, 16vw, 220px) 0;
  overflow: hidden;
  text-align: center;
}
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-inner { position: relative; z-index: 2; }
.cta-title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 18px;
  text-shadow: 0 0 60px rgba(233, 199, 127, 0.3);
}
.cta-form {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.cta-form input {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 14px 24px;
  width: min(340px, 100%);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.cta-form input::placeholder { color: var(--ink-3); }
.cta-form input:focus {
  border-color: rgba(228, 185, 91, 0.6);
  box-shadow: 0 0 0 4px rgba(228, 185, 91, 0.12), 0 0 30px rgba(228, 185, 91, 0.15);
  background: rgba(255,255,255,0.06);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.f-left { display: flex; align-items: baseline; gap: 18px; }
.f-copy { font-size: 11px; color: var(--ink-3); }
.f-links { display: flex; gap: 22px; }
.f-links a { color: var(--ink-3); text-decoration: none; font-size: 11.5px; letter-spacing: 0.06em; transition: color 0.25s; }
.f-links a:hover { color: var(--ink); }

/* ============================================================
   REVEAL SYSTEM
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--rd, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-line {
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--rd, 0) * 110ms);
}
.reveal-line.in { transform: none; }

/* screenshot/test mode — everything visible, no transitions */
.static-shot .reveal, .static-shot .reveal-line { transition: none; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .reveal-line { opacity: 1; transform: none; }
  .noise { display: none; }
}

/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.nav-item { position: relative; display: flex; }
.nav-drop-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-trigger svg { transition: transform 0.3s var(--ease); opacity: 0.6; }
.nav-item:hover .nav-drop-trigger svg,
.nav-item:focus-within .nav-drop-trigger svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 236px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(17, 15, 11, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(228, 185, 91, 0.06);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(4px);
}
.dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px !important;
  border-radius: 9px;
}
.dd-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dd-sub { font-size: 10px; color: var(--ink-3); letter-spacing: 0.04em; }
.dropdown a:hover .dd-title { color: var(--accent-hi); }

/* ============================================================
   PROOF STRIP
   ============================================================ */
.proof { padding: 20px 0 clamp(40px, 5vw, 72px); }
.proof-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 18px 36px; flex-wrap: wrap;
}
.proof-label, .proof-count { font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); white-space: nowrap; }
.proof-marks { display: flex; gap: 14px 34px; flex-wrap: wrap; align-items: baseline; justify-content: center; }
.pm {
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.34);
  transition: color 0.3s;
  white-space: nowrap;
}
.pm-serif { font-family: Georgia, serif; font-style: italic; font-weight: 500; }
.pm-mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; font-weight: 500; }
.pm:hover { color: rgba(243, 226, 179, 0.8); }

/* ============================================================
   THE LOOP — 3 STEPS
   ============================================================ */
.loop { padding-top: clamp(48px, 6vw, 96px); }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1020px;
  margin-inline: auto;
}
.steps::before {
  content: "";
  position: absolute;
  top: 25px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent,
    rgba(228, 185, 91, 0.45) 18%, rgba(200, 126, 60, 0.45) 82%, transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; padding: 0 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(228, 185, 91, 0.4);
  background: var(--bg);
  color: var(--accent-hi);
  font-size: 13px;
  box-shadow: 0 0 24px rgba(228, 185, 91, 0.12);
  margin-bottom: 20px;
}
.step-title { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 10px; }
.step-body { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; }
.step-foot { font-size: 10px; letter-spacing: 0.1em; color: var(--ink-3); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; max-width: 440px; gap: 36px; }
  .steps::before { display: none; }
}

/* ============================================================
   SUBAGENTS — SWARM DIAGRAM
   ============================================================ */
.subagents {
  background:
    radial-gradient(ellipse 900px 520px at 50% 30%, rgba(200, 126, 60, 0.05), transparent),
    var(--bg);
}
.swarm {
  position: relative;
  max-width: 980px;
  margin: 0 auto clamp(52px, 6vw, 80px);
  display: flex; flex-direction: column;
  gap: 54px;
}
.swarm-wires {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.sw-row { position: relative; z-index: 1; display: flex; justify-content: center; gap: 20px; }
.sw-row-subs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sw-node {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(23, 20, 15, 0.88);
  backdrop-filter: blur(12px);
  padding: 15px 16px;
  transition: border-color 0.4s, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.sw-node:hover {
  border-color: rgba(228, 185, 91, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 28px rgba(228, 185, 91, 0.12);
}
.sw-orch {
  min-width: min(320px, 88vw);
  border-color: rgba(228, 185, 91, 0.35);
  box-shadow: 0 0 36px rgba(228, 185, 91, 0.1);
}
.sw-gate { min-width: min(320px, 88vw); border-color: rgba(91, 192, 143, 0.3); }
@media (max-width: 820px) {
  .sw-row-subs { grid-template-columns: 1fr 1fr; }
  .swarm { gap: 40px; }
}
@media (max-width: 470px) {
  .sw-row-subs { grid-template-columns: 1fr; }
}

.sw-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sw-feat {
  border: 1px solid var(--line);
  border-left: 2px solid rgba(228, 185, 91, 0.45);
  border-radius: 12px;
  background: var(--glass);
  padding: 20px 20px 18px;
  transition: border-color 0.35s, background 0.35s;
}
.sw-feat:hover { background: var(--glass-2); border-left-color: #E4B95B; }
.sw-feat-title { font-size: 15px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.01em; }
.sw-feat-body { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 880px) { .sw-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sw-features { grid-template-columns: 1fr; } }

/* ============================================================
   AGENT LIBRARY
   ============================================================ */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lib-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  padding: 24px 24px 20px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s, background 0.35s;
}
.lib-card::after {
  content: "";
  position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 185, 91, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.lib-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--glass-2); }
.lib-card:hover::after { opacity: 1; }
.lib-title { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.lib-body { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; line-height: 1.55; }
.lib-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3);
}
.lib-chip {
  color: var(--accent-hi);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.lib-card:hover .lib-chip { opacity: 1; transform: none; }
@media (max-width: 880px) { .lib-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============================================================
   GRAPH — TOPIC LABELS + GHOST CURSOR
   ============================================================ */
.g-label {
  position: absolute; top: 0; left: 0;
  z-index: 3;
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(17, 15, 11, 0.82);
  backdrop-filter: blur(8px);
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -140%);
  transition: border-color 0.35s, box-shadow 0.35s, color 0.35s;
  will-change: transform;
}
.gl-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c, #E4B95B); box-shadow: 0 0 8px var(--c, #E4B95B); }
.gl-meta {
  font-size: 9px; color: var(--ink-3); letter-spacing: 0.05em;
  max-width: 0; overflow: hidden;
  transition: max-width 0.45s var(--ease), margin 0.45s var(--ease);
  margin-left: -4px;
}
.g-label.active {
  border-color: rgba(228, 185, 91, 0.65);
  box-shadow: 0 0 24px rgba(228, 185, 91, 0.22);
  color: var(--ink);
}
.g-label.active .gl-meta { max-width: 130px; margin-left: 2px; }
.g-cursor {
  position: absolute; top: 0; left: 0;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  will-change: transform;
  transition: opacity 0.4s;
}
.g-cursor.click::after {
  content: "";
  position: absolute; left: -7px; top: -7px;
  width: 26px; height: 26px;
  border: 1.5px solid rgba(228, 185, 91, 0.8);
  border-radius: 50%;
  animation: gc-ring 0.7s var(--ease) forwards;
}
@keyframes gc-ring {
  from { transform: scale(0.3); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 760px) {
  .g-label, .g-cursor { display: none; }
}

/* ============================================================
   SECURITY
   ============================================================ */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sec-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.012));
  padding: 26px 22px 20px;
  transition: transform 0.45s var(--ease), border-color 0.35s;
}
.sec-card:hover { transform: translateY(-4px); border-color: rgba(228, 185, 91, 0.35); }
.sec-rune {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: var(--accent-hi);
  border: 1px solid rgba(228, 185, 91, 0.35);
  border-radius: 11px;
  background: rgba(228, 185, 91, 0.07);
  box-shadow: 0 0 20px rgba(228, 185, 91, 0.1);
  margin-bottom: 18px;
}
.sec-title { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.sec-body { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.sec-foot { font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-3); }
@media (max-width: 880px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sec-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.t-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  padding: 30px 28px 26px;
  transition: transform 0.45s var(--ease), border-color 0.35s;
}
.t-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.t-mark {
  font-family: Georgia, serif;
  font-size: 54px; line-height: 0.6;
  color: rgba(228, 185, 91, 0.55);
  margin-bottom: 16px;
}
.t-quote {
  font-size: 15px; line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 22px;
}
.t-who { display: flex; flex-direction: column; gap: 3px; }
.t-name { font-size: 13.5px; font-weight: 600; }
.t-role { font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3); }
@media (max-width: 880px) { .t-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 720px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px;
  font-size: 16px; font-weight: 550;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #F3E2B3; }
.faq-x {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 18px; height: 1.5px;
  background: rgba(228, 185, 91, 0.8);
  transition: transform 0.35s var(--ease);
}
.faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::after { transform: rotate(0deg); }
.faq-item p {
  padding: 0 4px 24px;
  max-width: 640px;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* ============================================================
   FOOTER — GRID
   ============================================================ */
.footer { padding: clamp(48px, 6vw, 72px) 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.fg-brand { max-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.fg-tag { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.fg-col { display: flex; flex-direction: column; gap: 11px; }
.fg-head { font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); margin-bottom: 4px; }
.fg-col a {
  color: var(--ink-2); text-decoration: none; font-size: 13.5px;
  transition: color 0.25s;
  width: fit-content;
}
.fg-col a:hover { color: #F3E2B3; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fg-brand { grid-column: 1 / -1; }
}

/* ============================================================
   THEME TOGGLE CONTROL
   ============================================================ */
:root { color-scheme: dark; }
.theme-toggle {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, color 0.3s, transform 0.35s var(--ease), background 0.3s;
}
.theme-toggle:hover { color: var(--accent-hi); border-color: rgba(228, 185, 91, 0.5); transform: rotate(15deg); }
.theme-toggle svg { position: absolute; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.tt-sun { opacity: 1; transform: rotate(0deg); }
.tt-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-theme="light"] .tt-sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
[data-theme="light"] .tt-moon { opacity: 1; transform: rotate(0deg); }

/* ============================================================
   LIGHT MODE — "GILDED PORCELAIN"
   Every dark-hardcoded surface, text, border, and glow re-mapped.
   ============================================================ */
[data-theme="light"] {
  color-scheme: light;
  --bg: #FAF6EC;
  --bg-2: #F2ECDC;
  --ink: #241C0D;
  --ink-2: rgba(36, 28, 13, 0.7);
  --ink-3: rgba(36, 28, 13, 0.46);
  --line: rgba(36, 28, 13, 0.1);
  --line-2: rgba(36, 28, 13, 0.17);
  --gold: #C9992E;
  --copper: #A9631F;
  --cream: #9A6A1C;
  --jade: #1F7A4D;
  --accent-hi: #8C5A18;
  --glass: rgba(36, 28, 13, 0.03);
  --glass-2: rgba(36, 28, 13, 0.06);
}

/* --- global chrome --- */
[data-theme="light"] .noise { opacity: 0.05; }
[data-theme="light"] ::selection { background: rgba(201, 153, 46, 0.3); }
[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(201, 153, 46, 0.09), rgba(169, 99, 31, 0.05) 40%, transparent 70%);
}
[data-theme="light"] .grad-text {
  background: linear-gradient(100deg, #B07A1E 0%, #8C5A18 48%, #A0501E 108%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .nav.scrolled {
  background: rgba(250, 246, 236, 0.78);
}
[data-theme="light"] .logo-mark g { stroke: rgba(36, 28, 13, 0.35); }
[data-theme="light"] .logo-mark { filter: drop-shadow(0 0 6px rgba(176, 122, 30, 0.4)); }
[data-theme="light"] .btn-ghost:hover { border-color: rgba(36, 28, 13, 0.32); }
[data-theme="light"] .btn-primary {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset,
              0 8px 26px rgba(176, 122, 30, 0.35);
}
[data-theme="light"] .dropdown {
  background: rgba(252, 249, 241, 0.95);
  box-shadow: 0 24px 60px rgba(120, 90, 40, 0.18), 0 0 40px rgba(201, 153, 46, 0.08);
}

/* --- hero --- */
[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse at center,
    rgba(214, 168, 60, 0.18), rgba(169, 99, 31, 0.08) 45%, transparent 70%);
}
[data-theme="light"] .hero-title::before {
  background: radial-gradient(ellipse 55% 52% at 50% 52%,
    rgba(176, 122, 30, 0.12), transparent 68%);
}
[data-theme="light"] .hero-mock {
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 36px 90px rgba(120, 90, 40, 0.22),
              0 0 0 1px rgba(255, 255, 255, 0.5) inset,
              0 0 60px rgba(201, 153, 46, 0.08);
}
[data-theme="light"] .mock-titlebar { background: rgba(36, 28, 13, 0.025); }
[data-theme="light"] .ms-search { background: rgba(36, 28, 13, 0.03); }
[data-theme="light"] .mock-agentlog { background: rgba(36, 28, 13, 0.045); }
[data-theme="light"] .mal-line .t { color: rgba(140, 90, 24, 0.9); }
[data-theme="light"] .mal-line .ok { color: #1F7A4D; }
[data-theme="light"] .mal-line .act { color: #A0501E; }
[data-theme="light"] .me-link { border-bottom-color: rgba(140, 90, 24, 0.4); }
[data-theme="light"] .me-check.done {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' stroke='%23251A06' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/8px no-repeat;
}

/* --- proof strip --- */
[data-theme="light"] .pm { color: rgba(36, 28, 13, 0.42); }
[data-theme="light"] .pm:hover { color: rgba(140, 90, 24, 0.95); }

/* --- capture / phone --- */
[data-theme="light"] .phone {
  background: linear-gradient(160deg, #FFFDF8, #EFE7D4);
  box-shadow: 0 26px 70px rgba(120, 90, 40, 0.28),
              0 0 0 8px rgba(36, 28, 13, 0.03),
              0 0 60px rgba(201, 153, 46, 0.12);
}
[data-theme="light"] .phone-screen {
  background: radial-gradient(ellipse at 50% 0%, #FEFBF3, #F4EDDD 60%);
}
[data-theme="light"] .t-todo { color: rgba(36, 28, 13, 0.78); }
[data-theme="light"] .cl-ico::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' stroke='%238C5A18' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- agent builder + swarm nodes --- */
[data-theme="light"] .b-node,
[data-theme="light"] .sw-node {
  background: rgba(255, 252, 244, 0.88);
}
[data-theme="light"] .b-node:hover,
[data-theme="light"] .sw-node:hover {
  box-shadow: 0 12px 32px rgba(120, 90, 40, 0.16), 0 0 24px rgba(201, 153, 46, 0.14);
}
[data-theme="light"] .bn-status { color: #A0501E; }
[data-theme="light"] .bn-live { background: #A0501E; box-shadow: 0 0 8px rgba(160, 80, 30, 0.7); }
[data-theme="light"] .sw-orch { box-shadow: 0 0 32px rgba(201, 153, 46, 0.16); }
[data-theme="light"] .f-orb-ico { color: #2A1B06; }

/* --- graph --- */
[data-theme="light"] .graph-vignette {
  background:
    linear-gradient(to bottom, var(--bg), transparent 18%, transparent 82%, var(--bg)),
    linear-gradient(to right, rgba(250, 246, 236, 0.88), transparent 55%);
}
@media (max-width: 760px) {
  [data-theme="light"] .graph-vignette {
    background: linear-gradient(to bottom, var(--bg), rgba(250, 246, 236, 0.4) 30%, rgba(250, 246, 236, 0.4) 70%, var(--bg));
  }
}
[data-theme="light"] .g-label { background: rgba(255, 253, 246, 0.88); }
[data-theme="light"] .g-label.active {
  border-color: rgba(140, 90, 24, 0.6);
  box-shadow: 0 0 22px rgba(176, 122, 30, 0.25);
}
[data-theme="light"] .graph-query {
  background: rgba(255, 253, 246, 0.85);
  box-shadow: 0 0 40px rgba(201, 153, 46, 0.1);
}
[data-theme="light"] .gq-text { color: rgba(36, 28, 13, 0.85); }
[data-theme="light"] .gq-caret { background: rgba(140, 90, 24, 0.8); }

/* --- security / testimonials / faq --- */
[data-theme="light"] .sec-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.25));
}
[data-theme="light"] .sec-rune { color: #8C5A18; }
[data-theme="light"] .t-quote { color: rgba(36, 28, 13, 0.85); }
[data-theme="light"] .t-mark { color: rgba(150, 100, 30, 0.6); }
[data-theme="light"] .faq-item summary { color: rgba(36, 28, 13, 0.9); }
[data-theme="light"] .faq-item summary:hover { color: #8C5A18; }
[data-theme="light"] .faq-x::before,
[data-theme="light"] .faq-x::after { background: rgba(140, 90, 24, 0.85); }

/* --- pricing --- */
[data-theme="light"] .p-pro { background: rgba(255, 252, 243, 0.95); }
[data-theme="light"] .p-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' stroke='%238C5A18' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- CTA + footer --- */
[data-theme="light"] .cta-title { text-shadow: 0 0 60px rgba(201, 153, 46, 0.25); }
[data-theme="light"] .cta-form input { background: rgba(36, 28, 13, 0.04); }
[data-theme="light"] .cta-form input:focus {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(176, 122, 30, 0.6);
  box-shadow: 0 0 0 4px rgba(201, 153, 46, 0.14), 0 0 30px rgba(201, 153, 46, 0.15);
}
[data-theme="light"] .fg-col a:hover { color: #8C5A18; }
[data-theme="light"] .f-links a:hover { color: #8C5A18; }

/* light mode: darken inline-colored status dots (pale golds vanish on porcelain) */
[data-theme="light"] .bn-dot,
[data-theme="light"] .ms-ico,
[data-theme="light"] .badge-dot { filter: brightness(0.72) saturate(1.35); }

/* ============================================================
   SOLID CARD SURFACES — real UI components, not glass ghosts
   ============================================================ */
:root {
  --surface: #18140E;
  --surface-2: #1F1912;
  --surface-border: rgba(255, 255, 255, 0.11);
  --surface-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07),
                    0 2px 6px rgba(0, 0, 0, 0.35),
                    0 18px 44px rgba(0, 0, 0, 0.42);
  --surface-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.09),
                          0 4px 10px rgba(0, 0, 0, 0.4),
                          0 26px 60px rgba(0, 0, 0, 0.55),
                          0 0 30px rgba(228, 185, 91, 0.09);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
[data-theme="light"] {
  --surface: #FFFEFA;
  --surface-2: #FDFAF2;
  --surface-border: rgba(36, 28, 13, 0.13);
  --surface-shadow: 0 1px 2px rgba(110, 80, 35, 0.08),
                    0 10px 28px rgba(110, 80, 35, 0.13);
  --surface-shadow-hover: 0 2px 5px rgba(110, 80, 35, 0.1),
                          0 20px 48px rgba(110, 80, 35, 0.2);
}

.lib-card, .sw-feat, .f-card, .sec-card, .t-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
}
.lib-card:hover, .f-card:hover, .sec-card:hover, .t-card:hover, .sw-feat:hover {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--surface-shadow-hover);
}
.f-card:hover, .lib-card:hover { border-color: var(--surface-border); }
[data-theme="light"] .sec-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.sw-feat { border-left: 2px solid rgba(228, 185, 91, 0.55); }

/* ============================================================
   LIBRARY FRAME — colored, grained container (ElevenLabs-style)
   ============================================================ */
.lib-frame {
  position: relative;
  border-radius: 32px;
  padding: clamp(20px, 3.4vw, 40px);
  background: linear-gradient(135deg, #241505, #3A1F0A 42%, #2A140A 78%, #1C1007);
  border: 1px solid rgba(228, 185, 91, 0.22);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.12), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lib-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.lib-frame::after {
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(480px 320px at 8% -4%, rgba(228, 185, 91, 0.32), transparent 65%),
    radial-gradient(560px 380px at 98% 112%, rgba(217, 111, 78, 0.28), transparent 65%),
    radial-gradient(300px 220px at 55% 50%, rgba(255, 214, 140, 0.08), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
}
.lib-frame .lib-grid { position: relative; z-index: 1; }

[data-theme="light"] .lib-frame {
  background: linear-gradient(135deg, #F6DFAE, #F1C88F 45%, #EED4A8 80%, #F4E3C0);
  border-color: rgba(140, 90, 24, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 24px 60px rgba(140, 100, 40, 0.22);
}
[data-theme="light"] .lib-frame::before { opacity: 0.32; mix-blend-mode: soft-light; }
[data-theme="light"] .lib-frame::after {
  background:
    radial-gradient(480px 320px at 8% -4%, rgba(255, 255, 255, 0.65), transparent 65%),
    radial-gradient(560px 380px at 98% 112%, rgba(224, 122, 69, 0.3), transparent 65%);
  filter: blur(30px);
}

/* ============================================================
   LIBRARY ORBS — grainy gradient tiles per agent
   ============================================================ */
.lib-orb {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: radial-gradient(circle at 32% 28%, var(--o1), var(--o2) 78%);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.28),
              inset 0 2px 5px rgba(255, 255, 255, 0.28),
              0 8px 18px rgba(0, 0, 0, 0.3);
}
.lib-orb::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background-image: var(--grain);
  opacity: 0.55;
  mix-blend-mode: overlay;
}
[data-theme="light"] .lib-orb {
  box-shadow: inset 0 -8px 16px rgba(90, 50, 10, 0.25),
              inset 0 2px 5px rgba(255, 255, 255, 0.45),
              0 8px 18px rgba(120, 80, 30, 0.28);
}

/* ============================================================
   ORBS — lively hover: spin on axis + gentle bob (lib + feature cards)
   ============================================================ */
@keyframes orb-spin {
  0%   { transform: rotate(0deg)   translateY(0); }
  25%  { transform: rotate(90deg)  translateY(-1.5px); }
  50%  { transform: rotate(180deg) translateY(0); }
  75%  { transform: rotate(270deg) translateY(1.5px); }
  100% { transform: rotate(360deg) translateY(0); }
}
.lib-card:hover .lib-orb,
.f-card:hover .f-orb {
  animation: orb-spin 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.f-card:hover .f-orb-ico {
  animation: orb-spin 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite reverse;
}
