:root {
  --o: #f47a1a;
  --o2: #ff9a3d;
  --bg: #090a0c;
}

* {
  box-sizing: border-box;
}

body {
  background-color: #050608;
  color: #eceef0;
  overflow-x: hidden;
}

/* Animated Orange & Black Ambient Gradient Background */
.ambient-bg-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
}

.orange-glow-1 {
  background: radial-gradient(circle, rgba(244, 122, 26, 0.26) 0%, rgba(196, 82, 11, 0.09) 45%, transparent 72%);
  animation: ambientDrift1 16s ease-in-out infinite alternate;
}

.orange-glow-2 {
  background: radial-gradient(circle, rgba(255, 154, 61, 0.20) 0%, rgba(244, 122, 26, 0.06) 50%, transparent 72%);
  animation: ambientDrift2 22s ease-in-out infinite alternate;
}

@keyframes ambientDrift1 {
  0% { transform: translate3d(-12%, -8%, 0) scale(1); }
  50% { transform: translate3d(14%, 10%, 0) scale(1.18); }
  100% { transform: translate3d(-6%, 18%, 0) scale(0.95); }
}

@keyframes ambientDrift2 {
  0% { transform: translate3d(15%, 12%, 0) scale(1.1); }
  50% { transform: translate3d(-16%, -6%, 0) scale(0.92); }
  100% { transform: translate3d(8%, -14%, 0) scale(1.15); }
}

/* Soft Lateral Black Vignette (Frames wide screens without clipping the 3D model) */
.lateral-vignette {
  background: radial-gradient(ellipse 95% 85% at 50% 50%, transparent 55%, rgba(5, 6, 8, 0.72) 85%, #050608 100%),
              linear-gradient(90deg, #050608 0%, transparent 12%, transparent 88%, #050608 100%);
}

/* Custom Carbon & Brushed Metal Accents */
.carbon-pattern {
  background-color: #0d0e12;
  background-image: 
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.6) 0px, rgba(0,0,0,0.6) 2px, transparent 2px, transparent 4px);
}

/* 3D Perspective Tilt Cards */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background: rgba(18, 20, 25, 0.82);
  backdrop-filter: blur(14px);
}

.tilt-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 154, 61, 0.85), rgba(244, 122, 26, 0.15) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover::before {
  opacity: 1;
}

.tilt-content {
  transform: translateZ(20px);
}

/* Logo Metallic Sheen Effect */
.logo-sheen {
  position: relative;
  overflow: hidden;
}
.logo-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.7) 48%, rgba(255, 180, 100, 0.6) 52%, transparent 65%);
  transform: translateX(-130%);
  animation: metallicSheen 6.5s ease-in-out infinite 1.2s;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes metallicSheen {
  0% { transform: translateX(-130%); }
  30%, 100% { transform: translateX(130%); }
}

/* Button Tactical Styling */
.btn-primary {
  background: linear-gradient(180deg, #ff9a3d 0%, #f47a1a 55%, #c4520b 100%);
  color: #090a0c;
  box-shadow: 0 8px 25px -4px rgba(244, 122, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(255, 154, 61, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-steel {
  background: linear-gradient(180deg, #262930 0%, #16181d 100%);
  border: 1px solid #383c45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}
.btn-steel:hover {
  border-color: #f47a1a;
  color: #ff9a3d;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(180deg, #25d366 0%, #169c46 100%);
  color: #041f0e;
  box-shadow: 0 8px 25px -4px rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(37, 211, 102, 0.55);
}

/* Telemetry HUD Corner Brackets */
.hud-box {
  position: relative;
}
.hud-box::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  border-top: 2px solid var(--o);
  border-right: 2px solid var(--o);
  border-top-right-radius: 6px;
  pointer-events: none;
  opacity: 0.7;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #090a0c; }
::-webkit-scrollbar-thumb { background: #2a2e37; border-radius: 4px; border: 2px solid #090a0c; }
::-webkit-scrollbar-thumb:hover { background: #f47a1a; }

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Quick-diagnose symptom pill active state */
.symptom-chip.selected {
  background: rgba(244, 122, 26, 0.2);
  border-color: #f47a1a;
  color: #ff9a3d;
  box-shadow: 0 0 15px rgba(244, 122, 26, 0.25);
}

/* Animated Radar Pulse for Service Area */
@keyframes radarPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}
.radar-ring {
  animation: radarPulse 2.8s cubic-bezier(0.1, 0.6, 0.3, 1) infinite;
}