@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0e192b;
  --bg-raised: #142238;
  --line: rgba(247, 246, 243, 0.14);
  --line-strong: rgba(247, 246, 243, 0.3);
  --text: #f7f6f3;
  --muted: #a3b1c2;
  --accent: #38e095;
  --wrap: 1120px;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 25, 43, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; padding-bottom: 4px; }
.nav { display: flex; gap: 30px; font-size: 1rem; font-weight: 400; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.nav a.nav-cta { color: var(--accent); }

/* Typography */
.eyebrow {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 20ch; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.4rem); color: var(--muted); max-width: 54ch; margin-top: 24px; text-wrap: pretty; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 104px 0 56px; }
.hero h1 { max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 500; font-size: 1.05rem; text-decoration: none;
  border: 1.5px solid var(--line-strong); transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #5be8aa; border-color: #5be8aa; }
.flow { display: block; width: 100%; max-width: 760px; height: auto; margin-top: 88px; }

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; }
.section-intro { color: var(--muted); max-width: 56ch; margin-top: 20px; }

.grid { display: grid; gap: 20px; margin-top: 52px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; background: var(--bg-raised); }
.card p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.card .num { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); display: block; margin-bottom: 18px; }

.statement {
  margin-top: 52px; padding-left: 22px; border-left: 3px solid var(--accent);
  font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; max-width: 36ch;
}

.plain-list { list-style: none; margin: 40px 0 0; padding: 0; max-width: 60ch; }
.plain-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.plain-list li:first-child { border-top: 1px solid var(--line); }

/* Architecture strip */
.arch { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: stretch; gap: 0; margin-top: 52px; }
.arch-arrow { align-self: center; width: 56px; height: 2px; background: var(--line-strong); position: relative; }
.arch-arrow::after {
  content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px;
  border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg);
}
.arch .card.engine { border-color: var(--accent); }
.arch .stack { display: grid; gap: 20px; }
.label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 12px; }
.engine .label { color: var(--accent); }

/* Audit */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 52px; }
.split .stack { display: grid; gap: 28px; }
.split .stack p { color: var(--muted); margin-top: 6px; }
.log {
  margin: 0; padding: 26px 28px; border-radius: 14px; border: 1px solid var(--line);
  background: #0a1322; font-family: var(--mono); font-size: 0.92rem; line-height: 1.75; overflow-x: auto;
}
.log .k { color: var(--accent); }
.log .c { color: var(--muted); }
.log hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* Contact */
.contact { text-align: center; }
.contact h2, .contact .section-intro { margin-left: auto; margin-right: auto; }
.contact .hero-actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.todo { color: #ffcf70; font-family: var(--mono); font-size: 0.92em; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch-arrow { width: 2px; height: 36px; justify-self: center; }
  .arch-arrow::after { right: -3px; top: auto; bottom: -1px; transform: rotate(135deg); }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 40px; }
  .flow { margin-top: 60px; }
}
@media (max-width: 620px) {
  .nav a:not(.nav-cta) { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}
