/* FloatingWord Micro-Interaction Styles */

.floating-word-interactive {
  display: inline-block;
  position: relative;
  cursor: default;
  transition: transform 0.15s ease-out, filter 0.25s ease;
  will-change: transform;
}

/* Subtle idle floating oscillation on key words */
.floating-word-interactive .floating-word-inner {
  display: inline-block;
  animation: floatingWordIdle 4.5s ease-in-out infinite alternate;
}

@keyframes floatingWordIdle {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2.5px);
  }
  100% {
    transform: translateY(1px);
  }
}

/* Proximity / Hover State */
.floating-word-interactive.hovered {
  filter: drop-shadow(0 0 10px rgba(79, 216, 255, 0.45));
}

.floating-word-interactive.hovered .floating-word-inner {
  animation-play-state: paused;
}

/* Spark Burst Glow */
.floating-spark-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 216, 255, 0.4) 0%, rgba(139, 123, 255, 0.2) 40%, transparent 70%);
  animation: sparkFlareBurst 0.65s ease-out forwards;
  z-index: 1;
}

.floating-word-interactive.spark-burst-violet .floating-spark-flare {
  background: radial-gradient(circle, rgba(139, 123, 255, 0.45) 0%, rgba(79, 216, 255, 0.2) 40%, transparent 70%);
}

@keyframes sparkFlareBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
  }
}
/* AEROMESH Commercial Aviation / GIS SaaS Homepage Styles */

.homepage {
  background: var(--bg-page, #080c14);
  color: var(--text-primary, #f8fafc);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==========================================================================
   1. NAVIGATION BAR
   ========================================================================== */
.homepage-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(11, 16, 27, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.nav-brand .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(14, 165, 233, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #38bdf8;
}

.nav-brand .logo-text strong {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-weight: 800;
}

.nav-brand .logo-text small {
  display: block;
  font-size: 9px;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
  letter-spacing: 0.01em;
}

.nav-menu a:hover {
  color: #ffffff;
}

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

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.nav-btn.primary {
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid #0ea5e9;
  color: #38bdf8;
}

.nav-btn.primary:hover {
  background: rgba(14, 165, 233, 0.3);
  color: #ffffff;
}

/* ==========================================================================
   2. CINEMATIC HERO SECTION
   ========================================================================== */
.homepage-hero {
  padding: 64px 32px 80px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(circle 800px at 15% 30%, rgba(14, 165, 233, 0.07) 0%, transparent 60%),
    radial-gradient(circle 600px at 85% 70%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    #080c14;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 999px;
  font-size: 11px;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
  color: #ffffff;
}

.hero-text h1 span {
  color: #38bdf8;
  display: block;
}

.hero-text p.hero-subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  margin: 4px 0 12px;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  background: #075985;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.hero-btn-primary:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(14, 165, 233, 0.5);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}

.hero-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Hero Console Card (Right Visual) */
.hero-console {
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #94a3b8;
}

.console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.console-display {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050b14;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.console-svg-canvas {
  width: 100%;
  height: 100%;
}

.console-footer {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
}

.console-foot-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.console-foot-item span {
  color: #64748b;
  text-transform: uppercase;
}

.console-foot-item strong {
  color: #38bdf8;
}

/* ==========================================================================
   3. THE 11-STAGE INTERACTIVE WORKFLOW SIMULATOR
   ========================================================================== */
.workflow-section {
  padding: 90px 32px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  opacity: 1;
  transition: opacity 500ms ease, transform 500ms ease;
}

.workflow-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-header-center .eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-header-center h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #ffffff;
}

.section-header-center p {
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  line-height: 1.6;
}

/* 11-Step Scrub Bar */
.workflow-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px;
  overflow-x: auto;
}

.workflow-stepper::-webkit-scrollbar {
  height: 3px;
}

.workflow-stepper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

.step-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-secondary, #9bb0cc);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.step-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.step-chip.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: #0ea5e9;
  color: #38bdf8;
}

.step-chip-num {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  color: inherit;
}

/* Stage Split Showcase Card with Premium Glassmorphism */
.workflow-stage-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(11, 16, 27, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-height: 520px;
  display: flex;
}

.workflow-stage-inner {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr;
  width: 100%;
  min-height: 520px;
}

.stage-phase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.stage-step-indicator {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  display: inline-block;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 2s infinite ease-in-out;
}

/* Technical In-Depth Showcase Panel */
.stage-technical-panel {
  margin: 10px 0;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tech-panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: #38bdf8;
  text-transform: uppercase;
}

.tech-panel-explanation {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.tech-panel-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.tech-spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tech-spec-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.tech-spec-code {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: #38d7ff;
  background: rgba(14, 165, 233, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(14, 165, 233, 0.15);
  word-break: break-all;
}

.tech-spec-val {
  font-size: 11px;
  color: #a5f3fc;
}

.player-timer-hint {
  font-size: 10px;
  color: #94a3b8;
  margin-left: 6px;
  font-family: var(--font-mono);
}

.stage-recon-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #050b14;
}

.stage-canvas-wrapper {
  width: 100%;
  height: 100%;
}

.stage-video-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
  background: #050b14;
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.stage-video-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-video-label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  background: rgba(4, 9, 18, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 4px;
  color: #7dd3fc;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  z-index: 10;
}

@media (prefers-reduced-motion: reduce) {
  .workflow-section,
  .workflow-stage-card,
  .stage-canvas-wrapper {
    animation: none;
    transition: none;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .workflow-stage-inner {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Stage Info & Telemetry */
.stage-info-column {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 22, 36, 0.95), rgba(8, 12, 20, 0.95));
}

.stage-header-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.stage-description {
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  margin: 0;
}

.stage-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.stage-tech-pill {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.stage-tech-pill.highlight {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}

.stage-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.stage-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: gap 0.15s ease;
}

.stage-action-link:hover {
  gap: 10px;
  color: #ffffff;
}

/* Right Column: Visual Stage Screen */
.stage-visual-column {
  position: relative;
  background: #060b13;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

/* Stage Visual Graphics */
.stage-canvas-wrapper {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stage-svg {
  width: 100%;
  height: 100%;
  max-width: 580px;
  max-height: 360px;
}

/* ==========================================================================
   4. CORE CAPABILITIES SECTION
   ========================================================================== */
.capabilities-section {
  padding: 60px 32px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.capabilities-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .capabilities-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .capabilities-grid-4 {
    grid-template-columns: 1fr;
  }
}

.cap-card {
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.cap-card:hover {
  background: #162032;
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.cap-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.cap-card p {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   5. RECENT MISSIONS SECTION
   ========================================================================== */
.missions-section {
  padding: 60px 32px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.missions-table-card {
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.missions-row-header {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 100px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94a3b8);
}

.missions-row-item {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 100px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  transition: background 0.15s ease;
}

.missions-row-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.missions-row-item:last-child {
  border-bottom: none;
}

.mission-row-id {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
}

.row-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.row-action-btn:hover {
  background: rgba(14, 165, 233, 0.28);
  color: #ffffff;
}

/* ==========================================================================
   6. CTA BANNER & FOOTER
   ========================================================================== */
.cta-banner {
  padding: 80px 32px;
  background: linear-gradient(180deg, #080c14, #0f1624);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.cta-banner-content {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #ffffff;
}

.cta-banner p {
  font-size: 15px;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 10px;
  line-height: 1.6;
}

.homepage-footer {
  padding: 32px;
  background: #060a10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-secondary, #9bb0cc);
  max-width: 1400px;
  margin: 0 auto;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   7. PREMIUM GLOWING IDENTITY & AEROMESH WORDMARK
   ========================================================================== */
.hero-wordmark-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 6px;
}

.hero-wordmark-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6.5vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
  color: #ffffff;
  /* Keep the above-the-fold wordmark paintable immediately on mobile. */
  color: #ffffff;
  text-shadow:
    0 0 14px rgba(79, 216, 255, 0.65),
    0 0 38px rgba(79, 216, 255, 0.4),
    0 0 75px rgba(139, 123, 255, 0.32);
}

.hero-wordmark-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--dim, #9bb0cc);
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}

.hero-wordmark-tagline span {
  color: var(--cyan, #4fd8ff);
}

/* Reference-Style Pill Buttons */
.hero-pill-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.hero-btn-pill-primary {
  background: linear-gradient(135deg, rgba(79, 216, 255, 0.95), rgba(139, 123, 255, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #05070c;
  box-shadow: 0 4px 24px rgba(79, 216, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.hero-btn-pill-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(79, 216, 255, 0.6), 0 0 20px rgba(139, 123, 255, 0.4);
}

.hero-btn-pill-secondary {
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid var(--border, rgba(148, 197, 255, 0.22));
  color: var(--mist, #e6eefb);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-btn-pill-secondary:hover {
  background: rgba(22, 32, 50, 0.88);
  border-color: rgba(79, 216, 255, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(79, 216, 255, 0.2);
}

/* ==========================================================================
   8. CONCENTRIC COMPASS RING GUIDES & 3D MODEL
   ========================================================================== */
.hero-compass-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 520px;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(79, 216, 255, 0.28);
  background: radial-gradient(circle at 50% 50%, rgba(14, 24, 40, 0.85) 0%, rgba(8, 12, 20, 0.95) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(79, 216, 255, 0.12);
}

.hero-compass-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 197, 255, 0.14);
  background: rgba(8, 14, 24, 0.65);
  backdrop-filter: blur(10px);
}

.hero-compass-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-compass-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.hero-compass-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim, #9bb0cc);
  letter-spacing: 0.04em;
}

.hero-compass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(79, 216, 255, 0.12);
  border: 1px solid rgba(79, 216, 255, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan, #4fd8ff);
  letter-spacing: 0.06em;
}

.pulse-dot-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan, #4fd8ff);
  box-shadow: 0 0 8px var(--cyan, #4fd8ff);
  animation: pulse-dot 1.6s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-canvas-viewport {
  position: absolute;
  inset: 56px 0 64px 0;
  z-index: 5;
  cursor: grab;
}

.hero-canvas-viewport:active {
  cursor: grabbing;
}

/* Concentric Staging Rings & Compass */
.compass-staging-rings {
  position: absolute;
  inset: 56px 0 64px 0;
  pointer-events: none;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.compass-ring-outer {
  width: 380px;
  height: 380px;
  border: 1px dashed rgba(79, 216, 255, 0.22);
  box-shadow: 0 0 20px rgba(79, 216, 255, 0.06), inset 0 0 20px rgba(79, 216, 255, 0.04);
}

.compass-ring-mid {
  width: 270px;
  height: 270px;
  border: 1px solid rgba(79, 216, 255, 0.24);
}

.compass-ring-inner {
  width: 160px;
  height: 160px;
  border: 1px dotted rgba(139, 123, 255, 0.3);
}

.compass-crosshair-h {
  position: absolute;
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 216, 255, 0.25), transparent);
}

.compass-crosshair-v {
  position: absolute;
  height: 400px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(79, 216, 255, 0.25), transparent);
}

.compass-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan, #4fd8ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-shadow: 0 0 10px rgba(79, 216, 255, 0.8);
}

.compass-deg {
  font-size: 9px;
  color: var(--dimmer, #6c7f99);
  margin-top: 2px;
}

.compass-n { top: 12px; }
.compass-n .compass-tick-icon { font-size: 8px; margin-bottom: 2px; color: var(--cyan); }
.compass-s { bottom: 12px; }
.compass-e { right: 18px; }
.compass-w { left: 18px; }

.compass-degree-tick {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(155, 176, 204, 0.5);
}

.tick-30 { top: 40px; right: 100px; }
.tick-60 { top: 100px; right: 40px; }
.tick-120 { bottom: 100px; right: 40px; }
.tick-150 { bottom: 40px; right: 100px; }
.tick-210 { bottom: 40px; left: 100px; }
.tick-240 { bottom: 100px; left: 40px; }
.tick-300 { top: 100px; left: 40px; }
.tick-330 { top: 40px; left: 100px; }

.hero-compass-footer {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 18px;
  border-top: 1px solid rgba(148, 197, 255, 0.14);
  background: rgba(8, 14, 24, 0.7);
  backdrop-filter: blur(10px);
}

.compass-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compass-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--dim, #9bb0cc);
  letter-spacing: 0.04em;
}

.compass-meta-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   9. NARRATIVE PIPELINE ANIMATION CARD ("THE WOW SEQUENCE")
   ========================================================================== */
.narrative-pipeline-section {
  padding: 60px 32px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.narrative-pipeline-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-color: rgba(79, 216, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(79, 216, 255, 0.08);
}

.pipeline-narrative-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.narrative-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.narrative-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan, #4fd8ff);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.narrative-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.narrative-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(79, 216, 255, 0.12);
  border: 1px solid rgba(79, 216, 255, 0.4);
  color: var(--cyan, #4fd8ff);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.narrative-replay-btn:hover {
  background: rgba(79, 216, 255, 0.22);
  border-color: var(--cyan, #4fd8ff);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(79, 216, 255, 0.35);
  transform: translateY(-1px);
}

.narrative-canvas-container {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(14, 22, 36, 0.85) 0%, rgba(6, 10, 18, 0.95) 100%);
  border: 1px solid rgba(148, 197, 255, 0.15);
  position: relative;
}

.narrative-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.narrative-stages-dock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.narrative-stages-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.narrative-stage-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 8px;
  background: rgba(14, 20, 32, 0.6);
  border: 1px solid rgba(148, 197, 255, 0.12);
  border-radius: var(--radius-sm, 8px);
  transition: all 0.2s ease;
  min-width: 0;
  overflow: hidden;
}

.narrative-stage-item.current {
  border-color: var(--cyan, #4fd8ff);
  background: rgba(79, 216, 255, 0.12);
  box-shadow: 0 0 16px rgba(79, 216, 255, 0.25);
}

.narrative-stage-item.passed {
  border-color: rgba(78, 227, 138, 0.4);
  background: rgba(78, 227, 138, 0.06);
}

.stage-step-bubble {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dim, #9bb0cc);
  flex-shrink: 0;
}

.narrative-stage-item.current .stage-step-bubble {
  background: var(--cyan, #4fd8ff);
  color: #05070c;
  box-shadow: 0 0 10px var(--cyan, #4fd8ff);
}

.narrative-stage-item.passed .stage-step-bubble {
  background: #4ee38a;
  color: #05070c;
}

.stage-step-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stage-step-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--cyan, #4fd8ff);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-step-name {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--mist, #e6eefb);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  word-break: break-word;
  margin-top: 2px;
}

.narrative-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.narrative-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan, #4fd8ff), var(--violet, #8b7bff));
  box-shadow: 0 0 10px rgba(79, 216, 255, 0.6);
  transition: width 0.08s linear;
}

/* ==========================================================================
   10. REFERENCE BOTTOM FEATURE CARD GRID
   ========================================================================== */
.feature-card-section {
  padding: 40px 32px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-glass-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  cursor: default;
}

.feature-glass-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.feature-glass-card p {
  font-size: 13px;
  color: var(--dim, #9bb0cc);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1280px) {
  .narrative-stages-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .feature-grid-4col {
    grid-template-columns: 1fr;
  }
  .narrative-stages-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}



.narrative-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.narrative-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(14, 26, 46, 0.65);
  border: 1px solid rgba(148, 197, 255, 0.25);
  color: var(--mist, #e6eefb);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.narrative-ctrl-btn:hover:not(:disabled) {
  background: rgba(79, 216, 255, 0.15);
  border-color: var(--cyan, #4fd8ff);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(79, 216, 255, 0.25);
  transform: translateY(-1px);
}

.narrative-ctrl-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  color: var(--color-text-secondary, #9bb0cc);
}

/* Narrative Completion Badge - Clamped within card boundary */
.narrative-completion-badge-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
  max-width: calc(100% - 28px);
  z-index: 10;
  pointer-events: none;
  animation: badgeSlideIn 0.35s ease-out forwards;
}

@keyframes badgeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.narrative-completion-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(9, 15, 26, 0.92);
  border: 1px solid rgba(79, 216, 255, 0.45);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(79, 216, 255, 0.25);
  backdrop-filter: blur(8px);
}

.completion-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(78, 227, 138, 0.2);
  border: 1px solid #4ee38a;
  color: #4ee38a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.completion-badge-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.completion-badge-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan, #4fd8ff);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.completion-badge-sub {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  color: #9bb0cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Phase 2: AeroMesh landing and shell visual system */
html:has(.homepage) { scroll-behavior: smooth; scroll-padding-top: 92px; }
.landing-skip-link { position: fixed; top: 8px; left: 8px; z-index: var(--z-tooltip); padding: 10px 14px; transform: translateY(-160%); color: var(--color-text-primary); background: var(--color-surface-raised); border: 1px solid var(--color-border-emphasis); border-radius: var(--radius-md); }
.landing-skip-link:focus { transform: translateY(0); }
.homepage {
  min-height: 100vh;
  color: var(--color-text-primary);
  background:
    radial-gradient(ellipse at 76% 10%, rgba(79, 216, 255, 0.07), transparent 34rem),
    var(--color-canvas);
  font-family: var(--font-body);
  line-height: var(--leading-normal);
}
.homepage :is(a, button, select):focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  box-shadow: var(--glow-focus);
}
.homepage-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  min-height: 76px;
  gap: clamp(12px, 2vw, 30px);
  padding: 12px clamp(18px, 3.6vw, 56px);
  background: color-mix(in srgb, var(--color-canvas) 90%, transparent);
  border-color: var(--color-border-subtle);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}
.nav-brand {
  flex: 0 0 auto;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.nav-brand .logo-icon { background: color-mix(in srgb, var(--cyan) 12%, var(--color-surface)); border-color: var(--color-border-emphasis); color: var(--cyan); }
.nav-brand .logo-text strong { color: var(--color-text-primary); font: 700 14px var(--font-display); letter-spacing: .16em; }
.nav-brand .logo-text small { color: var(--color-text-muted); font-size: 8px; letter-spacing: .13em; }
.nav-menu { gap: clamp(12px, 1.7vw, 26px); }
.nav-menu :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font: 600 12px var(--font-body);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease-standard);
}
.nav-menu :is(a, button):hover,
.nav-menu [aria-current="page"] { color: var(--color-text-primary); }
.nav-menu [aria-current="page"] { box-shadow: inset 0 -2px var(--cyan); }
.nav-actions { gap: 12px; flex: 0 0 auto; }
.landing-command-trigger, .shell-command-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 10px; color: var(--color-text-secondary); background: var(--color-surface); border: 1px solid var(--color-border-default); border-radius: var(--radius-md); font: 11px var(--font-body); cursor: pointer; transition: border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
.landing-command-trigger:hover, .shell-command-trigger:hover { color: var(--color-text-primary); border-color: var(--color-border-emphasis); }
.landing-command-trigger svg, .shell-command-trigger svg { color: var(--cyan); }
.landing-command-trigger kbd, .shell-command-trigger kbd { padding: 3px 5px; color: var(--color-text-muted); background: var(--color-surface-overlay); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xs); font: 9px var(--font-mono); white-space: nowrap; }
.nav-session-actions { display: flex; align-items: center; gap: 8px; }
.nav-profile-link { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-secondary); background: none; border: 0; cursor: pointer; }
.homepage .ui-controls-toolbar { gap: 6px !important; border-color: var(--color-border-default) !important; border-radius: var(--radius-md) !important; }
.homepage .ui-controls-toolbar select,
.homepage .ui-controls-toolbar button { min-height: 36px; }
.homepage-hero {
  min-height: min(780px, calc(100svh - 76px));
  padding: clamp(54px, 7.5vw, 112px) clamp(20px, 6.4vw, 96px);
  background:
    radial-gradient(ellipse at 83% 43%, rgba(79, 216, 255, 0.09), transparent 36rem),
    radial-gradient(ellipse at 18% 98%, rgba(139, 123, 255, 0.06), transparent 32rem),
    var(--color-canvas);
}
.hero-content { max-width: 1320px; grid-template-columns: minmax(0, 1fr) minmax(390px, .92fr); gap: clamp(38px, 6vw, 96px); }
.hero-text { gap: 22px; min-width: 0; }
.hero-eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.homepage .hero-badge { min-height: 30px; padding: 6px 11px; border-color: var(--color-border-default); border-radius: var(--radius-pill); color: var(--color-text-secondary); background: var(--color-surface); font-size: 10px; letter-spacing: .11em; }
.hero-health-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 11px; border: 1px solid var(--color-border-default); border-radius: var(--radius-pill); color: var(--color-text-secondary); background: var(--color-surface); font: 700 10px var(--font-mono); letter-spacing: .08em; }
.hero-health-chip { min-width: 102px; justify-content: center; }
.hero-health-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.hero-health-chip.online { color: var(--color-status-online); border-color: color-mix(in srgb, var(--color-status-online) 35%, transparent); }
.hero-health-chip.waking { color: var(--color-status-waking); border-color: color-mix(in srgb, var(--color-status-waking) 35%, transparent); }
.hero-health-chip.offline { color: var(--color-status-offline); border-color: color-mix(in srgb, var(--color-status-offline) 35%, transparent); }
.hero-wordmark-container { gap: 6px; }
.hero-wordmark-title { margin: 0; font-size: clamp(3.1rem, 6.6vw, 6.4rem); line-height: .98; letter-spacing: -.075em; }
.hero-wordmark-tagline { max-width: 620px; color: var(--color-text-primary); font: 600 clamp(17px, 2.15vw, 26px)/1.35 var(--font-display); letter-spacing: -.035em; }
.hero-wordmark-tagline span { color: var(--cyan); }
.hero-subtitle { max-width: 610px; margin: 0; color: var(--color-text-secondary) !important; font-size: clamp(15px, 1.3vw, 17px) !important; line-height: var(--leading-relaxed) !important; }
.portal-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 2px; }
.portal-entry-card {
  display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 76px; padding: 12px;
  text-align: left; color: var(--color-text-primary); background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}
.portal-entry-card:hover { transform: translateY(-2px); border-color: var(--color-border-emphasis); background: var(--color-surface-raised); box-shadow: var(--shadow-md), var(--glow-cyan); }
.portal-entry-card.government { --portal-accent: var(--cyan); }
.portal-entry-card.individual { --portal-accent: var(--violet); }
.portal-entry-card.guest { --portal-accent: var(--color-status-success); }
.portal-entry-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid color-mix(in srgb, var(--portal-accent) 30%, transparent); border-radius: 11px; color: var(--portal-accent); background: color-mix(in srgb, var(--portal-accent) 10%, transparent); }
.portal-entry-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.portal-entry-copy strong { font-size: 11px; line-height: 1.3; }
.portal-entry-copy small { color: var(--color-text-muted); font-size: 9px; line-height: 1.35; }
.portal-entry-arrow { flex: 0 0 auto; color: var(--color-text-muted); }
.hero-metrics-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 5px; padding: 14px 0 0; border-top-color: var(--color-border-subtle); }
.hero-stat-item { min-width: 0; padding: 0 12px; border-right: 1px solid var(--color-border-subtle); }
.hero-stat-item:first-child { padding-left: 0; }
.hero-stat-item:last-child { border-right: 0; }
.hero-stat-val { color: var(--color-text-primary) !important; font: 600 17px var(--font-mono); letter-spacing: -.03em; }
.hero-stat-val[data-status="online"] { color: var(--color-status-online) !important; }
.hero-stat-val[data-status="waking"] { color: var(--color-status-waking) !important; }
.hero-stat-val[data-status="offline"] { color: var(--color-status-offline) !important; }
.hero-stat-val[data-mode="light"] { color: var(--color-text-secondary) !important; }
.hero-stat-label { color: var(--color-text-muted); font-size: 9px; line-height: 1.35; }
.hero-data-note { margin: -12px 0 0; color: var(--color-text-muted); font-size: 11px; }
.trust-signals { display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--color-text-secondary); font-size: 10px; }
.trust-signals span { display: inline-flex; align-items: center; gap: 7px; }
.trust-signals svg { color: var(--cyan); }
.server-waking-banner { display: flex; align-items: center; gap: 10px; max-width: 540px; padding: 12px 14px; color: var(--color-text-primary); background: color-mix(in srgb, var(--color-status-waking) 8%, var(--color-surface)); border: 1px solid color-mix(in srgb, var(--color-status-waking) 26%, transparent); border-radius: var(--radius-md); font-size: 12px; }
.server-waking-slot { min-height: 46px; }
.server-waking-spinner { width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid color-mix(in srgb, var(--color-status-waking) 30%, transparent); border-top-color: var(--color-status-waking); border-radius: 50%; animation: landingSpin 1s linear infinite; }
@keyframes landingSpin { to { transform: rotate(360deg); } }
.hero-visual-staging { min-width: 0; border: 1px solid var(--color-border-default); border-radius: var(--radius-2xl); background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--cyan) 11%, transparent), transparent 58%), color-mix(in srgb, var(--color-surface) 72%, transparent); box-shadow: var(--shadow-lg), var(--glow-cyan); overflow: hidden; }
.hero-canvas-placeholder { width: 100%; aspect-ratio: 1 / 1; min-height: 330px; background: repeating-radial-gradient(circle at center, transparent 0 42px, color-mix(in srgb, var(--cyan) 12%, transparent) 43px 44px), radial-gradient(circle at center, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 62%); }
.homepage .feature-glass-card { min-width: 0; color: var(--color-text-primary); background: linear-gradient(145deg, var(--color-surface-raised), var(--color-surface)); border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.homepage .feature-glass-card h3 { color: var(--color-text-primary); }
.homepage .feature-glass-card p { color: var(--color-text-secondary); }
.homepage .narrative-pipeline-card { color: var(--color-text-primary); background: var(--color-surface) !important; border-color: var(--color-border-default) !important; box-shadow: var(--shadow-md); }
.homepage .stage-info-column { background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface)); border-right-color: var(--color-border-subtle); }
.homepage .stage-title, .homepage .security-section h2, .homepage .capabilities-section h2 { color: var(--color-text-primary); }
.homepage .stage-description { color: var(--color-text-secondary); }
.homepage .stage-tech-pill { color: var(--color-text-secondary); background: var(--color-surface-overlay); border-color: var(--color-border-subtle); }
.homepage .section-header-center h2 { color: var(--color-text-primary); }
.homepage .section-header-center p { color: var(--color-text-secondary); }
.homepage .cap-card { color: var(--color-text-primary); background: var(--color-surface); border-color: var(--color-border-default); box-shadow: var(--shadow-sm); }
.homepage .cap-card h3, .homepage .cap-card h4 { color: var(--color-text-primary); }
.homepage .cap-card p { color: var(--color-text-secondary); }
.homepage .hero-compass-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.homepage .compass-meta-val { overflow-wrap: anywhere; }
.homepage .security-section .feature-glass-card h4,
.homepage .security-section .feature-glass-card p { color: var(--color-text-primary) !important; }
.homepage .security-section .feature-glass-card h3 { color: var(--color-text-primary) !important; }
.homepage .security-section .feature-glass-card p { color: var(--color-text-secondary) !important; }
.homepage .cta-banner { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--cyan) 12%, var(--color-canvas)), var(--color-canvas)); border-color: var(--color-border-subtle); }
.homepage .cta-banner h2 { color: var(--color-text-primary); }
.homepage .cta-banner p { color: var(--color-text-secondary); }
.homepage .cta-banner .hero-btn-secondary { color: var(--color-text-primary); border-color: var(--color-border-default); }
.homepage-footer { color: var(--color-text-muted); background: var(--color-surface); border-color: var(--color-border-subtle); }
.homepage-footer strong { color: var(--color-text-primary) !important; }
.homepage > #landing-main > section:not(#hero), .homepage-footer { content-visibility: auto; contain-intrinsic-size: auto 620px; }
.landing-lower-sections { content-visibility: auto; contain-intrinsic-size: auto 3600px; }
.narrative-pipeline-card-loading { min-height: 520px; }
.landing-sections-placeholder { min-height: 3600px; }
.footer-placeholder { min-height: 96px; padding: 0; }
@media (max-width: 700px) { .landing-sections-placeholder { min-height: 4300px; } }
html[data-theme="light"] .homepage .narrative-badge,
html[data-theme="light"] .homepage .stage-step-tag,
html[data-theme="light"] .homepage .narrative-replay-btn { color: #075985; }
html[data-theme="light"] .homepage .narrative-ctrl-btn { color: #1e293b; background: #ffffff; }
html[data-theme="light"] .homepage .workflow-stepper { background: var(--color-surface); border-color: var(--color-border-default); }
html[data-theme="light"] .homepage .workflow-stepper .step-chip { color: var(--color-text-secondary); }
html[data-theme="light"] .homepage .narrative-stage-item { background: #f1f5f9; border-color: var(--color-border-default); }
html[data-theme="light"] .homepage .narrative-stage-item.current { background: #eafaff; }
html[data-theme="light"] .homepage .narrative-stage-item.passed { background: #f4fdf8; }
html[data-theme="light"] .homepage .stage-step-name { color: #334155; }
html[data-theme="light"] .homepage .stage-step-bubble { color: #334155; background: #e2e8f0; }

@media (max-width: 1180px) {
  .homepage-nav { flex-wrap: wrap; }
  .nav-menu { order: 3; width: 100%; justify-content: center; }
  .hero-content { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 34px; }
  .portal-entry-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html:has(.homepage) { scroll-padding-top: 150px; }
  .homepage-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; min-height: auto; padding: 10px 14px 8px; }
  .nav-brand { min-width: 0; }
  .nav-brand .logo-text strong { font-size: 12px; }
  .nav-brand .logo-text small { font-size: 7px; }
  .nav-actions { justify-self: end; }
  .nav-session-actions { display: none; }
  .landing-command-trigger { width: 38px; min-width: 38px; padding: 0; }
  .landing-command-trigger span, .landing-command-trigger kbd { display: none; }
  .homepage .ui-controls-toolbar { padding: 3px !important; gap: 4px !important; }
  .homepage .ui-controls-toolbar > div:nth-child(2) { display: none !important; }
  .homepage .ui-controls-toolbar select, .homepage .ui-controls-toolbar button { min-height: 36px; padding: 4px 6px !important; font-size: 10px !important; }
  .nav-menu { order: initial; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 2px; justify-content: stretch; }
  .nav-menu :is(a, button) { justify-content: center; min-height: 40px; padding: 0 4px; font-size: 10px; }
  .homepage-hero { min-height: auto; padding: 44px 18px 52px; }
  .hero-content { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-text { gap: 18px; }
  .hero-wordmark-title { font-size: clamp(3rem, 16vw, 4.6rem); }
  .hero-wordmark-tagline { font-size: 19px; }
  .hero-subtitle { font-size: 14px !important; }
  .portal-entry-grid { grid-template-columns: 1fr; gap: 8px; }
  .portal-entry-card { min-height: 68px; padding: 10px 12px; }
  .portal-entry-copy strong { font-size: 12px; }
  .portal-entry-copy small { font-size: 10px; }
  .hero-metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .hero-stat-item:nth-child(2) { border-right: 0; }
  .hero-stat-item:nth-child(3) { padding-left: 0; }
  .hero-visual-staging { min-height: 320px; border-radius: var(--radius-xl); }
  .hero-visual-staging canvas { max-width: 100%; }
  .trust-signals { gap: 9px 14px; font-size: 10px; }
  .feature-card-section, .capabilities-section, .security-section { padding-left: 16px !important; padding-right: 16px !important; }
  .homepage .feature-grid-4col { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.homepage) { scroll-behavior: auto; }
  .homepage *, .homepage *::before, .homepage *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
