/* ==========================================================================
   LightningDB Design System
   Identity: Navy-forward (#0a1f3d) C++ Graph Database for AI Retrieval
   Typography: Space Grotesk (Brand & Display), Plus Jakarta Sans (Body),
               JetBrains Mono (Code, Metrics & Telemetry)
   ========================================================================== */

:root {
  /* Brand Navy Spectrum */
  --navy-950: #040d1a;
  --navy-900: #07172e;
  --navy-850: #0a1f3d; /* Signature LightningDB navy */
  --navy-800: #0f2c56;
  --navy-700: #153e77;
  --navy-600: #1e529a;
  
  /* Electric Accents */
  --electric: #00d4ff;
  --electric-hover: #38bdf8;
  --electric-dim: rgba(0, 212, 255, 0.14);
  --electric-border: rgba(0, 212, 255, 0.35);

  /* Semantic Tones */
  --gain: #059669;
  --gain-bg: #ecfdf5;
  --gain-border: #a7f3d0;
  --neo: #64748b;
  
  /* Light Field Surfaces (atmospheric, not flat) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-wash: #f0f4f9;
  --bg-subtle: #e8eef6;
  
  /* Ink & Typography */
  --ink: #071526;
  --body: #24354c;
  --muted: #536780;
  --line: #cbd7e4;
  --line-subtle: #e2e9f2;

  /* Typography Stacks */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --max: 1160px;
  --max-wide: 1280px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(90% 70% at 50% 0%, #edf3fb 0%, var(--bg-page) 100%),
    linear-gradient(to right, rgba(10, 31, 61, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 31, 61, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-800);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--navy-600);
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--body);
  max-width: 42rem;
}

/* Code & Pre */
code, pre, .cmd {
  font-family: var(--font-mono);
}

code {
  font-size: 0.9em;
  background: var(--bg-wash);
  color: var(--navy-900);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 31, 61, 0.08);
}

pre, .cmd {
  background: var(--navy-950);
  color: #e2e8f0;
  padding: 24px 26px;
  margin: 0;
  line-height: 1.6;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  white-space: pre;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: 0;
  font-size: inherit;
}

.cmd {
  margin-top: 18px;
  white-space: pre-wrap;
  word-break: break-word;
}

.cmd .prompt {
  display: block;
  color: #7dd3fc;
  font-size: 0.84rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin: 0 auto;
}

.wrap-wide {
  width: min(var(--max-wide), 100% - 2 * var(--gutter));
  margin: 0 auto;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
}

/* ==========================================================================
   Header & Chrome Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 23, 46, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.site-header .bar {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand:hover {
  color: #ffffff;
}

.brand-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: var(--radius-sm);
  color: var(--electric);
  flex-shrink: 0;
}

.brand-bolt svg,
.bolt-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -2px 0 var(--electric);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.link-quiet:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.gh-icon {
  flex-shrink: 0;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

/* Primary Electric Action */
.btn-electric,
.btn-white,
.site-header .btn-primary {
  background: var(--electric);
  color: var(--navy-950);
  border-color: var(--electric);
  font-weight: 700;
}

.btn-electric:hover,
.btn-white:hover,
.site-header .btn-primary:hover {
  background: var(--electric-hover);
  border-color: var(--electric-hover);
  color: var(--navy-950);
}

/* Navy Primary Button */
.btn-navy,
.btn-primary {
  background: var(--navy-850);
  color: #ffffff;
  border-color: var(--navy-850);
}

.btn-navy:hover,
.btn-primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #ffffff;
}

/* Light Outline Button */
.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* Dark Outline Button */
.btn-line {
  background: transparent;
  color: var(--navy-850);
  border-color: var(--line);
}

.btn-line:hover {
  border-color: var(--navy-850);
  color: var(--navy-850);
  background: rgba(10, 31, 61, 0.03);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* ==========================================================================
   Flagship Landing Hero (First Viewport Composition)
   Hard Rules:
   - One composition for first viewport — not a dashboard
   - Brand first: LightningDB hero-level, not just nav
   - Edge-to-edge dominant visual plane, no inset cards, no floating badges
   - Budget: brand, one headline, one short supporting sentence, one CTA group, one dominant visual
   ========================================================================== */

.hero-flagship {
  background-color: var(--navy-950);
  background-image: 
    radial-gradient(130% 90% at 50% -10%, #102a50 0%, var(--navy-850) 45%, var(--navy-950) 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  color: #ffffff;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-flagship-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.hero-brand-anchor {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-bolt {
  width: 24px;
  height: 24px;
  color: var(--electric);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
}

.hero-brand-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #7dd3fc;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 12px;
  text-transform: uppercase;
}

.hero-flagship h1 {
  color: #ffffff;
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 20ch;
}

.hero-flagship .hero-subtext {
  font-size: clamp(1.15rem, 2vw, 1.32rem);
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 44rem;
  margin-bottom: 34px;
}

.hero-flagship .hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

/* Edge-to-Edge Dominant Visual Plane */
.hero-visual-plane {
  width: 100%;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.engine-pipeline-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Standard Page Hero
   ========================================================================== */

.hero {
  padding: 80px 0 64px;
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero-num {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 9.5vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--navy-850);
}

.steps-heading .step-num {
  color: var(--navy-850);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-right: 0.15em;
}

/* ==========================================================================
   Benchmark Duel Band (Head-to-head comparison)
   ========================================================================== */

.band {
  background: var(--navy-900);
  background-image: 
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px;
  color: #ffffff;
  padding: 68px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.duel-k {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: -0.01em;
}

.duel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.1rem;
  color: #ffffff;
}

.duel-row span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.duel-row strong {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.duel-row.other {
  color: #94a3b8;
}

.duel-row.other strong {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 500;
  color: #94a3b8;
}

.duel-x {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--electric);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.duel-x::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--electric);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--electric);
}

/* Visual Comparison Bar */
.duel-bars {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.duel-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.duel-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.duel-bar-fill.fast {
  background: var(--electric);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.duel-bar-fill.slow {
  background: #64748b;
}

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stats.four-col {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 10px;
  color: #ffffff;
}

.stats p {
  margin: 0;
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */

section.block {
  padding: 96px 0;
  border-bottom: 1px solid var(--line-subtle);
}

section.wash {
  background-color: var(--bg-wash);
  background-image: 
    radial-gradient(100% 100% at 50% 0%, #e8f0f8 0%, var(--bg-wash) 100%),
    linear-gradient(to right, rgba(10, 31, 61, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 31, 61, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.intro {
  max-width: 50rem;
  margin-bottom: 48px;
}

.intro.intro-wide {
  max-width: none;
}

.intro h2 {
  margin-bottom: 0.35em;
}

.intro p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--body);
  max-width: 44rem;
}

.intro.row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.intro.row .actions {
  margin: 0;
  flex-shrink: 0;
}

/* Architectural Lines Grid (One engine, three jobs) */
.lines article {
  display: grid;
  grid-template-columns: minmax(13rem, 18rem) 1fr;
  gap: 20px 56px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.lines article:last-child {
  border-bottom: 1px solid var(--line);
}

.lines h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.line-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--navy-600);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lines p {
  margin: 0;
  font-size: 1.12rem;
  color: var(--body);
  max-width: 44rem;
  line-height: 1.6;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.split > * {
  min-width: 0;
}

.prose p {
  font-size: 1.12rem;
  color: var(--body);
  line-height: 1.65;
  max-width: 42rem;
}

.prose h2 {
  margin-top: 0;
}

.side h2 {
  margin-top: 0;
}

.side dl {
  margin: 0;
}

.side dt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  padding-top: 20px;
}

.side dd {
  color: var(--body);
  font-size: 1.02rem;
  margin: 0;
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

/* ==========================================================================
   Data Tables & Tabular Benchmarks
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 16px 20px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-subtle);
}

table.data th {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-wash);
  border-bottom: 2px solid var(--navy-850);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.data td.num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--navy-850);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.data td.neo {
  font-family: var(--font-mono);
  color: var(--neo);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.data td.gain {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gain);
  text-align: right;
  white-space: nowrap;
}

table.data td:first-child {
  font-weight: 600;
  color: var(--ink);
}

table.data .sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

table.data.matrix th:not(:first-child),
table.data.matrix td:not(:first-child) {
  text-align: center;
}

.note {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 24px 0 0;
  max-width: 48rem;
  line-height: 1.55;
}

.note a {
  font-weight: 600;
}

/* ==========================================================================
   Pricing System (Self-hosted & Cloud)
   Rule: Preserves Self-hosted / Cloud tabs UX & accurate pricing model
   ========================================================================== */

.price-tabs-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 32px;
}

.price-tabs {
  display: inline-flex;
  background: var(--bg-wash);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  gap: 2px;
}

.price-tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.price-tab:hover {
  color: var(--ink);
}

.price-tab.is-active {
  background: var(--navy-850);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(10, 31, 61, 0.2);
}

.price-panel[hidden] {
  display: none !important;
}

.price-lead {
  font-size: 1.18rem;
  color: var(--body);
  max-width: 48rem;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* Editions Cards (Interactive user objects) */
.editions {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.editions-4 {
  grid-template-columns: repeat(4, 1fr);
}

.editions-3 {
  grid-template-columns: repeat(3, 1fr);
}

.editions article {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.editions article:hover {
  border-color: var(--navy-700);
  box-shadow: 0 8px 24px rgba(10, 31, 61, 0.08);
  transform: translateY(-2px);
}

.editions h2 {
  font-size: 1.55rem;
  margin: 0 0 10px;
  max-width: none;
}

.editions .amt {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 16px;
  color: var(--navy-850);
  letter-spacing: -0.03em;
}

.editions .amt span,
.unit {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.editions p {
  font-size: 0.98rem;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
}

.editions ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  font-size: 0.96rem;
  flex-grow: 1;
}

.editions li {
  padding: 7px 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-subtle);
}

.editions li:last-child {
  border-bottom: 0;
}

.editions li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy-850);
  flex-shrink: 0;
}

.editions .btn {
  width: 100%;
  margin-top: auto;
}

/* Panel Intro Bar & Cadence Switch */
.panel-intro-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.panel-intro-bar .price-lead {
  margin-bottom: 0;
  flex: 1 1 300px;
}
.cadence-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cadence-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.cadence-pills {
  display: inline-flex;
  background: var(--bg-wash);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  gap: 2px;
}
.cadence-pill {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.cadence-pill:hover {
  color: var(--ink);
}
.cadence-pill.is-active {
  background: var(--navy-850);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(10, 31, 61, 0.2);
}
.badge-save {
  background: #059669;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.amt-group {
  margin-bottom: 14px;
}
.amt-group .amt {
  margin-bottom: 2px;
}
.billing-note {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
  min-height: 1.2em;
}
.card-login-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  text-align: center;
}
.card-login-hint a {
  color: var(--navy-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.card-login-hint a:hover {
  color: var(--navy-900);
}

/* ==========================================================================
   Customer Portal & Commercial Services UI
   ========================================================================== */

.portal-hero {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #ffffff;
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.portal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.portal-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.14);
  color: var(--electric);
  border: 1px solid var(--electric-border);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.portal-header-bar h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 6px;
}
.portal-header-bar .lede {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.portal-auth-state {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--electric);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid var(--electric-border);
}
.user-email {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}
.user-role {
  font-size: 0.8rem;
  color: #34d399;
  font-weight: 500;
}

/* Guest Auth Card */
.portal-guest-container {
  max-width: 540px;
  margin: 20px auto 60px;
}
.portal-auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: 0 8px 28px rgba(10, 31, 61, 0.06);
}
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--line-subtle);
  margin-bottom: 28px;
}
.auth-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px 12px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.auth-tab.is-active {
  color: var(--navy-850);
  border-bottom-color: var(--navy-850);
}
.auth-form .form-group {
  margin-bottom: 20px;
}
.auth-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: #ffffff;
  color: var(--ink);
}
.auth-form input:focus {
  outline: 2px solid var(--navy-850);
  border-color: var(--navy-850);
}
.auth-actions {
  margin-top: 24px;
}
.auth-hint {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}
.verify-banner {
  background: var(--gain-bg);
  border: 1px solid var(--gain-border);
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.verify-banner p {
  margin: 4px 0 10px;
}

/* Authenticated Dashboard Navigation Pills */
.portal-nav-pills {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 32px;
  overflow-x: auto;
}
.portal-pill {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.portal-pill:hover {
  color: var(--ink);
  background: var(--bg-wash);
}
.portal-pill.is-active {
  background: var(--navy-850);
  color: #ffffff;
}

/* License Card Component */
.card-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.card-section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.card-section-header p {
  color: var(--muted);
  margin-bottom: 0;
}
.license-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(10, 31, 61, 0.04);
}
.lic-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-subtle);
}
.lic-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lic-tier-badge {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-850);
}
.lic-annual-tag {
  background: var(--gain-bg);
  color: #065f46;
  border: 1px solid var(--gain-border);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.lic-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}
.lic-status-badge.is-active {
  background: var(--gain-bg);
  color: #065f46;
  border: 1px solid var(--gain-border);
}
.lic-key-row {
  margin-bottom: 24px;
}
.lic-key-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.lic-key-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-wash);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}
.lic-key-display code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-850);
  background: transparent;
  padding: 0;
  flex: 1;
}
.lic-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-wash);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-subtle);
}
.meta-item .meta-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.meta-item .meta-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}
.meta-item .meta-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.lic-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
  flex-wrap: wrap;
}
.lic-actions-note {
  flex: 1 1 300px;
  font-size: 0.9rem;
  color: var(--body);
}
.lic-actions-note strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}
.lic-actions-note p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-weight: 600;
}
.btn-danger:hover {
  background: #fecaca;
  color: #7f1d1d;
}
.quickstart-box {
  background: var(--navy-950);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  color: #ffffff;
}
.quickstart-box h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.quickstart-box pre {
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Downloads Matrix Grid */
.download-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.dl-os-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.download-card h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.dl-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.dl-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}
.sha-preview {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Managed Azure Cluster Card */
.cloud-cluster-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
}
.cluster-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-subtle);
}
.cluster-ident {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cluster-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
}
.cluster-sku {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-wash);
  padding: 2px 8px;
  border-radius: 4px;
}
.cluster-badge.is-running {
  background: var(--gain-bg);
  color: #065f46;
  border: 1px solid var(--gain-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}
.cluster-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.cl-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.cl-uri {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--navy-850);
  font-weight: 600;
  background: var(--bg-wash);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}
.cl-link {
  font-weight: 600;
  color: var(--navy-850);
}
.sub-text {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}
.badge-safe {
  display: inline-block;
  background: rgba(0, 212, 255, 0.12);
  color: var(--navy-850);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.cluster-actions {
  display: flex;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
}

/* Billing Grid */
.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bill-box {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.bill-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.bill-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.bill-sub {
  font-size: 0.82rem;
  color: var(--muted);
}
.bill-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-850);
}

@media (max-width: 1100px) {
  .lic-meta-grid,
  .download-matrix-grid,
  .billing-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lic-meta-grid,
  .download-matrix-grid,
  .cluster-details-grid,
  .billing-summary-grid {
    grid-template-columns: 1fr;
  }
  .portal-header-bar,
  .lic-top,
  .lic-actions-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Steps, Platforms, and Interactive Lists
   ========================================================================== */

.steps {
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  list-style: none;
  position: relative;
  padding: 32px 0 32px 4rem;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 1.08rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 30px;
  font-family: var(--font-mono);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--navy-850);
  font-weight: 700;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.38rem;
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  max-width: 46rem;
  line-height: 1.6;
}

.steps pre {
  margin-top: 18px;
}

/* Platform selector (Download) */
.platforms {
  border-top: 1px solid var(--line);
}

.platforms article {
  display: grid;
  grid-template-columns: 16rem 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s ease;
}

.platforms article.rec {
  background: var(--bg-wash);
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
  border-radius: var(--radius-md);
}

.platforms h3 {
  margin: 0;
  font-size: 1.25rem;
}

.platforms .sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.platforms p {
  margin: 0;
  color: var(--body);
  font-size: 1.02rem;
}

.platforms a {
  font-weight: 600;
  white-space: nowrap;
}

.platforms article.rec h3::after {
  content: " (Recommended)";
  font-weight: 500;
  color: var(--navy-600);
  font-size: 0.92rem;
}

/* Q&A section */
.qa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 64px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.qa article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.qa h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--ink);
}

.qa p {
  margin: 0;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Badges & Phase Grids (Proof page) */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.badge-easy { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-med { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-hard { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-vhard { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.phase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  border-top: 2px solid var(--navy-850);
  padding-top: 28px;
}

.phase-card {
  display: flex;
  flex-direction: column;
}

.phase-num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy-850);
  line-height: 1;
  margin-bottom: 4px;
}

.phase-time {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.phase-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.phase-card p {
  font-size: 0.95rem;
  color: var(--body);
  margin: 0;
  line-height: 1.5;
}

table.data code.query-shape {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--navy-800);
  background: var(--bg-wash);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

table.data .arch-note {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.sample-artifact {
  background: var(--navy-950);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 20px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sample-artifact .hi { color: #38bdf8; font-weight: 600; }
.sample-artifact .ok { color: #34d399; font-weight: 600; }
.sample-artifact .dim { color: #94a3b8; }
.sample-artifact .emp { color: #ffffff; font-weight: 600; }

/* ==========================================================================
   Interactive Forms (Contact)
   ========================================================================== */

.form {
  display: grid;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
}

.form .fields {
  display: grid;
  gap: 22px;
}

.form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy-850);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.1);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form .ok {
  display: none;
  color: var(--gain);
  font-weight: 600;
  font-size: 1.12rem;
  margin-top: 14px;
}

.form.sent .ok {
  display: block;
}

.form.sent .fields {
  display: none;
}

/* ==========================================================================
   Closing CTA Band
   ========================================================================== */

.cta {
  background-color: var(--navy-900);
  background-image: 
    radial-gradient(110% 90% at 50% 0%, #102a50 0%, var(--navy-950) 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px;
  color: #ffffff;
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.cta h2 {
  color: #ffffff;
  margin: 0 0 16px;
  max-width: 18ch;
}

.cta p {
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
  max-width: 36rem;
}

.cta a:not(.btn) {
  color: #7dd3fc;
}

.cta .btn-electric,
.cta .btn-white {
  background: var(--electric);
  color: var(--navy-950);
  border-color: var(--electric);
}

.cta .btn-outline-light,
.cta .btn-line {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta .btn-outline-light:hover,
.cta .btn-line:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.cta pre {
  background: rgba(4, 13, 26, 0.6);
  border-left: 3px solid var(--electric);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 72px 0 36px;
  font-size: 0.98rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 36px;
  align-items: start;
  padding-bottom: 40px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-summary {
  margin: 14px 0 0;
  max-width: 36rem;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
}

.foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
  max-width: 800px;
}

.foot-col-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-links li {
  margin: 0 0 10px;
}

.foot-links li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.foot-links li a:hover {
  color: #ffffff;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.92rem;
}

.legal a {
  color: #94a3b8;
  text-decoration: none;
}

.legal a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Motions & Animations (Intentional, presence & hierarchy)
   ========================================================================== */

@keyframes pulseTrace {
  0% {
    stroke-dashoffset: 400;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.pipeline-trace-active {
  stroke-dasharray: 20 80;
  animation: pulseTrace 4s linear infinite;
}

@keyframes beaconGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.beacon-pulse {
  animation: beaconGlow 2.5s ease-in-out infinite;
  transform-origin: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pipeline-trace-active,
  .beacon-pulse { animation: none !important; }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header .nav-menu,
  .site-header .header-actions {
    display: none;
  }

  .site-header.open .bar {
    flex-wrap: wrap;
    padding-bottom: 20px;
  }

  .site-header.open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    margin: 12px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-header.open .nav-menu .nav-link {
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .site-header.open .header-actions {
    display: flex;
    width: 100%;
    order: 4;
    margin-top: 12px;
  }

  .site-header.open .header-actions .btn,
  .site-header.open .header-actions .link-quiet {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

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

  .phase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-flagship h1 {
    font-size: clamp(2.2rem, 6.8vw, 3.2rem);
    max-width: none;
  }

  .duel,
  .split,
  .cta .wrap,
  .qa,
  .form .two,
  .stats,
  .stats.four-col,
  .phase-grid {
    grid-template-columns: 1fr;
  }

  .editions-3,
  .editions-4 {
    grid-template-columns: 1fr;
  }

  .foot-top {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lines article,
  .platforms article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platforms a {
    justify-self: start;
  }

  .intro.row {
    display: block;
  }

  .intro.row .actions {
    margin-top: 24px;
  }

  section.block {
    padding: 68px 0;
  }

  .hero {
    padding: 56px 0 44px;
  }

  .cta {
    padding: 68px 0;
  }
}

@media (max-width: 560px) {
  html, body {
    font-size: 16px;
  }

  .hero-brand-anchor {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-brand-kicker {
    border-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .hero-num {
    font-size: 4rem;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 24px 18px;
  }

  .hero-flagship .hero-cta-group {
    flex-direction: column;
  }

  .hero-flagship .hero-cta-group .btn {
    width: 100%;
  }
}
