/* ==========================================================================
   Threeum Defense — enterprise visual system
   Restrained, precise, minimal. Generous whitespace, strong typography,
   fine hairline dividers, muted slate metadata, one deliberate rich-blue accent.
   Original design — inspired by (not copied from) leading research/dev sites.
   ========================================================================== */

:root {
  /* Ink & slate (the palette is mostly grayscale by design) */
  --ink-900: #0a0c10;   /* headings, near-black */
  --ink-800: #14171d;
  --ink-700: #242832;   /* body text */
  --slate-600: #4a515e; /* strong secondary */
  --slate-500: #626b7a; /* metadata */
  --slate-400: #8a92a1; /* muted */
  --slate-300: #aeb5c2;

  /* One deliberate rich-blue accent — used sparingly */
  --accent: #2450e6;
  --accent-strong: #1a3ec2;
  --accent-100: #dbe3fd;
  --accent-050: #eef2fe;

  /* Hairlines & surfaces */
  --line: #ebedf1;      /* primary hairline */
  --line-2: #e0e3ea;    /* stronger divider */
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f4f6f9;
  --ink-surface: #0b0e14; /* dark blocks (code) */

  /* Status (quiet, accessible) */
  --ok-600: #0f7a51;   --ok-050: #eaf6f0;
  --warn-700: #8a5a00; --warn-050: #fbf3e2;
  --info-700: #1a3ec2; --info-050: #eef2fe;
  --danger-700: #a3271c; --danger-050: #fbeae7;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-body: 16px;
  --fs-control: 14px;

  /* Shape & space */
  --maxw: 1140px;
  --maxw-text: 720px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10,12,16,.05);
  --shadow-pop: 0 12px 40px rgba(10,12,16,.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 640; letter-spacing: -0.021em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.5rem); letter-spacing: -0.03em; font-weight: 680; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); letter-spacing: -0.026em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .35em 0; }
strong { color: var(--ink-800); font-weight: 620; }
code, kbd, pre { font-family: var(--font-mono); font-size: .9em; }
hr, .rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Accessibility */
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--surface-2); }
.divider { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.measure { max-width: var(--maxw-text); }
.center { text-align: center; }

.kicker, .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600; color: var(--slate-500); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--slate-600); max-width: 64ch; }
.muted { color: var(--slate-400); }
.slate { color: var(--slate-500); }

/* Header / nav — sparse */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 640; color: var(--ink-900); font-size: 1.03rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; color: var(--ink-900); }
.brand__mark { width: 26px; height: 26px; flex: none; }
.nav__links { display: none; gap: 2px; margin-left: 6px; }
.nav__links a { color: var(--slate-600); font-size: var(--fs-control); font-weight: 500; padding: 8px 13px; border-radius: 7px; }
.nav__links a:hover { color: var(--ink-900); background: var(--surface-3); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--ink-900); font-weight: 560; }
.nav__spacer { flex: 1 1 auto; }
.nav__cta { display: none; gap: 8px; align-items: center; }
.nav__toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; cursor: pointer; color: var(--ink-700); }
@media (min-width: 980px) { .nav__links, .nav__cta { display: flex; } .nav__toggle { display: none; } }
.mobile-menu { display: none; border-bottom: 1px solid var(--line); background: var(--surface); }
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu a { display: block; padding: 15px 28px; color: var(--ink-700); font-weight: 500; border-top: 1px solid var(--line); }
.mobile-menu a:hover { background: var(--surface-2); text-decoration: none; }
.mobile-menu .btn { margin: 16px 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: var(--fs-control); font-weight: 560; line-height: 1; padding: 11px 17px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink-800); border-color: var(--line-2); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--slate-300); color: var(--ink-900); }
.btn--ghost { background: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; }
.btn--ghost:hover { color: var(--accent-strong); }
.btn--sm { padding: 8px 13px; }
.btn--lg { padding: 13px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.arrow-link { font-weight: 560; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link::after { content: "→"; transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* Cards — flat, hairline, used sparingly */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card--link { transition: border-color .15s ease, box-shadow .15s ease; }
.card--link:hover { border-color: var(--line-2); box-shadow: var(--shadow-pop); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* Hairline feature rows (replaces card overload) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (min-width: 760px) { .row { grid-template-columns: 240px 1fr; gap: 48px; } }
.row__title { font-size: 1.15rem; color: var(--ink-900); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.row__title .num { color: var(--slate-300); font-variant-numeric: tabular-nums; margin-right: 10px; font-weight: 500; }
.row__body { color: var(--slate-600); }
.row__body p:last-child { margin-bottom: 0; }

/* Badges / labels */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--experimental { background: var(--warn-050); color: var(--warn-700); border-color: #efe0bd; }
.badge--alpha { background: var(--accent-050); color: var(--accent-strong); border-color: var(--accent-100); }
.badge--research { background: var(--accent-050); color: var(--info-700); border-color: var(--accent-100); }
.badge--pending { background: var(--surface-3); color: var(--slate-500); border-color: var(--line-2); }
.badge--ok { background: var(--ok-050); color: var(--ok-600); border-color: #c6e6d6; }
.badge--danger { background: var(--danger-050); color: var(--danger-700); border-color: #eec7c1; }
.badge--plain { background: transparent; border-color: var(--line-2); color: var(--slate-500); }

/* Hero */
.hero { padding: 108px 0 72px; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-bottom: .3em; }
.hero .lead { font-size: 1.3rem; color: var(--slate-600); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .85rem; color: var(--slate-500); }

/* Tables (content) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-500); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }

/* Comparison table (models) */
.cmp { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp table { font-size: .92rem; }
.cmp th.model, .cmp td.model { white-space: nowrap; }
.cmp td .fam { color: var(--slate-400); font-size: .82rem; font-family: var(--font-mono); }

/* Code */
pre { background: var(--ink-surface); color: #e7ecf5; border-radius: var(--radius); padding: 20px 22px; overflow-x: auto; font-size: .86rem; line-height: 1.6; margin: 0 0 1rem; border: 1px solid #11151d; }
:not(pre) > code { background: var(--surface-3); color: var(--ink-800); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); font-size: .88em; }
.code-block { margin: 0 0 18px; }
.code-block__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.code-block__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); font-weight: 600; }

/* Notes / callouts — quiet, informational (not alarming) */
.note { border: 1px solid var(--line-2); background: var(--surface-2); padding: 16px 18px; border-radius: var(--radius-sm); font-size: .95rem; color: var(--slate-600); }
.note strong { color: var(--ink-800); }
.note--accent { border-color: var(--accent-100); background: var(--accent-050); }
.note--warn { border-color: #efe0bd; background: var(--warn-050); }
.note--warn strong { color: var(--warn-700); }

/* Feature row (icon + text) */
.feature { display: flex; gap: 15px; }
.feature__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-050); color: var(--accent); display: grid; place-items: center; }
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.02rem; margin-bottom: .25em; }
.feature p { color: var(--slate-500); margin: 0; font-size: .93rem; }

/* Two-column status: Today / In development */
.status-cols { display: grid; gap: 40px; }
@media (min-width: 820px) { .status-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.status-col h3 { display: flex; align-items: center; gap: 10px; }
.check-list, .plan-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li, .plan-list li { position: relative; padding-left: 28px; margin: 12px 0; color: var(--slate-600); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 8px; border-left: 2px solid var(--ok-600); border-bottom: 2px solid var(--ok-600); transform: rotate(-45deg); }
.plan-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border: 1.5px solid var(--slate-400); border-radius: 50%; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 64px 0 44px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__col h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-400); margin-bottom: 14px; font-weight: 600; }
.footer__col a { display: block; color: var(--slate-500); font-size: .9rem; padding: 5px 0; }
.footer__col a:hover { color: var(--ink-900); }
.footer__bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--slate-400); font-size: .84rem; }

/* Page head */
.page-head { padding: 88px 0 40px; }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: .6em; }

/* Spec rows (model detail / kv) */
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec__row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.spec__row:last-child { border-bottom: 0; }
.spec__key { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); font-weight: 600; }
.spec__val { color: var(--ink-700); }
.spec__val .fine { color: var(--slate-400); font-size: .85rem; }
@media (max-width: 560px) { .spec__row { grid-template-columns: 1fr; gap: 3px; } }

/* Chips */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .8rem; padding: 4px 11px; border-radius: 999px; background: var(--surface); color: var(--slate-600); border: 1px solid var(--line-2); }

/* Model catalog grid */
.model-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 680px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .model-grid { grid-template-columns: repeat(3, 1fr); } .model-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.model-cell { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: background .15s ease; }
.model-cell:hover { background: var(--surface-2); }
.model-cell__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.model-cell h3 { margin: 0; font-size: 1.1rem; }
.model-cell .fam { font-family: var(--font-mono); font-size: .78rem; color: var(--slate-400); }
.model-cell p { margin: 0; font-size: .92rem; color: var(--slate-500); }
.model-cell__foot { margin-top: auto; padding-top: 8px; }

/* Loop (plain-language pipeline) */
.pipeline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pipeline__step { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 7px 15px; font-size: .84rem; font-weight: 500; color: var(--slate-600); }
.pipeline__sep { color: var(--slate-300); }

/* Pricing */
.price-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 780px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { background: var(--surface); padding: 28px; display: flex; flex-direction: column; }
.price-card__amount { font-size: 1.7rem; font-weight: 680; color: var(--ink-900); letter-spacing: -0.02em; margin: 12px 0 4px; }
.price-card__amount small { font-size: .8rem; font-weight: 500; color: var(--slate-400); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.price-card li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--slate-600); margin: 8px 0; }
.price-card li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.price-card .btn { margin-top: auto; }
.price-card--featured { box-shadow: inset 0 3px 0 var(--accent); }

/* Utilities */
.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}.mt-4{margin-top:4rem}
.mb-0{margin-bottom:0}
.stack-lg > * + * { margin-top: 3.5rem; }
.maxw-text { max-width: var(--maxw-text); }
.nowrap { white-space: nowrap; }
