/* ============================================
   CollisionAutoProsOS — Dark Glassmorphism Brand
   ============================================ */

:root {
  --bg: #060a0f;
  --bg-alt: #0a1018;
  --bg-card: rgba(16, 24, 40, 0.6);
  --fg: #e2eeff;
  --fg-muted: #6b82a0;
  --cyan: #00d4ff;
  --cyan-dim: #00a8cc;
  --cyan-glow: rgba(0, 212, 255, 0.12);
  --cyan-glow-strong: rgba(0, 212, 255, 0.22);
  --border: rgba(0, 212, 255, 0.12);
  --border-dim: rgba(0, 212, 255, 0.05);
  --glass-bg: rgba(12, 20, 36, 0.55);
  --glass-border: rgba(0, 212, 255, 0.15);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism base */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 0 var(--cyan), 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.glass-card:hover {
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ---- Typography ---- */
.section-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(0, 212, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 2rem;
}

.hero-headline span {
  background: linear-gradient(135deg, var(--cyan), #80e8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-cta { margin-bottom: 2rem; }

.hero-fleet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 5px;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hero-fleet-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-fleet-btn svg { flex-shrink: 0; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.meta-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-alt);
}

.visual-booth {
  position: relative;
  width: 70%;
  max-width: 460px;
}

.booth-chassis {
  position: relative;
}

.booth-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.booth-body {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0d1a28 0%, #060a0f 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(0,212,255,0.08);
}

.booth-door-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.booth-light-bar {
  height: 12px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan), var(--cyan-dim));
  box-shadow: 0 0 20px var(--cyan), 0 0 40px rgba(0, 212, 255, 0.3);
}

.booth-interior {
  flex: 1;
  background: linear-gradient(180deg,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(0, 212, 255, 0.03) 40%,
    transparent 100%);
  position: relative;
}

.booth-interior::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 30%;
  right: 30%;
  bottom: 30%;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 2px;
}

.booth-interior::before {
  content: '';
  position: absolute;
  top: 35%;
  left: 40%;
  right: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.2), transparent);
}

.booth-floor-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin-top: -1px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.ambient-glow {
  position: absolute;
  bottom: -20%;
  left: -20%;
  right: -20%;
  height: 60%;
  background: radial-gradient(ellipse at bottom, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ambient-particles { position: absolute; inset: 0; }

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  animation: float 4s ease-in-out infinite;
}

.p1 { top: 20%; left: 60%; animation-delay: 0s; }
.p2 { top: 50%; left: 75%; animation-delay: 1.2s; }
.p3 { top: 70%; left: 55%; animation-delay: 2.4s; }
.p4 { top: 35%; left: 45%; animation-delay: 0.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-12px) scale(1.5); opacity: 0.8; }
}

.hero-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  z-index: 3;
}

/* ---- CERTIFICATIONS ---- */
.certifications {
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 6vw, 6rem);
  background: var(--bg-alt);
  border-top: 1px solid var(--border-dim);
}

.cert-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cert-header {
  margin-bottom: 4rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-card.glass-card {
  padding: 2.5rem 2rem;
  border-radius: 4px;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 4px 4px 0 0;
}

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

.cert-icon { margin-bottom: 1.25rem; }

.cert-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.cert-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- CAPABILITIES ---- */
.capabilities {
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 6vw, 6rem);
  background: var(--bg);
  border-top: 1px solid var(--border-dim);
}

.cap-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cap-header { margin-bottom: 4rem; }

.cap-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card.glass-card {
  padding: 2rem;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover { transform: translateY(-3px); }

.service-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-bar {
  height: 2px;
  background: var(--border-dim);
  border-radius: 1px;
  overflow: hidden;
}

.service-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

.cap-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dim);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.cap-cta strong { color: var(--fg); }

/* ---- OUR WORK GALLERY ---- */
.our-work {
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 6vw, 6rem);
  background: var(--bg-alt);
  border-top: 1px solid var(--border-dim);
}

.our-work-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.our-work-header { margin-bottom: 4rem; }

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

.work-card.glass-card {
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.5);
}

.work-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.work-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.work-card:hover .work-img { transform: scale(1.05); }

.work-img-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan);
  z-index: 1;
}

.work-caption {
  padding: 1.25rem 1.5rem;
}

.work-caption h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.work-caption p {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ---- PIPELINE ---- */
.pipeline {
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 6vw, 6rem);
  background: var(--bg);
  border-top: 1px solid var(--border-dim);
}

.pipeline-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pipeline-header { margin-bottom: 4rem; }

.pipeline-steps {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-node {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.node-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
}

.step:hover .node-ring {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25), inset 0 0 8px rgba(0, 212, 255, 0.05);
}

.node-ring--final {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3), inset 0 0 8px rgba(0, 212, 255, 0.05);
}

.node-center {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dim);
  z-index: 1;
}

.node-center--final {
  background: var(--cyan);
  border-color: var(--cyan);
}

.step-content { padding: 0 0.5rem; }

.step-content h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.step-connector {
  position: absolute;
  top: 31px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--border-dim));
}

/* ---- CLOSING ---- */
.closing {
  padding: clamp(5rem, 10vw, 10rem) clamp(2rem, 6vw, 6rem);
  background: var(--bg);
  border-top: 1px solid var(--border-dim);
  text-align: center;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
}

.closing-rule {
  width: 40px;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  margin: 0 auto 3rem;
}

blockquote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
}

.closing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.closing-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.contact-link {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-link:hover { opacity: 0.75; }

.contact-sep { color: var(--border); }

.closing-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { height: 280px; }
  .pipeline-steps {
    flex-direction: column;
    gap: 2rem;
  }
  .step-connector { display: none; }
  .cap-services { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cap-services { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 1.5rem; }
  .meta-divider { display: none; }
  .closing-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-sep { display: none; }
}