/* ─── DESIGN TOKENS ─── */
:root {
  /* Dark backgrounds */
  --bg:        #090805;
  --bg-1:      #121009;
  --bg-2:      #1c170f;
  --bg-3:      #252015;
  --bg-card:   #161209;
  --bg-elevated: #201b10;

  /* Amber / Honey accent */
  --honey:        #f0a500;
  --honey-bright: #ffc340;
  --honey-dim:    #c47e08;
  --honey-glow:   rgba(240,165,0,0.12);
  --honey-glow2:  rgba(240,165,0,0.06);
  --honey-border: rgba(240,165,0,0.22);
  --honey-border2:rgba(240,165,0,0.10);

  /* Text */
  --text:       #ede5cf;
  --text-muted: #8a7850;
  --text-dim:   #4e4333;

  /* Functional */
  --gold:   #ffd966;
  --amber:  #c47a0a;
  --coral:  #e06b3a;
  --white:  #ffffff;
  --success:#5cba8a;

  /* Borders */
  --border:    rgba(255,255,255,0.06);
  --border-hv: rgba(255,255,255,0.10);

  /* Typography */
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.5);
  --shadow-honey: 0 0 32px rgba(240,165,0,0.15);

  /* Nav */
  --nav-h: 72px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── UTILITY ─── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--honey);
  opacity: 0.6;
}
.section {
  padding: clamp(36px, 5vw, 72px) 0;
}
.section-dark { background: var(--bg); }
.section-alt  { background: var(--bg-1); }
.section-card { background: var(--bg-2); }

/* ─── HEX PATTERN BACKGROUND ─── */
.hex-bg {
  position: relative;
}
.hex-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, rgba(240,165,0,0.04) 12%, transparent 12.5%, transparent 87%, rgba(240,165,0,0.04) 87.5%),
    linear-gradient(150deg, rgba(240,165,0,0.04) 12%, transparent 12.5%, transparent 87%, rgba(240,165,0,0.04) 87.5%),
    linear-gradient(30deg, rgba(240,165,0,0.04) 12%, transparent 12.5%, transparent 87%, rgba(240,165,0,0.04) 87.5%),
    linear-gradient(150deg, rgba(240,165,0,0.04) 12%, transparent 12.5%, transparent 87%, rgba(240,165,0,0.04) 87.5%),
    linear-gradient(60deg, rgba(240,165,0,0.025) 25%, transparent 25.5%, transparent 75%, rgba(240,165,0,0.025) 75%),
    linear-gradient(60deg, rgba(240,165,0,0.025) 25%, transparent 25.5%, transparent 75%, rgba(240,165,0,0.025) 75%);
  background-size: 40px 70px;
  background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
}

/* ─── HEX SHAPE UTILITY ─── */
.hex {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* ─── HEX ICON BADGE ─── */
.hex-icon {
  width: 52px; height: 52px;
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--honey);
}
.hex-icon svg { width: 22px; height: 22px; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(9,8,5,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
#nav.scrolled {
  background: rgba(9,8,5,0.96);
  border-bottom-color: var(--honey-border2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* 3-column grid: logo | links (centered) | cta + toggle */
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { flex-shrink: 0; }
.nav-logo span { color: var(--honey); }

/* Nav links — middle column, centered */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* CTA button — right column (desktop only) */
.nav-cta-desktop {
  display: inline-flex;
  align-items: center;
  background: var(--honey);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.nav-cta-desktop:hover {
  background: var(--honey-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240,165,0,0.3);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--honey-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  line-height: 0;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover {
  background: var(--honey-glow);
  border-color: var(--honey);
}

/* CTA inside mobile dropdown */
.nav-cta-mobile {
  display: none;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: clamp(40px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Radial glow backdrop */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(240,165,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 16px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--honey);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-title em {
  font-style: italic;
  color: var(--honey);
}
.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--honey);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--honey-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,165,0,0.35);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-hv);
  background: rgba(255,255,255,0.04);
}
.btn-arrow {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

/* Hero federated bar */
.hero-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.hero-bar svg { color: var(--honey); }

/* Hero visual card */
.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--honey-border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg), var(--shadow-honey);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, rgba(240,165,0,0.1), transparent 70%);
  pointer-events: none;
}
.hero-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 24px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.stat-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 18px;
  transition: border-color 0.2s, background 0.2s;
}
.stat-item:hover {
  border-color: var(--honey-border);
  background: var(--bg-elevated);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--honey);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   PROBLEM SECTION
═══════════════════════════════════════ */
.problem-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.78;
  color: var(--text-muted);
}
/* Three-stage lifecycle */
.problem-lifecycle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}
.problem-lifecycle::before {
  content: '';
  position: absolute;
  top: 44px; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,165,0,0.25) 25%, rgba(240,165,0,0.25) 75%, transparent);
  pointer-events: none;
  z-index: 0;
}
.problem-stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--honey-dim);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  transition: border-top-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.problem-stage:hover {
  border-top-color: var(--honey);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.problem-stage-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.problem-stage-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--honey);
  flex-shrink: 0;
}
.problem-stage-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}
.problem-stage-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.problem-stage-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-top: auto;
}
.problem-stage-stat-num {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--honey);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.problem-stage-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Bridge / consequence block */
.problem-bridge {
  border-left: 3px solid var(--honey);
  padding: 22px 28px;
  background: var(--bg-elevated);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.problem-bridge-text {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}
.problem-bridge-text strong {
  color: var(--honey);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   OPPORTUNITY SECTION
═══════════════════════════════════════ */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.opp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.opp-card:hover {
  border-color: var(--honey-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--honey-border2);
}
.opp-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.opp-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.opp-card-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   PRINCIPLES SECTION
═══════════════════════════════════════ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.principle-card::after {
  content: attr(data-num);
  position: absolute;
  top: -10px; right: 20px;
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--honey-border2);
  line-height: 1;
  pointer-events: none;
}
.principle-card:hover {
  border-color: var(--honey-border);
  transform: translateY(-4px);
}
.principle-icon {
  margin-bottom: 20px;
}
.principle-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.principle-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   ARCHITECTURE SECTION
═══════════════════════════════════════ */
.arch-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tier-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 28px;
  align-items: stretch;
  padding-bottom: 0;
}
.tier-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.tier-num-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--honey);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}
.tier-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, var(--honey-border), transparent);
  min-height: 24px;
}
.tier-item:last-child .tier-line { display: none; }
.tier-body {
  padding-bottom: 40px;
  padding-top: 12px;
}
.tier-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tier-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.tier-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--honey);
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  border-radius: 4px;
  padding: 2px 8px;
}
.tier-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
}
.pill-amber {
  color: var(--honey);
  background: var(--honey-glow);
  border-color: var(--honey-border);
}

/* ═══════════════════════════════════════
   DOMAINS SECTION
═══════════════════════════════════════ */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.domain-card:hover {
  border-color: var(--honey-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.domain-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.domain-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.domain-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.domain-feat {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
}

/* ═══════════════════════════════════════
   EVIDENCE ENGINE SECTION
═══════════════════════════════════════ */
.evidence-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.evidence-flow::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--honey-border), var(--honey-border), transparent);
}
.ev-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.ev-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--honey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--honey);
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-honey);
}
.ev-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.ev-desc {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   QI / PDSA SECTION
═══════════════════════════════════════ */
.pdsa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--honey-border);
  border: 1px solid var(--honey-border);
  border-radius: 16px;
  overflow: hidden;
  margin: 48px 0 32px;
}
.pdsa-card {
  background: var(--bg-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.pdsa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.pdsa-plan::before  { background: rgba(240,165,0,0.45); }
.pdsa-do::before    { background: rgba(240,165,0,0.65); }
.pdsa-study::before { background: rgba(240,165,0,0.85); }
.pdsa-act::before   { background: rgba(240,165,0,1); }

.pdsa-phase-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey);
}
.pdsa-step-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.pdsa-step-desc {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.pdsa-ai-tag {
  font-size: 0.78rem;
  color: var(--honey);
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  border-radius: 4px;
  padding: 6px 10px;
  line-height: 1.4;
  align-self: flex-start;
}

/* QI feature strip */
.qi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--honey-border);
  border: 1px solid var(--honey-border);
  border-radius: 12px;
  overflow: hidden;
}
.qi-feat {
  background: var(--bg-2);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qi-feat-icon {
  color: var(--honey);
}
.qi-feat-title {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.qi-feat-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin: 0;
}

/* ═══════════════════════════════════════
   MIGRATION SECTION
═══════════════════════════════════════ */
.migration-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.mig-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 18px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s;
}
.mig-step::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--honey-border);
  font-size: 1.1rem;
  z-index: 1;
}
.mig-step:last-child::after { display: none; }
.mig-step:hover { border-color: var(--honey-border); }
.mig-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  color: var(--honey);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.mig-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.mig-desc {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════
   ROADMAP SECTION
═══════════════════════════════════════ */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.roadmap-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--honey-border), var(--honey-border), transparent);
}
.phase-card {
  position: relative;
  padding: 0 clamp(16px, 2.5vw, 28px);
  z-index: 1;
}
.phase-dot-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.phase-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--honey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--honey);
  box-shadow: 0 0 20px rgba(240,165,0,0.15);
}
.phase-period {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey-dim);
  text-align: center;
  margin-bottom: 10px;
}
.phase-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 14px;
}
.phase-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  line-height: 1.45;
}

/* ═══════════════════════════════════════
   COMPETITIVE SECTION
═══════════════════════════════════════ */
.competitive-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}
.comp-table th {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}
.comp-table th:nth-child(2) { color: var(--text-muted); }
.comp-table th:nth-child(3) { color: var(--honey); }
.comp-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.55;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.comp-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.comp-table td:nth-child(3) { color: var(--text); }
.check {
  color: var(--honey);
  font-weight: 700;
}
.cross {
  color: var(--text-dim);
}

.verdict-block {
  background: var(--bg-card);
  border: 1px solid var(--honey-border);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.verdict-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(240,165,0,0.06), transparent 60%);
  pointer-events: none;
}
.verdict-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
  position: relative;
  z-index: 1;
}
.verdict-quote em {
  color: var(--honey);
  font-style: normal;
}

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.cta-sub {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 44px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--honey);
  color: var(--bg);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: var(--r-sm);
  margin-bottom: 56px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: var(--honey-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(240,165,0,0.4);
}
.cta-steps {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}
.cta-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cta-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  color: var(--honey);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--bg);
  padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: 48px;
}
.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: 16px;
  max-width: 300px;
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--honey); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--honey); }
.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--honey);
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ═══════════════════════════════════════
   SECTION DIVIDER DECORATION
═══════════════════════════════════════ */
.section-intro {
  margin-bottom: clamp(24px, 3.5vw, 48px);
}
.section-intro.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET (max 1024px)
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { max-width: 540px; }
  .hero-sub { max-width: 100%; }

  .problem-lifecycle { grid-template-columns: 1fr; }
  .problem-lifecycle::before { display: none; }

  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .roadmap-grid::before { display: none; }
  .phase-dot-wrap { justify-content: flex-start; }
  .phase-period, .phase-name { text-align: left; }

  .evidence-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    row-gap: 40px;
  }
  .evidence-flow::before { display: none; }

  .migration-steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }
  .mig-step::after { display: none; }

  .qi-strip { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav — collapse to logo + toggle */
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(9,8,5,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--honey-border2);
    padding: 8px 16px 20px;
    gap: 2px;
  }
  .nav-links.show { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    justify-content: flex-start;
  }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile {
    display: block;
    margin-top: 8px;
    background: var(--honey);
    color: var(--bg) !important;
    font-weight: 700;
    text-align: center;
    padding: 13px 20px;
    border-radius: var(--r-sm);
  }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero-visual { max-width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  /* Sections */
  .problem-lifecycle { grid-template-columns: 1fr; }
  .problem-lifecycle::before { display: none; }
  .opp-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .domains-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; gap: 32px; }

  .pdsa-grid { grid-template-columns: 1fr; }
  .pdsa-card { padding: 28px 22px; }
  .qi-strip { grid-template-columns: 1fr; }

  .evidence-flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ev-step { align-items: flex-start; text-align: left; flex-direction: row; gap: 20px; }
  .ev-num { margin-bottom: 0; flex-shrink: 0; }
  .evidence-flow::before { display: none; }

  .migration-steps { grid-template-columns: 1fr; }
  .mig-step::after { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-steps { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Arch */
  .tier-item { grid-template-columns: 52px 1fr; gap: 0 16px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — SMALL (max 480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-tags { flex-direction: column; }
  .hero-tag { width: fit-content; }
}

/* ─── DESKTOP BASE FONT SCALE (min 1024px) ─── */
@media (min-width: 1024px) {
  html { font-size: 16px; }
}

/* ─── DESKTOP ENHANCEMENT (min 1280px) ─── */
@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: 55% 45%; }
  .opp-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ─── LARGE DESKTOP (min 1440px) ─── */
@media (min-width: 1440px) {
  .principles-grid { gap: 32px; }
  .domains-grid    { gap: 32px; }
}
