/* Lintang landing page, on the Lintang design system (see docs/design-system.md).
   Sharp corners, a 4 px spacing grid, hairline borders, navy for structure and gold only as a
   signal. No scripts, no web fonts. */
:root {
  /* Colour */
  --navy-900: #0E1433; --navy-800: #141C44; --navy-700: #1E2856; --navy-600: #2A3568;
  --gold-500: #F5B833; --gold-100: #FDF3D8;
  --ink: #0F1424; --ink-2: #3A4256; --ink-3: #6A7186;
  --surface: #FFFFFF; --surface-2: #F7F6F1; --line: #E3E1D8; --line-strong: #CFCCC0;
  --critical: #B42318; --critical-bg: #FEE4E2;
  /* Type */
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  /* Space: 4 px steps */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --radius: 0;
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); }
img { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
p, dl, dd, figure { margin: 0; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: 0.86em; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.frame { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* Labels: small mono caps, the system's way of naming things. */
.label { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.label-on-dark { color: #9AA0C3; }
.dot { width: 8px; height: 8px; background: var(--gold-500); }
.tag { display: inline-block; padding: 1px var(--s2); border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.tag-accent { background: var(--gold-100); border-color: #F0D58A; color: #6B4A00; }

/* Buttons: rectangles. Primary is navy; gold is never a fill. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); height: 48px; padding: 0 var(--s5); border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease; }
.btn-sm { height: 36px; padding: 0 var(--s4); font-size: 14px; }
.btn-primary { background: var(--navy-800); color: #FFFFFF; }
.btn-primary:hover { background: var(--navy-600); }
.btn-primary .arrow { color: var(--gold-500); transition: transform 0.12s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.link-quiet { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.link-quiet:hover { color: var(--ink); }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: var(--s7); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--navy-800); }
.brand-on-dark { color: #FFFFFF; }
.nav-links { display: flex; gap: var(--s6); }
.nav-links a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }

/* Hero: a light field with a faint grid, the product panel on the right. */
.hero { border-bottom: 1px solid var(--line); background:
  linear-gradient(rgba(20, 28, 68, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(90deg, rgba(20, 28, 68, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
  var(--surface-2); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; padding: var(--s9) 0 var(--s8); }
.hero-copy h1 { margin-top: var(--s5); font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -0.04em; color: var(--navy-900); }
.lede { margin-top: var(--s5); max-width: 36em; font-size: 18px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.panel { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 12px 12px 0 var(--navy-800); }
.panel-bar { display: flex; justify-content: space-between; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 12px; }
.code { margin: 0; padding: var(--s3) 0; overflow-x: auto; white-space: pre; font-size: 12.5px; line-height: 1.8; border-bottom: 1px solid var(--line); }
.code .ln { display: inline-block; width: 44px; padding-right: var(--s3); text-align: right; color: #A3A8B6; user-select: none; }
.code .ln.hit { color: var(--navy-800); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold-500); }
.code .hit { background: #FFF6DB; }
.finding { padding: var(--s4); display: grid; gap: var(--s3); font-size: 14px; }
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: 13px; }
.finding-head .sev { margin-left: auto; }
.sev { padding: 2px var(--s2); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.sev-critical { background: var(--critical-bg); color: var(--critical); }
.finding-title { font-weight: 650; font-size: 15px; line-height: 1.4; }
.finding-spec { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s2) var(--s3); }
.finding-spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.finding-spec code { background: var(--surface-2); padding: 1px 4px; border: 1px solid var(--line); }
.fix { margin: 0; padding: var(--s3); background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; white-space: pre; font-size: 12px; }
.panel figcaption { padding: var(--s2) var(--s4); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.02em; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); border-bottom: 0; background: var(--surface); }
.fact { display: grid; gap: var(--s1); padding: var(--s4) var(--s5); border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact dt { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.fact strong { font-size: 15px; font-weight: 600; color: var(--navy-900); }

/* Sections */
.section { padding: var(--s9) 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--surface-2); }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s7); max-width: 720px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy-900); }

/* Cells: a grid that shares its borders, like a spec sheet. */
.cells { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); background: var(--surface); }
.cells-3 { grid-template-columns: repeat(3, 1fr); }
.cells-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell { padding: var(--s6); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transition: background 0.12s ease; }
.cell:hover { background: #FCFBF8; }
.cell h3 { font-size: 18px; color: var(--navy-900); margin-bottom: var(--s3); }
.cell p { font-size: 15px; color: var(--ink-2); }
.step { display: block; margin-bottom: var(--s5); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: var(--s3); border-bottom: 2px solid var(--gold-500); width: fit-content; }

.section-dark { background: var(--navy-800); color: #E6E8F2; border-bottom: 0; }
.story { display: grid; gap: var(--s6); }
.story-body { display: grid; grid-template-columns: auto 1fr; gap: var(--s6); align-items: start; max-width: 900px; padding-top: var(--s6); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.story-body p { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; letter-spacing: -0.01em; }

.pricing { display: grid; grid-template-columns: 5fr 7fr; border: 1px solid var(--line-strong); background: var(--surface); }
.price-main { display: grid; gap: var(--s4); align-content: start; justify-items: start; padding: var(--s6); border-right: 1px solid var(--line-strong); background: var(--surface-2); }
.price { display: flex; align-items: flex-end; gap: var(--s3); }
.amount { font-size: 64px; font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; color: var(--navy-900); }
.per { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.spec > div { display: grid; grid-template-columns: 180px 1fr; gap: var(--s4); padding: var(--s5) var(--s6); border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.spec dd { font-size: 15px; color: var(--ink); }

/* Footer */
.footer { background: var(--navy-900); color: #B9BED6; padding: var(--s8) 0 var(--s5); }
.footer-row { display: flex; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.footer-brand p { margin-top: var(--s3); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s6); align-items: center; }
.footer-links a { display: inline-flex; align-items: center; gap: var(--s2); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: #FFFFFF; }
.footer-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.footer-fine { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; color: #7F86A8; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding: var(--s8) 0 var(--s7); gap: var(--s7); }
  .panel { box-shadow: 8px 8px 0 var(--navy-800); margin-right: 8px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cells-3, .pricing { grid-template-columns: minmax(0, 1fr); }
  .price-main { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .section { padding: var(--s8) 0; }
  .cells-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .frame { width: calc(100% - 32px); }
  .nav-actions .btn { display: none; }
  .hero-copy h1 { font-size: clamp(34px, 10.5vw, 48px); }
  .actions .btn { flex: 1 1 100%; }
  .panel { box-shadow: 6px 6px 0 var(--navy-800); margin-right: 6px; }
  .code { font-size: 12px; }
  .code .ln { width: 36px; }
  .finding-spec { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .finding-spec dd { margin-bottom: var(--s2); }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: var(--s1); padding: var(--s4); }
  .story-body { grid-template-columns: 1fr; }
  .cell { padding: var(--s5); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Error pages share the landing page's system. */
.error-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-2); }
.error-main { flex: 1; display: grid; align-items: center; background:
  linear-gradient(rgba(20, 28, 68, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(90deg, rgba(20, 28, 68, 0.045) 1px, transparent 1px) 0 0 / 48px 48px; }
.error-body { padding: var(--s9) 0; }
.error-body h1 { margin-top: var(--s5); max-width: 14em; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; color: var(--navy-900); }

/* The name is one line now; set it as a statement. */
.story-body { align-items: center; }
.story-body p { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.25; letter-spacing: -0.025em; color: #FFFFFF; max-width: 22em; }
