/* JEVBRAIN.WORLD — Cinematic 3D Experience Styling */
:root {
  --bg-deep: #060608;
  --bg-card: rgba(18, 18, 22, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-dim: #71717A;
  --accent-cyan: #38BDF8;
  --accent-blue: #0284C7;
  --accent-green: #10B981;
  --accent-amber: #F59E0B;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Subtle Vignette & Cinema Depth */
.cinema-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(6, 6, 8, 0.9) 100%);
  z-index: 5;
}

.cinema-scanlines {
  display: none !important;
}

/* Top & Bottom Cinema Letterbox Bars */
.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 44px;
  background: #000000;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  pointer-events: auto;
}
.letterbox-top {
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.letterbox-bottom {
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.brand-badge:hover {
  opacity: 0.8;
}
.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}
.brand-title {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 1.5px;
}
.brand-tag {
  color: var(--text-dim);
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.top-telemetry {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tele-item span {
  color: var(--accent-cyan);
}

/* Cinematic Titles Overlay (Animated per Scene) */
.titles-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.scene-title-block {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.scene-title-block.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.main-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 3px;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.main-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  background: linear-gradient(180deg, #FFFFFF 0%, #D4D4D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.15);
  margin-bottom: 14px;
}

.main-subtitle {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  max-width: 680px;
  line-height: 1.6;
}

.pipeline-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.pipe-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-dim);
  transition: all 0.3s;
}
.pipe-chip.active {
  color: #FFFFFF;
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Feature Pills Row (Scene 01) */
.feature-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  max-width: 900px;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(14, 18, 24, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #f4f4f5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Multi-Model Cards Grid (Scene 02) */
.model-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 210px);
  gap: 14px;
  margin-top: 24px;
}
.mini-spec-card {
  background: rgba(14, 18, 26, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.spec-head {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.spec-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}
.spec-stat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

/* Autonomous Agents Flow (Scene 03) */
.agents-flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.agent-step-box {
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  width: 240px;
  backdrop-filter: blur(12px);
}
.agent-step-box.highlight-warden {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(10, 24, 20, 0.85);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}
.agent-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.agent-role {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.agent-info {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.flow-arrow {
  font-size: 20px;
  color: var(--accent-cyan);
  opacity: 0.6;
}

/* 4-Step User Guide Grid (Scene 04) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 230px);
  gap: 14px;
  margin-top: 24px;
}
.step-guide-card {
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: left;
  backdrop-filter: blur(14px);
  display: flex;
  gap: 12px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
}
.step-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.step-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}
.step-expl {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Economic Metrics Trio (Scene 05) */
.metrics-trio-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.metric-trio-card {
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  width: 250px;
  text-align: center;
  backdrop-filter: blur(14px);
}
.trio-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}
.trio-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.trio-sub {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Official CA & Domain CTA (Scene 06) */
.ca-pill-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 18, 26, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.ca-tag {
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 600;
}
.ca-hash {
  color: var(--accent-cyan);
  font-weight: 600;
}
.domain-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.domain-tag {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 2px;
}
.cta-pill {
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--accent-cyan);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

/* Clean Video Recording Mode: Completely HIDE all director controls & modals */
body.recording-mode .director-dock,
body.recording-mode .start-modal,
body.recording-mode .interactive-banner,
body.recording-mode #inspector-drawer {
  display: none !important;
}

/* Director Control Dock (Bottom Floating) */
.director-dock {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(20px);
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.05);
  transition: opacity 0.3s;
}

.btn-ctrl {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ctrl:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
.btn-ctrl-primary {
  background: #FFFFFF;
  color: #09090B;
}
.btn-ctrl-primary:hover {
  background: #E4E4E7;
  color: #000000;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.timeline-scrubber {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}
.time-display {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  min-width: 90px;
}
.scrub-track {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.scrub-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.dock-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
}

/* Interactive Mode Banner & Drawer */
.interactive-banner {
  position: absolute;
  top: 60px;
  right: 28px;
  z-index: 25;
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-active);
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.interactive-banner.visible {
  opacity: 1;
  pointer-events: auto;
}

.system-inspector-drawer {
  position: absolute;
  bottom: 80px;
  right: 28px;
  width: 320px;
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  padding: 18px;
  z-index: 25;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.1);
  transform: translateX(360px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.system-inspector-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.drawer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
}
.drawer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.drawer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}
.drawer-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}
.spec-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 8px;
  border-radius: 6px;
}
.spec-k {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  display: block;
}
.spec-v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Start Overlay Modal */
.start-modal {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.92);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.start-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.start-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #09090B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.start-modal:hover .start-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 0 70px rgba(56, 189, 248, 0.6);
}
.start-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.start-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
}
