/* ============================================================
   KHIPU INTERNATIONAL — Phase 1 Institutional
   Palette: Navy #0D1B2A · White #FFFFFF · Cool Off-White #F4F6F9
   Gold #C9962A · Signal Green #25D366
   Fonts: Playfair Display · DM Sans
   ============================================================ */

/* ── Design Tokens ── */
:root {
  /* Brand Colors */
  --gold: #C9962A;
  --gold-light: #e2b84a;
  --gold-dim: #8a6318;
  --navy: #0D1B2A;
  --navy-mid: #132234;
  --navy-light: #1a2e45;
  --navy-faint: #243d59;
  --white: #FFFFFF;
  --cool-white: #F4F6F9;
  --cool-white-dim: #E8ECF2;
  --offwhite: #F5F0E8;
  --copper: #8B3A2A;
  --green: #25D366;
  --green-dim: #1aaa50;

  /* Semantic roles */
  --color-bg: var(--navy);
  --color-surface: var(--navy-mid);
  --color-text: var(--offwhite);
  --color-text-muted: #b8b0a4;
  --color-text-faint: #6e6860;
  --color-accent: var(--gold);
  --color-border: rgba(201,150,42,0.18);

  /* Light surface roles */
  --color-text-dark: #0D1B2A;
  --color-text-dark-muted: #4a5568;
  --color-text-dark-faint: #718096;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 1rem + 6vw, 7rem);

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-gold: 0 0 40px rgba(201,150,42,0.15);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
  --shadow-green: 0 4px 20px rgba(37,211,102,0.25);

  /* Layout */
  --content-max: 1160px;
  --content-narrow: 760px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition-fast: 180ms var(--ease-out);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--navy);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
input, select, textarea { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section--dark { background: var(--navy); color: var(--offwhite); }
.section--white { background: var(--white); color: var(--color-text-dark); }
.section--offwhite { background: var(--cool-white); color: var(--color-text-dark); }
.section--light { background: var(--cool-white); color: var(--color-text-dark); }
.section--khipu { background: #060c13; color: var(--offwhite); position: relative; overflow: hidden; }

/* ── Typography ── */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
  display: block;
}
.section--white .section-label,
.section--offwhite .section-label,
.section--light .section-label { color: var(--gold-dim); }

.section-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
  margin-bottom: var(--space-6);
  max-width: 700px;
}
.section-headline--gold { color: var(--gold); }
.section-headline--center { text-align: center; max-width: none; }
.section-headline--large { font-size: var(--text-3xl); }

.body-text {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 620px;
}
.body-text--wide { max-width: 760px; margin-bottom: var(--space-10); }
.section--white .body-text,
.section--offwhite .body-text,
.section--light .body-text { color: var(--color-text-dark-muted); }
.section--dark .body-text { color: #a09590; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
}
.brand-name { text-transform: none; }
.sol-t {
  font-size: 0.72em;
  vertical-align: baseline;
  position: relative;
  top: 0;
}
sup.fn {
  font-size: 0.45em;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gold);
  vertical-align: super;
  margin-left: 0.1em;
  opacity: 0.8;
}
.stats-footnotes {
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-text-dark-faint);
  opacity: 0.7;
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
.tm-mark {
  display: inline-block;
  vertical-align: super;
  width: 0.26em;
  height: 0.26em;
  margin-left: 0.06em;
  position: relative;
  top: 0.05em;
}
.tm-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 4px 24px rgba(201,150,42,0.4); }
.btn--green {
  background: var(--green);
  color: var(--navy);
}
.btn--green:hover { background: #2de875; box-shadow: var(--shadow-green); }
.btn--outline {
  background: transparent;
  color: var(--offwhite);
  border: 1.5px solid rgba(245,240,232,0.35);
}
.btn--outline:hover { border-color: rgba(245,240,232,0.7); color: #fff; }
.btn--ghost {
  background: transparent;
  color: rgba(245,240,232,0.65);
  border: 1px solid rgba(245,240,232,0.18);
  font-size: var(--text-sm);
}
.btn--ghost:hover { color: var(--offwhite); border-color: rgba(245,240,232,0.35); }
.btn--lg { padding: var(--space-4) var(--space-10); font-size: var(--text-sm); }
.btn--xl { padding: var(--space-4) var(--space-12); font-size: var(--text-base); }
.btn--wide { width: 100%; }

/* Text links */
.text-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  transition: color var(--transition-fast);
}
.text-link:hover { color: var(--gold-light); }
.text-link--green { color: var(--green); }
.text-link--green:hover { color: #2de875; }

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(245,240,232,0.45);
  padding: 2px 4px;
  transition: color var(--transition-fast);
  line-height: 1;
}
.lang-btn.active { color: var(--offwhite); }
.lang-btn:hover { color: var(--offwhite); }
.lang-divider {
  font-size: 0.65rem;
  color: rgba(245,240,232,0.2);
  user-select: none;
}
.mobile-lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-6);
}
.mobile-lang-toggle .lang-btn {
  font-size: 0.9rem;
  padding: 4px 8px;
}

/* ── Scroll Reveal ── */
.reveal-fade { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .reveal-fade {
    opacity: 0;
    animation: fade-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes fade-reveal { to { opacity: 1; } }

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}
.fade-up--delay-1 { animation-delay: 0.15s; }
.fade-up--delay-2 { animation-delay: 0.3s; }
.fade-up--delay-3 { animation-delay: 0.45s; }
.fade-up--delay-4 { animation-delay: 0.6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(13,27,42,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,150,42,0.1);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.nav--scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); border-color: rgba(201,150,42,0.18); }
.nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  overflow: visible;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}
.nav__logo-mark { width: 36px; height: 44px; color: var(--gold); flex-shrink: 0; }
.nav__logo-icon { width: 36px; height: 52px; flex-shrink: 0; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.nav__logo-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--offwhite);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav__logo-sub {
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(245,240,232,0.65);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}
.nav__links a:hover { color: var(--offwhite); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--offwhite);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3.5vh, 28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  padding-top: max(60px, env(safe-area-inset-top, 20px));
  padding-bottom: max(40px, env(safe-area-inset-bottom, 20px));
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  min-height: 100%;
  min-height: -webkit-fill-available;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile.open { opacity: 1; pointer-events: all; }
.nav__mobile-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 20px));
  right: 24px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--offwhite);
  padding: 8px;
  z-index: 10001;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  color: var(--offwhite);
  text-align: center;
  display: block;
  line-height: 1.2;
}
.nav__mobile-link:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 60% 30%, rgba(13,27,42,0) 0%, rgba(13,27,42,0.4) 100%),
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(37,211,102,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 70%, rgba(201,150,42,0.05) 0%, transparent 50%);
}
.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-20) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.08;
  color: var(--offwhite);
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
}
.hero__line { display: block; }
.hero__line--gold { color: var(--gold); }
.hero__line--dim { color: rgba(245,240,232,0.45); }
.hero__sub {
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(245,240,232,0.7);
  max-width: 560px;
  margin-bottom: var(--space-10);
}
.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

/* Stats bar */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid rgba(201,150,42,0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(13,27,42,0.7);
  backdrop-filter: blur(8px);
}
.stat {
  padding: var(--space-4) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.stat__label {
  font-size: var(--text-xs);
  color: rgba(245,240,232,0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.stat__divider {
  width: 1px;
  height: 48px;
  background: rgba(201,150,42,0.15);
  flex-shrink: 0;
}

/* ============================================================
   SECTION INTRO
   ============================================================ */
.section-intro { max-width: var(--content-narrow); }

/* ============================================================
   USE CASES GRID
   ============================================================ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
}
.usecase-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,150,42,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.usecase-card:hover {
  background: rgba(37,211,102,0.04);
  border-color: rgba(37,211,102,0.2);
  transform: translateY(-2px);
}
.usecase-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--offwhite);
  margin-bottom: var(--space-3);
}
.usecase-card p { font-size: var(--text-sm); color: rgba(245,240,232,0.6); line-height: 1.7; }

/* ============================================================
   STATS GRID (Why Peru)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-6);
  background: #fff;
  border: 1px solid rgba(13,27,42,0.07);
  border-top: 3px solid #D0212A;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(13,27,42,0.06);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.stat-card:hover { box-shadow: 0 8px 28px rgba(208,33,42,0.12); transform: translateY(-2px); }
.stat-card__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #D0212A;
  line-height: 1;
}
.stat-card__label { font-size: var(--text-xs); color: var(--navy); opacity: 0.65; line-height: 1.5; margin-top: var(--space-2); font-weight: 500; letter-spacing: 0.03em; }

/* ============================================================
   STEPS (How It Works)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  position: relative;
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: rgba(13,27,42,0.08);
  line-height: 1;
  user-select: none;
}
.step__content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
}
.step__content p { font-size: var(--text-sm); color: var(--color-text-dark-muted); line-height: 1.75; }

.tech-footnote {
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: var(--cool-white-dim);
  border-left: 3px solid var(--navy-faint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
  color: var(--color-text-dark-muted);
  line-height: 1.7;
}

/* ============================================================
   TRUST / RESERVES
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  margin-bottom: var(--space-10);
}
.trust-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,150,42,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.trust-card:hover { border-color: rgba(201,150,42,0.28); background: rgba(255,255,255,0.06); }
.trust-card--accent {
  border-color: rgba(37,211,102,0.15);
}
.trust-card--accent:hover { border-color: rgba(37,211,102,0.3); }
.trust-card__icon {
  color: var(--gold);
  margin-bottom: var(--space-4);
  opacity: 0.85;
}
.trust-card--accent .trust-card__icon { color: var(--green); }
.trust-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--offwhite);
  margin-bottom: var(--space-4);
}
.trust-card p { font-size: var(--text-sm); color: rgba(245,240,232,0.62); line-height: 1.75; }
.trust-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
}
.trust-list li {
  font-size: var(--text-sm);
  color: rgba(245,240,232,0.62);
  line-height: 1.55;
  padding-left: var(--space-4);
  position: relative;
}
.trust-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}
.trust-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-8) 0;
}
.logo-pill {
  padding: var(--space-2) var(--space-5);
  border: 1px solid rgba(13,27,42,0.15);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-dark-muted);
  background: var(--white);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.logo-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--cool-white-dim);
}

/* ============================================================
   KHIPU STORY
   ============================================================ */
.khipu-story__content {
  position: relative;
  z-index: 5;
  max-width: 640px;
}
.khipu-story__content .section-label { color: var(--gold); }
.khipu-story__content h2 { color: var(--gold); margin-bottom: var(--space-8); }
.khipu-story__content .body-text { color: rgba(245,240,232,0.7); margin-bottom: var(--space-6); max-width: none; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.cta-shell { max-width: 900px; }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin: var(--space-12) 0;
}
.cta-card {
  background: var(--cool-white);
  border: 1px solid rgba(13,27,42,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.cta-card:hover { box-shadow: 0 6px 24px rgba(13,27,42,0.08); transform: translateY(-2px); }
.cta-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
}
.cta-card p {
  font-size: var(--text-sm);
  color: var(--color-text-dark-muted);
  line-height: 1.65;
  flex: 1;
}
.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(13,27,42,0.08);
  border-bottom: 1px solid rgba(13,27,42,0.08);
  margin-bottom: var(--space-8);
}
.contact-block p {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
}
.contact-block a {
  font-size: var(--text-sm);
  color: var(--gold-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.contact-block a:hover { color: var(--gold); }
.legal-note {
  font-size: var(--text-xs);
  color: var(--color-text-dark-faint);
  line-height: 1.65;
  max-width: 600px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060c13;
  border-top: 1px solid rgba(201,150,42,0.12);
  padding-block: var(--space-16);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 340px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__links a {
  font-size: var(--text-sm);
  color: rgba(245,240,232,0.5);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--offwhite); }
.footer__contact { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__contact a {
  font-size: var(--text-sm);
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__contact a:hover { color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__legal {
  font-size: var(--text-xs);
  color: rgba(245,240,232,0.25);
  max-width: 760px;
  line-height: 1.65;
}
.footer__copy {
  font-size: var(--text-xs);
  color: rgba(245,240,232,0.2);
}
.nav__logo--footer { margin-bottom: var(--space-3); }
.nav__logo--footer .nav__logo-mark { width: 28px; height: 34px; }
.nav__logo--footer .nav__logo-icon { width: 28px; height: 40px; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--offwhite);
  padding: 8px 16px;
  z-index: 9999;
  font-size: var(--text-sm);
}
.skip-link:focus { top: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn--gold { display: none; }
  .nav__actions .btn--ghost { display: none; }
  .nav__hamburger { display: flex; }
  .hero__stats { flex-direction: column; border: none; gap: 0; }
  .stat { border-top: 1px solid rgba(201,150,42,0.12); width: 100%; }
  .stat__divider { display: none; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .trust-links { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .section-headline--large { font-size: var(--text-2xl); }
  .hero__headline { font-size: clamp(2.2rem, 8vw, 5rem); }
  .cta-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ACCESS GATE
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.gate__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.gate__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  width: 100%;
}
.gate__logo svg { width: 44px; height: 54px; color: var(--gold); }
.gate__wordmark { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.gate__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--offwhite);
  letter-spacing: 0.12em;
  line-height: 1;
}
.gate__sub {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.gate__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(245,240,232,0.35);
  margin-bottom: 1.25rem;
}
.gate__divider {
  width: 40px;
  height: 1px;
  background: rgba(201,150,42,0.3);
  margin-bottom: 1.75rem;
}
#gate-code-view, #gate-form-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
#gate-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,150,42,0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--offwhite);
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
#gate-input::placeholder { color: rgba(245,240,232,0.25); }
#gate-input:focus { border-color: rgba(201,150,42,0.6); }
#gate-input.shake {
  animation: shake 0.4s var(--ease-out);
  border-color: rgba(139,58,42,0.6);
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.gate-btn {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s;
}
.gate-btn:hover { background: var(--gold-light); }
.gate-request-link {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.35);
  margin-top: 0.25rem;
}
.gate-request-link a {
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gate-form-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--offwhite);
  margin-bottom: 0.5rem;
}
#gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}
#gate-form input, #gate-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,150,42,0.2);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--offwhite);
  outline: none;
  resize: vertical;
}
#gate-form input::placeholder, #gate-form textarea::placeholder {
  color: rgba(245,240,232,0.25);
}
#gate-form input:focus, #gate-form textarea:focus {
  border-color: rgba(201,150,42,0.5);
}
