:root {
  --bg-dark: #09090b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --accent-blue: #0ea5e9;
  --accent-neon: #38bdf8;
  --glass-bg: rgba(9, 9, 11, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Gradients */
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 40% 60%, rgba(249, 115, 22, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

.section-title { margin-bottom: 3rem; }
.text-center { text-align: center !important; }
.mt-4 { margin-top: 2rem; }

.text-gradient {
  background: linear-gradient(135deg, #f97316, #fb923c, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-ai {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Base Components Object Styling */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* Buttons */
.btn-primary {
  background: var(--accent-orange);
  color: white !important;
  padding: 0.8rem 1.8rem;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}
.btn-ai {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white !important;
  padding: 0.8rem 1.8rem;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-ai:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--text-main);
  padding: 0.8rem 1.8rem;
  border-radius: 99px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.5); transform: translateY(-2px);}

.large-btn { font-size: 1.1rem; padding: 1rem 2.5rem; }

/* Pulse Animation for CTA */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}
.pulse { animation: pulseGlow 2s infinite; }

/* 1. Navbar */
nav {
  position: fixed; top: 0; width: 100%;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000;
  transition: padding 0.3s ease;
}
nav.scrolled { padding: 0.8rem 2rem; }
.nav-brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; display: flex; align-items: center; gap: 0.5rem; }
.nav-brand span { color: var(--accent-orange); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a::after {
  content: ''; position: absolute; width: 0; height: 2px;
  bottom: -4px; left: 0; background: var(--accent-orange); transition: width 0.3s ease;
}
.nav-links a.ai-nav-link::after { background: var(--accent-neon); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.mobile-menu-toggle span { display: block; width: 25px; height: 2px; background: white; transition: 0.3s; }
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
  background: rgba(9, 9, 11, 0.95); backdrop-filter: blur(10px);
  border-left: 1px solid var(--border-color);
  padding: 5rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.5rem;
  transition: 0.3s ease; z-index: 999;
}
.mobile-menu.active { right: 0; }
.mobile-menu a { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }
.mobile-menu a:hover { color: white; }

/* 2. Hero Section */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 2rem 3rem;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(9,9,11,0.95) 0%, rgba(9,9,11,0.7) 100%);
}
.hero-content {
  max-width: 800px; width: 100%; margin: 0 auto;
}
.hero .subheadline {
  font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-muted);
  margin: 1.5rem 0 2.5rem 0; max-width: 600px;
}
.hero-benefits {
  list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem;
  font-weight: 500; font-size: 0.95rem; color: #cbd5e1;
}

/* Search Widget Form */
.search-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1.5rem; border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.input-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.input-group { display: flex; flex-direction: column; gap: 0.4rem; }
.input-group label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.input-group input, .input-group select {
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
  color: white; padding: 0.8rem 1rem; border-radius: 12px; font-size: 1rem; outline: none; transition: 0.3s;
}
.input-group input:focus, .input-group select:focus { border-color: var(--accent-orange); box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2); }
.full-width { margin-bottom: 1.5rem; }
.search-btn { width: 100%; font-size: 1.1rem; padding: 1.2rem; }

/* 3. How it Works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card {
  text-align: center; padding: 2.5rem 2rem; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: 24px; transition: 0.3s;
}
.step-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.06); }
.step-icon {
  width: 60px; height: 60px; margin: 0 auto 1.5rem;
  background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent-orange); font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); }

/* 4. Cost Savings */
.savings { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 20, 25, 1) 100%); }
.savings-content { text-align: center; max-width: 800px; margin: 0 auto; }
.lead-text { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 3rem; }
.cost-comparison {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px; padding: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem;
  max-width: 500px; margin: 0 auto;
}
.cost-item { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cost-item.shop { color: #f87171; text-decoration: line-through; }
.cost-item.diy { color: var(--text-muted); }
.cost-item.pops { font-weight: 600; color: white; }
.cost-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 0.5rem 0; }
.cost-saved { display: flex; justify-content: space-between; font-size: 1.4rem; font-weight: 800; }
.cost-saved .highlight { color: #4ade80; }

/* 5. AI Garage Preview */
.ai-preview-section { margin-top: 2rem; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ai-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.box-glow {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 24px; padding: 2rem; position: relative;
}
.box-glow::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), transparent, rgba(249, 115, 22, 0.5));
  border-radius: 25px; z-index: -1; filter: blur(10px); opacity: 0.5;
}
.chat-message { padding: 1rem 1.5rem; border-radius: 16px; margin-bottom: 1rem; }
.chat-message.user { background: rgba(255,255,255,0.05); margin-left: 2rem; border-bottom-right-radius: 2px; }
.chat-message.bot { background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.2); margin-right: 2rem; border-bottom-left-radius: 2px; }
.typing-animation p { margin-bottom: 0.5rem; }
.typing-animation p:last-child { margin-bottom: 0; }

/* 6. Featured Parts */
.parts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.part-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 20px; overflow: hidden; transition: 0.3s;
}
.part-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.part-image { height: 200px; background: rgba(255,255,255,0.05); }
.part-image.brake-pads { background: linear-gradient(45deg, #1e1e24, #2a2a35); }
.part-image.alternator { background: linear-gradient(45deg, #2a2a35, #1e1e24); }
.part-image.spark-plugs { background: linear-gradient(135deg, #1e1e24, #2a2a35); }
.part-info { padding: 1.5rem; }
.part-info h3 { font-size: 1.2rem; }
.compatibility { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.part-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.part-price-row .price { font-size: 1.4rem; font-weight: 800; color: white; }
.savings-tag { background: rgba(74, 222, 128, 0.1); color: #4ade80; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.part-info button { width: 100%; text-align: center; }

/* 7. Merch */
.merch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.merch-item { text-align: center; }
.merch-bg { height: 280px; border-radius: 20px; margin-bottom: 1rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); transition: 0.3s; cursor: pointer; }
.merch-bg:hover { background: rgba(255,255,255,0.06); transform: scale(1.02); }
.merch-1 { background: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('official_built_not_bought.png') center/cover; }
.merch-2 { background: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('official_interpreter_mug.png') center/cover; }
.merch-3 { background: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('official_survivor_tee.png') center/cover; }

/* 8. Trust Authority */
.trust-authority { position: relative; padding: 8rem 2rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.trust-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.trust-bg img { width: 100%; height: 100%; object-fit: cover; }
.trust-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(9,9,11,0.8), rgba(9,9,11,0.9)); }
.trust-content { max-width: 800px; margin: 0 auto; z-index: 1; }
.trust-points { list-style: none; display: flex; justify-content: center; gap: 2rem; margin: 2rem 0; color: #e2e8f0; font-weight: 500; flex-wrap: wrap; }
.trust-quote { font-size: 1.5rem; font-style: italic; color: var(--accent-orange); font-weight: 600; margin: 2rem 0; }

/* 9. Lead Capture */
.lead-capture { padding-bottom: 8rem; }
.lead-box { max-width: 600px; margin: 0 auto; text-align: center; }
.lead-box h2 { font-size: 2rem; }
.lead-box p { color: var(--text-muted); margin-bottom: 2rem; }
.lead-form { display: flex; gap: 0.5rem; }
.lead-form input {
  flex: 1; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
  color: white; padding: 1rem 1.5rem; border-radius: 99px; font-size: 1rem; outline: none; transition: 0.3s;
}
.lead-form input:focus { border-color: var(--accent-blue); }

/* 10. Footer */
footer { border-top: 1px solid var(--border-color); padding: 4rem 2rem 2rem; background: rgba(0,0,0,0.3); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand span { color: var(--accent-orange); }
.footer-brand .tagline { color: var(--text-muted); margin-top: 1rem; max-width: 300px; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links h4, .footer-social h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: white; }
.footer-links a, .footer-social a { color: var(--text-muted); transition: 0.2s; }
.footer-links a:hover, .footer-social a:hover { color: var(--accent-orange); padding-left: 5px; }

/* Animations & Utility */
.animate-fade-up { animation: fadeUp 0.8s ease forwards; opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; } .delay-3 { animation-delay: 0.6s; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
  .grid-3, .steps-grid, .parts-grid, .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Mobile Stacking Requirements */
  main { display: flex; flex-direction: column; }
  .hero { padding-top: 6rem; text-align: left; order: 1; }
  .hero-content { display: flex; flex-direction: column; }
  .hero h1 { order: 1; margin-bottom: 1rem; }
  .hero-benefits { display: none; }
  .search-widget { margin-top: 1rem; margin-bottom: 1.5rem; order: 2; }
  .hero .subheadline { order: 3; margin-bottom: 1rem; }
  .savings { order: 2; }
  .ai-preview-section { order: 3; }
  .how-it-works { order: 4; }
  .featured-parts { order: 5; }
  .merch { order: 6; }
  .trust-authority { order: 7; }
  .lead-capture { order: 8; }
  
  .input-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .grid-3, .steps-grid, .parts-grid, .merch-grid { grid-template-columns: 1fr; }
  .lead-form { flex-direction: column; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .trust-points { flex-direction: column; gap: 1rem; align-items: center; }
}
