/* ============================================================
   DEAGLE LABS — deaglelabs.com
   Brand tokens, layout, components.
   ============================================================ */

:root {
  /* Core palette — v3: blue primary + optional warm accent */
  --void: #0A0A09;
  --steel: #9A9A93;
  --blue: #5C9CFF;
  --blue-soft: rgba(92, 156, 255, 0.10);
  --blue-line: rgba(92, 156, 255, 0.30);

  /* Warm accent — defaults to BLUE so v3 starts identical to v2.
     Switched live by data-warm on <html>. */
  --warm: #5C9CFF;
  --warm-soft: rgba(92, 156, 255, 0.10);
  --warm-line: rgba(92, 156, 255, 0.30);
  --warm-on: #07111F;          /* foreground when sitting on warm */

  /* Text */
  --text: #F2F2EE;
  --muted: #8C8C85;
  --dim: #4F4F4B;

  /* Surfaces */
  --s0: #0A0A09;
  --s1: #131311;
  --s2: #1B1B18;
  --s3: #232320;

  /* Borders */
  --b1: #25251F;
  --b2: #34342D;

  /* Alerts */
  --red: #E0625F;
  --green: #4FC07A;

  /* Type */
  --display: "Geist", system-ui, -apple-system, sans-serif;
  --body: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Shape */
  --r-sm: 4px;
  --r-lg: 4px;

  /* Layout */
  --max: 1160px;
  --pad-y: 80px;
  --nav-h: 56px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 1100px 600px at 50% -10%, rgba(76,139,245,0.08), transparent 60%),
    radial-gradient(ellipse 800px 400px at 90% 10%, rgba(232,148,10,0.04), transparent 60%),
    var(--void);
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--blue); color: var(--void); }

/* ============================================================
   TYPE
   ============================================================ */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow .num { color: var(--blue); margin-right: 8px; }
.eyebrow .sep { color: var(--dim); margin: 0 8px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p { margin: 0; color: var(--muted); }
p.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: #B6B6AE;
  max-width: 56ch;
  text-wrap: pretty;
}

.mono { font-family: var(--mono); }
.text-blue { color: var(--blue); }
.text-amber { color: var(--red); }   /* legacy class — semantic: warning/withheld */
.text-strong { color: var(--text); }
.text-muted { color: var(--muted); }
.text-dim { color: var(--dim); }
.strike { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  position: relative;
  padding: var(--pad-y) 0;
}

section + section { border-top: 1px solid var(--b1); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 10, 8, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--b1);
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--text);
}

.brand .mark { width: 22px; height: 22px; }
.brand .lab { color: var(--steel); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signin {
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease;
}
.signin:hover { color: var(--text); }

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--b2);
  border-radius: var(--r-sm);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.hamburger svg { width: 16px; height: 16px; stroke: var(--text); }

/* Tighten nav spacing on small laptops */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 1000px) {
  .nav-cta .btn-secondary { display: none; }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta .signin, .nav-cta .btn-secondary { display: none; }
  .hamburger { display: inline-flex; }
}

.mobile-sheet {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(10,10,8,0.96);
  backdrop-filter: blur(18px);
  z-index: 99;
  padding: 32px;
  display: none;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--b1);
}
.mobile-sheet.open { display: flex; }
.mobile-sheet a {
  padding: 18px 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  border-bottom: 1px solid var(--b1);
}
.mobile-sheet .btn { margin-top: 24px; align-self: stretch; justify-content: center; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #07111F;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #6CA0F8;
  border-color: #6CA0F8;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -10px rgba(76,139,245,0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--b2);
}
.btn-secondary:hover {
  border-color: var(--steel);
  background: rgba(255,255,255,0.02);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  height: 36px;
  padding: 0 4px;
  border: none;
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: calc(var(--nav-h) + 96px) 0 120px;
  border-top: none !important;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
}

.hero h1 .verb {
  font-style: italic;
  font-family: var(--display);
  font-weight: 500;
  color: var(--blue);
}

.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero-meta .item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-meta .v {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}
.hero-meta .v .unit { color: var(--steel); font-size: 13px; font-family: var(--mono); font-weight: 400; margin-left: 2px; }

/* Floating tag cloud */
.tag-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.tag-cloud .tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
  border: 1px solid var(--b1);
  background: rgba(20, 20, 18, 0.6);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  animation: drift 14s ease-in-out infinite;
  opacity: 0;
}
.tag.t1 { top: 12%; right: 6%; animation-delay: 0s; }
.tag.t2 { top: 26%; right: 18%; animation-delay: 1.2s; color: var(--steel); border-color: var(--b2); }
.tag.t3 { top: 42%; right: 4%; animation-delay: 2.6s; }
.tag.t4 { top: 58%; right: 22%; animation-delay: 0.6s; color: var(--blue); border-color: var(--blue-line); }
.tag.t5 { top: 74%; right: 9%; animation-delay: 3.4s; }
.tag.t6 { top: 18%; left: 60%; animation-delay: 4.2s; color: var(--steel); }
.tag.t7 { top: 84%; right: 30%; animation-delay: 2.0s; }
.tag.t8 { top: 8%; right: 30%; animation-delay: 5.0s; color: var(--dim); }

@keyframes drift {
  0%   { opacity: 0; transform: translateY(8px); }
  20%  { opacity: 1; transform: translateY(0); }
  60%  { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(-12px); }
}

@media (max-width: 1100px) {
  .tag-cloud { display: none; }
}

/* Heppner ribbon */
.heppner-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--b2);
  border-radius: 999px;
  background: rgba(28,28,25,0.6);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--steel);
  width: fit-content;
}
.heppner-ribbon .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61,186,110,0.18);
}
.heppner-ribbon strong { color: var(--text); font-weight: 500; letter-spacing: 0; font-family: var(--body); }

/* ============================================================
   LOGO BAR
   ============================================================ */

.proof-bar {
  padding: 32px 0;
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
  background: rgba(20,20,18,0.4);
}
.proof-bar .row {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.proof-bar .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  flex-shrink: 0;
}
.proof-bar .firms {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.firm {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--steel);
  opacity: 0.7;
  white-space: nowrap;
}
.firm .amp { color: var(--dim); margin: 0 4px; }
.firm.serif { font-family: "Times New Roman", serif; font-style: italic; font-weight: 400; }
.firm.boxed { padding: 4px 10px; border: 1px solid var(--b2); border-radius: var(--r-sm); font-size: 13px; }

/* ============================================================
   PILLARS
   ============================================================ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--b1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.pillar {
  background: var(--s1);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
  transition: background 0.2s ease;
}
.pillar:hover { background: var(--s2); }

.pillar .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.pillar h3 {
  font-size: 22px;
  font-weight: 600;
}
.pillar p { font-size: 14px; line-height: 1.55; }

.pillar .stat {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--b2);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pillar .stat .big {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pillar .stat .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

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

/* ============================================================
   "LET ME DEAGLE THAT" — INTERACTIVE DEMO
   ============================================================ */

.demo {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.demo-input, .demo-output {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 480px;
}

.demo-input {
  background: var(--s1);
  border-right: 1px solid var(--b1);
}
.demo-output { background: var(--s0); }

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--b1);
}
.demo-head .title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.demo-head .pill {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border: 1px solid var(--b2);
  border-radius: 999px;
  color: var(--muted);
}
.demo-head .pill.live {
  color: var(--green);
  border-color: rgba(61,186,110,0.4);
  background: rgba(61,186,110,0.08);
}
.demo-head .pill.live::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.demo-doc {
  flex: 1;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel);
  background: var(--s0);
  border: 1px solid var(--b1);
  border-radius: var(--r-sm);
  padding: 16px;
  overflow: auto;
  max-height: 360px;
}
.demo-doc .ln {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}
.demo-doc .ln .n { color: var(--dim); user-select: none; text-align: right; }
.demo-doc mark {
  background: rgba(154, 154, 147, 0.12);
  color: var(--text);
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 500;
}
.demo-doc mark.priv {
  background: rgba(224,80,80,0.12);
  color: var(--red);
}
.demo-doc mark.cite {
  background: var(--blue-soft);
  color: var(--blue);
}

.demo-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-prompt {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 6px 10px;
  border: 1px solid var(--b2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-prompt:hover { color: var(--text); border-color: var(--steel); }
.demo-prompt.active {
  color: var(--blue);
  border-color: var(--blue-line);
  background: var(--blue-soft);
}

.demo-output-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  overflow: auto;
  max-height: 400px;
}

.agent-trace {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.agent-trace .step { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateX(-4px); transition: all 0.3s ease; }
.agent-trace .step.show { opacity: 1; transform: translateX(0); }
.agent-trace .step .ag { color: var(--blue); width: 110px; }
.agent-trace .step .msg { color: var(--steel); flex: 1; }
.agent-trace .step .ck {
  width: 14px; height: 14px;
  border: 1px solid var(--b2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.agent-trace .step.done .ck { border-color: var(--green); background: rgba(61,186,110,0.15); }
.agent-trace .step.done .ck::after { content: "✓"; font-size: 9px; color: var(--green); }
.agent-trace .step.run .ck::after {
  content: "";
  width: 6px; height: 6px;
  border: 1px solid var(--blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.answer-card {
  padding: 16px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r-sm);
  border-left: 2px solid var(--blue);
}
.answer-card .h {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.answer-card .body { font-size: 14px; color: var(--text); line-height: 1.6; }
.answer-card .body sup {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  background: var(--blue-soft);
  padding: 1px 5px;
  border-radius: 2px;
  margin: 0 2px;
  cursor: pointer;
}
.answer-card .body sup:hover { background: var(--blue); color: var(--void); }

.cite-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cite-list .c {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid var(--b1);
  border-radius: var(--r-sm);
  background: var(--s1);
}
.cite-list .c .n {
  color: var(--blue);
  font-weight: 500;
  width: 18px;
}
.cite-list .c .t { color: var(--text); flex: 1; }
.cite-list .c .v {
  font-size: 10px;
  color: var(--green);
  border: 1px solid rgba(61,186,110,0.3);
  background: rgba(61,186,110,0.08);
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .demo { grid-template-columns: 1fr; }
  .demo-input { border-right: none; border-bottom: 1px solid var(--b1); }
}

/* ============================================================
   AGENTS GRID
   ============================================================ */

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.agent-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.agent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 70%, var(--blue-soft) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.agent-card:hover { border-color: var(--b2); transform: translateY(-2px); }
.agent-card:hover::before { opacity: 1; }

.agent-card .id {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--blue);
}
.agent-card h3 { font-size: 19px; }
.agent-card p { font-size: 13.5px; line-height: 1.55; }

.agent-card .glyph {
  width: 36px;
  height: 36px;
  border: 1px solid var(--b2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s2);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--steel);
  font-weight: 500;
}

.agent-card .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--b1);
}
.agent-card .tool {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border: 1px solid var(--b1);
  border-radius: 2px;
  color: var(--muted);
}

@media (max-width: 880px) { .agents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .agents-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ARCHITECTURE
   ============================================================ */

.arch {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
  position: relative;
}

.arch-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arch-stage .head {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.arch-block {
  padding: 12px 14px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.arch-block .meta { color: var(--dim); font-size: 10.5px; }
.arch-block.accent {
  border-color: var(--blue-line);
  background: var(--blue-soft);
  color: var(--blue);
}
.arch-block.warm {
  border-color: var(--b2);
  background: var(--s3);
  color: var(--text);
}

.arch-flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 980px) { .arch { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .arch { grid-template-columns: 1fr; padding: 24px; } }

/* ============================================================
   DEPLOYMENT TIERS
   ============================================================ */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.tier .ribbon {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  padding: 2px 7px;
  border-radius: 2px;
}
.tier .glyph {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--b2);
  background: var(--s2);
  display: flex; align-items: center; justify-content: center;
}
.tier h3 { font-size: 20px; }
.tier .desc { font-size: 13.5px; line-height: 1.55; }
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--b1);
}
.tier ul li {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--steel);
  display: flex;
  gap: 8px;
}
.tier ul li::before { content: "›"; color: var(--blue); }

@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; } }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.compare {
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--s1);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  padding: 16px 18px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--b1);
  vertical-align: middle;
}
.compare thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--s2);
  font-weight: 500;
}
.compare thead th.us { color: var(--blue); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.lbl { color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; }
.compare td.val { color: var(--text); }
.compare td.us { background: rgba(76,139,245,0.04); color: var(--text); font-weight: 500; }
.compare td.bad { color: var(--red); }
.compare td.good { color: var(--green); }
.compare td .check { color: var(--green); font-weight: 600; }
.compare td .x { color: var(--red); font-weight: 600; }

.compare-foot {
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  background: var(--s2);
  border-top: 1px solid var(--b1);
}

/* ============================================================
   PRICING
   ============================================================ */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.price-card.featured {
  border-color: var(--blue-line);
  background: linear-gradient(180deg, rgba(76,139,245,0.06), var(--s1) 60%);
}
.price-card .tag-recommended {
  position: absolute;
  top: -10px; left: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--void);
  padding: 3px 10px;
  border-radius: 2px;
}
.price-card .name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-card .price .amt {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: "tnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums;
}
.price-card .price .per {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.price-card .price .cur {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  color: var(--muted);
  align-self: flex-start;
  margin-top: 8px;
}
.price-card .desc { font-size: 13.5px; line-height: 1.55; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed var(--b1);
  padding-top: 18px;
}
.price-card ul li {
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.price-card ul li::before {
  content: "+";
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.price-card .btn { margin-top: auto; justify-content: center; }

@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  background: var(--s1);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--b1);
  border-right: 1px solid var(--b1);
}
.faq-item:nth-child(even) { border-right: none; }
.faq-item:nth-last-child(-n+2) { border-bottom: none; }

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  cursor: pointer;
}
.faq-q .icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s ease;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  background: var(--steel);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .icon::before { width: 12px; height: 1px; }
.faq-q .icon::after { width: 1px; height: 12px; transition: transform 0.2s ease; }
.faq-item.open .faq-q .icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item.open .faq-q .icon::before { background: var(--blue); }

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-item.open .faq-a {
  padding: 0 24px 22px;
  max-height: 400px;
}

@media (max-width: 720px) {
  .faq { grid-template-columns: 1fr; }
  .faq-item, .faq-item:nth-child(even) { border-right: none; }
  .faq-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--b1); }
  .faq-item:last-child { border-bottom: none; }
}

/* ============================================================
   CLOSING CTA
   ============================================================ */

.closing {
  position: relative;
  text-align: center;
  padding: 140px 0;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 320px at 50% 50%, var(--blue-soft), transparent 70%);
  pointer-events: none;
}
.closing-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.closing h2 { font-size: clamp(48px, 6vw, 76px); letter-spacing: -0.035em; }
.closing .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.closing .small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top: 1px solid var(--b1);
  padding: 48px 0 32px;
  background: var(--s0);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-brand p {
  font-size: 13px;
  margin-top: 14px;
  max-width: 260px;
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.15s ease;
}
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--b1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.foot-bottom .sla {
  display: flex; align-items: center; gap: 8px;
}
.foot-bottom .sla .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.rv.visible { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.1s; }
.rv.d2 { transition-delay: 0.2s; }
.rv.d3 { transition-delay: 0.3s; }
.rv.d4 { transition-delay: 0.4s; }
.rv.d5 { transition-delay: 0.5s; }
.rv.d6 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .tag { animation: none !important; opacity: 1 !important; }
}

/* ============================================================
   V3 — WARM ACCENT MODE
   Activated by html[data-warm="amber" | "coral"].
   Repaints "moments of yes": hero verb, verified pills, citations,
   featured ribbon, success markers — leaves CTAs blue.
   ============================================================ */

html[data-warm="amber"] {
  --warm: #E8A84A;
  --warm-soft: rgba(232, 168, 74, 0.14);
  --warm-line: rgba(232, 168, 74, 0.40);
  --warm-on: #1F1503;
}
html[data-warm="coral"] {
  --warm: #F26B5C;
  --warm-soft: rgba(242, 107, 92, 0.13);
  --warm-line: rgba(242, 107, 92, 0.38);
  --warm-on: #1F0805;
}

/* "Deagle" verb — coral in coral mode, amber in amber mode, blue by default. */
html[data-warm="amber"] .hero h1 .verb,
html[data-warm="coral"] .hero h1 .verb {
  color: var(--warm);
}

/* Verified pills + agent trace done-checks turn warm */
html[data-warm="amber"] .demo-head .pill.live,
html[data-warm="coral"] .demo-head .pill.live {
  color: var(--warm);
  border-color: var(--warm-line);
  background: var(--warm-soft);
}
html[data-warm="amber"] .demo-head .pill.live::before,
html[data-warm="coral"] .demo-head .pill.live::before {
  background: var(--warm);
}

/* Cite list verified badges */
html[data-warm="amber"] .cite-list .c .v,
html[data-warm="coral"] .cite-list .c .v {
  color: var(--warm);
  border-color: var(--warm-line);
  background: var(--warm-soft);
}

/* Pricing "for small firms" ribbon — blue → warm */
html[data-warm="amber"] .price-card .tag-recommended,
html[data-warm="coral"] .price-card .tag-recommended {
  background: var(--warm);
  color: var(--warm-on);
}

/* Heppner ribbon dot — green → warm (signals "approved") */
html[data-warm="amber"] .heppner-ribbon .dot,
html[data-warm="coral"] .heppner-ribbon .dot {
  background: var(--warm);
  box-shadow: 0 0 0 4px var(--warm-soft);
}

/* Hero hallucination-rate stat — green → warm */
html[data-warm="amber"] .hero-meta .item:nth-child(2) .v,
html[data-warm="coral"] .hero-meta .item:nth-child(2) .v {
  color: var(--warm);
}

/* Section background tint — radial glow second color picks up warm */
html[data-warm="amber"] body,
html[data-warm="coral"] body {
  background:
    radial-gradient(ellipse 1100px 600px at 50% -10%, rgba(92,156,255,0.08), transparent 60%),
    radial-gradient(ellipse 800px 400px at 90% 10%, var(--warm-soft), transparent 60%),
    var(--void);
}

/* Featured price-card top-glow picks up warm */
html[data-warm="amber"] .price-card.featured,
html[data-warm="coral"] .price-card.featured {
  border-color: var(--warm-line);
  background: linear-gradient(180deg, var(--warm-soft), var(--s1) 60%);
}

/* ============================================================
   V3 — CREAM PRICING SECTION
   Activated by html[data-pricing="cream"].
   Flips the pricing section to a warm off-white.
   ============================================================ */

html[data-pricing="cream"] #pricing {
  background: #F2EFE7;
  color: #1A1A16;
  border-top: 1px solid #1A1A16;
  border-bottom: 1px solid #1A1A16;
}
html[data-pricing="cream"] #pricing h2 { color: #1A1A16; }
html[data-pricing="cream"] #pricing p,
html[data-pricing="cream"] #pricing .lead { color: #4A4A42; }
html[data-pricing="cream"] #pricing .eyebrow { color: #6E6E62; }
html[data-pricing="cream"] #pricing .eyebrow .num { color: #1A1A16; }
html[data-pricing="cream"] #pricing .eyebrow .sep { color: #B8B6AA; }

html[data-pricing="cream"] #pricing .price-card {
  background: #FFFFFA;
  border-color: #1A1A16;
  color: #1A1A16;
}
html[data-pricing="cream"] #pricing .price-card.featured {
  background: #1A1A16;
  border-color: #1A1A16;
  color: #F2EFE7;
}
html[data-pricing="cream"] #pricing .price-card .name { color: inherit; }
html[data-pricing="cream"] #pricing .price-card .desc { color: rgba(26,26,22,0.65); }
html[data-pricing="cream"] #pricing .price-card.featured .desc { color: rgba(242,239,231,0.7); }
html[data-pricing="cream"] #pricing .price-card ul { border-top-color: rgba(26,26,22,0.18); }
html[data-pricing="cream"] #pricing .price-card.featured ul { border-top-color: rgba(242,239,231,0.18); }
html[data-pricing="cream"] #pricing .price-card ul li { color: inherit; }
html[data-pricing="cream"] #pricing .price-card ul li::before { color: var(--blue); }

html[data-pricing="cream"] #pricing .price-card .btn-secondary {
  background: transparent;
  color: #1A1A16;
  border-color: #1A1A16;
}
html[data-pricing="cream"] #pricing .price-card .btn-secondary:hover {
  background: #1A1A16;
  color: #F2EFE7;
}
html[data-pricing="cream"] #pricing .price-card.featured .btn-primary {
  background: var(--warm);
  color: var(--warm-on);
  border-color: var(--warm);
}
html[data-pricing="cream"] #pricing .price-card .tag-recommended {
  background: #1A1A16;
  color: #F2EFE7;
}

/* When cream + warm together, featured CTA stays warm */
html[data-pricing="cream"][data-warm="amber"] #pricing .price-card.featured .btn-primary,
html[data-pricing="cream"][data-warm="coral"] #pricing .price-card.featured .btn-primary {
  background: var(--warm);
  color: var(--warm-on);
  border-color: var(--warm);
}

/* ============================================================
   V3 — TWEAKS PANEL
   Floating control surface, only shown when host activates.
   ============================================================ */

#tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 250;
  width: 280px;
  background: rgba(15, 15, 13, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--b2);
  border-radius: 6px;
  padding: 18px;
  font-family: var(--body);
  color: var(--text);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
  display: none;
}
#tweaks-panel.open { display: block; }

#tweaks-panel .tp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--b1);
}
#tweaks-panel .tp-head .ttl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
#tweaks-panel .tp-head button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  width: 22px; height: 22px;
  cursor: pointer;
}
#tweaks-panel .tp-head button:hover { color: var(--text); }

#tweaks-panel .tp-section { margin-bottom: 16px; }
#tweaks-panel .tp-section:last-child { margin-bottom: 0; }
#tweaks-panel .tp-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  display: block;
  margin-bottom: 8px;
}
#tweaks-panel .tp-radios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
#tweaks-panel .tp-radio {
  background: transparent;
  border: 1px solid var(--b2);
  border-radius: 4px;
  color: var(--muted);
  padding: 8px 6px;
  font-family: var(--body);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
#tweaks-panel .tp-radio:hover { color: var(--text); border-color: var(--steel); }
#tweaks-panel .tp-radio.active {
  color: var(--text);
  border-color: var(--blue);
  background: var(--blue-soft);
}
#tweaks-panel .tp-radio .swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}

#tweaks-panel .tp-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 4px 0;
}
#tweaks-panel .tp-toggle .name {
  font-size: 13px;
  color: var(--text);
}
#tweaks-panel .tp-toggle input { display: none; }
#tweaks-panel .tp-toggle .switch {
  width: 32px;
  height: 18px;
  border-radius: 12px;
  background: var(--s3);
  border: 1px solid var(--b2);
  position: relative;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
#tweaks-panel .tp-toggle .switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: all 0.18s ease;
}
#tweaks-panel .tp-toggle input:checked ~ .switch {
  background: var(--blue);
  border-color: var(--blue);
}
#tweaks-panel .tp-toggle input:checked ~ .switch::after {
  background: white;
  transform: translateX(14px);
}

#tweaks-panel .tp-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--b1);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dim);
  line-height: 1.5;
}
