/* ==========================================================================
   BIMPILOTS ARCHITECTURAL SIMULATION & AMBIENT GRAPHICS SYSTEM
   bim-hologram.css
   Includes:
   1. Ambient Floating AEC Particles Background (Bimbeats Style, slow & buttery smooth)
   2. Homepage 5-Scene Transformation Cinematic (Walkthrough -> Before -> Code -> Product -> After)
   3. Export Pilot 5-Stage Lifecycle Simulation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Ambient Floating AEC Particles Background (First Section & Opt-In Sections)
   -------------------------------------------------------------------------- */
#aecFloatingCanvas,
.aec-floating-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.aec-fullpage-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Confine the floating canvas strictly inside the first section or opt-in section */
.hero,
section:first-of-type,
section[data-aec-hologram="true"] {
  position: relative !important;
  overflow: hidden;
}

/* Full-page hologram mode stacking */
body[data-aec-hologram-page="true"] section,
body[data-aec-hologram-page="true"] footer {
  position: relative;
  z-index: 2;
}

/* Ensure all page content stacks crisply above the background canvas */
.hero > .container,
section:first-of-type > .container,
section[data-aec-hologram="true"] > .container,
.hero .container,
section:first-of-type .container,
section[data-aec-hologram="true"] .container,
.section,
footer {
  position: relative;
}

.hero .container,
section:first-of-type .container,
section[data-aec-hologram="true"] .container,
.section .container,
.navbar .container,
footer .container {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   2. Homepage 5-Scene Transformation Cinematic (Architectural Film Reel)
   -------------------------------------------------------------------------- */
.home-sim-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl, 16px);
  background: #FFFFFF;
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.08), 0 4px 16px -2px rgba(37, 99, 235, 0.08), 0 0 1px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  user-select: none;
}

.home-sim-container.arch-blueprint-card .cad-corner {
  color: #2563EB;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.9;
  z-index: 12;
  pointer-events: none;
}

.home-sim-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.015) 4px, transparent 4px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 4px, transparent 4px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 1;
}

.home-sim-viewport {
  position: relative;
  min-height: 500px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
}

/* Top Telemetry HUD Header / Architectural Drawing Stamp (Light Studio Theme) */
.home-sim-hud.arch-title-stamp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #475569;
  z-index: 10;
}

.home-sim-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1D4ED8;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-sim-pulse {
  width: 8px;
  height: 8px;
  background: #059669;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
  animation: hsPulse 1.8s infinite;
}

@keyframes hsPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.arch-meta-readout {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748B;
  font-size: 10.5px;
}

.arch-meta-cell {
  background: #F1F5F9;
  color: #334155;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
}

/* Common Scene Pane Container */
.home-sim-stage-box {
  position: relative;
  flex: 1;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* FLAWLESS CINEMATIC MOVIE DISSOLVE TRANSITION */
.home-scene-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
  filter: blur(4px);
  transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1), transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), filter 0.75s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform, filter;
}

.home-scene-pane.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  filter: blur(0px);
}

/* --------------------------------------------------------------------------
   SCENE 1: Photorealistic 3D Architectural Model Walkthrough (Light Theme)
   -------------------------------------------------------------------------- */
.arch-walkthrough-viewport {
  position: relative;
  width: 100%;
  height: 330px;
  border-radius: 10px;
  overflow: hidden;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.arch-building-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: archCameraPan 18s ease-in-out infinite alternate;
  filter: contrast(1.03) brightness(0.98);
  display: block;
}

@keyframes archCameraPan {
  0% { transform: scale(1.08) translate(-1.5%, -1%); }
  50% { transform: scale(1.02) translate(1%, 0.5%); }
  100% { transform: scale(1.08) translate(-0.5%, 1.5%); }
}

/* Glowing Laser Geometry Scan Beam */
.arch-laser-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #2563EB 30%, #38BDF8 50%, #2563EB 70%, transparent 100%);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.6), 0 0 24px rgba(56, 189, 248, 0.4);
  pointer-events: none;
  animation: archLaserScan 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 4;
}

@keyframes archLaserScan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Architectural HUD Telemetry Tags (Crisp Light Architectural Glass) */
.arch-hud-tag {
  position: absolute;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid #CBD5E1;
  color: #0F172A;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 5;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.tag-top-left { top: 12px; left: 14px; border-color: rgba(37, 99, 235, 0.4); color: #1D4ED8; }
.tag-top-right { top: 12px; right: 14px; border-color: rgba(5, 150, 105, 0.4); color: #047857; }
.tag-bot-left { bottom: 12px; left: 14px; color: #475569; }
.tag-bot-right { bottom: 12px; right: 14px; border-color: #2563EB; color: #1E293B; }

/* CAD Precision Inspection Reticles */
.arch-cad-reticle {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 5;
}

.arch-cad-reticle.r1 { top: 28%; left: 45%; }
.arch-cad-reticle.r2 { top: 68%; left: 18%; }

.reticle-target {
  width: 18px;
  height: 18px;
  border: 1.5px dashed #2563EB;
  border-radius: 50%;
  position: relative;
  animation: reticleSpin 8s linear infinite;
}

@keyframes reticleSpin {
  100% { transform: rotate(360deg); }
}

.reticle-target::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #059669;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px #059669;
}

.reticle-txt {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  color: #0F172A;
  background: rgba(255, 255, 255, 0.94);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #94A3B8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

/* Architectural Elevation Ruler on Left Edge of Viewport */
.arch-elevation-ruler {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 10px;
  width: 44px;
  border-right: 1px dashed rgba(37, 99, 235, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  font-weight: 700;
  color: #475569;
  pointer-events: none;
  z-index: 5;
  user-select: none;
}

.arch-elevation-ruler span {
  position: relative;
  display: block;
}

.arch-elevation-ruler span::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 1px;
  background: rgba(37, 99, 235, 0.5);
}

/* --------------------------------------------------------------------------
   ARCHITECTURAL DRAFTING SHEET & AUDIT PANELS (Scene 2 & Scene 5 - Light Theme)
   -------------------------------------------------------------------------- */
.arch-sheet-panel {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.arch-audit-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}

.arch-audit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.04em;
}

.arch-badge-danger {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #BE123C;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.arch-badge-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.arch-audit-subtitle {
  font-size: 11px;
  color: #64748B;
  margin-top: 3px;
  line-height: 1.4;
}

.arch-audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.arch-stat-cell {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  position: relative;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.arch-stat-cell.danger {
  border-left: 3.5px solid #E11D48;
  border-color: #FECDD3;
  background: #FFFDFD;
}

.arch-stat-cell.success {
  border-left: 3.5px solid #059669;
  border-color: #A7F3D0;
  background: #FCFDFD;
}

.arch-stat-label {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.arch-stat-cell.danger .arch-stat-label { color: #BE123C; }
.arch-stat-cell.success .arch-stat-label { color: #047857; }

.arch-stat-val {
  font-family: var(--font-mono, monospace);
  font-size: 25px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.arch-stat-val span {
  font-size: 11.5px;
  font-weight: 600;
}

.arch-stat-cell.danger .arch-stat-val span { color: #E11D48; }
.arch-stat-cell.success .arch-stat-val span { color: #059669; }

.arch-stat-sub {
  font-size: 10.5px;
  color: #64748B;
  margin-top: 3px;
  line-height: 1.35;
}

.arch-stamp-banner {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
}

.arch-stamp-banner.danger {
  background: #FFF1F2;
  border-color: #FECDD3;
  color: #9F1239;
}

.arch-stamp-banner.success {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

.arch-stamp-tag {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.arch-stamp-banner.danger .arch-stamp-tag { color: #BE123C; background: rgba(225, 29, 72, 0.1); }
.arch-stamp-banner.success .arch-stamp-tag { color: #047857; background: rgba(5, 150, 105, 0.1); }

/* --------------------------------------------------------------------------
   SCENE 3: Computational Revit API Code Terminal (Light Studio IDE)
   -------------------------------------------------------------------------- */
.scene-code-wrap,
.scene-code-wrap.arch-code-terminal {
  width: 100%;
  height: 100%;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.05);
}

.code-env-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: #475569;
  flex-shrink: 0;
}

.code-stream-viewport {
  position: relative;
  flex: 1;
  height: 270px;
  overflow: hidden;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1.55;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.code-stream-track {
  display: flex;
  flex-direction: column;
  animation: codeFlowUp 12s linear infinite;
  will-change: transform;
}

@keyframes codeFlowUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Light Studio Syntax Highlighting */
.cs-l { white-space: pre; color: #1E293B; font-weight: 500; }
.cs-kw { color: #BE123C; font-weight: 700; } /* Keywords: vibrant rose */
.cs-tp { color: #1D4ED8; font-weight: 700; } /* Types: deep blueprint blue */
.cs-fn { color: #047857; font-weight: 600; } /* Methods: emerald */
.cs-str { color: #B45309; } /* Strings: warm amber */
.cs-cm { color: #64748B; font-style: italic; } /* Comments: slate */
.cs-num { color: #7C3AED; font-weight: 600; } /* Numbers: purple */

/* --------------------------------------------------------------------------
   SCENE 4: BIMPILOTS Engineering Mind & Developed Solutions (Light Theme)
   -------------------------------------------------------------------------- */
.arch-solution-frame {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 12px 32px -4px rgba(37, 99, 235, 0.08), 0 2px 10px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.arch-solution-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 12px;
}

.arch-brand-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch-brand-bp {
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}

.arch-brand-titles {
  display: flex;
  flex-direction: column;
}

.arch-brand-sub {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  color: #2563EB;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.arch-brand-main {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.03em;
}

.arch-badge-deployed {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #059669;
  font-weight: 700;
  background: #ECFDF5;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #A7F3D0;
}

.arch-solution-lead {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 5px;
  line-height: 1.35;
}

.arch-solution-body {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
}

.arch-capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}

.arch-cap-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 7px 10px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cap-check {
  color: #059669;
  font-weight: 800;
}

.arch-cta-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
}

.arch-cta-note {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284C7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.4);
}

.arch-cta-products-btn {
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid #1D4ED8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.arch-cta-products-btn:hover {
  background: #1D4ED8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Architectural Continuous Movie Ribbon (Light Studio Theme)
   -------------------------------------------------------------------------- */
.home-cinema-ribbon {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
  z-index: 10;
}

.cinema-track-bar {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}

.cinema-laser-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #0284C7, #059669);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
  transition: width 0.08s linear;
}

.cinema-cues-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.cinema-cue-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.25s ease;
  user-select: none;
}

.cinema-cue-item:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.cinema-cue-item.active {
  color: #1D4ED8;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.08);
}

.cinema-cue-item .cue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 0.25s ease;
}

.cinema-cue-item.active .cue-dot {
  background: #2563EB;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

/* --------------------------------------------------------------------------
   3. Export Pilot Page: 5-Stage Lifecycle Simulation (Light Studio Theme)
   -------------------------------------------------------------------------- */
.bim-holo-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl, 16px);
  background: #FFFFFF;
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.08), 0 4px 16px -2px rgba(37, 99, 235, 0.08), 0 0 1px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  user-select: none;
}

.bim-holo-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.015) 4px, transparent 4px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 4px, transparent 4px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 1;
}

.bim-holo-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.7) 50%, transparent 100%);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
  animation: bimLaserScan 5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 20;
}

@keyframes bimLaserScan {
  0% { top: 0%; opacity: 0.2; }
  50% { opacity: 0.85; }
  100% { top: 98%; opacity: 0.2; }
}

.bim-holo-viewport {
  position: relative;
  min-height: 480px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
}

.bim-holo-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #475569;
  z-index: 10;
}

.bim-holo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1D4ED8;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bim-holo-pulse-dot {
  width: 8px;
  height: 8px;
  background: #059669;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
  animation: hsPulse 1.8s infinite;
}

.bim-stage-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 340px;
}

.bim-sim-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98) translateY(6px);
  filter: blur(3px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bim-sim-pane.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  filter: blur(0px);
}

.stage-model-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bim-model-svg {
  width: 100%;
  max-width: 440px;
  height: 250px;
  filter: drop-shadow(0 2px 12px rgba(37, 99, 235, 0.15));
  animation: wtPlaneMove 6s ease-in-out infinite alternate;
}

.model-wire-slab {
  fill: rgba(37, 99, 235, 0.05);
  stroke: #2563EB;
  stroke-width: 1.5;
}

.model-wire-column {
  stroke: #1D4ED8;
  stroke-width: 2;
  stroke-dasharray: 4 2;
}

.model-tag {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #CBD5E1;
  color: #0F172A;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.model-tag-float-1 { position: absolute; top: 18px; left: 20px; }
.model-tag-float-2 { position: absolute; bottom: 24px; right: 20px; }

.stage-code-wrap {
  width: 100%;
  height: 100%;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 14px 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.04);
}

.code-stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #475569;
}

.code-waterfall {
  position: relative;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  line-height: 1.65;
  color: #1E293B;
  overflow: hidden;
  height: 260px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.code-waterfall-track {
  display: flex;
  flex-direction: column;
  animation: codeStreamWaterfall 15s linear infinite;
  will-change: transform;
}

@keyframes codeStreamWaterfall {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.code-line {
  white-space: pre;
  display: block;
}

.ck-kw { color: #BE123C; font-weight: 700; }
.ck-tp { color: #1D4ED8; font-weight: 700; }
.ck-fn { color: #047857; font-weight: 600; }
.ck-str { color: #B45309; }
.ck-cm { color: #64748B; font-style: italic; }

.stage-compile-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.compile-radar-circle {
  width: 130px;
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.compile-svg-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.compile-bg-ring {
  stroke: #E2E8F0;
  stroke-width: 6;
  fill: none;
}

.compile-prog-ring {
  stroke: #2563EB;
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s;
}

.compile-center-pct {
  font-family: var(--font-mono, monospace);
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
}

.compile-shockwave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #2563EB;
  opacity: 0;
  pointer-events: none;
}

.compile-shockwave.fire {
  animation: shockFire 1.2s ease-out forwards;
}

@keyframes shockFire {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

.compile-terminal-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: #334155;
  text-align: left;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.compile-success-line {
  color: #059669;
  font-weight: 700;
  margin-top: 4px;
}

.stage-product-wrap {
  width: 100%;
}

.product-ui-frame {
  background: #FFFFFF;
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 32px -4px rgba(37, 99, 235, 0.08), 0 2px 10px rgba(15, 23, 42, 0.04);
}

.product-ui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}

.product-ui-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #0F172A;
}

.product-ui-brand span { color: #2563EB; }

.product-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.product-chip-cell {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
}

.product-chip-cell span {
  display: block;
  font-size: 9px;
  color: #059669;
  margin-top: 2px;
}

.product-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
}

.product-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563EB;
  color: #FFFFFF;
  border: 1px solid #1D4ED8;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.product-cta-btn:hover {
  background: #1D4ED8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.stage-stats-wrap {
  width: 100%;
}

.stats-emission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.stat-emission-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.stat-emission-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5px;
  height: 100%;
  background: #2563EB;
}

.stat-emission-glow.green { background: #059669; }
.stat-emission-glow.amber { background: #D97706; }
.stat-emission-glow.blue { background: #2563EB; }

.stat-emission-title {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-emission-val {
  font-family: var(--font-mono, monospace);
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
}

.stat-emission-val span {
  font-size: 13px;
  color: #2563EB;
}

.stat-emission-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: 4px;
}

.stat-banner-summary {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #065F46;
}

.bim-sim-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
  z-index: 10;
}

.timeline-step-btn {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 6px 4px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.timeline-step-btn.active {
  color: #1D4ED8;
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.timeline-progress-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #2563EB;
  transition: width 0.1s linear;
}

@media (max-width: 650px) {
  .before-grid,
  .after-grid,
  .stats-emission-grid {
    grid-template-columns: 1fr;
  }
  .add-in-pills-grid {
    grid-template-columns: 1fr;
  }
  .home-sim-timeline,
  .bim-sim-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}
