/* ==========================================================================
   savi — site styles
   Change brand colors and fonts in :root below; everything else follows.
   ========================================================================== */

:root {
  --accent: #FF0000;          /* logo red: buttons, highlights, lines */
  --accent-on-light: #C40000; /* slightly darker red for text on white */
  --ink: #0B0D11;             /* darkest text */
  --dark: #171B22;            /* dark section background */
  --dark-2: #1F242C;          /* certifications band */
  --dark-line: #2C323C;       /* dividers on dark */
  --dark-number: #353C48;     /* large process step numbers */
  --muted-on-dark: #B8C0CC;   /* body text on dark */
  --nav-link: #D6DBE2;
  --muted-on-light: #4A5260;  /* body text on light */
  --light-2: #EEF0F3;         /* light gray section */
  --line-light: #D5DAE1;
  --field-border: #C3C9D2;
  --white: #FFFFFF;

  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --max: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--white); }
a:hover { color: var(--nav-link); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.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;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-on-light);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--on-dark { color: var(--muted-on-dark); }
.display {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
}
.red { color: var(--accent); }
.red-on-light { color: var(--accent-on-light); }

/* ---------- Backgrounds ---------- */
.dark { background-color: var(--dark); color: var(--white); }
.swirl-dark {
  background-image: url(assets/swirl-dark.svg);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.swirl-light {
  background-color: var(--white);
  background-image: url(assets/swirl-light.svg);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.btn--outline-red { color: var(--white); background: transparent; border: 2px solid var(--accent); }
.btn--outline-gray { color: var(--white); background: transparent; border: 1px solid #4A5260; font-weight: 600; }
.btn--outline-red:hover, .btn--outline-gray:hover { color: var(--white); }
.btn--lg { font-size: 17px; padding: 16px 26px; }
.btn--outline-gray.btn--lg { padding: 17px 27px; }

/* ---------- Header / hero ---------- */
.site-nav {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.site-nav__logo { display: flex; align-items: center; text-decoration: none; }
.site-nav__logo img { width: 240px; max-width: 70vw; height: auto; display: block; }
.site-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.site-nav__links a:not(.btn) { color: var(--nav-link); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav__links a:not(.btn):hover { color: var(--white); }
.site-nav__links .btn { font-size: 15px; padding: 11px 18px; }

.hero { position: relative; overflow: hidden; }
.hero__body { padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.hero__kicker {
  margin: 0; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--nav-link);
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 5px; background: var(--accent); display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.hero h1 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.05; max-width: 900px; }
.hero__lede { margin: 0; font-size: 21px; line-height: 1.55; color: var(--muted-on-dark); max-width: 640px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.signal { display: block; width: 100%; height: 90px; }
.signal polyline { fill: none; stroke: var(--accent); stroke-width: 2; }
.signal circle { fill: var(--accent); }

.stats { border-top: 1px solid var(--dark-line); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat { padding: 32px 24px 36px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--dark-line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-stretch: 112%; font-weight: 850; font-size: 52px; line-height: 1; }
.stat__label { font-size: 16px; color: var(--muted-on-dark); }

/* ---------- Platforms marquee ---------- */
.platforms { background: var(--accent); overflow: hidden; padding: 22px 0; }
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__set {
  display: flex; align-items: center; gap: 48px; padding-right: 48px;
  font-family: var(--font-display); font-stretch: 118%; font-weight: 850; font-size: 34px;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Certifications ---------- */
.certs { background: var(--dark-2); color: var(--white); }
.certs__inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.certs__grid { flex: 1 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cert {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid transparent; border-radius: 14px; padding: 18px 16px;
  background: var(--white); color: var(--ink);
}
.cert__img { height: 52px; display: flex; align-items: center; justify-content: center; }
.cert__img img { max-height: 52px; max-width: 100%; width: auto; display: block; }
.cert__img--square img { height: 76px; max-height: none; margin: -12px 0; }
.cert__label { font-size: 14px; font-weight: 600; text-align: center; }

.lift { transition: transform .2s ease, border-color .2s ease; }
.lift:hover { transform: translateY(-6px); border-color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding-top: 112px; padding-bottom: 112px; }
.section__head { display: flex; flex-direction: column; gap: 16px; }

/* Services */
.services__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 56px; }
.services__intro > div { flex: 1 1 560px; min-width: 0; }
.services__intro h2 { font-stretch: 110%; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; }
.services__intro > p { flex: 0 1 400px; margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted-on-light); }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.service {
  background: var(--dark); color: var(--white); border: 2px solid var(--dark); border-radius: 18px;
  padding: 30px 24px 32px; display: flex; flex-direction: column; gap: 16px; min-height: 280px;
}
.service__top { display: flex; justify-content: space-between; align-items: flex-start; }
.service__top svg { stroke: var(--accent); }
.service__num { font-family: var(--font-mono); font-size: 13px; color: #8F98A6; }
.service h3 { margin: auto 0 0; font-family: var(--font-display); font-stretch: 105%; font-size: 24px; line-height: 1.15; font-weight: 800; }
.service p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted-on-dark); }

/* Who it's for */
.audience { background: var(--light-2); }
.audience__inner { display: flex; flex-wrap: wrap; gap: 16px; }
.audience__dealers {
  flex: 2 1 520px; min-width: 0; color: var(--ink); border: 2px solid var(--accent); border-radius: 24px;
  padding: 50px 46px; display: flex; flex-direction: column; gap: 20px;
}
.audience__dealers .eyebrow { color: var(--ink); font-size: 13px; font-weight: 500; }
.audience__dealers h3 { font-stretch: 110%; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -.5px; }
.audience__dealers p:last-child { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 500; max-width: 620px; }
.audience__users {
  flex: 1 1 320px; min-width: 0; background: var(--dark); color: var(--white); border-radius: 24px;
  padding: 52px 44px; display: flex; flex-direction: column; gap: 20px;
}
.audience__users .eyebrow { font-size: 13px; }
.audience__users h3 { margin: 0; font-family: var(--font-display); font-stretch: 108%; font-size: 30px; line-height: 1.1; font-weight: 800; }
.audience__users p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted-on-dark); }
.arrow-link { margin-top: auto; color: var(--white); font-weight: 700; font-size: 16px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.arrow-link svg { stroke: var(--accent); }

/* Process */
.process h2 { font-size: clamp(36px, 5vw, 68px); }
.process__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 64px; }
.step { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--accent); padding-right: 28px; }
.step__node { width: 16px; height: 16px; border-radius: 8px; background: var(--accent); margin-top: -9px; }
.step__num { font-family: var(--font-display); font-stretch: 115%; font-weight: 850; font-size: 72px; line-height: 1; color: var(--dark-number); }
.step h3 { margin: 0; font-family: var(--font-display); font-stretch: 105%; font-size: 22px; font-weight: 800; }
.step p { margin: 0 0 32px; font-size: 16px; line-height: 1.6; color: var(--muted-on-dark); }

/* FAQ */
.faq__inner { display: flex; flex-wrap: wrap; gap: 48px; }
.faq__head { flex: 1 1 320px; min-width: 0; }
.faq__head h2 { font-size: clamp(36px, 4.6vw, 60px); }
.faq__list { flex: 2 1 600px; min-width: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.faq__list details { border-bottom: 1px solid var(--line-light); padding: 24px 0; }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px;
  font-family: var(--font-display); font-stretch: 105%; font-size: 21px; font-weight: 800;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.plus {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 18px; background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 400;
  transition: transform .2s ease;
}
.faq__list details[open] .plus { transform: rotate(45deg); }
.faq__list details p { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted-on-light); max-width: 680px; }

/* Contact */
.contact__inner { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__intro h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -1.5px; }
.contact__intro > p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted-on-dark); max-width: 460px; }
.contact__details { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; font-size: 18px; }
.contact__details a, .contact__details span { display: flex; align-items: center; gap: 12px; }
.contact__details a { font-weight: 700; text-decoration: none; }
.contact__details span { color: var(--muted-on-dark); }
.contact__details svg { stroke: var(--accent); flex: 0 0 auto; }

/* Footer */
.site-footer { background: var(--dark); color: var(--muted-on-dark); border-top: 1px solid var(--dark-line); }
.site-footer__inner {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 14px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand img { height: 56px; width: auto; display: block; align-self: flex-start; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .pulse-dot { animation: none; }
  .lift, .btn, .plus { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .site-nav__links { gap: 18px; }
  .hero__body { padding-top: 56px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .stat { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .stat:last-child { border-bottom: 0; }
  .audience__dealers, .audience__users { padding: 36px 26px; }
  .marquee__set { font-size: 26px; gap: 32px; padding-right: 32px; }
}
