/* =========================================================================
   GPF BUSINESS SYSTEMS — Design System
   Tokens & decorative elements per the build spec.
   Tailwind handles utilities; this file owns the bespoke "systems aesthetic".
   ========================================================================= */

:root {
  /* Navy — the foundation */
  --navy-950: #050B1F;
  --navy-900: #0A1437;
  --navy-800: #0F1E4D;
  --navy-700: #182B66;
  --navy-600: #243C82;

  /* Accent Blue */
  --blue-500: #3B82C4;
  --blue-400: #5BA3DC;

  /* Gold */
  --gold-300: #E5CC91;
  --gold-400: #D4B97A;
  --gold-500: #C9A961;
  --gold-600: #A88947;
  --gold-700: #7A5F2E;

  /* Cream / White */
  --cream-50:  #FFFFFF;
  --cream-100: #F5EBD8;
  --cream-200: #EDE0C8;
  --cream-300: #D4C4A8;

  /* Functional */
  --success: #7FA968;
  --error: #E85A4F;

  --max-content: 1200px;
  --grid-size: 80px;
}

/* =========================================================================
   BASE
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy-900);
  color: var(--cream-100);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-500);
  color: var(--navy-900);
}

/* Skip to content (a11y) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 0.75rem 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */

.font-display { font-family: 'Space Grotesk', system-ui, sans-serif; }
.font-mono    { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.font-sans    { font-family: 'Inter', system-ui, sans-serif; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  color: var(--cream-50);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

p { margin: 0; }
a  { color: inherit; text-decoration: none; }

/* Body link inline style */
.link {
  color: var(--cream-100);
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.link:hover {
  color: var(--gold-300);
  border-bottom-color: var(--gold-400);
}

/* The metallic gold treatment — use sparingly, max once per page */
.metallic-gold {
  background: linear-gradient(180deg, #E5CC91 0%, #D4B97A 25%, #C9A961 55%, #A88947 80%, #7A5F2E 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-size: 100% 100%;
  display: inline-block;
}

/* =========================================================================
   LAYOUT
   ========================================================================= */

.container-content {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container-content { padding: 0 2.5rem; }
}

.section {
  padding: 5rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

/* =========================================================================
   SECTION BACKGROUND VARIANTS — break the navy monotony
   Use these on .section to vary depth & feel.
   ========================================================================= */

/* Default = navy-900. Variants below. */

.section--elevated {
  background: var(--navy-800);
  position: relative;
}
.section--elevated::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 163, 220, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(201, 169, 97, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.section--deep {
  background: var(--navy-950);
  position: relative;
  border-top: 1px solid rgba(201, 169, 97, 0.18);
  border-bottom: 1px solid rgba(201, 169, 97, 0.18);
}
.section--deep::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Showcase — the "color proposal" style: rich navy + flowing white chevrons + dot grids */
.section--showcase {
  background: linear-gradient(135deg, #0A1437 0%, #182B66 50%, #0F1E4D 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section--showcase > * { position: relative; z-index: 2; }

/* Subtle paper-grain on elevated sections so they don't read as flat */
.section--elevated::after,
.section--showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(201, 169, 97, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 169, 97, 0.045) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}
.section--elevated > .container-content,
.section--showcase > .container-content { position: relative; z-index: 2; }

/* CTA-style inverse: gold-tinted band */
.section--gold-band {
  background: linear-gradient(180deg, var(--navy-900) 0%, #14224A 100%);
  position: relative;
  border-top: 1px solid rgba(201, 169, 97, 0.3);
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
}
.section--gold-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* =========================================================================
   WHITE CHEVRON FLOW (color proposal style)
   Big flowing white/cream chevron shapes that emerge from one side
   ========================================================================= */
.chevron-flow {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 55%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.chevron-flow svg {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 110%;
  height: auto;
  min-height: 100%;
}
.chevron-flow--left {
  right: auto;
  left: 0;
}
.chevron-flow--left svg {
  right: auto;
  left: -8%;
  transform: translateY(-50%) scaleX(-1);
}
@media (max-width: 768px) {
  .chevron-flow { width: 100%; opacity: 0.18; }
}

/* Dot grid cluster — positioned absolutely in section corners */
.dot-cluster {
  position: absolute;
  width: 96px;
  pointer-events: none;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.dot-cluster span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.6;
}
.dot-cluster--cream span { background: var(--cream-100); opacity: 0.35; }
.dot-cluster--bottom-left { bottom: 2.5rem; left: 1.5rem; }
.dot-cluster--top-left    { top: 2.5rem;    left: 1.5rem; }
.dot-cluster--top-right   { top: 2.5rem;    right: 1.5rem; }
.dot-cluster--bottom-right{ bottom: 2.5rem; right: 1.5rem; }
@media (max-width: 768px) {
  .dot-cluster { width: 60px; }
}

/* Diagonal gold trace line — runs across a section corner */
.diagonal-trace {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.diagonal-trace svg { width: 100%; height: 100%; }

/* =========================================================================
   DECORATIVE ELEMENTS — the "systems aesthetic"
   ========================================================================= */

/* Subtle 80px grid overlay — used on heroes */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(201, 169, 97, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 169, 97, 0.05) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  z-index: 0;
}

/* Warm radial — top right of a hero */
.radial-warm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(201, 169, 97, 0.1) 0%, transparent 45%);
  z-index: 0;
}

/* Chevron motif — large & low opacity, behind hero copy */
.chevron-motif {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 520px;
  height: 520px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 768px) {
  .chevron-motif { width: 320px; height: 320px; right: -100px; top: 20px; }
}

/* Dot-grid cluster (echoes the favicon) */
.dot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 64px;
}
.dot-grid > span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.5;
}
.dot-grid--small { width: 48px; }
.dot-grid--small > span { width: 3px; height: 3px; }

/* Circuit-trace divider — thin gold horizontal line with dot terminators */
.circuit-trace {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 8px;
}
.circuit-trace::before,
.circuit-trace::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}
.circuit-trace::after { background: var(--gold-500); }
.circuit-trace .line {
  flex-grow: 1;
  height: 1px;
  background: var(--gold-500);
  opacity: 0.5;
}

/* Horizontal rule between major sections (gold/20%) */
hr.hr-gold {
  border: 0;
  height: 1px;
  background: rgba(201, 169, 97, 0.2);
  margin: 0;
  width: 100%;
}

/* Section marker — [01] / THE REALITY */
.section-marker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section-marker::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold-500);
  opacity: 0.5;
}

/* Eyebrow — generic small mono uppercase */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* Bracket prefix — for // or [ ] accents on headlines */
.bracket-prefix {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gold-500);
  font-weight: 500;
  margin-right: 0.5rem;
}

/* Numbered list — mono numbering */
.numbered-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.numbered-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
}
.numbered-list li:last-child { border-bottom: 1px solid rgba(201, 169, 97, 0.15); }
.numbered-list .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-500);
  letter-spacing: 0.05em;
  min-width: 3.25rem;
}
.numbered-list .item {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  color: var(--cream-100);
  line-height: 1.5;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.btn-primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(201, 169, 97, 0.6);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--cream-100);
  border-color: var(--gold-500);
}
.btn-secondary:hover {
  background: rgba(201, 169, 97, 0.08);
  color: var(--cream-50);
}

.btn-ghost {
  background: transparent;
  color: var(--cream-100);
  border-color: rgba(245, 235, 216, 0.2);
}
.btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
}

.btn-sm { padding: 0.6rem 1.1rem; font-size: 13px; }
.btn-lg { padding: 1.1rem 2rem; font-size: 16px; }

/* Arrow that translates on hover */
.btn .arrow { transition: transform 0.2s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================================
   CARDS — Module / feature cards with corner brackets
   ========================================================================= */

.card {
  position: relative;
  background: rgba(15, 30, 77, 0.4);
  border: 1px solid rgba(201, 169, 97, 0.12);
  padding: 2rem 1.75rem;
  transition: all 0.25s ease;
  border-radius: 4px;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(201, 169, 97, 0.4);
  background: rgba(15, 30, 77, 0.65);
  transform: translateY(-2px);
}

/* Corner accents — top-left & bottom-right L brackets */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold-500);
  pointer-events: none;
  transition: all 0.25s ease;
}
.card::before {
  top: 0; left: 0;
  border-right: none; border-bottom: none;
}
.card::after {
  bottom: 0; right: 0;
  border-left: none; border-top: none;
}
.card:hover::before, .card:hover::after {
  width: 24px; height: 24px;
  border-color: var(--gold-400);
}

.card .card-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--gold-500);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: block;
}

.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 4px;
  margin-bottom: 1.25rem;
  color: var(--gold-500);
}
.card .card-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }

.card .card-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--cream-50);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card .card-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-200);
}

/* Highlighted card (e.g. middle pricing tier) */
.card.is-highlighted {
  border-color: rgba(201, 169, 97, 0.55);
  background: rgba(15, 30, 77, 0.7);
  box-shadow: 0 0 0 1px rgba(201, 169, 97, 0.25), 0 30px 60px -30px rgba(201, 169, 97, 0.25);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold-500);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* =========================================================================
   HEADER & NAV
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 55, 0.85);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.18);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .site-header__inner { padding: 0.95rem 2.5rem; }
}

.site-header__logo img {
  display: block;
  max-height: 36px;
  width: auto;
}
@media (min-width: 768px) {
  .site-header__logo img { max-height: 40px; }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
}
.site-nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-100);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--gold-300); }
.site-nav a.is-active { color: var(--gold-400); }
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold-500);
}

.lang-toggle {
  display: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cream-300);
  margin-left: 0.5rem;
}
@media (min-width: 1024px) { .lang-toggle { display: inline-flex; gap: 0.4rem; } }
.lang-toggle .active { color: var(--gold-400); }
.lang-toggle .sep { color: rgba(245, 235, 216, 0.25); }

.site-header__cta { display: none; }
@media (min-width: 768px) { .site-header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.3);
  color: var(--cream-100);
  border-radius: 4px;
  cursor: pointer;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 200;
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; animation: fadeIn 0.2s ease; }
.mobile-nav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
  display: grid;
  gap: 0;
}
.mobile-nav__list li {
  border-top: 1px solid rgba(201, 169, 97, 0.12);
}
.mobile-nav__list li:last-child {
  border-bottom: 1px solid rgba(201, 169, 97, 0.12);
}
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--cream-50);
  padding: 1.25rem 0;
}
.mobile-nav__list a .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gold-500);
  font-weight: 400;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  position: relative;
  padding: 5rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  .hero { padding: 7rem 0 6rem; }
}
.hero--full {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  margin: 1.25rem 0 1.5rem;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.hero p.subhead {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--cream-200);
  max-width: 560px;
  margin-bottom: 2.25rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Visual slot (right side) — 16:9 placeholder */
.media-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(15, 30, 77, 0.9) 0%, rgba(10, 20, 55, 0.9) 100%);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.media-slot::before, .media-slot::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold-500);
  z-index: 2;
}
.media-slot::before {
  top: 12px; left: 12px;
  border-right: none; border-bottom: none;
}
.media-slot::after {
  bottom: 12px; right: 12px;
  border-left: none; border-top: none;
}

.media-slot__overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(201, 169, 97, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 169, 97, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.media-slot__play {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: var(--cream-200);
}
.media-slot__play .play-icon {
  width: 64px; height: 64px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 97, 0.08);
  transition: all 0.25s ease;
}
.media-slot:hover .media-slot__play .play-icon {
  background: rgba(201, 169, 97, 0.18);
  transform: scale(1.05);
}
.media-slot__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-300);
}

/* =========================================================================
   GRIDS
   ========================================================================= */

.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .module-grid { grid-template-columns: repeat(3, 1fr); } }

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .who-grid { grid-template-columns: repeat(5, 1fr); } }
.who-pill {
  border: 1px solid rgba(201, 169, 97, 0.2);
  padding: 1.5rem 1.25rem;
  border-radius: 4px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--cream-100);
  background: rgba(15, 30, 77, 0.3);
  transition: all 0.2s ease;
}
.who-pill:hover {
  border-color: rgba(201, 169, 97, 0.5);
  background: rgba(15, 30, 77, 0.55);
}

/* Section heading (used for h2 throughout) */
.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 1rem 0 1.5rem;
}

.lede {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream-200);
  max-width: 720px;
}

/* =========================================================================
   ALTERNATING PROBLEM/SOLUTION BLOCKS (Solutions page)
   ========================================================================= */

.problem-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
  align-items: start;
}
@media (min-width: 1024px) {
  .problem-block { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
}
.problem-block__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 56px;
  font-weight: 500;
  color: var(--gold-500);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  display: block;
}
.problem-block__head {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--cream-50);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.problem-block__body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-200);
  margin-bottom: 1.5rem;
}
.problem-block__after {
  border: 1px solid rgba(201, 169, 97, 0.4);
  background: rgba(201, 169, 97, 0.04);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  position: relative;
}
.problem-block__after .label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.5rem;
}
.problem-block__after .text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-100);
}

/* =========================================================================
   PROCESS TIMELINE (Platform page — Map / Build / Migrate / Train)
   ========================================================================= */

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.process-step {
  border: 1px solid rgba(201, 169, 97, 0.18);
  background: rgba(15, 30, 77, 0.4);
  padding: 2rem 1.5rem;
  position: relative;
  border-radius: 4px;
}
.process-step .step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  display: block;
  margin-bottom: 1rem;
}
.process-step .step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--cream-50);
  margin-bottom: 0.5rem;
}
.process-step .step-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream-200);
}

/* =========================================================================
   EDITORIAL FOUNDER TREATMENT — pull quotes, badges, signatures
   ========================================================================= */

/* Pull quote — large, metallic gold, framed by quote marks */
.pull-quote {
  position: relative;
  margin: 2rem 0 2.25rem;
  padding: 1.5rem 0 1.5rem 2.5rem;
  border-left: 2px solid var(--gold-500);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--cream-50);
}
.pull-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-500);
  opacity: 0.85;
}
.pull-quote .attr {
  display: block;
  margin-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* Credentials strip — small mono badges */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1.75rem;
}
.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(201, 169, 97, 0.4);
  background: rgba(201, 169, 97, 0.06);
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cream-100);
  text-transform: uppercase;
}
.credential-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
  display: inline-block;
}
.credential-badge .num {
  color: var(--gold-400);
  font-weight: 500;
}

/* Signature flourish — italic name + gold underline trace */
.signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}
.signature__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  color: var(--cream-50);
  letter-spacing: -0.01em;
}
.signature__name .ampersand {
  color: var(--gold-400);
  font-weight: 600;
}
.signature__role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-300);
  border-left: 1px solid rgba(201, 169, 97, 0.3);
  padding-left: 1rem;
}

/* Stat tiles — quick credibility blocks */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.stat-tile {
  position: relative;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(201, 169, 97, 0.2);
  background: rgba(5, 11, 31, 0.35);
  border-radius: 3px;
}
.stat-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-top: 1px solid var(--gold-500);
  border-left: 1px solid var(--gold-500);
}
.stat-tile .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--gold-400);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.stat-tile .label {
  display: block;
  margin-top: 0.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-200);
  line-height: 1.3;
}

/* Editorial divider — gold dot · line · gold dot · line */
.editorial-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 220px;
}
.editorial-divider span {
  flex-grow: 1;
  height: 1px;
  background: rgba(201, 169, 97, 0.4);
}
.editorial-divider::before,
.editorial-divider::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}
.editorial-divider::after { background: var(--gold-500); }

/* Dual chevron — flows on both sides for richer showcase */
.chevron-flow--small svg { width: 100%; opacity: 0.55; }

/* Hero-tuned chevron flow — behind hero content, slightly lower opacity */
.chevron-flow--hero {
  z-index: 0;
  width: 60%;
  opacity: 0.85;
}
.chevron-flow--hero svg { right: -15%; }
@media (max-width: 1023px) {
  .chevron-flow--hero { width: 100%; opacity: 0.22; }
}

/* Make sure hero content sits ABOVE the chevron flow */
.hero .hero__inner { z-index: 2; }
.hero > .container-content { position: relative; z-index: 2; }

/* Hero credential strip (under CTAs) */
.hero-credentials {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 169, 97, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* =========================================================================
   HERO VARIANT MODIFIERS — flip / rotate / reposition the chevron flow
   so each page hero feels distinct (not copy-paste).
   ========================================================================= */

/* Chevron from LEFT (mirrored) */
.chevron-flow--from-left {
  right: auto;
  left: 0;
}
.chevron-flow--from-left svg {
  right: auto;
  left: -15%;
  transform: translateY(-50%) scaleX(-1);
}

/* Chevron from TOP-RIGHT (rotated 180° — flows downward from top-right) */
.chevron-flow--from-top {
  top: 0;
  bottom: auto;
  height: 70%;
  width: 55%;
}
.chevron-flow--from-top svg {
  top: 0;
  transform: translateY(-15%) rotate(180deg);
  right: -15%;
}

/* Chevron sideways — rotated 90° so it points DOWN like the logo */
.chevron-flow--sideways {
  width: 50%;
  right: 0;
  top: auto;
  bottom: 0;
  height: 70%;
}
.chevron-flow--sideways svg {
  transform: translateY(0) rotate(-90deg) scale(0.85);
  top: auto;
  bottom: -10%;
  right: -25%;
}

/* Chevron BOTTOM-RIGHT corner */
.chevron-flow--bottom {
  top: auto;
  bottom: -10%;
  height: 70%;
  width: 55%;
}
.chevron-flow--bottom svg {
  top: auto;
  bottom: 0;
  transform: translateY(0);
}

/* =========================================================================
   CONNECTOR NETWORK — gold circuit traces with terminal dots.
   Echoes the logo's connecting lines. Used in heroes/sections where
   the founder is shown OR where a chevron would crowd.
   ========================================================================= */
.connector-network {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.connector-network--right {
  top: 0; bottom: 0; right: 0;
  width: 55%;
}
.connector-network--left {
  top: 0; bottom: 0; left: 0;
  width: 55%;
}
.connector-network svg {
  width: 100%;
  height: 100%;
  display: block;
}
.connector-network--corner-tr {
  top: 0; right: 0;
  width: 320px;
  height: 320px;
}
.connector-network--corner-bl {
  bottom: 0; left: 0;
  width: 320px;
  height: 320px;
}
.connector-network--corner-bl svg { transform: rotate(180deg); }
@media (max-width: 768px) {
  .connector-network--right,
  .connector-network--left { width: 100%; opacity: 0.35; }
  .connector-network--corner-tr,
  .connector-network--corner-bl { width: 200px; height: 200px; opacity: 0.5; }
}

/* =========================================================================
   FOUNDER STAGE — for the home hero cutout image
   No frame; sits on a soft gold halo against the navy
   ========================================================================= */
.founder-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: 0;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}
.founder-stage__halo {
  position: absolute;
  inset: -10% -8% -5% -8%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 65%, rgba(201, 169, 97, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 50%, rgba(91, 163, 220, 0.12) 0%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.founder-stage__cutout {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 24px 40px rgba(5, 11, 31, 0.65));
}
/* Corner brackets that frame the stage area without enclosing it */
.founder-stage::before, .founder-stage::after {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  border: 1px solid var(--gold-500);
  z-index: 3;
  pointer-events: none;
}
.founder-stage::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.founder-stage::after  { bottom: 0; right: 0; border-left: none; border-top: none; }
@media (max-width: 1023px) {
  .founder-stage { max-width: 320px; margin: 0 auto; }
}

/* Caption strip under the founder cutout (mono) */
.founder-caption {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 97, 0.25);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-300);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 480px;
  margin-left: auto;
}
.founder-caption .gold { color: var(--gold-400); }
.founder-caption .sep { color: var(--gold-500); }
@media (max-width: 1023px) {
  .founder-caption { max-width: 320px; margin: 1rem auto 0; justify-content: center; }
}

/* =========================================================================
   FOUNDER CARD
   ========================================================================= */

.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .founder { grid-template-columns: 0.85fr 1fr; gap: 4rem; }
}
.founder__img {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  background: var(--navy-800);
  border: 1px solid rgba(201, 169, 97, 0.25);
  overflow: hidden;
  border-radius: 4px;
}
.founder__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
}
.founder__img::before, .founder__img::after {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  border: 1px solid var(--gold-500);
  z-index: 2;
}
.founder__img::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.founder__img::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.founder__body h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.founder__body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-200);
  margin-bottom: 1rem;
}

/* =========================================================================
   FORMS
   ========================================================================= */

.form-card {
  background: rgba(15, 30, 77, 0.5);
  border: 1px solid rgba(201, 169, 97, 0.2);
  padding: 2.5rem;
  border-radius: 4px;
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.form-card::before, .form-card::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold-500);
  pointer-events: none;
}
.form-card::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.form-card::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.form-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.form-step-indicator .bar {
  flex-grow: 1;
  height: 1px;
  background: rgba(201, 169, 97, 0.25);
  position: relative;
}
.form-step-indicator .bar .fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--gold-500);
  transition: width 0.35s ease;
}

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-300);
  margin-bottom: 0.5rem;
}
.field label .req { color: var(--gold-500); }

.input,
.textarea,
.select {
  width: 100%;
  background: rgba(5, 11, 31, 0.6);
  border: 1px solid rgba(201, 169, 97, 0.2);
  color: var(--cream-50);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-variant-ligatures: none;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(5, 11, 31, 0.85);
}
.input::placeholder, .textarea::placeholder { color: var(--cream-300); opacity: 0.55; }
.textarea { min-height: 96px; resize: vertical; }
.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-500) 50%),
    linear-gradient(135deg, var(--gold-500) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.honeypot { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }

.form-msg {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  display: none;
}
.form-msg.is-success { display: block; border: 1px solid rgba(127, 169, 104, 0.5); background: rgba(127, 169, 104, 0.08); color: #B5D9A1; }
.form-msg.is-error   { display: block; border: 1px solid rgba(232, 90, 79, 0.5);  background: rgba(232, 90, 79, 0.08); color: #FFB1A8; }

.microcopy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

/* Calendar embed slot */
.calendar-slot {
  margin-top: 2rem;
  border: 1px dashed rgba(201, 169, 97, 0.4);
  background: rgba(15, 30, 77, 0.3);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 4px;
}
.calendar-slot .label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.5rem;
}
.calendar-slot p {
  color: var(--cream-200);
  font-size: 15px;
}

/* =========================================================================
   PRICING
   ========================================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
}
.pricing-card .price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--cream-200);
  letter-spacing: 0.03em;
  margin: 0.75rem 0 1.5rem;
}
.pricing-card .price strong {
  color: var(--gold-400);
  font-weight: 500;
  font-size: 24px;
  display: block;
  margin-top: 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: grid;
  gap: 0.75rem;
  flex-grow: 1;
}
.pricing-card ul li {
  font-size: 14px;
  color: var(--cream-100);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: baseline;
}
.pricing-card ul li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--gold-500);
  border-radius: 50%;
  margin-top: 0.55rem;
}
.pricing-card .who-for {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cream-300);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */

.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  padding: 1.5rem 0;
}
.faq details:last-child { border-bottom: 1px solid rgba(201, 169, 97, 0.2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--cream-50);
  padding-right: 0.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gold-500);
  font-size: 22px;
  transition: transform 0.2s ease;
  width: 24px; text-align: center;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin-top: 1rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-200);
}

/* =========================================================================
   STACK COMPARISON (Platform page)
   ========================================================================= */

.stack-mess {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 1rem;
}
@media (min-width: 640px) { .stack-mess { grid-template-columns: repeat(3, 1fr); } }
.stack-tool {
  border: 1px solid rgba(245, 235, 216, 0.15);
  background: rgba(245, 235, 216, 0.03);
  padding: 1.25rem 0.75rem;
  text-align: center;
  border-radius: 4px;
  position: relative;
}
.stack-tool .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--cream-300);
  opacity: 0.7;
}
.stack-tool .icon svg { width: 22px; height: 22px; }
.stack-tool .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cream-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}
.stack-mess::before, .stack-mess::after {
  content: '';
  position: absolute;
  background: rgba(232, 90, 79, 0.55);
  height: 2px;
  width: 130%;
  left: -15%;
  top: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}
.stack-mess::after { transform: rotate(12deg); }

/* =========================================================================
   FOOTER
   ========================================================================= */

.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(201, 169, 97, 0.25);
  padding: 4rem 0 2rem;
  position: relative;
  margin-top: 4rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; }
}
.site-footer h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-500);
  margin-bottom: 1.25rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.site-footer ul a {
  font-size: 14px;
  color: var(--cream-200);
  transition: color 0.2s ease;
}
.site-footer ul a:hover { color: var(--gold-300); }

.site-footer__brand img { max-height: 44px; margin-bottom: 1rem; display: block; }
.site-footer__brand p {
  font-size: 13px;
  color: var(--cream-300);
  line-height: 1.5;
  max-width: 280px;
}
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cream-300);
}
.site-footer__bottom .links { display: flex; gap: 1.5rem; }
.site-footer__bottom .links a { color: var(--cream-300); }
.site-footer__bottom .links a:hover { color: var(--gold-400); }

.lead-magnet-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.lead-magnet-form .input { flex-grow: 1; }
.lead-magnet-form .btn { flex-shrink: 0; }

/* =========================================================================
   LEAD MAGNET POPUP
   ========================================================================= */

.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 31, 0.8);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}
.popup-backdrop.is-open { display: flex; }
.popup {
  background: var(--navy-800);
  border: 1px solid rgba(201, 169, 97, 0.4);
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  border-radius: 4px;
  animation: popUp 0.3s ease;
}
.popup::before, .popup::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold-500);
}
.popup::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.popup::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
@keyframes popUp { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.popup__close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  color: var(--cream-300);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 20px;
  line-height: 1;
}
.popup__close:hover { color: var(--gold-400); }

.popup .eyebrow { margin-bottom: 0.75rem; display: block; }
.popup h3 { font-size: 24px; line-height: 1.2; margin-bottom: 0.75rem; }
.popup p { font-size: 14px; color: var(--cream-200); margin-bottom: 1.5rem; }

/* =========================================================================
   ANIMATIONS — fade-up on scroll
   ========================================================================= */

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   UTILITY HELPERS
   ========================================================================= */

.text-cream { color: var(--cream-100); }
.text-gold  { color: var(--gold-500); }
.text-mute  { color: var(--cream-300); }
.bg-elev    { background: var(--navy-800); }
.bg-deep    { background: var(--navy-950); }

.divider-section { padding: 0 1.5rem; }
.divider-section .container-content { padding: 0; }

/* Stick subnav indicators on long lists */
.spine {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid rgba(201, 169, 97, 0.2);
}
.spine::before {
  content: '';
  position: absolute;
  left: -3px; top: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* Inline gold tag e.g. "AFTER GPF:" */
.tag-after {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 500;
}

/* Trust strip on /book */
.trust-strip {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-300);
  padding: 2rem 0;
}
.trust-strip .sep { color: var(--gold-500); margin: 0 1rem; }

/* Hide step on toggle */
[data-step].is-hidden { display: none; }
