:root {
  --bg: #fbfbfa;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #70706c;
  --line: #e8e6e1;
  --soft: #f4f2ed;
  --blue: #e1f3fe;
  --blue-ink: #1f6c9f;
  --green: #edf3ec;
  --green-ink: #346538;
  --yellow: #fbf3db;
  --yellow-ink: #956400;
  --red: #fdebec;
  --red-ink: #9f2f2d;
  --max: 1160px;
  --serif: 'Newsreader', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'SF Pro Display', 'Geist Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', 'SF Mono', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.ambient {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(149,100,0,.08), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(31,108,159,.07), transparent 26%),
    linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.018) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.brand span:last-child { display: grid; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
}
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: #4f4f4b; font-size: 14px; padding: 8px 10px; border-radius: 6px; }
nav a:hover { background: rgba(0,0,0,.045); color: var(--ink); }
.section, .stats, footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 24px;
}
.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: 56px;
  align-items: center;
  padding-top: 74px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; letter-spacing: -.035em; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.04; }
h1 { font-size: clamp(52px, 7vw, 96px); max-width: 820px; }
h2 { font-size: clamp(38px, 5vw, 68px); }
h3 { font-size: 20px; line-height: 1.2; }
.lede { font-size: clamp(18px, 2vw, 22px); color: #454541; max-width: 690px; margin: 24px 0 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  font-weight: 650;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:active { transform: scale(.98); }
.primary { background: var(--ink); color: white; }
.primary:hover { background: #333; }
.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.secondary:hover { border-color: #c9c6bd; }
.system-card {
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.window-bar { height: 42px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.window-bar span { width: 10px; height: 10px; border-radius: 999px; background: #d9d7d0; }
.flow-diagram { flex: 1; padding: 42px; display: grid; align-content: center; gap: 18px; }
.node { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: #fff; }
.node b { display: block; font-size: 20px; }
.node small { display: block; margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.connector { width: 1px; height: 36px; background: var(--line); margin-left: 28px; position: relative; }
.connector::after { content: ''; position: absolute; bottom: -1px; left: -4px; width: 9px; height: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.stats { padding-top: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.stat strong { display: block; font-family: var(--serif); font-size: 38px; line-height: 1; letter-spacing: -.03em; }
.stat span { display: block; color: var(--muted); margin-top: 10px; }
.split { display: grid; grid-template-columns: 1fr .72fr; gap: 48px; align-items: start; }
.tight { align-items: end; }
.section-note, .copy-block p { color: #575753; font-size: 18px; margin: 0; }
.copy-block p + p { margin-top: 18px; }
.grid { max-width: var(--max); margin: -50px auto 0; padding: 0 24px 70px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 28px; min-height: 260px; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.04); transform: translateY(-2px); }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--green); color: var(--green-ink); margin-bottom: 34px; }
.card p { color: var(--muted); margin: 16px 0 0; }
.timeline { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.step { padding: 30px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .week { font-family: var(--mono); color: var(--yellow-ink); background: var(--yellow); display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 28px; }
.step p { color: var(--muted); }
.comparison { margin-top: 34px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.row { display: grid; grid-template-columns: .8fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > div { padding: 18px; border-right: 1px solid var(--line); }
.row > div:last-child { border-right: 0; }
.row.head { background: var(--soft); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: #55524d; }
.row:not(.head) > div:first-child { font-weight: 700; }
.row:not(.head) > div:nth-child(2) { color: var(--muted); }
.row:not(.head) > div:nth-child(3) { color: var(--green-ink); background: rgba(237,243,236,.45); }
ul { padding-left: 18px; color: #575753; }
li + li { margin-top: 10px; }
kbd { border: 1px solid var(--line); border-radius: 4px; background: var(--soft); padding: 2px 5px; font-family: var(--mono); font-size: 13px; }
.contact { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 80px; padding: 46px; }
.contact-form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 650; color: #33332f; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fbfbfa; padding: 13px 12px; font: inherit; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid rgba(31,108,159,.18); border-color: rgba(31,108,159,.34); }
.form-note { margin: 0; color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); padding-top: 34px; padding-bottom: 40px; }
footer p { margin: 0; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 960px) {
  .site-header { position: relative; align-items: flex-start; }
  nav { display: none; }
  .hero, .split, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 54px; }
  .system-card { min-height: auto; }
  .stats, .grid, .timeline { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .row { grid-template-columns: 1fr; }
  .row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .row > div:last-child { border-bottom: 0; }
}
@media (max-width: 620px) {
  .section, .stats, footer { padding-left: 18px; padding-right: 18px; }
  .hero { gap: 30px; }
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .contact { padding: 28px 18px; border-left: 0; border-right: 0; border-radius: 0; }
  footer { display: grid; }
}
