/* Claw OS — site styles
 * Light, modern, agent-native look.
 * Soft white surfaces, ink-black type, blue→cyan→violet accent gradient.
 */

:root {
  /* Surfaces */
  --bg:           #fafbfc;
  --bg-elev-1:   #ffffff;
  --bg-elev-2:   #f5f7fa;
  --bg-elev-3:   #eef2f7;
  --bg-deep:     #0b0c10;          /* terminals stay dark for contrast */
  --bg-deep-2:   #14161c;

  /* Type */
  --ink:         #0b1220;
  --ink-soft:    #344054;
  --muted:       #5b6675;
  --faint:       #8a93a3;

  /* Lines */
  --line:         rgba(11, 18, 32, .09);
  --line-soft:    rgba(11, 18, 32, .05);
  --line-strong:  rgba(11, 18, 32, .16);

  /* Accent */
  --blue:        #2563eb;
  --cyan:        #0891b2;
  --violet:      #7c3aed;
  --green:       #10b981;
  --amber:       #d97706;
  --red:         #dc2626;

  --grad-text:    linear-gradient(95deg, #2563eb 0%, #0891b2 55%, #7c3aed 100%);
  --grad-accent:  linear-gradient(95deg, var(--blue), var(--cyan) 55%, var(--violet));
  --grad-border:  linear-gradient(120deg, rgba(37,99,235,.45), rgba(124,58,237,.45));
  --grad-soft-bg: linear-gradient(180deg, #ffffff, #f5f7fa);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-soft: 0 22px 60px -28px rgba(11, 18, 32, .18);
  --shadow-card: 0 12px 32px -18px rgba(11, 18, 32, .18);
  --shadow-cta:  0 18px 40px -18px rgba(37, 99, 235, .45);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Inter var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--blue) 60%, white);
  outline-offset: 2px;
  border-radius: 6px;
}
code, .mono, pre {
  font-family: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-feature-settings: "ss02", "ss01";
}
.muted { color: var(--muted); }
.gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Background art (subtle) ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,18,32,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,18,32,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 20%, transparent 85%);
  opacity: .65;
}
.bg-aurora {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(closest-side at 18% 18%, rgba(37,99,235,.22), transparent 70%),
    radial-gradient(closest-side at 78% 26%, rgba(124,58,237,.20), transparent 75%),
    radial-gradient(closest-side at 50% 60%, rgba(8,145,178,.16), transparent 80%);
  filter: blur(40px);
  opacity: .85;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(11, 18, 32, .12);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-mark { display: block; flex: none; width: auto; }
.brand-word { display: block; flex: none; width: auto; }
.nav-inner .brand-mark { height: 28px; }
.nav-inner .brand-word { height: 22px; }
.footer-brand .brand-mark { height: 24px; }
.footer-brand .brand-word { height: 20px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e40af, #2563eb 55%, #4f46e5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .005em;
  box-shadow: var(--shadow-cta);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 24px 48px -20px rgba(37, 99, 235, .6); }

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 38px; height: 38px;
  position: relative;
  cursor: pointer;
}
.nav-burger span {
  position: absolute;
  left: 10px; right: 10px; height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, top .2s ease, opacity .15s ease;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 18px; }
.nav-burger span:nth-child(3) { top: 23px; }

/* ===== Hero ===== */
.hero { padding: 84px 0 56px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-stage { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37,99,235,.08), rgba(124,58,237,.06));
  border: 1px solid rgba(37,99,235,.18);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8,145,178,.18);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(8,145,178,.18); }
  50%      { box-shadow: 0 0 0 6px rgba(8,145,178,.04); }
}

.title {
  margin: 18px 0 18px;
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
  color: var(--ink);
}
.title span { display: block; }

.lede {
  margin: 0 0 28px;
  max-width: 36em;
  font-size: clamp(16px, 1.18vw, 18px);
  color: var(--ink-soft);
  line-height: 1.6;
}
.lede code {
  color: var(--ink);
  background: var(--bg-elev-3);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 580;
  letter-spacing: -.005em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(11,18,32,.28); box-shadow: 0 16px 32px -20px rgba(11, 18, 32, .18); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #1e40af, #2563eb 55%, #4f46e5);
  color: #ffffff;
  font-weight: 620;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #6366f1); box-shadow: 0 22px 48px -22px rgba(37, 99, 235, .65); }
.btn-ghost { color: var(--ink-soft); }

.install-hint {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  font-size: 12.5px;
  max-width: 100%;
  min-width: 0;
}
.install-hint code {
  flex: 1 1 0;
  min-width: 0;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-hint-label {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(37,99,235,.10);
  color: var(--blue);
  letter-spacing: .1em;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}
.copy-btn {
  font: inherit;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.copy-btn:hover { color: var(--ink); border-color: var(--line-strong); background: #ffffff; }
.copy-btn.is-copied { color: var(--green); border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.08); }

/* ===== Hero stage / window chrome ===== */
.hero-stage {
  position: relative;
  min-height: 420px;
}

.window {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-deep-2));
  border: 1px solid rgba(11, 18, 32, .12);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.window-titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.35);
}
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.window-address {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  letter-spacing: -.005em;
}
.window-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
}
.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.25);
  animation: pulseDot 2s ease-in-out infinite;
}

.window-body { padding: 20px 22px; }

.terminal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}
.t-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.t-cmd { color: #ffffff; font-family: "JetBrains Mono", "SFMono-Regular", monospace; min-width: 0; }
.t-cmd .t-typing {
  width: max-content;
  max-width: 100%;
}
.t-prompt {
  color: #67e8f9;
  font-weight: 600;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
}
.t-out {
  display: block;
  color: rgba(255,255,255,.62);
  padding-left: 36px;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 12.5px;
}
.terminal .t-out + .t-out { margin-top: -4px; }
.terminal code {
  color: #ffffff;
  background: rgba(255,255,255,.08);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.94em;
}
.t-tag {
  display: inline-block;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 8px;
  vertical-align: 1px;
}
.t-tag-check    { background: rgba(59,130,246,.20); color: #cbe2ff; }
.t-tag-approve  { background: rgba(217,119,6,.22); color: #fde68a; }
.t-tag-ok       { background: rgba(16,185,129,.20); color: #bbf7d0; }
.t-tag-undo     { background: rgba(124,58,237,.22); color: #ddd6fe; }
.t-green        { color: #6ee7b7; }

.t-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #67e8f9;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}

[data-typing] {
  display: inline-block;
  white-space: nowrap;
  vertical-align: bottom;
  animation: typeIn 3.0s steps(38, end) 0.4s 1 both;
}
@keyframes typeIn {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.t-out.t-delay-1 { animation: fadeUp .5s ease 4.0s both; }
.t-delay-2       { animation: fadeUp .5s ease 4.6s both; }
.t-out.t-delay-3 { animation: fadeUp .5s ease 5.6s both; }
.t-out.t-delay-4 { animation: fadeUp .5s ease 6.0s both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Inline "approval block" inside the terminal — not floating. */
.t-block {
  margin: 4px 0 2px 36px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(217,119,6,.35);
  background: linear-gradient(180deg, rgba(217,119,6,.10), rgba(217,119,6,.04));
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
}
.t-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.t-block-head .t-tag { margin-right: 0; }
.t-block-title {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -.005em;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}
.t-block-meta {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.t-block-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.t-block-list li {
  display: grid;
  grid-template-columns: 7.6em minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
}
.t-cap {
  color: #fde68a;
  font-weight: 600;
}
.t-cap-target {
  color: rgba(255,255,255,.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-cap-action {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16,185,129,.22);
  color: #bbf7d0;
  border: 1px solid rgba(16,185,129,.35);
}

/* ===== Platforms strip ===== */
.platforms {
  padding: 14px 0 6px;
}
.platforms-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.platforms-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: -.005em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev-2);
  font-weight: 500;
}
.chip-muted   { color: var(--muted); border-style: dashed; background: transparent; }
.chip-divider { border: none; background: transparent; color: var(--faint); padding: 0 2px; }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-accent);
}
.h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 660;
  line-height: 1.08;
  letter-spacing: -.035em;
  max-width: 24ch;
  color: var(--ink);
}
.h2-tight { max-width: 22ch; }
.section-lede {
  margin: 0 0 36px;
  max-width: 58ch;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}
.section-lede code, .compare li code, .safety-card code, .faq-item code, .stack-detail code {
  color: var(--ink);
  background: var(--bg-elev-3);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.9em;
}

/* ===== Compare ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
.compare-col {
  padding: 26px 26px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.compare-bad  { border-color: rgba(220, 38, 38, .20); }
.compare-good {
  border-color: rgba(37,99,235,.22);
  background: linear-gradient(180deg, #ffffff, rgba(37,99,235,.05));
  position: relative;
}
.compare-good::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(37,99,235,.5), rgba(8,145,178,.45), rgba(124,58,237,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .35;
}
.compare-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.compare-bad .compare-head  { color: #b91c1c; background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.22); }
.compare-good .compare-head { color: var(--blue); background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.25); }
.compare-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare-col li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.compare-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--faint);
}
.compare-bad  li::before { background: rgba(220,38,38,.7); }
.compare-good li::before { background: linear-gradient(135deg, var(--cyan), var(--blue)); }

/* ===== Primitives grid ===== */
.prim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.prim-card {
  position: relative;
  padding: 22px 22px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.prim-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.32);
  box-shadow: 0 30px 60px -32px rgba(37,99,235,.35);
}
.prim-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.prim-card:hover::after { opacity: .5; }
.prim-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.22);
  color: var(--blue);
  margin-bottom: 14px;
}
.prim-icon svg { width: 20px; height: 20px; }
.prim-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -.015em;
  color: var(--ink);
}
.prim-card p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.prim-code {
  margin: 0 -22px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: var(--bg-deep);
  color: rgba(255,255,255,.82);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.prim-code em {
  color: rgba(255,255,255,.66);
  font-style: italic;
}

/* ===== Safety grid ===== */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.safety-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.safety-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -.02em;
  font-weight: 640;
  color: var(--ink);
}
.safety-card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.flow-step {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.flow-step-pending { color: #92400e; border-color: rgba(217,119,6,.35); background: rgba(217,119,6,.08); }
.flow-step-ok      { color: #065f46; border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.08); }
.flow-arrow {
  width: 22px;
  color: var(--faint);
}

/* ===== Demo ===== */
.demo-shell { margin-top: 8px; }
.demo-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.demo-tab {
  appearance: none;
  font: inherit;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.demo-tab:hover { color: var(--ink); }
.demo-tab.is-active {
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(124,58,237,.18));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.18);
}
.window-flush .demo-panes { padding: 22px 24px 26px; }
.demo-pane { display: none; }
.demo-pane.is-active { display: block; }
.demo-pane pre {
  margin: 0;
  background: transparent;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== Architecture stack ===== */
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.stack-layer {
  position: relative;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stack-layer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-accent);
  opacity: .85;
}
.stack-name {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.stack-detail {
  color: var(--ink-soft);
  font-size: 14.5px;
}
.stack-layer-agent  { background: linear-gradient(95deg, rgba(124,58,237,.06), rgba(37,99,235,.03), #ffffff 70%); }
.stack-layer-cos    { background: linear-gradient(95deg, rgba(37,99,235,.06),  rgba(8,145,178,.04), #ffffff 70%); }
.stack-layer-clawd  { background: linear-gradient(95deg, rgba(8,145,178,.06),  rgba(16,185,129,.04), #ffffff 70%); }
.stack-layer-linux  { background: linear-gradient(95deg, var(--bg-elev-2), #ffffff 70%); }

/* ===== Install ===== */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.install-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.install-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.install-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.install-card h3 {
  margin: 6px 0 8px;
  font-size: 22px;
  letter-spacing: -.02em;
  font-weight: 640;
  color: var(--ink);
}
.install-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14.5px;
}
.install-rank {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.22);
  font-weight: 600;
}
.code-block {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: var(--bg-deep);
  color: rgba(255,255,255,.82);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.code-comment { color: rgba(255,255,255,.45); }
.copy-btn-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
}
.install-after {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
}
.install-after-prompt {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(124,58,237,.10);
  color: var(--violet);
  letter-spacing: .1em;
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.install-after code { color: var(--ink-soft); }

/* ===== FAQ ===== */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq-item {
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: rgba(37,99,235,.22); box-shadow: 0 20px 40px -22px rgba(37,99,235,.25); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -.005em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
}
.faq-item summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  font-size: 18px;
  transition: transform .25s ease, color .15s ease;
}
.faq-item[open] summary::after { content: "−"; color: var(--blue); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ===== CTA band ===== */
.cta-band { padding: 96px 0 100px; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37,99,235,.18);
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(37,99,235,.14), transparent 55%),
    radial-gradient(120% 200% at 100% 100%, rgba(124,58,237,.16), transparent 55%),
    #ffffff;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.cta-band-inner::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .55;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 44px;
  color: var(--muted);
  font-size: 13.5px;
  background: linear-gradient(180deg, transparent, var(--bg-elev-2));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 56px;
}
.footer-brand .brand { margin-bottom: 10px; }
.footer-tag { margin: 0 0 6px; color: var(--ink-soft); font-size: 14px; }
.footer-meta { color: var(--faint); font-size: 11.5px; letter-spacing: .04em; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  transition: color .15s ease;
}
.footer-cols a:hover { color: var(--blue); }
.footer-col-title {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-stage { margin-top: 0; min-height: 0; }
  .prim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-grid, .install-grid-2 { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav.is-mobile-open .nav-links {
    display: flex;
    position: absolute;
    inset: 64px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
  }
  .nav.is-mobile-open .nav-links a { padding: 10px 12px; border-radius: 8px; color: var(--ink); }
  .nav.is-mobile-open .nav-links a:hover { background: var(--bg-elev-2); }

  .hero { padding-top: 56px; }
  .title { font-size: clamp(34px, 9.2vw, 50px); letter-spacing: -.045em; }
  .compare { grid-template-columns: 1fr; }
  .prim-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .install-grid, .install-grid-2 { grid-template-columns: 1fr; }
  .stack-layer { grid-template-columns: 1fr; gap: 6px; padding: 18px 22px; }
  .cta-band-inner { padding: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .t-block-list li { grid-template-columns: auto; gap: 4px; }
  .t-block-list li .t-cap-action { justify-self: flex-start; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-typing] { clip-path: none !important; }
  .t-out.t-delay-1, .t-delay-2, .t-out.t-delay-3, .t-out.t-delay-4 { opacity: 1; transform: none; }
}
