@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --accent-teal: #00A19C;
  --accent-teal-glow: rgba(0, 161, 156, 0.4);
  --accent-teal-dim: rgba(0, 161, 156, 0.15);
  --accent-silver: #C0C0C0;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --grid-color: rgba(255, 255, 255, 0.015);
  --border-color: rgba(255, 255, 255, 0.07);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-teal) var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* Background Engineering Grid */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.bg-radial-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vh;
  background: radial-gradient(circle, rgba(0, 161, 156, 0.035) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Preloader Screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preload-container {
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preload-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--accent-teal);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.preload-bar-outer {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.preload-bar-inner {
  height: 100%;
  width: 0%;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  transition: width 0.1s ease-out;
}

.preload-console {
  height: 120px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  font-size: 10px;
  color: var(--text-secondary);
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 4px;
}

.console-line {
  opacity: 0;
  transform: translateY(4px);
  animation: lineFadeIn 0.3s forwards;
}

.console-line.success {
  color: var(--accent-teal);
}

@keyframes lineFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preload-btn {
  align-self: center;
  background: transparent;
  border: 1px solid var(--accent-teal);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 12px 24px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.preload-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.preload-btn:hover {
  background: var(--accent-teal);
  color: #000;
  box-shadow: 0 0 15px var(--accent-teal-glow);
}

/* Apple-style Translucent Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  transition: background-color 0.5s ease, border-bottom 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand span {
  color: var(--accent-teal);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-link a {
  text-decoration: none;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-link a:hover,
.nav-link.active a {
  color: var(--text-primary);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Homepage Layout Container */
.homepage-container {
  position: relative;
  width: 100%;
}

.scroll-section {
  position: relative;
  width: 100%;
  height: 130vh; /* Shorter scroll height to reduce sticky freeze duration to ~0.5s - 0.7s */
  background-color: var(--bg-primary);
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  gap: 40px;
  overflow: hidden;
  z-index: 1;
}

.sticky-wrapper.rev {
  flex-direction: row-reverse;
}

.sticky-wrapper.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.col-text {
  width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.col-image {
  width: 44%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.col-image img:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 12px 40px rgba(0, 161, 156, 0.25);
}

/* Hero Center Layout styling */
.hero-center-layout {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}



/* Interactive Telemetry HUD (Heads-Up Display) */
.hud-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Let clicks pass through unless active */
  z-index: 10;
  font-family: var(--font-mono);
}

/* HUD Widgets */
.hud-widget {
  position: fixed;
  background: rgba(10, 10, 12, 0.45);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: auto; /* Re-enable clicks */
}

.hud-widget.visible {
  opacity: 1;
  transform: translateY(0);
}

.hud-widget::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10px;
  width: 15px;
  height: 2px;
  background: var(--accent-teal);
}

.hud-left {
  left: 40px;
  top: 90px;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hud-bottom-left {
  left: 40px;
  bottom: 40px;
  width: 240px;
}

.hud-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hud-value-large {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hud-value-large span {
  font-size: 12px;
  color: var(--accent-teal);
  font-weight: 500;
}

.hud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-item-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.hud-item-val.teal {
  color: var(--accent-teal);
}

/* RPM Indicator Radial/Bar */
.rpm-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}

.rpm-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-teal) 70%, #ff3b30 90%);
  transition: width 0.1s ease-out;
}

/* DRS Status indicator */
.drs-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  align-self: flex-start;
}

.drs-indicator.active {
  background: var(--accent-teal-dim);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 2px var(--accent-teal-glow);
  }
  to {
    box-shadow: 0 0 10px var(--accent-teal-glow);
  }
}

/* Active Component Checklist */
.component-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.component-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.component-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.3s, box-shadow 0.3s;
}

.component-item.active {
  color: var(--text-primary);
}

.component-item.active .component-dot {
  background: var(--accent-teal);
  box-shadow: 0 0 6px var(--accent-teal-glow);
}

/* Chapter specific active state overrides */
.scroll-section.active .col-text,
.scroll-section.active .hero-center-layout {
  opacity: 1;
  transform: translateY(0);
}

/* Typography styles */
.text-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
}

.title-hero {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 50%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle-hero {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px auto;
  line-height: 1.4;
}

.title-editorial {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.body-editorial {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
  padding: 24px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-stat-val {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
}

.cta-stat-val.teal {
  color: var(--accent-teal);
}

.cta-stat-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.btn-container {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-teal);
  color: #000;
  border: 1px solid var(--accent-teal);
  padding: 12px 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--accent-teal-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}

/* Header title styling on exploration page */
.explore-header {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

/* Scroll indicator animation */
.scroll-indicator {
  position: absolute;
  top: 100px; /* Positioned in the top area of the screen, below the navbar */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s;
  z-index: 10;
  animation: textPulse 2s infinite ease-in-out;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 14px; /* Enlarged text size */
  font-weight: 700;
  letter-spacing: 3.5px; /* Wider tracking */
  text-transform: uppercase;
  color: #ffffff; /* White text */
}

@keyframes textPulse {
  0%, 100% {
    opacity: 0.7; /* Higher minimum opacity to tone down the pulse depth */
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hud-widget {
    scale: 0.9;
  }
  .hud-left {
    left: 20px;
  }
  .hud-right {
    right: 20px;
  }
  .hud-bottom-left {
    left: 20px;
    bottom: 20px;
  }
  .hud-bottom-right {
    right: 20px;
    bottom: 20px;
  }
  .navbar {
    padding: 0 20px;
  }
  .nav-links {
    display: none; /* Hide middle links on smaller viewports */
  }
}

@media (max-width: 768px) {
  .hud-widget {
    display: none; /* Hide full HUD on mobile for visual cleanliness */
  }
  .scrolly-container {
    height: 420vh; /* Shorter scroll height on mobile */
  }
  .story-section {
    padding: 0 20px;
    justify-content: center !important;
    text-align: center !important;
  }
  .story-content {
    max-width: 100% !important;
    background: rgba(5, 5, 5, 0.8);
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    backdrop-filter: blur(8px);
  }
  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .btn-container {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}

/* ==========================================================================
   EXPLORATION PAGE SPECIFIC CLASS RESTORATION
   ========================================================================== */

/* Full-Screen Scrollytelling scroll depth for explore.html */
.scrolly-container {
  position: relative;
  width: 100%;
  height: 520vh;
}

.canvas-sticky-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  background-color: var(--bg-primary);
}

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

/* Right HUD Diagnostics Panel */
.hud-right {
  right: 40px;
  top: 90px;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Bottom Right HUD Accel & Tires Panel */
.hud-bottom-right {
  right: 40px;
  bottom: 40px;
  width: 280px;
}

/* Checklist Styling */
.component-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.component-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.component-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.3s, box-shadow 0.3s;
}

.component-item.active {
  color: var(--text-primary);
}

.component-item.active .component-dot {
  background: var(--accent-teal);
  box-shadow: 0 0 6px var(--accent-teal-glow);
}

/* Narrative Overlays Layer for explore.html */
.story-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.story-section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 10%;
  position: relative;
}

.story-content {
  max-width: 500px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

/* Alignment rules per section */
.story-section.hero-sec {
  justify-content: center;
  text-align: center;
  padding: 0;
}
.story-section.hero-sec .story-content {
  max-width: 800px;
}

.story-section.eng-sec {
  justify-content: flex-start;
}

.story-section.aero-sec {
  justify-content: flex-end;
}

.story-section.power-sec {
  justify-content: flex-start;
}

.story-section.cta-sec {
  justify-content: center;
  text-align: center;
  padding: 0;
}
.story-section.cta-sec .story-content {
  max-width: 850px;
}

/* Active states driven by JS for explore.html */
.story-section.active .story-content {
  opacity: 1;
  transform: translateY(0);
}

/* Editorial Footer container at the end of the page */
.editorial-footer {
  width: 100%;
  background-color: var(--bg-primary); /* Pure Black */
  border-top: 1px solid var(--border-color);
  padding: 100px 0;
  position: relative;
  z-index: 2; /* Sits above the sticky canvas layer */
}

.editorial-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.editorial-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
}

.editorial-header-col {
  width: 40%;
}

.editorial-body-col {
  width: 55%;
}

.editorial-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 20px 0;
}

/* Adjustments for final CTA row layout */
.editorial-row.spec-row {
  align-items: center;
}

/* Scroll Reveal Animation Styles (Apple-Style) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 {
  transition-delay: 0.05s;
}
.delay-2 {
  transition-delay: 0.15s;
}
.delay-3 {
  transition-delay: 0.25s;
}
.delay-4 {
  transition-delay: 0.35s;
}

/* Full-Screen Video Hero Layout styling */
.video-hero-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Restore to full screen vertical viewport */
  overflow: hidden;
  background-color: #000000;
  z-index: 1;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.18); /* Scale up and zoom to crop out any hardcoded black bars */
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
  pointer-events: none; /* Let clicks pass through */
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg-video.visible {
  opacity: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Tech Spec Grid in explore.html details */
.tech-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 16px;
}

.tech-spec-card {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, background-color 0.4s, transform 0.4s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-spec-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--accent-teal);
  box-shadow: 0 0 20px var(--accent-teal-dim);
  transform: translateY(-4px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background-color 0.4s;
}

.tech-spec-card:hover .card-glow {
  background: var(--accent-teal);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.card-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Responsive specs grid */
@media (max-width: 900px) {
  .tech-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .tech-specs-grid {
    grid-template-columns: 1fr;
  }
}

/* Video Hero Scroll Down Indicator (Overriding defaults to align top) */
.video-hero-container .scroll-indicator {
  position: absolute;
  top: 100px; /* Positioned at the top of the video container */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  transition: opacity 0.5s;
  pointer-events: none;
  animation: textPulse 2s infinite ease-in-out; /* Retain breathing pulse */
}

.video-hero-container .scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-hero-container .scroll-text {
  font-family: var(--font-mono);
  font-size: 14px; /* Use the larger typography matching previous turn */
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
}

.scroll-arrow span {
  display: block;
  width: 8px;
  height: 8px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
  border-right: 1.5px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  opacity: 0;
  animation: arrowScroll 1.8s infinite ease-in-out;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: 0.25s;
}

@keyframes arrowScroll {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-3px, -3px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(3px, 3px);
  }
}
