:root {
    --bg: #FFFFFF;
    --panel: #F4F6FB;
    --panel-2: #EDF0F7;
    --line: rgba(20,40,110,0.10);
    --line-strong: rgba(20,40,110,0.20);
    --text: #14286E;
    --body-ink: #3A4466;
    --muted: #5A6484;
    --dim: #97A0BA;
    --accent: #E2232B;
    --accent-ink: #C51C23;
    --navy: #14286E;
    --navy-deep: #0F1F58;
    --on-navy: #C9D2EE;
    --ok: #178A60;
    --warn: #B7790A;
    --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  a { color: var(--text); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
  h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
  h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 16ch; }
  h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
  p { margin: 0; }
  .lede { color: var(--muted); font-size: 19px; max-width: 56ch; font-weight: 400; }
  .mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

  .btn { display: inline-flex; align-items: center; justify-content: center; font: 500 15px/1 var(--sans); padding: 15px 22px; border-radius: 2px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-ink); box-shadow: 0 0 0 4px rgba(226,35,43,.14); }
  .btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
  .btn-ghost:hover { border-color: var(--text); background: var(--panel); }

  /* Nav */
  header.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
  .logo-mark { display: block; height: 30px; width: auto; }
  .foot-brand { display: inline-flex; align-items: center; gap: 10px; }
  .foot-brand img { height: 20px; width: auto; }
  .nav-links { display: flex; gap: 32px; align-items: center; }
  .nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
  .nav-links a:hover { color: var(--text); }
  .nav-links .btn { color: #fff; padding: 10px 16px; font-size: 14px; }
  @media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }

  /* Hero */
  .hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
  .hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .6; pointer-events: none; }
  .hero .wrap { position: relative; }
  .hero h1 { font-size: clamp(44px, 7.4vw, 104px); font-weight: 500; max-width: 14ch; }
  .hero h1 .soft { color: var(--dim); display: block; }
  .hero .lede { margin-top: 28px; }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
  .hero-meta { display: flex; gap: 8px 28px; flex-wrap: wrap; margin-top: 28px; }

  /* Console */
  .console { box-shadow: 0 40px 80px -40px rgba(20,40,110,.28); margin-top: 72px; border: 1px solid var(--line-strong); background: var(--panel); border-radius: 4px; overflow: hidden; }
  .console-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
  .console-bar .left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
  .live { display: inline-flex; align-items: center; gap: 8px; }
  .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(65,209,149,.18); }
  .metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .metric { padding: 18px 20px; border-right: 1px solid var(--line); }
  .metric:last-child { border-right: 0; }
  .metric .v { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
  .console-body { display: grid; grid-template-columns: 1.55fr 1fr; min-height: 380px; }
  .feed { border-right: 1px solid var(--line); }
  .feed-head, .feed-row { display: grid; grid-template-columns: 64px 1.1fr 1.5fr 118px 150px; gap: 12px; align-items: center; padding: 11px 18px; }
  .feed-head { border-bottom: 1px solid var(--line); }
  .feed-list { list-style: none; margin: 0; padding: 0; }
  .feed-row { border-bottom: 1px solid var(--line); font-size: 14px; transition: background .4s; }
  .feed-row.new { background: rgba(20,40,110,.05); }
  .feed-row .t { font-family: var(--mono); font-size: 12px; color: var(--dim); }
  .feed-row .subj { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .feed-row .from { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chip { font-family: var(--mono); font-size: 11px; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--muted); white-space: nowrap; justify-self: start; }
  .chip.urgent { border-color: rgba(242,181,68,.5); color: var(--warn); }
  .stage { font-family: var(--mono); font-size: 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  .stage i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); flex: none; }
  .stage.working i { background: var(--text); }
  .stage.ready { color: var(--ok); } .stage.ready i { background: var(--ok); }
  .stage.flag { color: var(--warn); } .stage.flag i { background: var(--warn); }
  .preview { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
  .preview .draft { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 16px; font-size: 14px; line-height: 1.6; color: var(--body-ink); white-space: pre-wrap; flex: 1; }
  .preview .actions { display: flex; gap: 8px; }
  .preview .actions span { font-size: 13px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 2px; }
  .preview .actions .go { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 500; }
  .console-note { padding: 10px 18px; border-top: 1px solid var(--line); }
  @media (max-width: 1020px) {
    .console-body { grid-template-columns: 1fr; }
    .feed { border-right: 0; border-bottom: 1px solid var(--line); }
    .feed-head, .feed-row { grid-template-columns: 56px 1fr 118px; }
    .feed-head .c-subj, .feed-row .subj, .feed-head .c-type, .feed-row .chip { display: none; }
  }
  @media (max-width: 640px) { .metrics { grid-template-columns: 1fr 1fr; } .metric:nth-child(2) { border-right: 0; } .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

  /* Sections */
  section.block { padding: 128px 0; border-top: 1px solid var(--line); }
  .head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
  .head .lede { justify-self: end; }
  @media (max-width: 900px) { .head { grid-template-columns: 1fr; gap: 20px; } .head .lede { justify-self: start; } }

  /* Split: ours vs yours */
  .split { display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
  .split > div { padding: 32px; }
  .ours { border-right: 1px solid var(--line-strong); background: var(--navy); color: #fff; }
  .ours .mono { color: #9FB0E0; }
  .yours { background: var(--panel); color: var(--text); display: flex; flex-direction: column; }
  .split .label { margin-bottom: 24px; display: flex; justify-content: space-between; }
  .yours .label { color: var(--muted); }
  .system { width: 100%; height: auto; display: block; }
  .system text { font-family: var(--mono); font-size: 11px; fill: var(--on-navy); }
  .system .node rect { fill: var(--navy-deep); stroke: rgba(255,255,255,.28); }
  .system .node.core rect { stroke: var(--accent); }
  .system .node.core text { fill: #fff; }
  .system .wire { stroke: rgba(255,255,255,.28); fill: none; }
  .system .pulse { stroke: var(--accent); fill: none; stroke-dasharray: 4 10; animation: flow 1.6s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -28; } }
  .yours h3 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 10px; }
  .yours p { color: var(--body-ink); }
  .one-card { margin-top: auto; border: 1px solid var(--line-strong); border-radius: 4px; padding: 18px; background: #fff; }
  .one-card .who { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
  .one-card .msg { font-size: 15px; line-height: 1.55; color: var(--body-ink); }
  .one-card .go { margin-top: 16px; display: block; width: 100%; text-align: center; background: var(--accent); color: #fff; padding: 14px; border-radius: 2px; font-weight: 500; }
  @media (max-width: 900px) { .split { grid-template-columns: 1fr; } .ours { border-right: 0; border-bottom: 1px solid var(--line-strong); } }

  /* Modules table */
  .modules { border-top: 1px solid var(--line-strong); }
  .mod { display: grid; grid-template-columns: 90px 1fr 1.4fr 140px; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
  .mod p { color: var(--muted); font-weight: 400; }
  .status { font-family: var(--mono); font-size: 12px; display: inline-flex; gap: 8px; align-items: center; justify-self: end; white-space: nowrap; }
  .status i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
  .status.live-s { color: var(--ok); } .status.live-s i { background: var(--ok); }
  @media (max-width: 860px) { .mod { grid-template-columns: 1fr auto; gap: 8px 16px; } .mod .mono { display: none; } .mod p { grid-column: 1 / -1; } .status { grid-row: 1; grid-column: 2; } }

  /* Process timeline */
  .timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); margin: 0; padding: 0; }
  .timeline li { list-style: none; padding: 28px 28px 0 0; position: relative; }
  .timeline li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--text); border-radius: 50%; }
  .timeline .mono { display: block; margin-bottom: 18px; }
  .timeline p { color: var(--muted); margin-top: 10px; font-size: 16px; font-weight: 400; }
  .timeline ol { margin: 0; padding: 0; display: contents; }
  @media (max-width: 860px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); } .timeline li { padding: 0 0 36px 28px; } .timeline li::before { top: 6px; left: -4px; } }

  /* Principles */
  .principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .principles > div { background: var(--bg); padding: 32px; }
  .principles p { color: var(--muted); margin-top: 12px; font-weight: 400; font-size: 16px; }
  .principles .mono { display: block; margin-bottom: 40px; }
  @media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

  .industries { display: flex; flex-wrap: wrap; gap: 8px; }
  .industries span { border: 1px solid var(--line-strong); padding: 10px 16px; border-radius: 2px; font-size: 15px; color: var(--body-ink); background: var(--panel); border-color: var(--line); }

  /* Pricing */
  .pricing { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
  .pricing > div { padding: clamp(32px, 5vw, 56px); }
  .pricing .figure-side { background: var(--navy); color: #fff; border-left: 1px solid var(--navy); }
  .pricing .figure-side .mono, .pricing .figure-side small { color: var(--on-navy); }
  .figure { font-size: clamp(72px, 10vw, 128px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin: 16px 0 12px; }
  .figure small { font-size: 20px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 6px; }
  .pricing .lede { margin-top: 20px; }
  .pricing ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 10px; color: #E4E9F7; font-size: 15px; }
  .pricing ul li::before { content: "+"; font-family: var(--mono); color: var(--accent); margin-right: 12px; }
  @media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } .pricing .figure-side { border-left: 0; border-top: 1px solid var(--line-strong); } }

  /* About */
  .about { display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
  .portrait { aspect-ratio: 4/5; border: 1px solid var(--line-strong); background: repeating-linear-gradient(135deg, var(--panel) 0 10px, var(--bg) 10px 20px); display: grid; place-items: center; text-align: center; padding: 16px; }
  .about .body { max-width: 60ch; font-size: 19px; font-weight: 400; color: var(--body-ink); }
  .about .body p + p { margin-top: 18px; }
  .about h2 { margin-bottom: 28px; }
  @media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 32px; } .portrait { max-width: 200px; } }

  /* FAQ */
  .faq { max-width: 860px; border-top: 1px solid var(--line-strong); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-size: 20px; letter-spacing: -0.015em; position: relative; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-family: var(--mono); font-size: 22px; color: var(--muted); transition: transform .2s; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details p { color: var(--muted); padding: 0 0 24px; max-width: 64ch; font-weight: 400; }

  /* Contact */
  .contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .contact h2 { margin-bottom: 24px; }
  form.card { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 4px; padding: 28px; display: grid; gap: 16px; }
  label { display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .03em; }
  input, textarea, select { font: 400 16px var(--sans); color: var(--text); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); width: 100%; }
  textarea { min-height: 120px; resize: vertical; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-alt { margin-top: 32px; display: grid; gap: 6px; }
  @media (max-width: 860px) { .contact, .row2 { grid-template-columns: 1fr; } }

  footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }
  .foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .system .pulse { animation: none; } .feed-row { transition: none; } }

  .about.solo { grid-template-columns: 1fr; }
  .crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 28px; }
  .crumbs a { color: var(--muted); }
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .cards a.card { display: block; text-decoration: none; padding: 24px; border: 1px solid var(--line-strong); background: var(--panel); }
  .cards a.card p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }
  .ex { border: 1px solid var(--line-strong); background: var(--panel); padding: 28px; max-width: 760px; }
  .ex .mono { color: var(--muted); font-size: 13px; }
  .ex p { margin: 12px 0 0; }
  .list { max-width: 760px; padding-left: 20px; color: var(--body-ink); }
  .list li { margin-bottom: 10px; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 8px; font-size: 15px; }
  .foot-links a { color: var(--muted); }
  .post p { margin: 0 0 18px; }
  .post h2 { font-size: clamp(24px, 3.4vw, 32px); max-width: none; margin: 40px 0 14px; line-height: 1.2; }
  .post .ex { margin: 22px 0 8px; }
  .post .ex p { font-size: 17px; }
  .post .list { margin: 0 0 18px; }
  .cards a.card h3 { margin: 0; }
