/* ============================================================
   ARGUS — Sovereign Intelligence Platform
   Design language: serif display + grotesk body + mono spec labels,
   hairline borders, cursor-aware glow, restrained motion.
   References: anthropic / anduril / palantir / linear / modal
   ============================================================ */

:root {
  --bg: #05050a;
  --bg-2: #08080f;
  --surface: rgba(255, 255, 255, 0.022);
  --surface-2: rgba(255, 255, 255, 0.045);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --accent: #127CA3;
  --accent-2: #46A1B1;
  --accent-glow: rgba(70, 161, 177, 0.5);
  --gold: #E8C84A;
  --gold-dark: #C5A028;
  --text: #ececf1;
  --text-2: #c2c2cc;
  --muted: #94949e;
  --muted-2: #5e5e6a;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain — barely there */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; }

a { color: var(--accent-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--text); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; height: 68px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, height .35s ease;
}
.nav.scrolled {
  height: 58px;
  background: rgba(5, 5, 10, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 32px; width: 32px; object-fit: contain; }
.nav-brand .word {
  font-family: var(--mono); font-weight: 600; letter-spacing: 0.3em;
  font-size: 13px; color: var(--text);
}
.nav-brand .word span { color: var(--accent-2); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding: 7px 13px; border-radius: 6px; transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::before { content: "/ "; color: var(--accent-2); }
.nav-links a.cta {
  color: #0a0a0f; background: var(--text); margin-left: 14px;
  font-weight: 600; border-radius: 99px; padding: 9px 18px;
}
.nav-links a.cta:hover { background: #fff; box-shadow: 0 0 24px rgba(255,255,255,0.18); }
.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); color: var(--text); font-size: 18px; padding: 4px 12px; border-radius: 6px; cursor: pointer; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 36px; }
section { padding: 110px 0; position: relative; }
section.tight { padding: 56px 0; }
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* Spec-sheet eyebrow */
.kicker {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2);
  margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: "["; color: var(--muted-2); letter-spacing: 0; }
.kicker::after { content: "]"; color: var(--muted-2); letter-spacing: 0; }
.kicker.gold { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: bold; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 24px; }
h3 { font-size: 21px; margin-bottom: 10px; line-height: 1.3; }
.lede { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 760px; font-weight: 400; }
p.body { font-size: 16.5px; color: var(--muted); max-width: 740px; margin-bottom: 20px; }
strong { color: var(--text-2); font-weight: 600; }
.em-accent { color: var(--accent-2); }
.em-gold { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 90px; overflow: hidden; position: relative;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 50% 28%, rgba(18, 124, 163, 0.13), transparent 65%),
    radial-gradient(ellipse 35% 30% at 78% 80%, rgba(232, 200, 74, 0.035), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -2.5%, 0) scale(1.04); }
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.45;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 68% 68% at 50% 38%, black 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at 50% 38%, black 25%, transparent 72%);
}
.hero .wrap > * { animation: heroIn .9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero .wrap > *:nth-child(1) { animation-delay: .05s; }
.hero .wrap > *:nth-child(2) { animation-delay: .15s; }
.hero .wrap > *:nth-child(3) { animation-delay: .25s; }
.hero .wrap > *:nth-child(4) { animation-delay: .35s; }
.hero .wrap > *:nth-child(5) { animation-delay: .45s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero .logo-mark { width: 110px; margin-bottom: 40px; filter: drop-shadow(0 0 32px rgba(70,161,177,0.4)); }
.hero h1 .thin { color: var(--muted); font-weight: normal; font-style: italic; }
.hero .tagline {
  font-family: var(--mono); letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--accent-2); font-size: 12.5px; margin: 26px 0 28px;
}
.hero .lede { margin-bottom: 44px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 99px; display: inline-block;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--text); color: #0a0a0f; }
.btn-primary:hover { background: #fff; color: #000; box-shadow: 0 0 36px rgba(255,255,255,0.22); }
.btn-ghost { border: 1px solid var(--hairline-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(70,161,177,0.05); }
.btn-gold { background: var(--gold-dark); color: #0a0a0f; }
.btn-gold:hover { background: var(--gold); }

/* ---------- Capability ticker ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 18px 0; position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track { display: inline-block; animation: tick 46s linear infinite; }
.ticker span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted-2); padding: 0 28px;
}
.ticker span::after { content: "◆"; color: var(--accent); font-size: 8px; margin-left: 56px; vertical-align: 2px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats — spec sheet ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--hairline-2); border-bottom: 1px solid var(--hairline-2);
}
.stat { padding: 36px 28px 32px; border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--mono); font-size: 40px; font-weight: 500;
  color: var(--text); line-height: 1; letter-spacing: -0.03em;
}
.stat .num.gold { color: var(--gold); }
.stat .label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2); margin-top: 14px; line-height: 1.6;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 34px 30px; position: relative; overflow: hidden;
  transition: border-color .3s ease, background .3s ease;
}
.card:hover { border-color: var(--hairline-2); background: var(--surface-2); }
/* Cursor-aware spotlight (Linear-style) */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(70,161,177,0.09), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.card:hover::after { opacity: 1; }
.card h3 { color: var(--text); }
.card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.card .index {
  position: absolute; top: 26px; right: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2);
}
.card.glow-top::before, .card.gold-line::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
}
.card.glow-top::before { background: linear-gradient(90deg, transparent, var(--accent-2), transparent); opacity: .6; }
.card.gold-line::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.card .tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px;
  border: 1px solid var(--hairline-2); color: var(--accent-2); margin-bottom: 18px;
}
.card .tag.gold { color: var(--gold); border-color: rgba(232,200,74,0.3); }
/* Hidden legacy emoji icons */
.card .icon { display: none; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .visual {
  border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface); padding: 38px;
  position: relative; overflow: hidden;
}
.split .visual::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-2), transparent);
}

/* ---------- Flow / pipeline ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow .step {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  padding: 11px 16px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 8px; color: var(--text-2); text-transform: uppercase;
  transition: border-color .25s ease, color .25s ease;
}
.flow .step:hover { border-color: var(--hairline-2); }
.flow .step.hot { border-color: rgba(70,161,177,0.45); color: var(--accent-2); background: rgba(70,161,177,0.05); }
.flow .step.gate { border-color: rgba(232,200,74,0.4); color: var(--gold); background: rgba(232,200,74,0.04); }
.flow .arrow { color: var(--muted-2); font-size: 13px; font-family: var(--mono); }

/* ---------- Comparison table ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; text-align: left; color: var(--muted);
  padding: 14px 18px; border-bottom: 1px solid var(--hairline-2);
  border-top: 1px solid var(--hairline-2);
}
.tbl td {
  padding: 17px 18px; font-size: 15px; color: var(--muted);
  border-bottom: 1px solid var(--hairline); vertical-align: top; line-height: 1.6;
}
.tbl tr { transition: background .2s ease; }
.tbl tbody tr:hover, .tbl tr:hover { background: var(--surface); }
.tbl td:first-child { color: var(--text); font-weight: 600; font-family: var(--sans); }
.tbl .good { color: var(--green); }
.tbl .bad { color: var(--red); }
.tbl .mid { color: var(--amber); }

/* ---------- Quote / callout ---------- */
.callout {
  border: 1px solid var(--hairline); border-left: 2px solid var(--gold);
  background: var(--surface);
  border-radius: 0 14px 14px 0; padding: 40px 48px; max-width: 880px;
}
.callout p { font-family: var(--serif); font-size: 23px; line-height: 1.55; color: var(--text-2); font-style: italic; letter-spacing: -0.01em; }
.callout .who { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-top: 20px; font-style: normal; }

.principle {
  display: flex; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--hairline);
}
.principle:last-child { border-bottom: none; }
.principle .no {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--gold);
  letter-spacing: 0.1em; min-width: 44px; padding-top: 6px;
}
.principle h3 { margin-bottom: 7px; }
.principle p { color: var(--muted); max-width: 740px; font-size: 15.5px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 38px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--accent-2), rgba(70,161,177,0.04));
}
.t-item { position: relative; padding-bottom: 46px; }
.t-item::before {
  content: ""; position: absolute; left: -35px; top: 8px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-2);
}
.t-item.gold::before { border-color: var(--gold); box-shadow: 0 0 16px rgba(232,200,74,0.35); }
.t-item .when { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); }
.t-item.gold .when { color: var(--gold); }
.t-item h3 { margin: 8px 0 4px; }
.t-item .role { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-bottom: 10px; letter-spacing: 0.04em; }
.t-item p { color: var(--muted); font-size: 15.5px; max-width: 740px; }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  padding: 9px 18px; border-radius: 99px; border: 1px solid var(--hairline-2);
  color: var(--text-2); background: var(--surface);
  transition: border-color .2s ease;
}
.badge:hover { border-color: var(--accent-2); }
.badge.gold { border-color: rgba(232,200,74,0.35); color: var(--gold); }

/* ---------- Pantheon ---------- */
.pantheon { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.dom {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 28px 26px; position: relative; overflow: hidden;
  transition: border-color .3s ease, background .3s ease;
}
.dom:hover { border-color: rgba(232,200,74,0.35); background: var(--surface-2); }
.dom::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(232,200,74,0.06), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.dom:hover::after { opacity: 1; }
.dom .greek { font-family: var(--serif); font-size: 21px; font-weight: bold; color: var(--gold); letter-spacing: -0.01em; }
.dom .duty { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin: 6px 0 14px; }
.dom p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; padding: 130px 0; position: relative; overflow: hidden;
  border-top: 1px solid var(--hairline);
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(18,124,163,0.12), transparent 70%);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lede { margin: 0 auto 44px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline); padding: 70px 0 44px; background: var(--bg-2);
  overflow: hidden;
}
.foot-word {
  font-family: var(--serif); font-weight: bold;
  font-size: clamp(90px, 16vw, 220px); line-height: 0.85; letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  user-select: none; pointer-events: none;
  margin: -10px 0 56px -4px;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
footer .word { font-family: var(--mono); font-weight: 600; letter-spacing: 0.3em; font-size: 13px; }
footer p, footer li { font-size: 13.5px; color: var(--muted-2); line-height: 1.8; }
footer ul { list-style: none; margin-top: 16px; }
footer li { margin-bottom: 8px; }
footer li a { color: var(--muted); }
footer li a:hover { color: var(--text); }
footer h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.foot-legal {
  border-top: 1px solid var(--hairline); padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted-2);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(0.16,1,0.3,1), transform .8s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 200px 0 90px; position: relative; overflow: hidden; }
.page-hero .hero-bg, .page-hero .hero-grid { position: absolute; inset: 0; z-index: -1; }
.page-hero h1 { animation: heroIn .9s cubic-bezier(0.16,1,0.3,1) .1s both; }
.page-hero .kicker { animation: heroIn .9s cubic-bezier(0.16,1,0.3,1) both; }
.page-hero .lede { animation: heroIn .9s cubic-bezier(0.16,1,0.3,1) .2s both; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav { padding: 0 22px; }
  .nav, .nav.scrolled {
    background: rgba(5,5,10,0.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 16px 22px 26px;
    background: rgba(5,5,10,0.97); border-bottom: 1px solid var(--hairline);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; }
  .nav-links a.cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  section { padding: 72px 0; }
  .wrap { padding: 0 22px; }
  .hero { padding-top: 120px; }
  .page-hero { padding-top: 150px; }
  .stat { padding: 26px 18px 24px; }
  .stat .num { font-size: 30px; }
  .callout { padding: 28px 26px; }
  .callout p { font-size: 19px; }
}
