/* AutoShop Pro — Dark Professional with Orange Accent */
:root {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-section: #16213e;
  --accent: #ff6b35;
  --accent-hover: #e85a2a;
  --accent-light: rgba(255, 107, 53, 0.1);
  --text: #e0e0e0;
  --text-muted: #9a9ab0;
  --text-heading: #ffffff;
  --border: #2a2a4a;
  --success: #4caf50;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --transition: 0.2s ease;
  --max-width: 1200px;
  --narrow: 800px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
a.btn-primary, a.btn-primary:hover { color: #fff; }
h1, h2, h3, h4 { color: var(--text-heading); line-height: 1.3; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4em; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5em; color: var(--accent); }
p { margin-bottom: 1em; }
ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.3em; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 1.5rem; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  white-space: nowrap;
}
.logo:hover { color: var(--accent); }
.logo-icon { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-heading); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Language Toggle */
.lang-toggle {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: var(--accent);
  color: #fff;
}
.mobile-lang-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-heading); border-color: var(--text-muted); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.1rem; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-section) 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,107,53,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(22,33,62,0.3) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(5deg); }
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }
.hero .btn { margin: 0 0.5rem; }
.hero-sm { padding: 3rem 0 2rem; }
.hero-sm h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* Social Proof */
.social-proof {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.social-proof p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-section); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0.5rem auto 0; }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Feature Sections (features.html) */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-section:last-child { border-bottom: none; }
.feature-section:nth-child(even) .feature-text { order: 2; }
.feature-section:nth-child(even) .feature-visual { order: 1; }
.feature-text h2 { margin-bottom: 1rem; }
.feature-text ul { list-style: none; padding: 0; }
.feature-text ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text-muted);
}
.feature-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Screenshot Placeholder */
.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pricing-card.popular {
  border-color: var(--accent);
  position: relative;
}
.pricing-card.popular::before {
  content: attr(data-popular-label);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem 0 1.5rem; }
.pricing-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 1.5rem;
}
.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-features li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--bg-section);
  color: var(--text-heading);
  font-weight: 600;
}
.comparison-table td { color: var(--text-muted); }
.comparison-table tr:hover td { background: var(--accent-light); }
.comparison-table .highlight { color: var(--accent); font-weight: 600; }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item h3 { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-item h3::after { content: '+'; color: var(--accent); font-size: 1.5rem; }
.faq-item.open h3::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
}
.faq-item.open .faq-answer { max-height: 200px; padding-top: 0.75rem; }

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-heading);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

.steps { counter-reset: steps; }
.step {
  counter-increment: steps;
  padding: 1.25rem 0 1.25rem 3.5rem;
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 1rem;
}
.step::before {
  content: counter(steps);
  position: absolute;
  left: -1.1rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.step h3 { margin-bottom: 0.25rem; }
.step p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.blog-card-content { padding: 1.5rem; }
.blog-card h3 { margin-bottom: 0.5rem; }
.blog-card h3 a { color: var(--text-heading); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; }
.read-more {
  font-weight: 600;
  font-size: 0.9rem;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pill {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.blog-article h1 { margin-bottom: 1rem; }
.blog-article h2 { margin-top: 2rem; }
.blog-article h3 { margin-top: 1.5rem; }
.blog-cta {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0 2rem;
}
.blog-cta h3 { margin-bottom: 0.5rem; }
.blog-cta p { color: var(--text-muted); margin-bottom: 1rem; }
.blog-nav { margin-top: 2rem; }

/* Breadcrumb */
.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
}
.breadcrumb li + li::before { content: '/'; color: var(--text-muted); margin-right: 0.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg-section), var(--bg));
}
.cta-section h2 { margin-bottom: 0.5rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Callout */
.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.callout p { margin: 0; }

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.footer-grid a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.footer-grid a:hover { color: var(--accent); }
.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 8rem 2rem;
}
.error-page h1 { font-size: 6rem; color: var(--accent); margin-bottom: 1rem; }
.error-page p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-section { grid-template-columns: 1fr; gap: 2rem; }
  .feature-section:nth-child(even) .feature-text { order: 1; }
  .feature-section:nth-child(even) .feature-visual { order: 2; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }
  .nav-links .lang-toggle { display: none; }
  .nav-toggle { display: block; }
  .mobile-lang-toggle { display: inline-block; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th,
  .comparison-table td { padding: 0.5rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .blog-cta, .blog-nav { display: none; }
  body { background: #fff; color: #333; }
  h1, h2, h3, h4 { color: #000; }
  a { color: #333; }
  .hero { background: none; padding: 1rem 0; }
}
