/* ==========================================================================
   Leadvium (leadvium.pages.dev) — Sovereign Outbound & Revenue Engineering
   Dual-Surface Design System (Deep Meridian Slate #08111D + Studio Porcelain #F6F8FC)
   Zero opacity:0 traps (FIX #1 compliant) · Native LTR & RTL (EN / FA / AR)
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-latin-1.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-latin-1.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh VF";
  src: url("/fonts/YekanBakh-VF.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekanX VF";
  src: url("/fonts/IRANYekanXVF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/IBMPlexSansArabic-arabic-0.woff2") format("woff2"),
       url("/fonts/IBMPlexSansArabic-arabic-3.woff2") format("woff2"),
       url("/fonts/IBMPlexSansArabic-arabic-6.woff2") format("woff2"),
       url("/fonts/IBMPlexSansArabic-arabic-9.woff2") format("woff2"),
       url("/fonts/IBMPlexSansArabic-latin-2.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #08111D;
  --bg-dark-elev: #0D1B2E;
  --bg-dark-card: #11223A;
  --border-dark: rgba(148, 178, 218, 0.17);
  --border-dark-strong: rgba(148, 178, 218, 0.32);
  --text-on-dark: #F3F7FC;
  --muted-on-dark: #9CB1CB;

  --bg-light: #F6F8FC;
  --surface-white: #FFFFFF;
  --surface-subtle: #EDF2F9;
  --border-light: #D9E2EF;
  --border-light-strong: #BCCBE0;
  --text-ink: #0B1626;
  --muted-ink: #475870;

  --cobalt: #1D5BFF;
  --cobalt-hover: #1549D6;
  --cobalt-bright: #5B8EFF;
  --cobalt-soft: rgba(29, 91, 255, 0.10);

  --emerald: #0D9F6E;
  --emerald-bright: #34D399;
  --emerald-soft: rgba(16, 185, 129, 0.13);

  --amber: #C97A10;
  --amber-bright: #FBBF24;
  --amber-soft: rgba(245, 158, 11, 0.15);

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-editorial: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-studio: 0 22px 54px -18px rgba(8, 17, 29, 0.16), 0 2px 8px rgba(8, 17, 29, 0.05);
  --shadow-dark: 0 26px 64px -20px rgba(2, 6, 14, 0.65);
}

html[lang="fa"] {
  --font-display: "Yekan Bakh VF", system-ui, sans-serif;
  --font-body: "IRANYekanX VF", system-ui, sans-serif;
  --font-editorial: "Yekan Bakh VF", system-ui, sans-serif;
}

html[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-editorial: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-ink);
  background-color: var(--bg-light);
  overflow-x: clip;
  max-width: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="fa"] body {
  line-height: 1.85;
}

html[lang="ar"] body {
  line-height: 1.78;
}

[dir="rtl"] * {
  letter-spacing: 0 !important;
  font-style: normal !important;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cobalt-bright);
  outline-offset: 3px;
}

.ltr-code {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-mono);
  font-size: 0.86em;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  inset-block-start: -120px;
  inset-inline-start: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--cobalt);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  inset-block-start: 14px;
}

/* Top Scroll Progress Laser */
.scroll-laser {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cobalt) 0%, var(--emerald-bright) 100%);
  transform-origin: 0% 50%;
  transform: scaleX(0);
  z-index: 1200;
  pointer-events: none;
}
[dir="rtl"] .scroll-laser {
  transform-origin: 100% 50%;
}

/* Container & Surfaces */
.lv-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.surface-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  position: relative;
}

.surface-light {
  background-color: var(--bg-light);
  color: var(--text-ink);
  position: relative;
}

.surface-white {
  background-color: var(--surface-white);
  color: var(--text-ink);
  position: relative;
}

.lv-section {
  padding-block: clamp(64px, 8vw, 112px);
}

.lv-section-tight {
  padding-block: clamp(44px, 5vw, 76px);
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin-block: 0;
  text-wrap: balance;
}

.display-xl {
  font-size: clamp(2.15rem, 4.3vw, 3.85rem);
  line-height: 1.09;
  font-weight: 700;
  letter-spacing: -0.03em;
}
html[lang="fa"] .display-xl,
html[lang="ar"] .display-xl {
  line-height: 1.32;
  font-size: clamp(1.95rem, 3.9vw, 3.35rem);
}

.display-lg {
  font-size: clamp(1.75rem, 3.1vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}
html[lang="fa"] .display-lg,
html[lang="ar"] .display-lg {
  line-height: 1.38;
  font-size: clamp(1.6rem, 2.8vw, 2.45rem);
}

.heading-md {
  font-size: clamp(1.22rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  font-weight: 700;
}
html[lang="fa"] .heading-md,
html[lang="ar"] .heading-md {
  line-height: 1.48;
}

.lead-prose {
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  max-width: 64ch;
  margin-block: 16px 0;
}
.surface-dark .lead-prose {
  color: var(--muted-on-dark);
}
.surface-light .lead-prose,
.surface-white .lead-prose {
  color: var(--muted-ink);
}

/* Structural Kicker / Pill */
.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-block-end: 18px;
  max-width: 100%;
}
.surface-dark .kicker-pill {
  background: rgba(29, 91, 255, 0.16);
  border: 1px solid rgba(91, 142, 255, 0.35);
  color: #CFE0FF;
}
.surface-light .kicker-pill,
.surface-white .kicker-pill {
  background: var(--cobalt-soft);
  border: 1px solid rgba(29, 91, 255, 0.22);
  color: var(--cobalt);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
  flex-shrink: 0;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  background: rgba(8, 17, 29, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--border-dark);
  color: var(--text-on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.brand-emblem {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  transition: color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}
.nav-item:hover,
.nav-item.is-active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 3px;
}

.lang-pill {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  transition: all 0.18s ease;
}
.lang-pill.is-active {
  background: var(--cobalt);
  color: #FFFFFF;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
  line-height: 1.35;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.87rem;
}

.btn-primary {
  background: var(--cobalt);
  color: #FFFFFF;
  box-shadow: 0 10px 26px -8px rgba(29, 91, 255, 0.55);
}
.btn-primary:hover {
  background: var(--cobalt-hover);
}

.btn-secondary {
  background: var(--surface-white);
  color: var(--text-ink);
  border-color: var(--border-light-strong);
}
.btn-secondary:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: var(--border-dark-strong);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--border-dark-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.mobile-drawer {
  border-block-start: 1px solid var(--border-dark);
  background: #0A1525;
  padding: 16px clamp(16px, 4vw, 40px) 24px;
}

.mobile-nav-list {
  display: grid;
  gap: 6px;
  margin-block-end: 16px;
}

.mobile-nav-link {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--text-on-dark);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}
.mobile-nav-link.is-active {
  background: rgba(29, 91, 255, 0.24);
  border: 1px solid rgba(91, 142, 255, 0.4);
}

/* Hero Command Stage */
.hero-stage {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 96px) clamp(60px, 8vw, 104px);
  border-block-end: 1px solid var(--border-dark);
}

.hero-signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 28px;
}

.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-block-start: 38px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--border-dark);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--muted-on-dark);
  margin-block-start: 4px;
}

/* Playable Hero Telemetry Console */
.telemetry-console {
  background: rgba(13, 27, 46, 0.88);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(10px);
  min-width: 0;
}

.console-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-block-end: 14px;
  border-block-end: 1px solid var(--border-dark);
  margin-block-end: 16px;
}

.console-window-dots {
  display: inline-flex;
  gap: 6px;
}
.console-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.console-window-dots span:first-child { background: #F87171; }
.console-window-dots span:nth-child(2) { background: #FBBF24; }
.console-window-dots span:nth-child(3) { background: #34D399; }

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 16px;
}

.scenario-tab {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-on-dark);
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.16s ease;
}
.scenario-tab.is-active {
  background: var(--cobalt);
  border-color: var(--cobalt-bright);
  color: #FFFFFF;
}

.telemetry-rows {
  display: grid;
  gap: 10px;
}

.telemetry-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 0.64fr);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8, 17, 29, 0.65);
  border: 1px solid rgba(148, 178, 218, 0.12);
  font-size: 0.87rem;
  align-items: baseline;
}

.telemetry-key {
  color: var(--muted-on-dark);
  font-weight: 500;
}

.telemetry-val {
  color: #FFFFFF;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.telemetry-reply-box {
  margin-block-start: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.32);
}

.telemetry-reply-quote {
  font-size: 0.9rem;
  color: #E6FFF5;
  margin: 0 0 8px;
}

.telemetry-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--emerald-bright);
}

/* Architecture Safeguard Marquee Tape */
.safeguard-tape {
  background: #060D17;
  border-block-end: 1px solid var(--border-dark);
  padding-block: 13px;
  overflow: hidden;
  color: var(--muted-on-dark);
  font-size: 0.85rem;
}

.tape-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
}

.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.tape-sep {
  color: var(--cobalt-bright);
  font-weight: 700;
}

/* Editorial Manifesto */
.manifesto-block {
  max-width: 960px;
  margin-inline: auto;
}

.manifesto-quote {
  font-family: var(--font-editorial);
  font-size: clamp(1.45rem, 2.65vw, 2.3rem);
  line-height: 1.42;
  font-weight: 500;
  color: var(--text-ink);
  margin: 0;
}
html[lang="fa"] .manifesto-quote,
html[lang="ar"] .manifesto-quote {
  font-weight: 700;
  line-height: 1.65;
}

.manifesto-word {
  transition: color 0.25s ease;
}

/* Section Headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-block-end: clamp(32px, 4.5vw, 52px);
}

.section-head-main {
  max-width: 720px;
}

/* 6-Stage Pipeline Command Deck */
.pipeline-deck {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.stage-selector-list {
  display: grid;
  gap: 10px;
}

.stage-selector-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  color: var(--muted-on-dark);
  text-align: start;
  transition: all 0.18s ease;
}
.stage-selector-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}
.stage-selector-btn.is-active {
  background: var(--bg-dark-card);
  border-color: var(--cobalt-bright);
  color: #FFFFFF;
  box-shadow: 0 12px 28px -12px rgba(29, 91, 255, 0.45);
}

.stage-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(29, 91, 255, 0.18);
  color: var(--cobalt-bright);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.stage-selector-btn.is-active .stage-num-badge {
  background: var(--cobalt);
  color: #FFFFFF;
}

.stage-detail-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow-dark);
  min-width: 0;
}

.stage-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block: 22px;
}

.stage-metric-chip {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(8, 17, 29, 0.65);
  border: 1px solid var(--border-dark);
  font-size: 0.86rem;
  font-weight: 600;
  color: #E2EEFF;
}

.stage-outputs-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.stage-outputs-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-on-dark);
}
.check-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.surface-light .check-badge,
.surface-white .check-badge {
  color: var(--emerald);
}

/* Real Product Studio Showcase + Pins */
.studio-showcase-shell {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.5vw, 28px);
  box-shadow: var(--shadow-studio);
}

.studio-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 20px;
}

.studio-tab-btn {
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  color: var(--muted-ink);
  font-size: 0.87rem;
  font-weight: 600;
  transition: all 0.16s ease;
}
.studio-tab-btn:hover {
  border-color: var(--cobalt);
  color: var(--text-ink);
}
.studio-tab-btn.is-active {
  background: var(--text-ink);
  border-color: var(--text-ink);
  color: #FFFFFF;
}

.studio-frame-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light-strong);
  background: #F8FAFC;
}

.studio-screen-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.studio-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cobalt);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(8, 17, 29, 0.35);
  z-index: 4;
}

.studio-caption-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-block-start: 20px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--border-light);
}

.studio-pins-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 12px;
}

.pin-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  font-size: 0.83rem;
  font-weight: 500;
}

/* 14-Page Executive Audit PDF Dossier Fan */
.dossier-fan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dossier-sheet {
  background: #FCFBF7;
  color: #142238;
  border: 1px solid #D7D2C4;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 18px 36px -18px rgba(8, 17, 29, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
}

.dossier-sheet-top {
  border-block-start: 3px solid #17263E;
  padding-block-start: 14px;
}

.dossier-page-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9A7414;
  margin-block-end: 8px;
}

.dossier-mini-bars {
  display: grid;
  gap: 7px;
  margin-block-start: 16px;
}
.dossier-bar-track {
  height: 7px;
  border-radius: 99px;
  background: #E6E1D3;
  overflow: hidden;
}
.dossier-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #17263E 0%, #1D5BFF 100%);
}

/* Custom Engagement Steps & Playbooks Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.arch-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.arch-card:hover {
  border-color: var(--border-light-strong);
  box-shadow: var(--shadow-studio);
}

.surface-dark .arch-card {
  background: var(--bg-dark-card);
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}
.surface-dark .arch-card:hover {
  border-color: var(--cobalt-bright);
}

/* Spotlight radial border glow */
.spotlight-card {
  background-image: radial-gradient(
    480px circle at var(--mx, -500px) var(--my, -500px),
    rgba(29, 91, 255, 0.08),
    transparent 45%
  );
}
.surface-dark .spotlight-card {
  background-image: radial-gradient(
    480px circle at var(--mx, -500px) var(--my, -500px),
    rgba(91, 142, 255, 0.14),
    transparent 45%
  );
}

/* Pricing Cards (Mobbin Lightdash / Sana Stark Contrast) */
.pricing-billing-bar {
  display: flex;
  justify-content: center;
  margin-block-end: 32px;
}

.billing-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
}

.billing-btn {
  padding: 9px 18px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted-ink);
}
.billing-btn.is-active {
  background: var(--surface-white);
  color: var(--text-ink);
  box-shadow: 0 2px 8px rgba(8, 17, 29, 0.08);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
}

.plan-card.is-featured {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--cobalt-bright);
  box-shadow: var(--shadow-dark);
}

.plan-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  background: var(--surface-subtle);
  color: var(--cobalt);
  margin-block-end: 14px;
}
.plan-card.is-featured .plan-badge {
  background: rgba(29, 91, 255, 0.25);
  color: #93BBFF;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-block: 14px 6px;
}

.plan-price-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1.1;
}

.plan-price-unit {
  font-size: 0.92rem;
  opacity: 0.78;
}

.plan-setup-note {
  font-size: 0.83rem;
  color: var(--muted-ink);
  margin-block-end: 14px;
}
.plan-card.is-featured .plan-setup-note {
  color: var(--muted-on-dark);
}

.plan-metrics-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  margin-block: 14px;
}
.plan-card.is-featured .plan-metrics-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-dark);
}

.plan-metric-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  flex-wrap: wrap;
}

.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}
.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Interactive Calculators & Sandboxes */
.interactive-workbench {
  background: var(--surface-white);
  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.2vw, 38px);
  box-shadow: var(--shadow-studio);
}
.surface-dark .interactive-workbench {
  background: var(--bg-dark-card);
  border-color: var(--border-dark-strong);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-dark);
}

.workbench-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(22px, 3.5vw, 40px);
  align-items: start;
}

.toggle-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 10px;
}

.chip-toggle {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-light-strong);
  background: var(--bg-light);
  color: var(--text-ink);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.chip-toggle.is-selected {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #FFFFFF;
}
.surface-dark .chip-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-dark-strong);
  color: var(--text-on-dark);
}
.surface-dark .chip-toggle.is-selected {
  background: var(--cobalt);
  border-color: var(--cobalt-bright);
  color: #FFFFFF;
}

.range-slider {
  width: 100%;
  accent-color: var(--cobalt);
  margin-block: 10px;
}

.estimator-summary-card {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* 9-Point Scanner Interactive Simulator */
.scanner-checks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scan-signal-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-light-strong);
  background: var(--bg-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: start;
}
.scan-signal-btn.has-gap {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 138, 28, 0.45);
  color: #92400E;
}

/* Tables (Mobile 390px Safe Scroll Wrapper) */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-white);
}

.lv-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.91rem;
}
.lv-table th,
.lv-table td {
  padding: 14px 18px;
  border-block-end: 1px solid var(--border-light);
  text-align: start;
  vertical-align: top;
}
.lv-table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-ink);
}

/* Multi-Step Start Brief Form */
.brief-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.span-2 {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 0.88rem;
  font-weight: 600;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-light-strong);
  background: var(--surface-white);
  color: var(--text-ink);
  font-size: 0.95rem;
}
.form-textarea {
  min-height: 110px;
  resize: vertical;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(29, 91, 255, 0.14);
}

/* Honeypot anti-spam field (only permitted hidden input) */
.hp-field {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 11, 20, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-panel {
  max-width: 1200px;
  width: 100%;
  background: var(--bg-dark-elev);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #FFFFFF;
}
.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-block-end: 12px;
}

/* Monumental Footer (Mobbin Retool + Dub Inspired) */
.site-footer {
  background: #050B14;
  color: var(--text-on-dark);
  border-block-start: 1px solid var(--border-dark);
  padding-block: clamp(56px, 7vw, 88px) 36px;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(24px, 3.5vw, 44px);
  padding-block-end: 44px;
  border-block-end: 1px solid var(--border-dark);
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-block-end: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--muted-on-dark);
  transition: color 0.16s ease;
}
.footer-links a:hover {
  color: #FFFFFF;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #A7F3D0;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-monument {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block-start: 30px;
}

.footer-wordmark-giant {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  font-weight: 800;
  line-height: 0.95;
  color: rgba(243, 247, 252, 0.12);
  user-select: none;
}

/* Responsive Breakpoints (Strict 390px Zero Overflow) */
@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .pipeline-deck,
  .workbench-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .pricing-grid,
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dossier-fan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-cta-desktop {
    display: none;
  }
  .hero-metrics-bar,
  .stage-metrics-row,
  .pricing-grid,
  .cards-grid-3,
  .cards-grid-2,
  .dossier-fan-grid,
  .scanner-checks-grid,
  .brief-form-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .telemetry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .studio-pin {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-secondary,
  .btn-ghost-dark {
    width: 100%;
  }
}
