/* ===== AutoTrust — Design System ===== */
/* Palette: #0a0f1e (deep navy) × #ff6b35 (signal orange) × #00d4aa (teal) × #4a9eff (blue) */
/* Type: Sora (display) × Inter (body) × JetBrains Mono (data) */
/* Signature: AI inspection score ring on every vehicle card */

:root {
  --bg-deep: #0a0f1e;
  --bg-surface: #121828;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2840;
  --primary: #ff6b35;
  --primary-hover: #e85d26;
  --primary-dim: rgba(255, 107, 53, 0.15);
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --accent-blue: #4a9eff;
  --blue-dim: rgba(74, 158, 255, 0.15);
  --warning: #f59e0b;
  --text: #f0f0f0;
  --text-secondary: #8899aa;
  --text-muted: #5a6a7a;
  --border: #2a3448;
  --border-light: #3a4460;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.25s ease;
  --nav-h: 64px;
  --container: 1200px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg-deep); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

img, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== Navigation ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,15,30,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: var(--nav-h); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--primary) !important; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--text); }
.lang-wrap { position: relative; }
.lang-switch { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.8rem; cursor: pointer; font-family: var(--font-body); white-space: nowrap; transition: var(--transition); }
.lang-btn:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.lang-arrow { transition: transform 0.2s ease; }
.lang-switch.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; min-width: 130px; overflow: hidden; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.lang-switch.open .lang-dropdown { display: block; }
.lang-opt { display: block; padding: 10px 16px; font-size: 0.8rem; color: var(--text-secondary) !important; transition: var(--transition); border-bottom: 1px solid var(--border); }
.lang-opt:last-child { border-bottom: none; }
.lang-opt:hover { background: var(--bg-card-hover); color: var(--text) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,15,30,0.9) 0%, rgba(10,15,30,0.6) 50%, rgba(255,107,53,0.15) 100%); }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, transparent 0%, var(--bg-deep) 100%); opacity: 0.5; }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 60px 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.03em; }
.hero-hl { color: var(--primary); display: block; }
.hero p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 540px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats strong { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.hero-stats strong::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ===== Buttons ===== */
.btn-primary, .btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,53,0.3); }
.btn-outline { background: transparent; color: var(--text) !important; border: 1px solid var(--border-light); }
.btn-outline:hover { border-color: var(--text-secondary); background: rgba(255,255,255,0.05); }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-surface); }
.section-alt { background: var(--bg-surface); }
.section-cta { padding: 80px 0; }
.section-h { text-align: center; margin-bottom: 56px; }
.section-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.section-badge.accent { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.section-h h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.section-h p { color: var(--text-secondary); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ===== Vehicle Cards ===== */
.v-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.v-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; transition: var(--transition); border: 1px solid var(--border); display: block; color: var(--text) !important; }
.v-card:hover { transform: translateY(-4px); border-color: var(--border-light); box-shadow: var(--shadow); background: var(--bg-card-hover); }
.v-card-img { position: relative; height: 180px; background-size: cover; background-position: center; background-color: var(--bg-surface); }
.v-card-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.v-card-badge.ev { background: var(--accent-dim); color: var(--accent); }
.v-card-badge.ice { background: var(--primary-dim); color: var(--primary); }
.v-card-score { position: absolute; top: 10px; right: 10px; }
.v-card-body { padding: 16px; }
.v-card-body h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.v-card-sub { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 10px; }
.v-card-specs { display: flex; gap: 10px; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 12px; }
.v-card-specs span { font-variant-numeric: tabular-nums; }
.v-card-price { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.v-card-price-val { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.v-card-price-label { font-size: 0.65rem; color: var(--text-muted); }

/* ===== AI Inspection Showcase ===== */
.insp-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.insp-visual { position: relative; }
.insp-car-silhouette { position: relative; background: var(--bg-card); border-radius: var(--radius); height: 320px; border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.insp-car-silhouette::before { content: '🚗'; font-size: 5rem; opacity: 0.1; }
.insp-zones { position: absolute; inset: 0; }
.insp-zone { position: absolute; border: 2px dashed var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--text-secondary); background: rgba(0,212,170,0.08); transition: var(--transition); cursor: default; }
.insp-zone:hover { background: rgba(0,212,170,0.2); border-style: solid; color: var(--accent); }
.insp-zone span { opacity: 0; transition: var(--transition); }
.insp-zone:hover span { opacity: 1; }
.insp-summary { text-align: center; }
.insp-ring-big { margin: 0 auto 16px; }
.insp-summary h3 { font-size: 1.2rem; margin-bottom: 8px; }
.text-accent { color: var(--accent); }

/* ===== How It Works ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 40px 20px; position: relative; }
.step-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary); opacity: 0.3; margin-bottom: 16px; line-height: 1; }
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; max-width: 240px; margin: 0 auto; }

/* ===== Features (Why Us) ===== */
.f-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.f-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: var(--transition); }
.f-card:hover { border-color: var(--border-light); box-shadow: var(--shadow); }
.f-icon { font-size: 1.8rem; margin-bottom: 12px; }
.f-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.f-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== Video ===== */
.video-wrapper { position: relative; max-width: 800px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-wrapper iframe { width: 100%; height: 100%; position: absolute; inset: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 0; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: none; border: none; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; cursor: pointer; text-align: left; gap: 16px; }
.faq-q span:first-child { flex: 1; }
.faq-toggle { font-size: 1.3rem; color: var(--text-muted); transition: var(--transition); font-weight: 300; }
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }
.faq-a p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== CTA / Form ===== */
.cta-box { max-width: 560px; margin: 0 auto; text-align: center; }
.cta-box h2 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 28px; }
.cta-form { display: flex; flex-direction: column; gap: 12px; }
.cta-form input, .cta-form textarea { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-family: var(--font-body); font-size: 0.9rem; transition: var(--transition); }
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--text-muted); }
.cta-form textarea { resize: vertical; min-height: 60px; }
.cta-form .btn-primary { width: 100%; justify-content: center; padding: 14px; }
.form-sent { display: none; padding: 24px; background: var(--accent-dim); border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); font-weight: 500; }
.form-sent.show { display: block; }

/* ===== Footer ===== */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--primary); }
.footer-about p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; max-width: 360px; }
.footer-links h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.footer-links a { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

/* ===== PDP ===== */
.pdp-container { padding-top: calc(var(--nav-h) + 20px); min-height: 60vh; }
.pdp-lang { display: none; }
.pdp-lang.active { display: block; }
.pdp-v { display: none; padding: 20px 0 60px; max-width: var(--container); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pdp-v.active { display: block; }
.pdp-bc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; }
.pdp-bc a { color: var(--text-secondary); }
.pdp-bc a:hover { color: var(--text); }
.pdp-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.pdp-gallery { border-radius: var(--radius); overflow: hidden; }
.pdp-gallery-main { height: 400px; background-size: cover; background-position: center; background-color: var(--bg-surface); border-radius: var(--radius); margin-bottom: 8px; }
.pdp-gallery-thumbs { display: flex; gap: 8px; }
.pdp-thumb { width: 80px; height: 60px; border-radius: 6px; background-size: cover; background-position: center; cursor: pointer; opacity: 0.5; transition: var(--transition); border: 2px solid transparent; }
.pdp-thumb.active { opacity: 1; border-color: var(--primary); }
.pdp-thumb:hover { opacity: 0.8; }
.pdp-info h1 { font-size: 1.6rem; margin-bottom: 8px; }
.pdp-year { color: var(--text-secondary); font-weight: 400; }
.pdp-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.85rem; color: var(--text-secondary); }
.pdp-score-row strong { color: var(--accent); }
.pdp-price-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.pdp-price-main { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.pdp-price-label { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; display: block; }
.pdp-price-sub { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 16px; }
.pdp-price-table { border-top: 1px solid var(--border); padding-top: 12px; }
.pdp-price-table table { width: 100%; font-size: 0.8rem; }
.pdp-price-table td { padding: 4px 0; color: var(--text-secondary); }
.pdp-price-table td:last-child { text-align: right; font-family: var(--font-mono); }
.pdp-total td { color: var(--primary) !important; font-weight: 700; border-top: 1px solid var(--border); padding-top: 8px; }
.pdp-specs { margin-bottom: 20px; }
.pdp-specs table { width: 100%; font-size: 0.85rem; }
.pdp-specs td { padding: 6px 12px; border-bottom: 1px solid var(--border); }
.pdp-specs td:first-child { color: var(--text-secondary); width: 40%; }
.pdp-specs td:last-child { color: var(--text); font-weight: 500; }
.pdp-ctas { display: flex; gap: 12px; margin-bottom: 16px; }
.pdp-trust { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-secondary); }
.pdp-insp { background: var(--bg-surface); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; border: 1px solid var(--border); }
.pdp-insp h3 { font-size: 1rem; margin-bottom: 20px; }
.insp-detail { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.insp-bars { display: flex; flex-direction: column; gap: 12px; }
.insp-bar { display: grid; grid-template-columns: 80px 1fr 30px; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--text-secondary); }
.insp-bar-track { height: 8px; background: var(--bg-deep); border-radius: 4px; overflow: hidden; }
.insp-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.6s ease; }
.insp-note { margin-top: 16px; font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.pdp-features { margin-bottom: 40px; }
.pdp-features h3 { font-size: 1rem; margin-bottom: 12px; }
.pdp-features ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; }
.pdp-features li { padding: 8px 12px; background: var(--bg-card); border-radius: 6px; font-size: 0.85rem; color: var(--text-secondary); }
.pdp-similar h3 { font-size: 1rem; margin-bottom: 20px; }
.pdp-container .pdp-lang.active .pdp-v.active .v-grid { grid-template-columns: repeat(3, 1fr); }

/* ===== Index Page ===== */
.index-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.index-main { text-align: center; }
.index-main h1 { font-size: 3rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; letter-spacing: -0.03em; }
.index-main p { color: var(--text-secondary); margin-bottom: 32px; }
.index-langs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.index-lang { display: inline-flex; align-items: center; padding: 10px 24px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text) !important; font-weight: 500; transition: var(--transition); }
.index-lang:hover { border-color: var(--primary); background: var(--primary-dim); color: var(--primary) !important; }

/* ===== RTL ===== */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .v-card-img .v-card-badge { left: auto; right: 10px; }
[dir="rtl"] .v-card-img .v-card-score { right: auto; left: 10px; }
[dir="rtl"] .faq-q { text-align: right; }
[dir="rtl"] .faq-toggle { transform: rotate(180deg); }
[dir="rtl"] .faq-item.open .faq-toggle { transform: rotate(225deg); }

/* ===== Mobile ===== */
@media (max-width: 1024px) {
  .v-grid { grid-template-columns: repeat(2, 1fr); }
  .insp-showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pdp-top { grid-template-columns: 1fr; }
  .pdp-gallery-main { height: 280px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-deep); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 20px; gap: 12px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 16px; flex-direction: column; }
  .v-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px 16px; }
  .f-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 60px 0; }
  .insp-detail { grid-template-columns: 1fr; text-align: center; }
  .pdp-top { grid-template-columns: 1fr; }
  .pdp-ctas { flex-direction: column; }
  .pdp-container .pdp-lang.active .pdp-v.active .v-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .pdp-gallery-main { height: 200px; }
  .pdp-price-main { font-size: 1.4rem; }
}
