/* =============================================================
   SHARED DESIGN SYSTEM - both sites use this file.
   Theme: living command center. Dark luxury, gold, glass, grid.

   Structure:
   1. Tokens (colors, type, spacing)
   2. Base + layout
   3. Navigation + footer
   4. Components (cards, tiers, buttons, labels, FAQ)
   5. Hero + section treatments
   6. Animations (isolated at the bottom; safe to delete)
   7. Mobile + reduced motion
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg: #07090d;
  --bg-raised: #0c1016;
  --bg-panel: rgba(18, 23, 32, 0.72);
  --line: rgba(212, 175, 55, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --grid-line: rgba(255, 255, 255, 0.028);
  --ink: #f4f1e8;
  --ink-dim: #a8a89f;
  --ink-faint: #6d6e68;
  --gold: #d4af37;
  --gold-soft: #e8c97a;
  --accent-blue: #4f8dff;
  --accent-violet: #8b6cf0;
  --accent-cyan: #3fd3c4;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --max-w: 1180px;
  --pad-x: 24px;
  --radius: 14px;
}

/* ---------- 2. BASE + LAYOUT ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  /* command-center grid field */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: 88px 0; position: relative; }
.section-tight { padding: 56px 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-dim); max-width: 46em; }
.measure { max-width: 44em; }

/* small uppercase command labels */
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.label::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  border-radius: 50%;
  flex: none;
}
.label-plain::before { display: none; }

.gold { color: var(--gold-soft); }
.dim { color: var(--ink-dim); }

/* ---------- 3. NAVIGATION + FOOTER ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.26em;
  color: var(--ink); white-space: nowrap;
}
.nav-brand strong { color: var(--gold); font-weight: 600; }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a { color: var(--ink-dim); font-size: 0.92rem; }
.nav-links a:hover { color: var(--ink); }
/* keep the gold CTA button readable despite the .nav-links a color */
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: #0a0a08; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--gold); font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.18em; padding: 9px 14px; border-radius: 8px; cursor: pointer;
}

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 48px;
  margin-top: 40px;
  background: var(--bg-raised);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--ink-dim); font-size: 0.94rem; }
.footer a:hover { color: var(--gold-soft); }
.footer-line { color: var(--ink-faint); font-size: 0.85rem; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- 4. COMPONENTS ---------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 15px 28px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8932a);
  color: #0a0a08;
}
.btn-gold:hover { color: #0a0a08; box-shadow: 0 6px 28px rgba(212, 175, 55, 0.32); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.08); color: var(--ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* Glass panel */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  position: relative;
}
/* corner ticks: the case-file look */
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); border-top-left-radius: var(--radius); }
.panel::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); border-bottom-right-radius: var(--radius); }

/* Card grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* grid/flex children may not force the page wider than the phone */
.grid-2 > *, .grid-3 > *, .tier-grid > *, .ladder > * { min-width: 0; }

/* Proof / case-file card */
.case-card { display: flex; flex-direction: column; gap: 14px; }
.case-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.case-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--ink-faint); }
.case-status {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em;
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line);
  color: var(--gold-soft); white-space: nowrap;
}
.case-status.live { color: var(--accent-cyan); border-color: rgba(63, 211, 196, 0.35); }
.case-card h3 { color: var(--ink); }
.case-card p { color: var(--ink-dim); font-size: 0.95rem; }
.case-points { list-style: none; }
.case-points li { padding-left: 20px; position: relative; color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 8px; }
.case-points li::before { content: "+"; position: absolute; left: 0; color: var(--gold); font-family: var(--font-mono); }
.case-stat { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: auto; }
.case-stat .value { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-soft); }
.case-stat .caption { font-size: 0.82rem; color: var(--ink-faint); }
.case-link { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; }

/* Industry mission-file card */
.industry-card {
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  color: var(--ink);
}
a.industry-card:hover { transform: translateY(-3px); border-color: var(--line); color: var(--ink); }
.industry-card .num { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.2em; }
.industry-card h3 { font-size: 1.18rem; }
.industry-card .pain { color: var(--ink-dim); font-size: 0.92rem; }
.industry-card .angle { color: var(--ink-faint); font-size: 0.86rem; border-left: 2px solid var(--gold); padding-left: 12px; }
.industry-card .open {
  margin-top: auto; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.18em; color: var(--gold);
}

/* Pricing tiers */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 16px; }
.tier.featured { border-color: var(--line); box-shadow: 0 0 50px rgba(212, 175, 55, 0.07); }
.tier .tier-name { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.tier .tier-price { font-family: var(--font-display); font-size: 2.4rem; color: var(--ink); line-height: 1; }
.tier .tier-price small { font-size: 1rem; color: var(--ink-faint); font-family: var(--font-body); }
.tier .tier-tag { color: var(--ink-dim); font-size: 0.92rem; font-style: italic; }
.tier ul { list-style: none; }
.tier li { padding-left: 20px; position: relative; color: var(--ink-dim); font-size: 0.93rem; margin-bottom: 9px; }
.tier li::before { content: "+"; position: absolute; left: 0; color: var(--gold); font-family: var(--font-mono); }
.tier .btn { margin-top: auto; }

/* Add-on strip */
.addon { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-top: 22px; }
.addon .addon-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-soft); }
.addon ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.addon li { color: var(--ink-dim); font-size: 0.9rem; padding-left: 18px; position: relative; }
.addon li::before { content: "+"; position: absolute; left: 0; color: var(--gold); font-family: var(--font-mono); }
.addon .note { flex-basis: 100%; color: var(--ink-faint); font-size: 0.86rem; }

/* Ladder */
.ladder { display: grid; gap: 14px; counter-reset: rung; }
.ladder .rung { display: flex; gap: 22px; align-items: baseline; padding: 20px 26px; }
.ladder .rung-num { font-family: var(--font-mono); color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; flex: none; }
.ladder .rung h3 { font-size: 1.12rem; }
.ladder .rung p { color: var(--ink-dim); font-size: 0.92rem; }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--ink-dim); margin-top: 12px; font-size: 0.95rem; }

/* Big quote / positioning line */
.big-line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: clamp(18px, 4vw, 36px);
  max-width: 30em;
}

/* Module chips (floating system modules) */
.modules { display: flex; flex-wrap: wrap; gap: 10px; }
.module-chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim);
  border: 1px solid var(--line-soft); border-radius: 99px;
  padding: 8px 16px; background: rgba(255, 255, 255, 0.025);
}
.module-chip.lit { color: var(--gold-soft); border-color: var(--line); }

/* Stat row */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat-block .value { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold-soft); }
.stat-block .caption { color: var(--ink-faint); font-size: 0.88rem; margin-top: 6px; }

/* ---------- 5. HERO + SECTION TREATMENTS ---------- */
.hero { padding: 110px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  /* cinematic gold glow */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 70% 10%, rgba(212, 175, 55, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(79, 141, 255, 0.06), transparent 60%);
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 14em; }
.hero .lead { margin-top: 24px; }
.hero-quote { margin-top: 30px; }

/* two-column hero with cinematic clip panel */
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; } /* prevents grid min-content overflow on narrow phones */
.hero-video { padding: 14px; max-width: 360px; justify-self: end; margin: 0; }
.hero-video-label { display: block; margin-bottom: 10px; }
.hero-video-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; }
.hero-video-poster, .hero-video-clip {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-video-clip { z-index: 1; }
/* cinematic edge fade so the clip sits in the dark field */
.hero-video-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(7, 9, 13, 0.55);
}

/* scanline accent under section heads */
.section-head { margin-bottom: 44px; }
.section-head h2 { max-width: 18em; }
.section-head .lead { margin-top: 14px; }

/* divider line with node */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 0 auto; max-width: var(--max-w); position: relative; }
.divider::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* CTA band */
.cta-band { text-align: center; padding: 90px 0; }
.cta-band h2 { margin: 0 auto; max-width: 16em; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 6. ANIMATIONS (isolated; safe to remove) ---------- */
/* Reveals only activate when JS adds .js to <html>. Without JS,
   everything is fully visible. site.js handles the observer. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.label::before { animation: pulse-dot 2.6s ease-in-out infinite; }

/* ---------- 7. MOBILE + REDUCED MOTION ---------- */
@media (max-width: 920px) {
  .grid-3, .tier-grid, .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-video { justify-self: start; max-width: 300px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-video { max-width: 100%; width: 100%; }
  .hero-video-frame { aspect-ratio: 4 / 5; } /* tighter crop saves scroll on phones */
  .grid-2, .grid-3, .tier-grid, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(7, 9, 13, 0.97); flex-direction: column; align-items: flex-start;
    padding: 22px var(--pad-x) 28px; gap: 18px; border-bottom: 1px solid var(--line-soft);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .ladder .rung { flex-direction: column; gap: 8px; }
}
input, select, textarea { font-size: 16px; } /* prevents iOS zoom */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .label::before { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  /* show the still poster instead of the moving clip */
  .hero-video-clip { display: none; }
}
