/* ==========================================================================
   KEENLY DIGITAL — OBSIDIAN SIGNAL & ALABASTER LAB DESIGN SYSTEM
   Zero-Framework, Ultra-Lightweight, GPU-Composited CSS Architecture
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-void: #04070d;
  --bg-base: #070b14;
  --bg-surface: rgba(12, 18, 32, 0.72);
  --bg-surface-solid: #0b1120;
  --bg-elevated: rgba(18, 27, 46, 0.82);
  --bg-glass: rgba(8, 13, 24, 0.76);
  --bg-pill: rgba(122, 110, 224, 0.1);
  --bg-input: rgba(6, 10, 20, 0.85);

  --text-primary: #f3f7fd;
  --text-secondary: #9aa9c4;
  --text-muted: #62728f;
  --text-inverse: #04070d;

  --border-subtle: rgba(138, 162, 212, 0.12);
  --border-strong: rgba(138, 162, 212, 0.24);
  --border-accent: rgba(43, 153, 218, 0.45);

  --brand-indigo: #7a6ee0;
  --brand-cyan: #2b99da;
  --brand-emerald: #28b89e;
  --brand-gradient: linear-gradient(135deg, #7a6ee0 0%, #2b99da 52%, #28b89e 100%);
  --brand-gradient-text: linear-gradient(110deg, #9d93ff 0%, #4ec0ff 48%, #3be0be 100%);
  --brand-glow: rgba(43, 153, 218, 0.24);

  --grid-line: rgba(122, 146, 198, 0.055);
  --shadow-card: 0 24px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 42px -8px rgba(43, 153, 218, 0.38);
  --spotlight-color: rgba(43, 153, 218, 0.13);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg-void: #f4f7fb;
  --bg-base: #eef2f9;
  --bg-surface: rgba(255, 255, 255, 0.86);
  --bg-surface-solid: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.96);
  --bg-glass: rgba(244, 247, 251, 0.84);
  --bg-pill: rgba(105, 92, 218, 0.09);
  --bg-input: #ffffff;

  --text-primary: #070d19;
  --text-secondary: #3b4a66;
  --text-muted: #687794;
  --text-inverse: #ffffff;

  --border-subtle: rgba(15, 32, 67, 0.1);
  --border-strong: rgba(15, 32, 67, 0.2);
  --border-accent: rgba(43, 153, 218, 0.55);

  --brand-indigo: #6355d8;
  --brand-cyan: #1682c4;
  --brand-emerald: #129c83;
  --brand-gradient: linear-gradient(135deg, #695be0 0%, #1d8cd0 52%, #17a98e 100%);
  --brand-gradient-text: linear-gradient(110deg, #5a4ad1 0%, #0f7ec2 50%, #0d967c 100%);
  --brand-glow: rgba(43, 153, 218, 0.18);

  --grid-line: rgba(15, 32, 67, 0.045);
  --shadow-card: 0 20px 50px -22px rgba(13, 28, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-glow: 0 12px 34px -8px rgba(43, 153, 218, 0.28);
  --spotlight-color: rgba(105, 91, 224, 0.09);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Architectural Micro-Grid Backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 35%, transparent 100%);
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* ==========================================================================
   LIVE TELEMETRY TOP RIBBON ("Proof in the Payload")
   ========================================================================== */
.telemetry-ribbon {
  position: relative;
  z-index: 60;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-base);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.telemetry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
  max-width: 1240px;
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.telemetry-inner::-webkit-scrollbar {
  display: none;
}

.telemetry-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 10px var(--brand-emerald);
  animation: pulseGlow 2.2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.telemetry-val {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   STICKY GLASSMORPHIC NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(43, 153, 218, 0.25));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand-link:hover .brand-mark {
  transform: scale(1.06) rotate(-2deg);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.12;
}
.brand-wordmark strong {
  font-weight: 800;
  letter-spacing: -0.025em;
}
.brand-wordmark span {
  font-size: 0.73rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  font-weight: 600;
}
.brand-wordmark span b {
  color: var(--brand-cyan);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-btn,
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.cmd-btn:hover,
.theme-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.cmd-kbd {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 11px;
  border: none;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, filter 0.22s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 12px 36px -6px rgba(43, 153, 218, 0.52);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
.btn-secondary:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION + INTERACTIVE VECTOR FIELD + DUAL-CORE SCHEMATIC
   ========================================================================== */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

#signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-aurora {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(122, 110, 224, 0.22) 0%, rgba(43, 153, 218, 0.14) 42%, rgba(40, 184, 158, 0.06) 68%, transparent 80%);
  filter: blur(64px);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: 100%;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.eyebrow-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 610px;
  margin-bottom: 34px;
  line-height: 1.68;
}

.hero-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.metric-cell dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-cell dd {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.metric-cell dd span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-emerald);
  display: block;
  margin-top: 2px;
}

/* Interactive Closed-Loop Engine Panel */
.engine-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.engine-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 30%), var(--spotlight-color), transparent 55%);
  pointer-events: none;
}

.engine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
}
.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.window-dots i:nth-child(1) { background: #7a6ee0; }
.window-dots i:nth-child(2) { background: #2b99da; }
.window-dots i:nth-child(3) { background: #28b89e; }

.core-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.core-tab {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.core-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.core-tab.is-active {
  border-color: var(--brand-cyan);
  background: var(--bg-pill);
  color: var(--text-primary);
  box-shadow: inset 0 0 18px rgba(43, 153, 218, 0.14);
}

.schematic-stage {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  padding: 18px;
  margin-bottom: 16px;
}

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

.signal-path {
  stroke-dasharray: 6 6;
  animation: flowDash 14s linear infinite;
}

@keyframes flowDash {
  to { stroke-dashoffset: -120; }
}

.core-inspector {
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.core-inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.core-inspector-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.core-inspector-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(40, 184, 158, 0.14);
  color: var(--brand-emerald);
  font-weight: 600;
}

.core-inspector-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

.core-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.core-tags span {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   SHARED SECTION HEADERS
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-cyan);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

/* ==========================================================================
   SECTION 02: THE EVOLUTION (PRE-2024 -> 2024 PIVOT -> 2026+ FRONTIER)
   ========================================================================== */
.evolution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.era-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.era-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 26px 28px;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.era-card:hover,
.era-card.is-active {
  border-color: var(--border-accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}
.era-card.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: var(--brand-gradient);
}

.era-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.era-year {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-pill);
  color: var(--brand-cyan);
}

.era-phase {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.era-card h3 {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.era-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* Paradigm Comparison Matrix */
.paradigm-panel {
  position: sticky;
  top: 104px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.paradigm-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  width: 100%;
}

.paradigm-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.paradigm-btn.is-active {
  background: var(--brand-gradient);
  color: #fff;
}

.paradigm-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paradigm-row {
  padding: 15px 18px;
  border-radius: 13px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
}

.paradigm-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.paradigm-val {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

.paradigm-quote {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================================
   SECTION 03: CAPABILITIES KINETIC BENTO GRID
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.bento-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 34px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%), var(--spotlight-color), transparent 55%);
  pointer-events: none;
}

.bento-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }

.bento-top {
  position: relative;
  z-index: 1;
}

.bento-index {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 22px;
}

.bento-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-cyan);
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-emerald);
}

.bento-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.deliverable-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.deliverable-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
}

.deliverable-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION 04: THE MOAT & IN-HOUSE VENTURE LAB
   ========================================================================== */
.moat-banner {
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, rgba(122, 110, 224, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 70% at 10% 90%, rgba(40, 184, 158, 0.14), transparent 60%),
    var(--bg-surface);
  padding: 48px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

.moat-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
}

.loop-step {
  padding: 26px;
  border-radius: 18px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.loop-step-tag {
  font-size: 0.72rem;
  color: var(--brand-emerald);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.loop-step h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.loop-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lab-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lab-item {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 24px;
}

.lab-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-cyan);
  margin-bottom: 10px;
  font-weight: 700;
}

.lab-item h4 {
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lab-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

/* ==========================================================================
   SECTION 05: INTERACTIVE ARCHITECTURE SIMULATOR
   ========================================================================== */
.blueprint-shell {
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  padding: 38px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario-btn {
  text-align: left;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.scenario-btn:hover {
  border-color: var(--border-strong);
}
.scenario-btn.is-active {
  border-color: var(--brand-cyan);
  background: var(--bg-pill);
  box-shadow: var(--shadow-glow);
}

.scenario-btn strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 3px;
}
.scenario-btn span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.scenario-output {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  padding: 28px;
}

.output-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-emerald);
  font-weight: 700;
  margin-bottom: 8px;
}

.output-title {
  font-size: 1.38rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.output-summary {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.62;
}

.output-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.spec-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.spec-box small {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.spec-box strong {
  font-size: 0.86rem;
  color: var(--text-primary);
}

/* ==========================================================================
   SECTION 06: CONTACT TERMINAL & EXECUTIVE CHANNELS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.channel-card {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 20px 22px;
  transition: border-color 0.2s ease;
}
.channel-card:hover {
  border-color: var(--border-accent);
}

.channel-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.channel-value {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.channel-actions {
  display: inline-flex;
  gap: 8px;
  margin-top: 10px;
}

.mini-action {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-base);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.mini-action:hover {
  border-color: var(--brand-emerald);
  color: var(--text-primary);
}

.contact-form-card {
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.scope-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.scope-pill {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.scope-pill:hover {
  border-color: var(--brand-cyan);
  color: var(--text-primary);
}
.scope-pill[aria-pressed="true"] {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.93rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group textarea {
  min-height: 120px;
  resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(43, 153, 218, 0.2);
}

.form-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field-group input[aria-invalid="true"],
.field-group textarea[aria-invalid="true"] {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.btn-primary[disabled] {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(40, 184, 158, 0.45);
  background: rgba(40, 184, 158, 0.1);
  color: var(--text-primary);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-error {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.1);
}
.form-status.is-visible {
  display: block;
}

/* ==========================================================================
   FOOTER & COMMAND PALETTE MODAL
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-base);
  padding: 44px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* Command Palette Dialog */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
}
.cmd-backdrop.is-open {
  display: flex;
}

.cmd-modal {
  width: 100%;
  max-width: 540px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-solid);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.cmd-search {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.96rem;
}
.cmd-search:focus {
  outline: none;
}

.cmd-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
}
.cmd-item:hover,
.cmd-item:focus {
  background: var(--bg-pill);
  color: var(--text-primary);
  outline: none;
}

/* Scroll Reveal Progressive Enhancement (Visible if JS disabled!) */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-ready .reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--brand-emerald);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.mobile-nav-cta {
  display: none;
}

/* ==========================================================================
   RESPONSIVE ARCHITECTURE: ULTRA-WIDE -> LAPTOP -> TABLET -> MOBILE -> COMPACT
   ========================================================================== */

/* 1. Large & Ultra-Wide Desktops (1600px+) */
@media (min-width: 1600px) {
  .container,
  .telemetry-inner {
    max-width: 1380px;
  }
  .hero {
    padding: 104px 0 116px;
  }
  .hero-grid {
    gap: 68px;
  }
  .section {
    padding: 116px 0;
  }
}

/* 2. Compact Laptops & Tablet Landscape (961px – 1160px) */
@media (max-width: 1160px) {
  .tel-hide-md {
    display: none;
  }
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .cmd-btn-text {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
  }
  .metric-cell dd {
    font-size: 1.28rem;
  }
  .bento-card {
    padding: 28px;
  }
}

/* 3. Tablet Portrait & Landscape Transition (<= 960px) */
@media (max-width: 960px) {
  html {
    scroll-padding-top: 84px;
  }
  .nav-links,
  .cmd-btn {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .nav-bar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface-solid);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    padding: 20px max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left));
    gap: 6px;
    align-items: stretch;
    z-index: 90;
  }
  .nav-bar.menu-open .nav-links li a:not(.btn-primary) {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-bar.menu-open .nav-links a::after {
    display: none;
  }

  /* Hero & Major Split Layouts Stack Cleanly on Tablet Portrait */
  .hero {
    padding: 64px 0 78px;
  }
  .hero-grid,
  .evolution-layout,
  .blueprint-shell,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-lead {
    max-width: 680px;
  }
  .paradigm-panel {
    position: static;
  }

  /* Symmetrical 2x2 Bento Matrix & Balanced Multi-Column Cards on Tablets */
  .span-7,
  .span-5,
  .span-6 {
    grid-column: span 6;
  }
  .bento-card .deliverable-list {
    grid-template-columns: 1fr;
  }
  .moat-banner {
    padding: 36px;
  }
  .moat-loop,
  .lab-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .moat-loop > :last-child,
  .lab-strip > :last-child {
    grid-column: 1 / -1;
  }
  .section {
    padding: 82px 0;
  }
  .section-header {
    margin-bottom: 42px;
  }
}

/* 4. Large Mobile & Phablet (<= 700px) */
@media (max-width: 700px) {
  .container {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .telemetry-inner {
    padding: 7px max(18px, env(safe-area-inset-right)) 7px max(18px, env(safe-area-inset-left));
    font-size: 0.69rem;
  }
  .tel-hide-sm {
    display: none;
  }
  .nav-bar {
    height: 68px;
    gap: 10px;
  }
  /* Move primary CTA into the mobile drawer so header never cramps on phones */
  .header-cta {
    display: none;
  }
  .nav-bar.menu-open .mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
  }
  .nav-bar.menu-open .mobile-nav-cta .btn-primary {
    width: 100%;
    min-height: 48px;
  }
  .mobile-nav-quick {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--brand-cyan);
  }
  .nav-bar.menu-open .mobile-nav-quick a {
    border-bottom: none !important;
    min-height: 36px !important;
    font-size: 0.78rem !important;
  }

  .span-7,
  .span-5,
  .span-6 {
    grid-column: span 12;
  }
  .moat-loop,
  .lab-strip,
  .hero-metrics,
  .form-grid,
  .output-specs {
    grid-template-columns: 1fr;
  }
  .moat-loop > :last-child,
  .lab-strip > :last-child {
    grid-column: auto;
  }

  .hero {
    padding: 44px 0 60px;
  }
  .hero-title {
    font-size: clamp(2.05rem, 7.6vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 18px;
  }
  .hero-lead {
    font-size: 1rem;
    margin-bottom: 26px;
  }
  .hero-metrics {
    gap: 14px;
    padding-top: 22px;
  }
  .metric-cell {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .metric-cell:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .metric-cell dd {
    text-align: right;
    font-size: 1.15rem;
  }

  /* Prevent iOS Safari forced zoom on form inputs (<16px triggers zoom) */
  .field-group input,
  .field-group select,
  .field-group textarea,
  .cmd-search {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }
  .section-title {
    font-size: clamp(1.72rem, 6.4vw, 2.3rem);
  }
  .section-subtitle {
    font-size: 0.98rem;
  }
  .moat-banner,
  .blueprint-shell,
  .contact-form-card,
  .paradigm-panel,
  .bento-card,
  .era-card {
    padding: 22px 20px;
    border-radius: 18px;
  }
  .engine-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .schematic-stage {
    padding: 12px 10px;
  }
  .core-inspector-top,
  .era-meta,
  .form-header {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .form-footer .btn-primary {
    width: 100%;
    min-height: 50px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .site-footer {
    padding-bottom: max(40px, calc(24px + env(safe-area-inset-bottom)));
  }
  .toast {
    bottom: max(18px, env(safe-area-inset-bottom));
    width: calc(100% - 32px);
    max-width: 400px;
    text-align: center;
  }
}

/* 5. Compact Phones (320px – 480px) */
@media (max-width: 480px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-link {
    gap: 9px;
    font-size: 1.02rem;
  }
  .brand-wordmark span {
    font-size: 0.67rem;
  }
  .theme-btn {
    padding: 0 10px;
    height: 38px;
    font-size: 0.74rem;
  }
  .eyebrow-badge {
    border-radius: 14px;
    padding: 7px 12px;
    font-size: 0.72rem;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 30px;
  }
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary {
    width: 100%;
    min-height: 48px;
  }
  .core-tabs {
    gap: 6px;
  }
  .core-tab {
    padding: 9px 4px;
    font-size: 0.7rem;
  }
  .paradigm-toggle {
    flex-direction: column;
    gap: 4px;
  }
  .paradigm-btn {
    width: 100%;
    min-height: 42px;
  }
  .scenario-btn {
    padding: 14px 15px;
  }
  .channel-value {
    font-size: 1.04rem;
  }
  .channel-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .mini-action {
    flex: 1 1 auto;
    text-align: center;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 6. Ultra-Narrow Devices (<= 359px, e.g. iPhone SE 1st Gen / Split View) */
@media (max-width: 359px) {
  .tel-hide-xs,
  .tel-label-status,
  #theme-label {
    display: none;
  }
  .core-tabs {
    grid-template-columns: 1fr;
  }
  .metric-cell {
    flex-direction: column;
    gap: 4px;
  }
  .metric-cell dd {
    text-align: left;
  }
}

/* 7. Coarse Pointer / Touch Screen Ergonomics (Phones & Tablets) */
@media (pointer: coarse) {
  .scope-pill {
    min-height: 40px;
    padding: 8px 14px;
  }
  .bento-card:hover,
  .era-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
