/* ============================================================
   Planck Defense & Aerospace — Design System v4
   Fine-art editorial. Near-black canvas, Newsreader serif
   display, full-bleed classical paintings under dark veils,
   cool gray type, a single warm gold whisper. After planckvpn.
   ============================================================ */

:root {
  --bg: #0A0B0D;
  --bg-2: #101113;
  --surface: #141518;
  --surface-2: #1A1C20;
  --border: rgba(255, 255, 255, 0.09);
  --border-faint: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #EDEEF2;
  --text-2: #B4B8C0;
  --text-3: #8A8F99;
  --text-4: #5E636D;
  --accent: #C9A87C;
  --accent-strong: #E0C79C;
  --check: rgba(201, 168, 124, 0.85);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace;
  --container: 1200px;
  --measure: 1080px;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --veil: radial-gradient(62% 52% at 50% 44%, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.16) 55%, transparent 100%);
  --scrim: linear-gradient(180deg, rgba(10,11,13,0.55) 0%, rgba(10,11,13,0.15) 26%, rgba(10,11,13,0.55) 70%, var(--bg) 100%);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(201, 168, 124, 0.24); color: #fff; }

img, svg { max-width: 100%; display: block; }

a { color: var(--text); text-decoration: none; transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
a:hover { color: #fff; }

/* ---------- Layout ---------- */

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

.section { padding: 112px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border-faint); border-bottom: 1px solid var(--border-faint); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-2-centered { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: calc(66.666% - 7px); margin-inline: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
.split-reverse { grid-template-columns: 6fr 5fr; }

/* ---------- Typography ---------- */

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: #fff;
  text-wrap: balance;
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--text);
}

h1 { font-size: clamp(2.75rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 22px; }
h3 { font-size: 1.0625rem; margin-bottom: 10px; }
h4 { font-size: 0.95rem; margin-bottom: 8px; }

.lead {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 40em;
}

p { color: var(--text-3); font-size: 0.95rem; }
p + p { margin-top: 1em; }

strong { color: var(--text); font-weight: 500; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 22px;
}

.section-head { max-width: 640px; margin-bottom: 68px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1rem; }

.section .container > p { max-width: 44em; }

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--border-faint);
}
body { padding-top: 0; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #fff;
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-top: 4px;
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--text-2); font-size: 0.875rem; font-weight: 400; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.btn-primary { color: #0A0B0D; }
.nav-links a.btn-primary:hover { color: #0A0B0D; }

.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 7px; padding: 26px 0; }
.nav-item > a::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.5;
  transition: transform 0.3s var(--ease);
}
.nav-item:hover > a::after { transform: rotate(225deg) translateY(-1px); }

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  gap: 40px;
  padding: 26px 30px;
  background: rgba(16, 17, 19, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-menu-col { min-width: 210px; }
.nav-menu-col + .nav-menu-col { border-left: 1px solid var(--border-faint); padding-left: 40px; }
.nav-menu-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 14px;
}
.nav-menu a { display: block; padding: 7px 0; font-size: 0.86rem; color: var(--text-2); white-space: nowrap; }
.nav-menu a:hover { color: #fff; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; width: 26px; height: 20px; position: relative; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--text); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle-label span { top: 9px; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px;
  border-radius: 9999px;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-primary { background: #fff; color: #0A0B0D; }
.btn-primary:hover { background: rgba(255, 255, 255, 0.86); color: #0A0B0D; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: #fff; border-color: var(--border-strong); background: rgba(255, 255, 255, 0.07); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 0.84rem; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero (full-bleed painting) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 90px;
  overflow: hidden;
  text-align: center;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img, url("/assets/img/hero-storm.webp"));
  background-size: cover;
  background-position: center 44%;
  filter: brightness(0.74) saturate(1.03);
}
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--veil); }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--scrim); }
.hero .container { position: relative; z-index: 2; width: 100%; }

.hero-inner { max-width: 860px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 24px; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5); }
.hero .lead { margin: 0 auto 40px; color: rgba(237, 238, 242, 0.86); max-width: 34em; }
.hero .btn-group { justify-content: center; }
.hero-inner .eyebrow { color: var(--accent-strong); }

/* Hero entrance */
@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero .lead, .hero .btn-group,
.page-hero .eyebrow, .page-hero h1, .page-hero .lead, .page-hero .btn-group {
  animation: riseIn 1s var(--ease) both;
}
.hero h1, .page-hero h1 { animation-delay: 0.08s; }
.hero .lead, .page-hero .lead { animation-delay: 0.2s; }
.hero .btn-group, .page-hero .btn-group { animation-delay: 0.34s; }

/* ---------- Marquee (hero feature strip) ---------- */

.hero-badges { position: relative; z-index: 2; margin-top: 68px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 44s linear infinite; }
.marquee-track > * { flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(calc(-50% - 0px)); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
a.card { display: flex; flex-direction: column; color: inherit; }
a.card:hover { border-color: var(--border-strong); background: var(--surface-2); color: inherit; transform: translateY(-3px); }

.card h3 { color: #fff; }
.card p { font-size: 0.9rem; color: var(--text-3); line-height: 1.62; }

.card-icon {
  width: 42px; height: 42px; border-radius: 8px;
  background: rgba(201, 168, 124, 0.09);
  border: 1px solid rgba(201, 168, 124, 0.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--accent);
}
.card-icon svg { width: 19px; height: 19px; }

.card-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 22px;
  font-size: 0.85rem; font-weight: 500; color: var(--text);
  opacity: 0.72; transition: opacity 0.3s var(--ease), gap 0.3s var(--ease);
}
a.card:hover .card-link { opacity: 1; gap: 11px; }

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-4);
  border: 1px solid var(--border);
  border-radius: 9999px; padding: 5px 12px; margin-bottom: 20px;
}

/* ---------- Lists ---------- */

.feature-list { list-style: none; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 15px; color: var(--text-2); font-size: 0.95rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--check); border-bottom: 1.5px solid var(--check);
  transform: rotate(-45deg);
}

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 34px; list-style: none; }
.check-grid li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 0.92rem; }
.check-grid li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--check); border-bottom: 1.5px solid var(--check);
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.step { counter-increment: step; position: relative; padding-top: 56px; }
.step::before {
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-serif); font-size: 1.75rem; font-weight: 400;
  color: var(--accent); opacity: 0.9;
}
.step::after { content: ""; position: absolute; top: 20px; left: 52px; right: 8px; height: 1px; background: var(--border-faint); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1rem; color: #fff; }
.step p { font-size: 0.9rem; color: var(--text-3); }

/* ---------- Stats ---------- */

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value {
  font-family: var(--font-serif); font-size: clamp(2.4rem, 3.6vw, 3.1rem); font-weight: 400;
  letter-spacing: -0.01em; color: #fff; line-height: 1.05; margin-bottom: 12px;
}
.stat-label { font-size: 0.84rem; color: var(--text-3); }

/* ---------- Tables ---------- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 15px 22px; border-bottom: 1px solid var(--border-faint); }
.spec-table th { background: var(--surface-2); color: #fff; font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; }
.spec-table td { color: var(--text-3); }
.spec-table td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.spec-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-faint); }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border-faint); }
.faq details:first-child { border-top: 1px solid var(--border-faint); }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 48px 24px 0;
  font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; color: var(--text);
  position: relative; transition: color 0.3s var(--ease);
}
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-weight: 300; font-size: 1.15rem; color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 48px 26px 0; }
.faq details > div p { font-size: 0.95rem; line-height: 1.7; }

/* ---------- CTA band (painting-backed) ---------- */

.cta-band {
  position: relative;
  padding: 148px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border-faint);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--cta-img, url("/assets/img/sierra.webp"));
  background-size: cover; background-position: center 55%;
  filter: brightness(0.5) saturate(1);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10,11,13,0.55) 42%, rgba(10,11,13,0.72) 100%);
}
.cta-band .container { position: relative; z-index: 2; }
.section-alt + .cta-band { border-top: none; }
.cta-band h2 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); letter-spacing: -0.015em; max-width: 700px; margin: 0 auto 24px; color: #fff; }
.cta-band .lead { margin: 0 auto 40px; color: rgba(237, 238, 242, 0.82); }
.cta-band .btn-group { justify-content: center; }

/* ---------- Badges ---------- */

.badge-strip { display: flex; flex-wrap: wrap; gap: 0; }
.badge {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-4);
  padding: 8px 26px;
  position: relative;
  white-space: nowrap;
}
.hero-badges .badge::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); opacity: 0.5;
}
.section-tight .badge-strip { gap: 10px; }
.section-tight .badge {
  border: 1px solid var(--border-faint); border-radius: 9999px; padding: 8px 18px;
  color: var(--text-3);
}

/* ---------- Prose ---------- */

.prose { max-width: 720px; }
.prose h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-top: 60px; margin-bottom: 18px; }
.prose h3 { margin-top: 34px; }
.prose p { line-height: 1.75; }
.prose ul { list-style: none; margin: 18px 0; }
.prose ul li { position: relative; padding-left: 24px; margin-bottom: 11px; color: var(--text-3); font-size: 0.95rem; line-height: 1.65; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.8; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.contact-channel { display: flex; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--border-faint); }
.contact-channel:last-child { border-bottom: none; }
.contact-channel .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-channel h4 { margin-bottom: 4px; color: #fff; }
.contact-channel p { font-size: 0.9rem; color: var(--text-4); }
.contact-channel a { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-2); }
.contact-channel a:hover { color: #fff; }

.form-card { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--radius-lg); padding: 42px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 0.92rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: rgba(201, 168, 124, 0.5); box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.form-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}
.form-field select option { background-color: #141518; color: var(--text); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--text-4); margin-top: 14px; }

/* ---------- Footer ---------- */

.site-footer { position: relative; border-top: 1px solid var(--border-faint); padding: 88px 0 40px; overflow: hidden; }
.site-footer::after {
  content: "PLANCK"; position: absolute; left: 50%; bottom: -0.34em; transform: translateX(-50%);
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(120px, 22vw, 300px);
  letter-spacing: 0.04em; line-height: 1; color: rgba(255, 255, 255, 0.018);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.35fr 1fr 1.35fr; gap: 44px; margin-bottom: 68px; }
.footer-about p { font-size: 0.88rem; color: var(--text-4); max-width: 30em; margin-top: 22px; }
.footer-mails { list-style: none; margin-top: 24px; }
.footer-mails li { margin-bottom: 8px; }
.footer-mails a { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
.footer-mails a:hover { color: #fff; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-3); font-size: 0.86rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border-faint); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-4); }
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom nav a { font-size: 0.8rem; color: var(--text-3); }
.footer-bottom nav a:hover { color: #fff; }
.footer-heyai { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.78rem; letter-spacing: .02em; color: var(--text-3); text-decoration: none; }
.footer-heyai:hover { color: #fff; }
.prose code { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.86em; background: rgba(255,255,255,.05); border: 1px solid var(--border-faint); border-radius: 4px; padding: 1px 6px; word-break: break-word; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 0.9rem; line-height: 1.5; }
.form-status.is-ok { color: #7FB08A; }
.form-status.is-error { color: #E0685C; }

/* ---------- Page hero (interior, painting-backed) ---------- */

.page-hero {
  position: relative;
  padding: 168px 0 88px;
  border-bottom: 1px solid var(--border-faint);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--ph-img, url("/assets/img/cotopaxi-wide.webp"));
  background-size: cover; background-position: center 30%;
  filter: brightness(0.42) saturate(0.96);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,11,13,0.55) 0%, rgba(10,11,13,0.35) 40%, rgba(10,11,13,0.82) 100%),
              linear-gradient(90deg, rgba(10,11,13,0.5) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); margin-bottom: 22px; max-width: 720px; color: #fff; }
.page-hero .lead { max-width: 620px; color: rgba(237, 238, 242, 0.82); }
.page-hero .btn-group { margin-top: 38px; }

/* Per-page painting overrides */
.ph-aurora::before { background-image: url("/assets/img/hero-aurora.webp"); }
.ph-sierra::before { background-image: url("/assets/img/sierra-wide.webp"); }
.ph-cotopaxi::before { background-image: url("/assets/img/cotopaxi-wide.webp"); }

/* ---------- Detail blocks ---------- */

.detail-block { display: grid; grid-template-columns: 88px 1fr; gap: 34px; padding: 44px 0; border-bottom: 1px solid var(--border-faint); }
.detail-block:last-child { border-bottom: none; }
.detail-num { font-family: var(--font-serif); font-size: 1.3rem; color: var(--accent); opacity: 0.9; padding-top: 2px; }
.detail-block h3 { font-size: 1.2rem; color: #fff; }
.detail-block p { max-width: 62ch; }
.detail-block .check-grid { margin-top: 20px; }

/* ---------- Motion ---------- */

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--reveal-delay, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero .eyebrow, .hero h1, .hero .lead, .hero .btn-group,
  .page-hero .eyebrow, .page-hero h1, .page-hero .lead, .page-hero .btn-group { animation: none; }
}

:focus-visible { outline: 2px solid rgba(201, 168, 124, 0.7); outline-offset: 3px; border-radius: 3px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 48px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .section { padding: 78px 0; }
  .hero { min-height: 92vh; padding: 120px 0 44px; }
  .cta-band { padding: 104px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2-centered { width: 100%; grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .detail-block { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero { padding: 132px 0 68px; }
}

/* Nav collapses to a menu earlier than the layout, since the fuller bar needs room */
@media (max-width: 1000px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10, 11, 13, 0.98);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border); padding: 12px 32px 28px;
    display: none; max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links > li > a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 16px; width: 100%; height: 46px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-label span { transform: rotate(45deg); top: 9px; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-90deg); top: 0; }
  .nav-item > a { padding: 14px 0; width: 100%; }
  .nav-item > a::after { display: none; }
  .nav-menu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    display: block; background: transparent; border: none; box-shadow: none; padding: 0 0 10px 16px; gap: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav-menu-col + .nav-menu-col { border-left: none; padding-left: 0; }
  .nav-menu a { padding: 9px 0; color: var(--text-3); font-size: 0.95rem; }
  .nav-menu-label { margin-top: 14px; }
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.muted { color: var(--text-3); }
.accent { color: var(--accent); }

/* ============================================================
   Operator engine console: live agent event stream
   ============================================================ */
.op-console-section { position: relative; padding: 96px 0 108px; overflow: hidden; isolation: isolate; }
.op-console-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('/assets/img/cotopaxi-wide.webp') center/cover no-repeat;
  opacity: 0.42;
}
.op-console-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(10,11,13,0.40) 0%, rgba(10,11,13,0.76) 62%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(10,11,13,0.40) 20%, rgba(10,11,13,0.60) 76%, var(--bg) 100%);
}

.console {
  --k-col: 84px;
  max-width: 1040px;
  margin: 52px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16,18,22,0.78), rgba(8,9,13,0.85));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 50px 100px -40px rgba(0,0,0,0.9), 0 14px 40px -18px rgba(0,0,0,0.7);
  overflow: hidden;
  position: relative;
}
.console::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(201,168,124,0.7) 12%, rgba(201,168,124,0.7) 88%, transparent);
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
}
.console-title { color: var(--text-2); text-transform: uppercase; white-space: nowrap; }
.console-title .prompt { color: var(--accent); margin-right: 8px; }
.console-title .c-count { color: var(--text-4); }
.console-status { display: flex; align-items: center; gap: 12px; color: var(--text-3); white-space: nowrap; }
.console-status .sep { color: var(--text-4); }
.spinner {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid rgba(201,168,124,0.35); border-top-color: var(--accent);
  display: inline-block; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cbtn { border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; color: var(--text-3); font-size: 11px; }

.console-body {
  height: 464px; overflow: hidden; position: relative;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.92;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 90%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 90%, transparent 100%);
}
.console-stream { padding: 10px 16px; transition: transform 0.16s linear; will-change: transform; }
.console .tw-cursor { display: inline-block; width: 7px; height: 0.95em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: twBlink 1s steps(1) infinite; }
@keyframes twBlink { 50% { opacity: 0; } }
.console .ev-think .think-t { color: var(--text-3); }
.console .ev-think .spin { color: var(--accent); font-family: var(--font-mono); display: inline-block; }

.console-body:hover .console-stream { animation-play-state: paused; }
@keyframes consoleScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.ev { display: flex; gap: 14px; padding: 1px 0; }
.ev .k { flex: none; width: var(--k-col); color: var(--text-4); letter-spacing: 0.06em; }
.ev .t { flex: 1; min-width: 0; color: var(--text-2); word-break: break-word; }
.ev .u { color: #7c7f6e; }
.ev .host { color: #8f9483; }
.k-tool { color: #9a9382; }
.k-endpoint { color: var(--text-3); }
.k-finding { color: var(--accent); }
.k-agent { color: var(--accent-strong); }
.sev-low { color: var(--text-3); }
.sev-medium { color: #E0A85A; }
.sev-high { color: #E0A85A; }
.sev-critical { color: #E0665A; font-weight: 500; }
.ev .q { color: var(--accent); }
.ev .a { color: #7CB88A; }

@media (prefers-reduced-motion: reduce) {
  .console-stream { animation: none; }
  .spinner { animation: none; }
}
@media (max-width: 720px) {
  .op-console-section { padding: 64px 0 72px; }
  .console { --k-col: 66px; }
  .console-body { height: 384px; font-size: 11px; line-height: 1.85; }
  .console-status .hide-sm { display: none; }
}

/* ============================================================
   Split hero: headline left, live agent console right
   ============================================================ */
.hero--split { text-align: left; }
.hero--split .container { max-width: 1640px; padding: 0 48px; }
.hero--split .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.32fr);
  gap: 72px;
  align-items: center;
  width: 100%;
}
.hero--split .hero-inner { max-width: 540px; margin: 0; }
.hero--split .lead { margin: 0 0 36px; max-width: 40em; color: rgba(237, 238, 242, 0.86); }
.hero--split .btn-group { justify-content: flex-start; }
.hero-visual { min-width: 0; }
.hero-visual .console { margin: 0; max-width: 100%; }
.hero-visual .console-body { height: 372px; }
@media (max-width: 1100px) {
  .hero--split .container { max-width: var(--container); padding: 0 32px; }
  .hero--split .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; }
}
@media (max-width: 960px) {
  .hero--split .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero--split .hero-inner { max-width: 640px; }
  .hero-visual .console-body { height: 340px; }
}

/* Console tuning inside the split hero (narrower column) */
.hero-visual .console-head { font-size: 11px; gap: 12px; }
.hero-visual .console-status { gap: 10px; }
.hero-visual .cbtn { display: none; }

/* ============================================================
   Homepage: proof card, comparison table
   ============================================================ */
.finding-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.finding-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; flex-wrap: wrap; }
.finding-sev { font-weight: 600; letter-spacing: 0.05em; }
.finding-sev.crit { color: #E0665A; }
.finding-title { color: var(--text); }
.finding-body { padding: 20px; }
.chain { list-style: none; margin: 0 0 20px; padding: 0; font-family: var(--font-mono); font-size: 12.5px; }
.chain li { position: relative; padding: 0 0 15px 26px; color: var(--text-2); }
.chain li::before { content: ""; position: absolute; left: 5px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chain li::after { content: ""; position: absolute; left: 8px; top: 12px; bottom: 0; width: 1px; background: var(--border); }
.chain li:last-child { padding-bottom: 0; }
.chain li:last-child::after { display: none; }
.chain .step-k { color: var(--accent); }
.finding-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; border-top: 1px solid var(--border-faint); padding-top: 16px; font-size: 0.85rem; color: var(--text-2); }
.finding-meta span { display: block; color: var(--text-4); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.finding-note { margin: 14px 0 0; font-size: 0.76rem; color: var(--text-4); }

.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); font-weight: 500; }
.compare tbody th { font-weight: 500; color: var(--text); width: 172px; }
.compare td { color: var(--text-3); }
.compare .col-us { color: var(--text); background: rgba(201, 168, 124, 0.06); }
.compare thead th.col-us { color: var(--accent-strong); }

/* ============================================================
   Livened mega-menu (descriptions + hover motion)
   ============================================================ */
.nav-menu-wide .nav-menu-col { min-width: 252px; }
.nav-menu a { border-radius: 6px; padding: 8px 10px; margin: 0 -10px; transition: background 0.22s var(--ease), transform 0.22s var(--ease), color 0.22s var(--ease); }
.nav-menu a:hover { background: rgba(255, 255, 255, 0.045); transform: translateX(3px); }
.nav-menu a .nm-t { display: block; color: var(--text); font-size: 0.9rem; }
.nav-menu a .nm-desc { display: block; color: var(--text-4); font-size: 0.72rem; line-height: 1.4; margin-top: 2px; }
.nav-menu a:hover .nm-t { color: #fff; }
.nav-menu a:hover .nm-desc { color: var(--text-3); }

/* ============================================================
   Homepage definitional / entity block (GEO)
   Citation-friendly key-facts list. Additive, homepage-only.
   ============================================================ */
.def-facts {
  margin-top: 44px;
  border-top: 1px solid var(--border-faint);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.def-facts > div {
  padding: 22px 26px 22px 0;
  border-bottom: 1px solid var(--border-faint);
  border-right: 1px solid var(--border-faint);
}
.def-facts > div:nth-child(3n) { border-right: none; padding-right: 0; }
.def-facts > div { padding-left: 26px; }
.def-facts > div:nth-child(3n+1) { padding-left: 0; }
.def-facts dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.def-facts dd { color: var(--text-2); font-size: 0.9rem; line-height: 1.55; }

@media (max-width: 720px) {
  .def-facts { grid-template-columns: 1fr; }
  .def-facts > div,
  .def-facts > div:nth-child(3n),
  .def-facts > div:nth-child(3n+1) { border-right: none; padding: 18px 0; }
}

/* callout / note block (used on pricing, comparison, and guide pages) */
.note {
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
}
.note b, .note strong { color: var(--text); font-weight: 600; }
.note a { color: var(--accent-strong); }
