:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5f6877;
  --line: #dfe3e8;
  --accent: #e24b3b;
  --accent-dark: #b92f25;
  --navy: #111827;
  --navy-2: #172033;
  --green: #16a36a;
  --max: 1180px;
  --radius: 20px;
  --shadow: 0 22px 70px rgba(17, 24, 39, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223,227,232,.85);
  background: rgba(246,247,249,.9);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--navy); color: white; }
.brand-mark svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a { text-decoration: none; font-size: .94rem; font-weight: 700; color: #3f4856; }
.primary-nav a:hover { color: var(--ink); }
.primary-nav .nav-cta { color: #fff; background: var(--navy); padding: 10px 15px; border-radius: 10px; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px; }

.hero { overflow: hidden; padding: 86px 0 74px; background:
  radial-gradient(circle at 80% 22%, rgba(226,75,59,.12), transparent 27%),
  linear-gradient(180deg, #fbfbfc 0%, #f3f5f8 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-weight: 850; font-size: .76rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3.2rem, 7vw, 6.35rem); }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2.25rem, 4vw, 4.2rem); margin-bottom: 18px; }
h3 { font-size: 1.45rem; }
.hero-text { max-width: 680px; color: var(--muted); font-size: 1.23rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 21px; border-radius: 12px; text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 25px rgba(226,75,59,.24); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: #fff; border: 1px solid var(--line); }
.hero-notes { display: flex; gap: 24px; flex-wrap: wrap; color: #4a5564; font-size: .88rem; font-weight: 700; }
.hero-notes span::before { content: "✓"; color: var(--green); margin-right: 7px; }

.diagnostic-card { background: #fff; border: 1px solid #dfe3e8; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(1deg); }
.diag-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 17px 20px; background: #111827; color: #e7ebf0; font-size: .78rem; letter-spacing: .04em; }
.diag-top strong { color: #5ee1a4; font-size: .72rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee1a4; box-shadow: 0 0 0 5px rgba(94,225,164,.14); }
.vehicle-outline { padding: 25px 16px 5px; background: linear-gradient(180deg, #f8fafc, #eef1f5); }
.vehicle-outline svg { width: 100%; }
.car-body { fill: #1a2438; }
.window { fill: #9ca8b7; opacity: .65; }
.wheel { fill: #101722; }
.wheel-inner { fill: #aab3bf; }
.scan-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 10 10; }
.scan-point { fill: var(--accent); }
.diag-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.diag-grid div { padding: 18px 20px; border-top: 1px solid var(--line); }
.diag-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.diag-grid span, .diag-grid strong { display: block; }
.diag-grid span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.diag-grid strong { margin-top: 3px; font-size: .96rem; }
.diag-grid .accent { color: var(--accent); }

.trust-strip { background: var(--navy); color: #e6eaf0; }
.trust-grid { min-height: 76px; display: grid; grid-template-columns: repeat(5, 1fr); place-items: center; gap: 10px; font-size: .84rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.trust-grid span:not(:last-child)::after { content: "·"; color: var(--accent); margin-left: 28px; }

.section { padding: 108px 0; }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: end; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: var(--muted); margin: 0 0 8px; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; min-height: 310px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(17,24,39,.09); }
.guide-card.featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: #eef1f5; color: var(--navy); font-weight: 900; font-size: .85rem; }
.featured .card-icon { background: var(--accent); color: #fff; }
.card-kicker, .meta { margin: 22px 0 7px; color: var(--accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 850; }
.guide-card h3 { margin-bottom: 12px; font-size: 1.65rem; }
.guide-card p:not(.card-kicker) { color: var(--muted); }
.featured p:not(.card-kicker) { color: #b8c0cd; }
.guide-card a, .project-card a { margin-top: auto; text-decoration: none; font-weight: 850; }
.guide-card a span, .project-card a span { color: var(--accent); margin-left: 4px; }

.dark-section { background: var(--navy); color: #fff; }
.section-heading.light > p { color: #aeb7c5; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { overflow: hidden; border: 1px solid #2d374a; background: var(--navy-2); border-radius: 22px; }
.project-image { min-height: 270px; position: relative; display: grid; place-items: center; overflow: hidden; }
.project-one { background: radial-gradient(circle, rgba(226,75,59,.24), transparent 44%), #0d1422; }
.project-two { background: radial-gradient(circle, rgba(94,225,164,.12), transparent 50%), #0d1422; }
.project-tag { position: absolute; left: 18px; top: 18px; z-index: 2; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 7px 11px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.battery-graphic { width: 76%; display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; border: 3px solid #7b8799; border-radius: 14px; padding: 14px; transform: perspective(600px) rotateX(52deg) rotateZ(-8deg); }
.battery-graphic span { height: 84px; border-radius: 6px; background: linear-gradient(180deg,#445166,#202a3b); border: 1px solid #667389; }
.frame-graphic { width: 82%; }
.frame-graphic svg { fill: none; stroke: #8d98a9; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.project-body { padding: 27px; display: flex; flex-direction: column; min-height: 260px; }
.project-body .meta { margin-top: 0; }
.project-body p:not(.meta) { color: #aeb7c5; }
.project-body a { color: #fff; }

.two-column { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: start; }
.lead { color: var(--muted); font-size: 1.15rem; }
.checklist { margin-top: 35px; display: grid; gap: 18px; }
.checklist > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.checklist span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--accent); font-weight: 900; }
.checklist p { margin: 4px 0 0; color: var(--muted); }
.checklist strong { color: var(--ink); }
.safety-panel { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: 30px; box-shadow: 0 18px 50px rgba(17,24,39,.08); }
.safety-panel p:not(.eyebrow) { color: var(--muted); }
.text-link { color: var(--accent); font-weight: 850; text-decoration: none; }

.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: .38fr .62fr; gap: 70px; align-items: center; }
.about-badge { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--navy); color: #fff; border-radius: 50%; outline: 1px solid #2c3749; outline-offset: 12px; }
.about-badge span { font-size: .8rem; letter-spacing: .18em; font-weight: 800; }
.about-badge strong { font-size: clamp(3rem, 7vw, 6rem); line-height: .95; color: var(--accent); letter-spacing: -.08em; }

.contact-section { padding-top: 76px; }
.contact-box { background: var(--navy); color: #fff; border-radius: 26px; padding: 46px; display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.contact-box h2 { max-width: 820px; font-size: clamp(2rem, 4vw, 3.5rem); }
.contact-box p:not(.eyebrow) { color: #b5bfcc; max-width: 760px; }

.site-footer { background: #0b111d; color: #c3cbd6; padding: 70px 0 25px; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; gap: 45px; }
.footer-brand { color: #fff; }
.footer-grid h3 { color: #fff; font-size: 1rem; letter-spacing: -.01em; }
.footer-grid p { font-size: .88rem; }
.footer-bottom { border-top: 1px solid #263043; margin-top: 46px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; font-size: .8rem; color: #8490a0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); opacity: 0; z-index: 100; background: #111827; color: #fff; border: 1px solid #3b4659; border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 68px; left: 20px; right: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 5px; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px; }
  .hero-grid, .section-heading, .two-column, .about-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-grid { gap: 45px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); padding: 20px 0; }
  .trust-grid span { padding: 7px; text-align: center; }
  .trust-grid span::after { display: none; }
  .about-badge { width: min(360px, 82vw); margin-inline: auto; }
  .contact-box { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 76px 0; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .card-grid, .project-grid { grid-template-columns: 1fr; }
  .hero-notes { display: grid; gap: 8px; }
  .diag-grid { grid-template-columns: 1fr; }
  .diag-grid div:nth-child(odd) { border-right: 0; }
  .contact-box { padding: 30px; }
  .footer-bottom { flex-direction: column; }
}
