/* ==========================================================================
   SPEED BUDDIES — OFFICIAL WEBSITE DESIGN SYSTEM
   High-Octane Cyber-Neon & Night Circuit Aesthetics
   ========================================================================== */

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

:root {
  /* Core Color Tokens */
  --bg-darkest: #06080e;
  --bg-primary: #090c16;
  --bg-surface: #0f1424;
  --bg-surface-elevated: #161d33;
  --bg-card: rgba(18, 24, 42, 0.75);
  --bg-card-hover: rgba(26, 35, 60, 0.9);

  /* Cyber Neon Accents */
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.4);
  --neon-mint: #63f5c4;
  --neon-mint-glow: rgba(99, 245, 196, 0.4);
  --neon-pink: #ff2a85;
  --neon-pink-glow: rgba(255, 42, 133, 0.4);
  --neon-amber: #ff9f1c;
  --neon-amber-glow: rgba(255, 159, 28, 0.4);
  --neon-yellow: #ffe600;
  --neon-purple: #9d4edd;

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #c2c9db;
  --text-muted: #7c88a3;
  --text-dim: #495470;

  /* Borders & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(0, 240, 255, 0.22);
  --border-glass-active: rgba(99, 245, 196, 0.6);
  --glass-blur: blur(16px);
  --glass-blur-sm: blur(8px);

  /* Shadows */
  --shadow-neon-cyan: 0 0 25px rgba(0, 240, 255, 0.35);
  --shadow-neon-mint: 0 0 25px rgba(99, 245, 196, 0.35);
  --shadow-neon-pink: 0 0 25px rgba(255, 42, 133, 0.35);
  --shadow-card: 0 12px 40px -10px rgba(0, 0, 0, 0.6);

  /* Fonts */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-med: 0.35s var(--ease-smooth);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255, 42, 133, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(99, 245, 196, 0.05) 0%, transparent 50%),
    linear-gradient(to bottom, var(--bg-darkest), var(--bg-primary) 30%, var(--bg-darkest));
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER & NAVBAR (Clean Pure Logo)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(9, 12, 22, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(6, 8, 14, 0.95);
  border-bottom-color: var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-main-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover .site-main-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 18px rgba(0, 240, 255, 0.4));
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #00b4d8 100%);
  color: #050811;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: #fff;
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  border-color: var(--neon-mint);
  color: var(--neon-mint);
  box-shadow: 0 0 20px rgba(99, 245, 196, 0.3);
  transform: translateY(-2px);
}

.btn-amber {
  background: linear-gradient(135deg, var(--neon-amber) 0%, #e85d04 100%);
  color: #06080e;
  box-shadow: 0 4px 20px rgba(255, 159, 28, 0.4);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 159, 28, 0.6);
  filter: brightness(1.1);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 60px 0 90px;
  overflow: hidden;
}

#hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.pill-badge.amber {
  background: rgba(255, 159, 28, 0.1);
  border-color: var(--neon-amber);
  color: var(--neon-amber);
  box-shadow: 0 0 15px rgba(255, 159, 28, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse-glow 1.5s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px currentColor; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-title .glow-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.hero-title .glow-mint {
  color: var(--neon-mint);
  text-shadow: 0 0 30px rgba(99, 245, 196, 0.6);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-telemetry-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  margin-top: 10px;
  flex-wrap: wrap;
}

.telemetry-stat {
  display: flex;
  flex-direction: column;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.telemetry-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.telemetry-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Hero Showcase Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-mockup {
  position: relative;
  width: 320px;
  border-radius: 36px;
  background: #04060b;
  padding: 10px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transform: rotate(-3deg) translateY(0);
  transition: transform var(--transition-med);
}

.hero-phone-mockup:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.02);
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.95), 0 0 60px rgba(99, 245, 196, 0.4);
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-mascot-card {
  position: absolute;
  bottom: -20px;
  left: -40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(15, 20, 36, 0.9);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card), 0 0 20px rgba(0, 240, 255, 0.2);
  animation: float 4s ease-in-out infinite;
}

.floating-mascot-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.floating-card-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.floating-card-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-mint);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   DOWNLOAD CTA SECTION
   ========================================================================== */

.download-cta-section {
  padding: 80px 0 100px;
}

.download-box {
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.15) 0%, rgba(18, 24, 42, 0.95) 70%);
  border-radius: 32px;
  border: 1px solid var(--border-glass-active);
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
  flex-wrap: wrap;
}

.download-content {
  max-width: 550px;
}

.download-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.15;
}

.download-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.download-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-darkest);
  padding: 60px 0 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--neon-mint);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-phone-mockup {
    width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
