:root {
  --navy: #0a1a3a;
  --navy-2: #102a5c;
  --blue: #1f6fff;
  --blue-light: #6fb1ff;
  --ice: #eef4ff;
  --ink: #0f1b2d;
  --muted: #4a5870;
  --line: #d8e2f2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 26, 58, .10);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 26, 58, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .04em;
  color: var(--white);
  text-decoration: none;
}
.brand span { color: var(--blue-light); margin-left: .12em; }

.site-nav ul { list-style: none; display: flex; gap: .4rem; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: .55rem .9rem;
  color: #dbe6ff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
}
.site-nav a:hover { background: rgba(111, 177, 255, .16); color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .85rem;
    font: 600 .95rem var(--font-body);
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .6rem 1.25rem 1rem; }
  .site-nav a { border-radius: 8px; padding: .8rem .9rem; }
  .header-inner { position: relative; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(31, 111, 255, .45), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0 5rem;
}
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; }
.hero h1 span { color: var(--blue-light); }
.lead { font-size: 1.15rem; color: #d3def5; max-width: 38rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #3a82ff; }
.btn-ghost { color: var(--white); border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.hero-facts li {
  font-size: .9rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e3ebfb;
}

/* Hero art: CSS-only dial and lane */
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.dial {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 42, 92, .9) 55%, rgba(10, 26, 58, .9) 100%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .04), 0 30px 60px rgba(0, 0, 0, .35);
}
.dial-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--blue-light) 0deg, var(--blue) 190deg, transparent 190deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
}
.dial-needle {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 4px;
  height: 40%;
  margin-left: -2px;
  background: linear-gradient(to top, var(--white), var(--blue-light));
  border-radius: 4px;
  transform-origin: 50% 100%;
  transform: rotate(48deg);
}
.dial-hub {
  position: absolute;
  inset: 50%;
  width: 26px;
  height: 26px;
  margin: -13px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(111, 177, 255, .35);
}
.lane {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 6px;
  height: 6px;
  display: flex;
  gap: 18px;
  justify-content: center;
}
.lane span {
  flex: 0 0 60px;
  background: rgba(255, 255, 255, .35);
  border-radius: 3px;
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--ice); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2, .about h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); color: var(--navy); }
.section-head p { color: var(--muted); }
.kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(var(--blue), var(--blue-light));
}
.card h3 { font-size: 1.3rem; color: var(--navy); }
.card p { color: var(--muted); }
.card-code { font-size: .85rem; font-weight: 600; color: var(--blue) !important; margin: 0; }

.card-icon {
  display: block;
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background: var(--ice);
}
.card-icon--car::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 20px;
  height: 12px;
  border-radius: 6px 6px 3px 3px;
  background: var(--blue);
}
.card-icon--car::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 17px 0 0 var(--navy);
}
.card-icon--tool::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 6px;
  height: 28px;
  margin-left: -3px;
  border-radius: 3px;
  background: var(--blue);
  transform: rotate(45deg);
}
.card-icon--tool::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 11px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 4px solid var(--navy);
  border-right-color: transparent;
  transform: rotate(-45deg);
}

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.about-copy p { color: var(--muted); }
.facts {
  margin: 0;
  padding: 1.6rem 1.8rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.facts div { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-weight: 600; color: var(--navy); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-card {
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.contact-card h3 { font-size: 1.1rem; color: var(--navy); }
.contact-card address { font-style: normal; color: var(--ink); }
.contact-card p { color: var(--muted); }
.text-link { font-weight: 600; text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--navy); color: #c4d1ea; font-size: .95rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.brand-footer { display: inline-block; margin-bottom: .6rem; }
.footer-legal p { margin: 0; line-height: 1.8; }
.footer-legal strong { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.2rem 0 1.6rem;
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 4rem 0 3.5rem; gap: 2rem; }
  .hero-art { min-height: 260px; }
  .dial { width: 220px; }
  .about, .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .card, .contact-card { padding: 1.5rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
