:root {
  color-scheme: light dark;
  --bg: #eef2ea;
  --bg-grid: rgba(19, 91, 55, .08);
  --surface: #ffffff;
  --surface-2: #e4ebe2;
  --ink: #102117;
  --muted: #53645a;
  --line: #bdc9c0;
  --accent: #08783f;
  --accent-strong: #005d2e;
  --accent-soft: #d1f2dd;
  --terminal: #08120c;
  --terminal-ink: #b7ffc9;
  --terminal-muted: #76b989;
  --warning: #b74f00;
  --shadow: 0 18px 45px rgba(18, 45, 29, .12);
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050906;
    --bg-grid: rgba(93, 255, 139, .045);
    --surface: #0b120d;
    --surface-2: #111b14;
    --ink: #edf7ef;
    --muted: #9aada0;
    --line: #26362b;
    --accent: #63e585;
    --accent-strong: #9affb5;
    --accent-soft: #14341e;
    --terminal: #020503;
    --terminal-ink: #a8ffc0;
    --terminal-muted: #63a677;
    --warning: #ff9d57;
    --shadow: 0 22px 55px rgba(0, 0, 0, .46);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.mono { font-family: var(--mono); }

.topline {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}
.topline-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font: 500 12px/1.3 var(--mono);
  letter-spacing: .02em;
}
.system-state { display: flex; align-items: center; gap: 9px; color: var(--accent-strong); }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.top-facts { display: flex; gap: 18px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
  min-height: 655px;
  padding: 86px 0 78px;
}
.prompt-line {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 24px;
  color: var(--accent-strong);
  font: 600 clamp(14px, 1.4vw, 17px)/1.4 var(--mono);
}
.cursor {
  display: inline-block;
  width: 9px; height: 1.05em; margin-left: 5px; background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(50px, 6.2vw, 82px);
  line-height: .98;
  letter-spacing: -.057em;
  font-weight: 800;
}
h1 .quiet { display: block; color: var(--muted); font-weight: 500; }
.lede {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
}
.lede strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #031208;
  text-decoration: none;
  font: 700 14px/1 var(--mono);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent-strong) 30%, transparent);
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (prefers-color-scheme: light) { .button { color: white; } }
.button.secondary { background: transparent; color: var(--accent-strong); box-shadow: none; border-color: var(--line); }
.button:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent-strong) 26%, transparent); }
.button.secondary:hover { box-shadow: none; border-color: var(--accent); }
.arrow { font-size: 17px; line-height: 1; }

.terminal {
  overflow: hidden;
  border: 1px solid #233a29;
  border-radius: var(--radius-md);
  background: var(--terminal);
  color: var(--terminal-ink);
  box-shadow: var(--shadow), 10px 10px 0 color-mix(in srgb, var(--accent) 15%, transparent);
  font-family: var(--mono);
}
.terminal-bar {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid #1b3021;
  background: #0d1b12;
  color: var(--terminal-muted);
  font-size: 11px;
}
.dots { display: flex; gap: 7px; }
.dots i { width: 9px; height: 9px; display: block; border-radius: 50%; background: #274c31; }
.dots i:first-child { background: #ff715c; }
.dots i:nth-child(2) { background: #f5c451; }
.dots i:nth-child(3) { background: #62d77d; }
.terminal-body { padding: 24px 24px 26px; font-size: 13px; line-height: 1.72; }
.log { margin: 0; padding: 0; list-style: none; }
.log li { display: grid; grid-template-columns: 75px 1fr; gap: 10px; color: var(--terminal-muted); }
.log .ok { color: var(--terminal-ink); }
.tag { color: #f3d56a; }
.terminal-rule { height: 1px; margin: 21px 0; background: #183322; }
.diagnostic-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 17px;
  border: 1px solid #214c2d;
  background: #0b1a10;
}
.diagnostic-card b { display: block; font-size: 16px; }
.diagnostic-card span { color: var(--terminal-muted); font-size: 11px; }
.diagnostic-card strong { color: #07120a; background: #7cf49a; padding: 7px 9px; font-size: 10px; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 28px 28px 27px; border-right: 1px solid var(--line); }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-item small { display: block; margin-bottom: 8px; color: var(--accent-strong); font: 600 11px/1.2 var(--mono); }
.trust-item strong { font-size: 16px; line-height: 1.35; }

section { padding: 104px 0; }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; gap: 32px; margin-bottom: 46px; align-items: end; }
.section-index { color: var(--accent-strong); font: 600 13px/1.4 var(--mono); }
h2 { margin: 0; max-width: 720px; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.section-copy { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 17px; }

.process-window { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.process-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font: 600 12px/1.3 var(--mono);
}
.filter-set { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
  font: 600 11px/1 var(--mono);
}
.filter.active { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-soft); }
.process-heading, .process-row {
  display: grid;
  grid-template-columns: 1.35fr .8fr .65fr 120px;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}
.process-heading {
  min-height: 40px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font: 500 10px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.process-row { min-height: 77px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.process-row:last-of-type { border-bottom: 0; }
.process-row:hover { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
.process-name { display: flex; align-items: center; gap: 13px; min-width: 0; }
.process-icon {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font: 700 15px/1 var(--mono);
}
.process-name b { display: block; font-size: 15px; }
.process-name small { display: none; color: var(--muted); margin-top: 3px; }
.process-row > span { color: var(--muted); font-size: 13px; }
.status { color: var(--accent-strong) !important; font: 600 11px/1.2 var(--mono); }
.resolve {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  font: 600 11px/1 var(--mono);
}
.resolve:hover, .resolve[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.service-detail {
  display: none;
  padding: 21px 24px 24px 67px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
}
.service-detail.open { display: block; }
.service-detail strong { color: var(--ink); }
.process-footer { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font: 500 11px/1.5 var(--mono); }

.workflow { background: var(--terminal); color: #eaf7ed; }
.workflow .section-index, .workflow h2 { color: var(--terminal-ink); }
.workflow .section-copy { color: #94ad9a; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; border-top: 1px solid #20402a; border-bottom: 1px solid #20402a; }
.step { position: relative; padding: 32px 28px 35px; border-right: 1px solid #20402a; }
.step:first-child { border-left: 1px solid #20402a; }
.step-no { color: #72dc8f; font: 600 12px/1.2 var(--mono); }
.step h3 { margin: 24px 0 10px; font-size: 19px; }
.step p { margin: 0; color: #94ad9a; font-size: 14px; }
.step:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -8px; top: 48%; z-index: 2;
  color: #76ff9d;
  background: var(--terminal);
  padding: 2px;
  font: 600 14px/1 var(--mono);
}

.proof-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; }
.manifesto {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 52px);
  background: var(--accent);
  color: #041108;
  border-radius: var(--radius-sm);
}
@media (prefers-color-scheme: light) { .manifesto { color: white; } }
.manifesto .mark { font: 600 13px/1.4 var(--mono); }
.manifesto blockquote { margin: 40px 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.manifesto footer { font: 600 13px/1.5 var(--mono); }
.proof-stack { display: grid; gap: 28px; }
.quote-card, .scope-card { padding: 34px; border: 1px solid var(--line); background: var(--surface); }
.quote-card blockquote { margin: 0; font-size: 25px; line-height: 1.35; letter-spacing: -.02em; }
.quote-card footer { margin-top: 22px; color: var(--muted); font: 500 12px/1.5 var(--mono); }
.scope-card h3 { margin: 0 0 18px; font-size: 19px; }
.scope-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; color: var(--muted); font-size: 14px; }
.scope-list li { display: flex; gap: 10px; }
.scope-list li::before { content: "✓"; color: var(--accent-strong); font: 700 13px/1.5 var(--mono); }

.final { padding: 0 0 56px; }
.final-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.final-panel h2 { max-width: 650px; font-size: clamp(32px, 4vw, 52px); }
.final-panel p { margin: 13px 0 0; color: var(--muted); }
.footerline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0 34px;
  color: var(--muted);
  font: 500 11px/1.5 var(--mono);
}

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--terminal);
  color: var(--terminal-ink);
  opacity: 0;
  pointer-events: none;
  font: 500 12px/1.45 var(--mono);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 68px 0; }
  .terminal { transform: none; max-width: 640px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; gap: 15px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { border-left: 1px solid #20402a; border-top: 1px solid #20402a; }
  .step:nth-child(4) { border-top: 1px solid #20402a; }
  .step:nth-child(2)::after { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .page { width: min(100% - 30px, 1180px); }
  .topline-inner { padding: 10px 0; align-items: flex-start; }
  .top-facts { display: none; }
  .hero { gap: 46px; padding: 53px 0 60px; }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  .lede { font-size: 16px; }
  .actions { display: grid; }
  .button { width: 100%; }
  .terminal-body { padding: 20px 16px 22px; font-size: 11px; }
  .log li { grid-template-columns: 62px 1fr; }
  .diagnostic-card { grid-template-columns: 1fr; }
  .diagnostic-card strong { justify-self: start; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child, .trust-item:nth-child(3) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .trust-item:last-child { border-bottom: 0; }
  section { padding: 76px 0; }
  .process-toolbar { grid-template-columns: 1fr; padding: 13px; }
  .process-heading { display: none; }
  .process-row { grid-template-columns: 1fr auto; gap: 12px; min-height: 84px; padding: 13px; }
  .process-row > span { display: none; }
  .process-name small { display: block; }
  .service-detail { padding: 18px; }
  .process-footer { padding: 13px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:nth-child(3) { border: 0; border-bottom: 1px solid #20402a; }
  .step:last-child { border-bottom: 0; }
  .step::after { display: none; }
  .manifesto { min-height: 340px; }
  .quote-card, .scope-card { padding: 26px; }
  .final-panel { grid-template-columns: 1fr; }
  .footerline { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .button, .toast { transition: none; }
}
