/* ── RESET & VARS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080808;
  --bg2:      #0F0F0F;
  --bg3:      #161616;
  --surface:  #1C1C1C;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.13);
  --text:     #F0EDE6;
  --text2:    #9A9890;
  --text3:    #4A4A48;

  --planner:  #D8D4CC;
  --qa:       #F5E642;
  --dbarch:   #4A9EFF;
  --backend:  #00D4FF;
  --frontend: #FF7B6B;
  --debugger: #FF8C2B;
  --security: #FF4444;
  --reviewer: #4ADE80;
  --devops:   #A0A8B0;

  --green:    #4ADE80;
  --radius:   10px;
  --radius-lg:16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(14px);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-wordmark { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -0.04em; color: var(--text); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--text2); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

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

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.2s; border: none; font-family: inherit; }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.22); }
.btn-white { background: var(--text); color: #080808; font-weight: 500; }
.btn-white:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,255,255,0.15); }

/* ── HERO (landing) ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 40px 80px;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
  font-size: 12px; color: var(--text2); margin-bottom: 28px;
  font-family: 'DM Mono', monospace; position: relative; z-index: 2;
  animation: fade-up 0.5s ease both 0.1s;
}

.hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(42px, 7vw, 78px); letter-spacing: -0.04em; line-height: 1.0;
  max-width: 820px; position: relative; z-index: 2; margin-bottom: 24px;
  animation: fade-up 0.5s ease both 0.2s;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--text2); max-width: 520px;
  line-height: 1.65; position: relative; z-index: 2; margin-bottom: 40px;
  font-weight: 300; animation: fade-up 0.5s ease both 0.3s;
}

.hero-actions {
  display: flex; gap: 12px; align-items: center;
  position: relative; z-index: 2; margin-bottom: 56px;
  flex-wrap: wrap; justify-content: center;
  animation: fade-up 0.5s ease both 0.4s;
}

.btn-hero { padding: 13px 28px; font-size: 15px; }

.hero-install {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; background: var(--surface);
  border: 1px solid var(--border2); border-radius: var(--radius);
  font-family: 'DM Mono', monospace; font-size: 13px; color: var(--text);
  cursor: pointer; transition: border-color 0.2s;
  position: relative; z-index: 2;
  animation: fade-up 0.5s ease both 0.4s;
}
.hero-install:hover { border-color: rgba(255,255,255,0.28); }

.hero-proof {
  display: flex; align-items: center; gap: 24px; font-size: 12px; color: var(--text3);
  position: relative; z-index: 2; flex-wrap: wrap; justify-content: center;
  animation: fade-up 0.5s ease both 0.5s;
}
.hero-proof span { display: flex; align-items: center; gap: 6px; }

/* ── PAGE HERO (non-landing pages) ── */
.page-hero {
  padding: 120px 40px 80px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero .hero-grid { opacity: 0.5; }
.page-hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 16px;
  animation: fade-up 0.5s ease both 0.1s;
}
.page-hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(38px, 6vw, 66px); letter-spacing: -0.04em; line-height: 1.0;
  max-width: 760px; margin: 0 auto 24px; position: relative; z-index: 2;
  animation: fade-up 0.5s ease both 0.2s;
}
.page-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px); color: var(--text2); max-width: 540px;
  line-height: 1.65; margin: 0 auto; font-weight: 300;
  position: relative; z-index: 2;
  animation: fade-up 0.5s ease both 0.3s;
}

/* ── TERMINAL ── */
.terminal-wrap {
  width: 100%; max-width: 680px; margin: 0 auto 80px;
  position: relative; z-index: 2;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
  animation: fade-up 0.6s ease both 0.55s;
}
.terminal-bar { background: #141414; padding: 11px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; }
.td-r { background: #FF5F57; } .td-y { background: #FEBC2E; } .td-g { background: #28C840; }
.terminal-title { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text3); flex: 1; text-align: center; }
.terminal-body { background: #0A0A0A; padding: 24px 28px; font-family: 'DM Mono', monospace; font-size: 13px; line-height: 1.9; }
.t-p { color: var(--text2); } .t-cmd { color: var(--text); } .t-dim { color: var(--text3); }
.t-ok { color: var(--green); } .t-line { display: block; } .t-ind { padding-left: 20px; }
.t-planner  { color: var(--planner); }
.t-qa       { color: var(--qa); }
.t-backend  { color: var(--backend); }
.t-frontend { color: var(--frontend); }
.t-security { color: var(--security); }
.t-reviewer { color: var(--reviewer); }
.t-dbarch   { color: var(--dbarch); }
.t-debugger { color: var(--debugger); }
.t-devops   { color: var(--devops); }

/* ── SECTION ── */
section, .sect { padding: 100px 40px; max-width: 1160px; margin: 0 auto; }
.eyebrow { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.section-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text2); max-width: 520px; line-height: 1.65; font-weight: 300; }
hr.div { border: none; border-top: 1px solid var(--border); max-width: 1160px; margin: 0 auto; }

/* ── AGENTS GRID ── */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 56px; }

.agent-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.agent-card:hover { border-color: var(--border2); transform: translateY(-2px); }

.agent-bar { height: 3px; width: 100%; }
.agent-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.agent-header { display: flex; align-items: center; gap: 10px; }
.agent-avatar { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.agent-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.agent-stage { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text3); margin-left: auto; }
.agent-role { font-size: 13px; color: var(--text2); line-height: 1.5; }
.agent-model {
  margin-top: auto; padding-top: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text3);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 3px 8px; border-radius: 4px;
  width: fit-content;
}
.model-thinking { color: var(--text2); }

.agent-card-new { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:border-color 0.2s,transform 0.2s; display:flex; flex-direction:column; }
.agent-card-new:hover { border-color:var(--border2); transform:translateY(-3px); }
.agent-card-new .agent-bar { height:3px; width:100%; }
.agent-card-new .agent-body { padding:16px 20px 18px; flex:1; display:flex; flex-direction:column; gap:8px; }
.agent-card-new .agent-header { display:flex; align-items:center; justify-content:space-between; }
.agent-card-new .agent-name { font-family:'Syne',sans-serif; font-weight:700; font-size:14px; letter-spacing:-0.01em; }
.agent-card-new .agent-stage { font-family:'DM Mono',monospace; font-size:10px; color:var(--text3); }
.agent-card-new .agent-role { font-size:13px; color:var(--text2); line-height:1.5; }
.agent-card-new .agent-model { margin-top:auto; padding-top:10px; display:inline-flex; align-items:center; gap:5px; font-family:'DM Mono',monospace; font-size:10px; color:var(--text3); background:rgba(255,255,255,0.03); border:1px solid var(--border); padding:3px 8px; border-radius:4px; width:fit-content; }
.agent-character { display:flex; align-items:center; justify-content:center; height:110px; cursor:pointer; }

/* ── PIPELINE ── */
.pipeline-visual { margin-top: 56px; display: flex; flex-direction: column; }
.pipeline-stage { display: grid; grid-template-columns: 72px 1fr; gap: 0 20px; }
.pipeline-spine { display: flex; flex-direction: column; align-items: center; }
.pipeline-num {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border2); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text3);
  flex-shrink: 0; z-index: 2; transition: all 0.2s;
}
.pipeline-stage:hover .pipeline-num { border-color: rgba(255,255,255,0.3); color: var(--text); }
.pipeline-line { width: 1px; flex: 1; background: var(--border); min-height: 20px; }
.pipeline-content { padding: 0 0 28px; }
.pipeline-header { display: flex; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 6px; }
.pipeline-label { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.pipeline-tag { font-family: 'DM Mono', monospace; font-size: 10px; padding: 2px 8px; border-radius: 4px; }
.tag-tdd { background: rgba(245,230,66,0.1); color: var(--qa); border: 1px solid rgba(245,230,66,0.2); }
.tag-always { background: rgba(74,222,128,0.08); color: var(--reviewer); border: 1px solid rgba(74,222,128,0.2); }
.tag-confirm { background: rgba(255,255,255,0.05); color: var(--text2); border: 1px solid var(--border2); }
.tag-reactive { background: rgba(255,140,43,0.08); color: var(--debugger); border: 1px solid rgba(255,140,43,0.2); }
.pipeline-desc { font-size: 14px; color: var(--text2); line-height: 1.6; max-width: 580px; }
.pipeline-checkpoint {
  display: flex; align-items: center; gap: 10px;
  margin: 6px 0 20px 92px;
  font-size: 11px; color: var(--reviewer); font-family: 'DM Mono', monospace;
}
.checkpoint-line { flex: 1; max-width: 180px; height: 1px; background: rgba(74,222,128,0.2); }

/* ── PIPELINE DEEP (pipeline.html) ── */
.pipeline-deep { margin-top: 56px; display: flex; flex-direction: column; gap: 0; }

.stage-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.stage-block:hover { border-color: var(--border2); }

.stage-head {
  display: grid; grid-template-columns: 52px 1fr auto;
  align-items: center; gap: 16px; padding: 20px 24px;
  cursor: pointer; background: var(--surface);
  transition: background 0.2s;
}
.stage-head:hover { background: rgba(255,255,255,0.02); }

.stage-num-badge {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500;
  border: 1px solid; flex-shrink: 0;
}

.stage-head-info { display: flex; flex-direction: column; gap: 4px; }
.stage-head-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.stage-head-tagline { font-size: 13px; color: var(--text2); }
.stage-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.stage-chevron {
  width: 20px; height: 20px; color: var(--text3);
  transition: transform 0.3s; flex-shrink: 0;
}
.stage-block.open .stage-chevron { transform: rotate(180deg); }

.stage-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--bg2);
}
.stage-block.open .stage-body { max-height: 1200px; }

.stage-body-inner { padding: 24px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.stage-section { display: flex; flex-direction: column; gap: 12px; }
.stage-section-full { grid-column: 1 / -1; }
.stage-section h4 {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 4px;
}

.stage-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.stage-list li { font-size: 13px; color: var(--text2); display: flex; gap: 8px; line-height: 1.5; }
.stage-list li::before { content: '→'; color: var(--text3); font-family: 'DM Mono', monospace; flex-shrink: 0; font-size: 11px; margin-top: 2px; }

.stage-code {
  background: #0A0A0A; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; font-family: 'DM Mono', monospace; font-size: 12px;
  line-height: 1.8; color: var(--text2);
}
.stage-code .c-ok { color: var(--reviewer); }
.stage-code .c-warn { color: var(--qa); }
.stage-code .c-err { color: var(--security); }
.stage-code .c-dim { color: var(--text3); }
.stage-code .c-agent { font-weight: 500; }

.tool-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-pill {
  font-family: 'DM Mono', monospace; font-size: 10px;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border2); color: var(--text2);
}

/* ── CHECKPOINT BLOCK ── */
.checkpoint-block {
  margin: 8px 0; padding: 12px 20px;
  border: 1px solid rgba(74,222,128,0.15); border-radius: var(--radius);
  background: rgba(74,222,128,0.04);
  display: flex; align-items: center; gap: 12px;
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--reviewer);
}

/* ── DECISION TABLE ── */
.decision-table { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 13px; }
.decision-table th {
  text-align: left; padding: 10px 16px;
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3);
  border-bottom: 1px solid var(--border); font-weight: 400;
}
.decision-table td { padding: 12px 16px; color: var(--text2); border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.decision-table td:first-child { color: var(--text); font-weight: 500; }
.decision-table tr:last-child td { border-bottom: none; }
.decision-table tr:hover td { background: rgba(255,255,255,0.015); }

/* ── MODE COMPARISON ── */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.mode-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.mode-card.featured { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.02); }
.mode-name { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.mode-cost { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.04em; margin-bottom: 4px; }
.mode-range { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text3); margin-bottom: 20px; }
.mode-stages { display: flex; flex-direction: column; gap: 6px; }
.mode-stage-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.mode-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mode-dot.on { background: var(--reviewer); }
.mode-dot.off { background: var(--text3); }
.mode-stage-name { color: var(--text2); flex: 1; }
.mode-stage-status { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text3); }
.mode-stage-status.run { color: var(--reviewer); }

/* ── COMPARISON ── */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.comp-card { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.comp-card.feat { border-color: rgba(255,255,255,0.18); box-shadow: 0 0 40px rgba(255,255,255,0.03); }
.comp-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.comp-head.feat-head { background: rgba(255,255,255,0.04); }
.comp-tool { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.comp-badge { font-size: 10px; font-family: 'DM Mono', monospace; padding: 2px 8px; border-radius: 4px; margin-left: auto; }
.badge-full  { background: rgba(255,255,255,0.07); color: var(--text); border: 1px solid var(--border2); }
.badge-compat{ background: transparent; color: var(--text3); border: 1px solid var(--border); }
.comp-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px; font-size: 13px; border-bottom: 1px solid var(--border); gap: 16px; }
.comp-row:last-child { border-bottom: none; }
.comp-feat { color: var(--text2); flex: 1; }
.comp-val { font-family: 'DM Mono', monospace; font-size: 11px; text-align: right; }
.val-yes { color: var(--reviewer); } .val-no { color: var(--text3); } .val-mid { color: var(--text2); }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; }
.price-card.feat-price { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.02); position: relative; }
.price-card.feat-price::before { content: 'Most tasks'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--text); color: #080808; font-size: 10px; font-weight: 500; font-family: 'DM Mono', monospace; padding: 3px 12px; border-radius: 100px; white-space: nowrap; }
.price-mode { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; }
.price-desc { font-size: 13px; color: var(--text2); margin-bottom: 22px; line-height: 1.5; }
.price-amount { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.price-range { font-size: 11px; color: var(--text3); font-family: 'DM Mono', monospace; margin-bottom: 22px; }
.price-divider { height: 1px; background: var(--border); margin-bottom: 18px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 13px; color: var(--text2); line-height: 1.4; }
.price-features li::before { content: '—'; color: var(--text3); font-family: 'DM Mono', monospace; flex-shrink: 0; }
.price-cli { margin-top: 18px; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text3); padding: 9px 12px; background: rgba(255,255,255,0.03); border-radius: 6px; border: 1px solid var(--border); }
.price-note { margin-top: 36px; text-align: center; font-size: 14px; color: var(--text3); line-height: 1.6; }
.price-note strong { color: var(--text2); font-weight: 500; }

/* ── FAQ ── */
.faq-wrap { padding: 100px 40px; max-width: 760px; margin: 0 auto; }
.faq-list { margin-top: 56px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; text-align: left; padding: 20px 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color 0.2s; }
.faq-q:hover { color: rgba(255,255,255,0.7); }
.faq-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text3); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; font-size: 14px; color: var(--text2); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ── CTA ── */
.cta-section { padding: 100px 40px 120px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 500px; height: 280px; background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%); pointer-events: none; }
.cta-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(30px, 5vw, 50px); letter-spacing: -0.04em; line-height: 1.05; max-width: 640px; margin: 0 auto 20px; }
.cta-sub { font-size: 17px; color: var(--text2); margin-bottom: 36px; font-weight: 300; }
.cta-install { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-lg); font-family: 'DM Mono', monospace; font-size: 14px; color: var(--text); cursor: pointer; transition: all 0.2s; margin-bottom: 12px; }
.cta-install:hover { border-color: rgba(255,255,255,0.25); box-shadow: 0 0 30px rgba(255,255,255,0.05); }
.cta-hint { font-size: 12px; color: var(--text3); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; max-width: 1160px; margin: 0 auto; }
.footer-left { font-size: 13px; color: var(--text3); display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text2); }

/* ── MEMORY PAGE ── */
.memory-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.mem-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.mem-card.featured { border-color: var(--border2); }
.mem-card-label { font-family: 'DM Mono', monospace; font-size: 11px; margin-bottom: 16px; }

.memory-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.layer-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.layer-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.layer-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.vault-tree { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; font-family: 'DM Mono', monospace; font-size: 12px; line-height: 1.9; margin-top: 32px; }
.vt-dir { color: var(--text); }
.vt-file { color: var(--text2); }
.vt-link { color: var(--backend); }
.vt-comment { color: var(--text3); }

.d3-graph-container {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-top: 32px; position: relative; overflow: hidden; height: 440px;
}
.d3-graph-label {
  position: absolute; top: 16px; left: 20px;
  font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text3);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.d3-legend {
  position: absolute; bottom: 16px; right: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.d3-legend-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text3); }
.d3-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.d3-tooltip {
  position: absolute; background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 8px 12px; font-family: 'DM Mono', monospace;
  font-size: 11px; pointer-events: none; opacity: 0; transition: opacity 0.15s;
  white-space: nowrap; z-index: 10;
}

.flow-diagram {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; font-family: 'DM Mono', monospace; font-size: 12px; line-height: 2.2;
  margin-top: 32px; max-width: 680px; margin-left: auto; margin-right: auto;
}

/* ── CLI PAGE ── */
.cmd-section { margin-top: 56px; }
.cmd-category { margin-bottom: 48px; }
.cmd-category-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.cmd-category-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.cmd-block {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 8px;
}
.cmd-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  cursor: pointer; transition: background 0.2s;
}
.cmd-head:hover { background: rgba(255,255,255,0.02); }
.cmd-syntax { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--text); }
.cmd-syntax .arg { color: var(--backend); }
.cmd-syntax .flag { color: var(--qa); }
.cmd-brief { font-size: 12px; color: var(--text3); margin-left: auto; }
.cmd-expand-icon { color: var(--text3); transition: transform 0.3s; flex-shrink: 0; }
.cmd-block.open .cmd-expand-icon { transform: rotate(180deg); }

.cmd-detail {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  border-top: 0; background: #0A0A0A;
}
.cmd-block.open .cmd-detail { max-height: 600px; border-top: 1px solid var(--border); }
.cmd-detail-inner { padding: 16px 20px; }
.cmd-desc { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.cmd-example { font-family: 'DM Mono', monospace; font-size: 12px; line-height: 1.8; }
.cmd-example .p { color: var(--text3); }
.cmd-example .c { color: var(--text); }
.cmd-example .o { color: var(--text2); }
.cmd-example .ok { color: var(--reviewer); }
.cmd-example .warn { color: var(--qa); }

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.stack-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.stack-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.stack-detects { display: flex; flex-direction: column; gap: 4px; }
.stack-detect-item { font-size: 12px; color: var(--text3); display: flex; gap: 6px; align-items: flex-start; }
.stack-detect-item::before { content: '•'; color: var(--text3); flex-shrink: 0; }

.hook-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.hook-head { padding: 20px 24px; display: flex; align-items: flex-start; gap: 14px; border-bottom: 1px solid var(--border); }
.hook-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.hook-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.hook-trigger { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text3); }
.hook-body { padding: 20px 24px; }
.hook-desc { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 16px; }
.hook-blocks { display: flex; flex-wrap: wrap; gap: 6px; }
.hook-block-item { font-family: 'DM Mono', monospace; font-size: 11px; padding: 3px 10px; border-radius: 4px; background: rgba(255,68,68,0.08); border: 1px solid rgba(255,68,68,0.15); color: var(--security); }

.mcp-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.mcp-table th { text-align: left; padding: 10px 14px; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); border-bottom: 1px solid var(--border); font-weight: 400; }
.mcp-table td { padding: 12px 14px; font-size: 13px; color: var(--text2); border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.mcp-table td:first-child { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text); }
.mcp-table tr:last-child td { border-bottom: none; }
.mcp-table tr:hover td { background: rgba(255,255,255,0.015); }

.adapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 32px; }
.adapter-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.adapter-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.adapter-file { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text3); margin-bottom: 8px; }
.adapter-features { font-size: 12px; color: var(--text2); line-height: 1.6; }

/* ── INLINE CODE ── */
code {
  font-family: 'DM Mono', monospace; font-size: 0.875em;
  background: rgba(255,255,255,0.06); padding: 2px 6px;
  border-radius: 4px; color: var(--text2);
}

/* ── INFO BOX ── */
.info-box { background: rgba(74,222,128,0.04); border: 1px solid rgba(74,222,128,0.12); border-radius: var(--radius); padding: 16px 20px; font-size: 13px; color: var(--text2); line-height: 1.6; margin-top: 16px; }
.info-box strong { color: var(--reviewer); font-weight: 500; }

/* ── ANIMATIONS ── */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }
@keyframes float      { 0%,100%{ transform: translateY(0); }    50%{ transform: translateY(-7px); } }
@keyframes tilt       { 0%,100%{ transform: rotate(0deg); }     50%{ transform: rotate(-6deg); } }
@keyframes bob        { 0%,100%{ transform: translateY(0); }    50%{ transform: translateY(-4px); } }
@keyframes lean       { 0%,100%{ transform: rotate(0deg); }     50%{ transform: rotate(4deg); } }
@keyframes bounce     { 0%,100%{ transform: translateY(0); } 40%{ transform: translateY(-12px); } 60%{ transform: translateY(-8px); } }
@keyframes jitter     { 0%,100%{ transform: translateX(0) rotate(0deg); } 25%{ transform: translateX(4px) rotate(3deg); } 75%{ transform: translateX(-4px) rotate(-3deg); } }
@keyframes stoic      { 0%,100%{ transform: translateY(0); }    50%{ transform: translateY(-2px); } }
@keyframes readsway   { 0%,100%{ transform: rotate(0deg); }     50%{ transform: rotate(-4deg) translateX(-2px); } }
.anim-float    { animation: float    3.5s ease-in-out infinite; transform-origin: bottom center; }
.anim-tilt     { animation: tilt     2.8s ease-in-out infinite; transform-origin: bottom center; }
.anim-bob      { animation: bob      2.2s ease-in-out infinite; transform-origin: bottom center; }
.anim-lean     { animation: lean     3.0s ease-in-out infinite; transform-origin: bottom center; }
.anim-bounce   { animation: bounce   1.6s ease-in-out infinite; transform-origin: bottom center; }
.anim-jitter   { animation: jitter   0.45s ease-in-out infinite; transform-origin: bottom center; }
.anim-stoic    { animation: stoic    6.0s ease-in-out infinite; transform-origin: bottom center; }
.anim-readsway { animation: readsway 3.2s ease-in-out infinite; transform-origin: bottom center; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .adapter-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-body-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section, .sect, .faq-wrap { padding: 64px 20px; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .memory-compare { grid-template-columns: 1fr; }
  .memory-layers { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .adapter-grid { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .hero { padding: 100px 20px 60px; }
  .page-hero { padding: 100px 20px 60px; }
  .d3-graph-container { height: 300px; }
}

@media (max-width: 520px) {
  .agents-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .adapter-grid { grid-template-columns: 1fr; }
}
