/* =========================================================================
   DESIGN TOKENS & MATHEMATICAL BASELINE
   ========================================================================= */
:root {
  --bg-dark: #07080a;
  --bg-dark-surface: #0e1014;
  --bg-warm-light: #f7f6f2;
  --raw-steel: #23272f;
  --steel-hairline: rgba(255, 255, 255, 0.09);
  --steel-light-hairline: rgba(0, 0, 0, 0.12);
  
  --text-primary: #ededed;
  --text-secondary: #858b98;
  --text-dark: #0c0e12;
  --text-dark-muted: #5e6472;

  /* Visual Punctuations */
  --klein-blue: #002FA7;
  --signal-orange: #FF4F00;
  --neon-lime: #CCFF00;
  --crimson: #E63946;
  --cobalt: #1D4ED8;
  --amber-pulse: #FF9F1C;

  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

/* Architectural grid background overlay */
.blueprint-bg-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Monospace Utility */
.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

/* =========================================================================
   NAVIGATION / TELEMETRY STATUS BAR
   ========================================================================= */
.top-bar {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--steel-hairline);
  height: 48px;
  padding: 0 2rem;
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  font-size: 0.75rem;
}

.brand-mark {
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 6px;
  height: 6px;
  background: var(--signal-orange);
  display: inline-block;
}

.top-telemetry {
  display: flex;
  gap: 2.5rem;
  color: var(--text-secondary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon-lime);
  background: rgba(204, 255, 0, 0.06);
  padding: 3px 8px;
  border: 1px solid rgba(204, 255, 0, 0.25);
}

.status-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-lime);
  box-shadow: 0 0 8px var(--neon-lime);
}

/* =========================================================================
   HERO SECTION: 60/40 ASYMMETRIC PARTITION
   ========================================================================= */
.hero-container {
  display: grid;
  grid-template-columns: 60fr 40fr;
  min-height: calc(100vh - 48px);
  border-bottom: 1px solid var(--steel-hairline);
  position: relative;
}

.hero-left {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--steel-hairline);
  position: relative;
}

.coordinate-marker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--signal-orange);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
}

.coordinate-target {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--klein-blue);
  position: relative;
  display: grid;
  place-items: center;
}

.coordinate-target::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--signal-orange);
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 15ch;
  color: #fff;
}

.hero-subtext {
  margin-top: 3.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 48ch;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.hero-footer-meta {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--steel-hairline);
  padding-top: 1.5rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.hero-right {
  position: relative;
  background: #050608;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

#wireframe-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.wireframe-hud {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.wireframe-telemetry {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(to top, rgba(7,8,10,0.95), transparent);
}

/* =========================================================================
   SECTION 01: THE AXIOM (LOGICAL DISCLOSURE)
   ========================================================================= */
.axiom-section {
  border-bottom: 1px solid var(--steel-hairline);
}

.section-header-bar {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--steel-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

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

.axiom-column {
  padding: 4rem 3rem 5rem 3rem;
  border-right: 1px solid var(--steel-hairline);
  position: relative;
  transition: background 0.15s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.axiom-column:last-child {
  border-right: none;
}

.axiom-column:hover {
  background: rgba(255, 255, 255, 0.02);
}

.axiom-column::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.15s ease-in-out;
}

.axiom-column:hover::after {
  background: var(--neon-lime);
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.axiom-index {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--signal-orange);
  margin-bottom: 2rem;
  display: block;
}

.axiom-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  color: #fff;
}

.axiom-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.axiom-spec-tag {
  margin-top: 3rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

/* =========================================================================
   SECTION 02: THE BLUEPRINT (ARCHITECTURAL ANATOMY)
   ========================================================================= */
.blueprint-section {
  border-bottom: 1px solid var(--steel-hairline);
  position: relative;
}

.blueprint-viewport {
  padding: 4rem 2rem;
  position: relative;
}

.blueprint-canvas-box {
  border: 1px solid var(--steel-hairline);
  background: #090a0d;
  position: relative;
  padding: 3rem;
  min-height: 540px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
}

.axis-marker-x {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.axis-marker-y {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.blueprint-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-right: 1px solid var(--steel-hairline);
  padding-right: 2rem;
}

.blueprint-layer-btn {
  background: transparent;
  border: 1px solid var(--steel-hairline);
  color: var(--text-secondary);
  padding: 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.blueprint-layer-btn.active,
.blueprint-layer-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.blueprint-layer-btn.active {
  border-left: 3px solid var(--klein-blue);
}

.blueprint-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.node-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.node-card {
  border: 1px solid var(--steel-hairline);
  background: rgba(255, 255, 255, 0.015);
  padding: 1.5rem;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.node-pill {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-bottom: 0.8rem;
}

.node-pill.crimson {
  background: var(--crimson);
  box-shadow: 0 0 10px var(--crimson);
}

.node-pill.cobalt {
  background: var(--cobalt);
  box-shadow: 0 0 10px var(--cobalt);
}

.node-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

.node-spec {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* =========================================================================
   SECTION 03: EMPIRICAL PROOF (PERFORMANCE METRICS)
   ========================================================================= */
.metrics-section {
  border-bottom: 1px solid var(--steel-hairline);
}

.metrics-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.metrics-matrix-table th,
.metrics-matrix-table td {
  padding: 2.2rem 3rem;
  border-bottom: 1px solid var(--steel-hairline);
}

.metrics-matrix-table th {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
}

.metrics-matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.metric-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.baseline-val {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.quantum-val {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-provable {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(204, 255, 0, 0.1);
  color: var(--neon-lime);
  border: 1px solid rgba(204, 255, 0, 0.3);
  letter-spacing: 0.05em;
}

/* =========================================================================
   SECTION 04: THE CONCLUSION (CTA / WARM-WHITE MATTE TERMINUS)
   ========================================================================= */
.conclusion-section {
  background: var(--bg-warm-light);
  color: var(--text-dark);
  padding: 10rem 2rem;
  text-align: center;
  position: relative;
}

.conclusion-inner {
  max-width: 860px;
  margin: 0 auto;
}

.conclusion-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  margin-bottom: 2rem;
  display: block;
}

.conclusion-headline {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 3.5rem;
}

.cta-monolith {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #000;
  color: #fff;
  padding: 1.4rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.cta-monolith:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.amber-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-pulse);
  box-shadow: 0 0 12px var(--amber-pulse);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

/* =========================================================================
   DEPLOYMENT SLIDE-OVER DRAWER (MODAL)
   ========================================================================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: 100%;
  max-width: 580px;
  background: #090a0d;
  border-left: 1px solid var(--steel-hairline);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--steel-hairline);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--steel-hairline);
  color: #fff;
  font-family: var(--font-mono);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.75rem;
}

.terminal-output {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-secondary);
  flex-grow: 1;
  overflow-y: auto;
  background: #050608;
  border: 1px solid var(--steel-hairline);
  padding: 1.5rem;
}

.terminal-line {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.terminal-line.success {
  color: var(--neon-lime);
}

.terminal-line.active {
  color: var(--signal-orange);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
  border-top: 1px solid var(--steel-hairline);
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--steel-hairline);
  }
  .hero-right {
    min-height: 480px;
  }
  .axiom-grid {
    grid-template-columns: 1fr;
  }
  .axiom-column {
    border-right: none;
    border-bottom: 1px solid var(--steel-hairline);
  }
  .blueprint-canvas-box {
    grid-template-columns: 1fr;
  }
  .blueprint-controls {
    border-right: none;
    border-bottom: 1px solid var(--steel-hairline);
    padding-bottom: 1.5rem;
    padding-right: 0;
  }
  .node-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    grid-template-columns: auto auto;
  }
  .top-telemetry {
    display: none;
  }
  .hero-left {
    padding: 3rem 1.5rem;
  }
  .metrics-matrix-table th,
  .metrics-matrix-table td {
    padding: 1.5rem 1.2rem;
  }
}
