/* ==========================================================================
   APEX DETAILING STUDIO — TECHNICAL CARBON & TITANIUM CYAN HUD SYSTEM
   Palette: Carbon Black #080A0D · Slate Blue #10141C · Titanium Cyan #38BDF8 · Speed Gold #EAB308
   ========================================================================== */

:root {
  --bg-void: #060709;
  --bg-carbon: #090C10;
  --bg-card: #0F141C;
  --bg-surface: #171F2C;
  
  --cyan: #38BDF8;
  --cyan-glow: rgba(56, 189, 248, 0.35);
  --gold: #EAB308;
  
  --border-tech: rgba(56, 189, 248, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --text-white: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-tech: 'Chakra Petch', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'Inter', sans-serif;
  
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg-void);
  color: var(--text-white);
  font-family: var(--font-sans);
}

body { line-height: 1.6; background: var(--bg-void); overflow-x: hidden; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-cyan { color: var(--cyan); }

/* Demo Top Bar */
.tech-demo-bar {
  background: #030405;
  color: #94A3B8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-tech);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.demo-bar-flex { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.demo-bar-info { display: flex; align-items: center; gap: 8px; }
.demo-bar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.1);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--border-tech);
  font-family: var(--font-tech);
  transition: var(--transition);
  margin-right: 6px;
}
.demo-bar-back:hover { background: var(--cyan); color: #060709; transform: translateY(-1px); }
.tech-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.demo-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--cyan);
  color: #060709;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.demo-bar-link:hover { background: #fff; transform: translateY(-1px); }

/* Header */
.tech-header {
  background: rgba(9, 12, 16, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-tech);
  position: sticky;
  top: 37px;
  z-index: 999;
}
.header-container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.tech-brand { text-decoration: none; display: flex; flex-direction: column; }
.brand-badge-tech { font-family: var(--font-tech); font-size: 9px; letter-spacing: 2px; color: var(--cyan); font-weight: 700; }
.brand-title-tech { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: #FFF; letter-spacing: 1px; }
.brand-title-tech span { color: var(--cyan); font-weight: 400; margin-left: 4px; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.nav-item:hover { color: var(--cyan); }

.mobile-toggle { display: none; background: none; border: none; font-size: 22px; color: #FFF; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-cyan {
  background: var(--cyan);
  color: #060709;
  box-shadow: 0 0 20px var(--cyan-glow);
}
.btn-cyan:hover { background: #FFFFFF; transform: translateY(-2px); box-shadow: 0 0 25px rgba(255,255,255,0.4); }
.btn-tech-outline {
  background: transparent;
  color: var(--text-white);
  border-color: var(--border-tech);
}
.btn-tech-outline:hover { background: var(--bg-card); border-color: var(--cyan); color: var(--cyan); }
.btn-lg { padding: 14px 28px; font-size: 14px; }
.btn-block { width: 100%; }

/* Hero Section */
.tech-hero {
  padding: 80px 0;
  position: relative;
  background: radial-gradient(circle at 75% 30%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-void) 0%, var(--bg-carbon) 100%);
}
.hero-tech-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-tech);
  border-radius: 4px;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 24px;
}
.hud-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.tech-hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  color: #FFF;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.tech-lead { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.tech-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.telemetry-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.spec-cell { display: flex; flex-direction: column; }
.spec-label { font-family: var(--font-tech); font-size: 10px; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 4px; }
.spec-val { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-white); }

/* Hero Visual Box */
.hero-tech-visual { position: relative; }
.tech-frame-box {
  position: relative;
  border: 1px solid var(--border-tech);
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.tech-showcase-img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--r-sm); display: block; }
.frame-crosshair { position: absolute; width: 12px; height: 12px; border-color: var(--cyan); border-style: solid; }
.frame-crosshair.top-left { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.frame-crosshair.top-right { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.frame-crosshair.bottom-left { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.frame-crosshair.bottom-right { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.tech-hud-overlay-card {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  background: rgba(15, 20, 28, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-tech);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  overflow: hidden;
}
.hud-card-body { display: flex; align-items: center; gap: 14px; }
.hud-card-body i { font-size: 24px; flex-shrink: 0; }
.hud-card-body strong { font-size: 13.5px; color: #FFF; display: block; }
.hud-card-body span { font-size: 12px; color: var(--text-muted); }

/* Split Slider Section */
.tech-section { padding: 90px 0; }
.tech-sub-badge { font-family: var(--font-tech); font-size: 11px; color: var(--cyan); letter-spacing: 2px; font-weight: 700; }
.tech-h2 { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 44px); color: #FFF; font-weight: 700; margin-top: 6px; }
.tech-p { font-size: 14.5px; color: var(--text-muted); max-width: 580px; margin: 8px auto 0; }

.split-slider-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--border-tech);
  margin-top: 40px;
  cursor: ew-resize;
  user-select: none;
}
.split-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layer-before {
  background: linear-gradient(135deg, #181512 0%, #29241F 100%);
  color: #B5A89E;
}
.split-simulated-swirls, .split-simulated-gloss {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.swirl-overlay, .gloss-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.swirl-overlay i { font-size: 48px; color: #8A7B6D; }
.gloss-overlay i { font-size: 48px; color: var(--cyan); }

.layer-after {
  background: linear-gradient(135deg, #071926 0%, #0F2D42 100%);
  color: #FFF;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--cyan);
}
.badge-left { position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.6); padding: 4px 12px; border-radius: 4px; font-family: var(--font-tech); font-size: 11px; }
.badge-right { position: absolute; top: 20px; right: 20px; background: var(--cyan); color: #000; font-weight: 800; padding: 4px 12px; border-radius: 4px; font-family: var(--font-tech); font-size: 11px; }

.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.handle-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cyan);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 16px var(--cyan);
}

/* Configurator */
.tech-configurator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-tech);
  border-radius: var(--r-md);
  padding: 40px;
  margin-top: 40px;
}
.config-step-block { margin-bottom: 36px; }
.step-label { font-family: var(--font-tech); font-size: 13px; color: var(--cyan); font-weight: 700; text-transform: uppercase; margin-bottom: 16px; display: block; }

.car-segments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.car-seg-btn {
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 20px 16px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.car-seg-btn i { font-size: 28px; color: var(--cyan); }
.car-seg-btn strong { font-size: 14px; color: #FFF; font-family: var(--font-display); }
.car-seg-btn span { font-size: 11.5px; color: var(--text-dim); }
.car-seg-btn.active, .car-seg-btn:hover { border-color: var(--cyan); background: var(--bg-surface); }

.packages-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pkg-card {
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pkg-card.selected { border-color: var(--cyan); background: var(--bg-surface); box-shadow: 0 0 25px rgba(56, 189, 248, 0.15); }
.bestseller-chip { position: absolute; top: -10px; right: 16px; background: var(--gold); color: #000; font-family: var(--font-tech); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 2px; }
.pkg-head h4 { font-family: var(--font-display); font-size: 18px; color: #FFF; margin-bottom: 6px; }
.pkg-time { font-size: 12px; color: var(--text-dim); }
.pkg-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 20px 0; font-size: 13px; color: var(--text-muted); flex: 1; }
.pkg-price-tag { font-size: 13px; color: var(--text-dim); border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.pkg-price-tag strong { font-family: var(--font-display); font-size: 20px; color: var(--cyan); margin-left: 6px; }

.config-summary-bar {
  background: #06080B;
  border: 1px solid var(--border-tech);
  border-radius: var(--r-sm);
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sum-label { font-size: 12px; color: var(--text-dim); font-family: var(--font-tech); display: block; }
.summary-info strong { font-size: 16px; color: #FFF; font-family: var(--font-display); }
.summary-action { display: flex; align-items: center; gap: 24px; }
.sum-price-box { display: flex; flex-direction: column; text-align: right; }
.sum-price-box span { font-size: 11px; color: var(--text-dim); }
.sum-price-box strong { font-family: var(--font-display); font-size: 24px; }

/* Contact Section */
.tech-contact-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-tech);
  border-radius: var(--r-md);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.tech-direct-contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.contact-pill {
  padding: 12px 18px;
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-pill:hover { border-color: var(--cyan); }

.tech-form { display: flex; flex-direction: column; gap: 16px; }
.t-group label { font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; margin-bottom: 6px; display: block; font-family: var(--font-tech); }
.t-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: #FFF;
  font-size: 13.5px;
  outline: none;
}
.t-input:focus { border-color: var(--cyan); }

/* Mobile Floating Bar */
.tech-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-tech);
  padding: 10px 16px;
  z-index: 998;
  gap: 10px;
}
.mob-btn {
  flex: 1;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mob-call { background: var(--bg-surface); color: #FFF; }
.mob-wa { background: #25D366; color: #FFF; }

/* Footer */
.tech-footer { background: #030405; border-top: 1px solid var(--border-subtle); padding: 36px 0; text-align: center; }
.footer-brand-title { font-family: var(--font-tech); font-size: 14px; letter-spacing: 2px; color: var(--cyan); margin-bottom: 8px; }
.footer-copy { font-size: 12px; color: var(--text-dim); }
.footer-copy a { color: var(--cyan); text-decoration: none; }

/* Responsive */
@media (max-width: 992px) {
  .hero-tech-grid { grid-template-columns: 1fr; }
  .car-segments-grid { grid-template-columns: 1fr; }
  .packages-cards-grid { grid-template-columns: 1fr; }
  .tech-contact-wrapper { grid-template-columns: 1fr; }
  .config-summary-bar { flex-direction: column; align-items: flex-start; }
  .summary-action { width: 100%; justify-content: space-between; }
}

@media (max-width: 768px) {
  .tech-nav { display: none; }
  .mobile-toggle { display: block; }
  .telemetry-specs-row { grid-template-columns: 1fr; }
  .tech-mobile-bar { display: flex; }
  body { padding-bottom: 60px; }
}
