/* ============================================================
   SSD DETAILING - shared styles
   Palette: obsidian navy / deep electric blue / chrome silver
   ============================================================ */

:root {
  --bg: #04070f;            /* near-black navy */
  --bg-raise: #070c18;      /* raised section base */
  --panel: #0a1122;         /* card panel */
  --panel-2: #0d1528;
  --line: rgba(151, 168, 199, 0.14);
  --line-strong: rgba(151, 168, 199, 0.26);

  --blue: #2f7dff;          /* deep electric blue */
  --blue-hi: #6ea8ff;
  --blue-deep: #0f3fae;
  --blue-glow: rgba(47, 125, 255, 0.35);

  --silver: #c3ccdb;
  --silver-hi: #eef2f8;
  --text: #d8dfeb;
  --muted: #8792a6;
  --faint: #5b6579;

  --chrome: linear-gradient(178deg, #f7f9fc 8%, #cdd6e3 34%, #8395b0 50%, #e2e9f2 66%, #9fadc2 96%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Michroma", sans-serif;
  --font-head: "Saira SemiCondensed", sans-serif;
  --font-body: "Saira", sans-serif;
  --font-tech: "Chakra Petch", monospace;

  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(47, 125, 255, 0.4); color: #fff; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- atmosphere ---------- */

.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(28, 78, 180, 0.22), transparent 62%),
    radial-gradient(900px 600px at -12% 30%, rgba(18, 48, 110, 0.18), transparent 60%),
    radial-gradient(1400px 900px at 50% 118%, rgba(10, 28, 66, 0.3), transparent 65%),
    var(--bg);
}
.atmosphere::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(151, 168, 199, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 168, 199, 0.052) 1px, transparent 1px);
  background-size: 74px 74px;
  background-position: 0 var(--grid-shift, 0px);
  mask-image: radial-gradient(1240px 780px at 50% 0%, #000 32%, transparent 82%);
  -webkit-mask-image: radial-gradient(1240px 780px at 50% 0%, #000 32%, transparent 82%);
}
.atmosphere::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ambient motion (options I + J): scroll-tracking polish light + silver dust.
   Both elements are created by site.js inside .atmosphere; skipped entirely
   for prefers-reduced-motion. */
.atmo-beam {
  position: absolute; left: 0; right: 0; top: -36vh; height: 34vh;
  background: linear-gradient(180deg,
    transparent,
    rgba(47, 125, 255, 0.07) 30%,
    rgba(110, 168, 255, 0.15) 50%,
    rgba(47, 125, 255, 0.07) 70%,
    transparent);
  will-change: transform;
}
.atmo-beam::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, 0.42), transparent);
}
.atmo-dust { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- shared bits ---------- */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.tech-label {
  font-family: var(--font-tech);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-hi);
  display: inline-flex; align-items: center; gap: 12px;
}
.tech-label::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: var(--silver-hi);
  text-wrap: balance;
}

.h-xl { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.h-md { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blue-text { color: var(--blue-hi); }

.lede { color: var(--muted); font-size: 1.06rem; max-width: 60ch; }

.section { padding: 108px 0; position: relative; }
.section-head { margin-bottom: 54px; }
.section-head .lede { margin-top: 16px; }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-tech);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease),
              color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #3d88ff, #1d5fe0);
  color: #f4f8ff;
  box-shadow: 0 10px 32px -10px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -12px rgba(47, 125, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--silver);
  background: rgba(151, 168, 199, 0.04);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--silver-hi);
  background: rgba(47, 125, 255, 0.08);
  transform: translateY(-2px);
}

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo { display: flex; align-items: baseline; gap: 11px; line-height: 1; flex-shrink: 0; }
.logo-ssd {
  font-family: var(--font-display);
  font-size: 25px;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.04em;
}
.logo-det {
  font-family: var(--font-tech);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--blue-hi);
  text-transform: uppercase;
  transform: translateY(-1px);
}

.links { display: flex; align-items: center; gap: 30px; }
.links a {
  font-family: var(--font-tech);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s var(--ease);
}
.links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.links a:hover, .links a.active { color: var(--silver-hi); }
.links a:hover::after, .links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .btn { padding: 12px 22px; font-size: 12px; }

.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--silver);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(5, 8, 17, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.mobile-menu > div { overflow: hidden; }
body.nav-open .mobile-menu { grid-template-rows: 1fr; }
.mobile-menu ul { padding: 18px 28px 30px; }
.mobile-menu a {
  display: block; padding: 15px 0;
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--silver);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--blue-hi); padding-left: 8px; }
.mobile-menu .menu-call {
  margin-top: 22px; border: 0;
  font-family: var(--font-tech); font-size: 13px;
  letter-spacing: 0.18em; color: var(--blue-hi);
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-outline {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 24px 0 6px -2px;
}
.hero-outline text {
  fill: none;
  stroke: rgba(160, 178, 208, 0.32);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  font-family: var(--font-display);
  font-size: 150px;
}
.page-hero h1 { margin: 0 0 20px; max-width: 20ch; }
.crumb {
  font-family: var(--font-tech); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint);
}
.crumb a { color: var(--muted); transition: color 0.3s; }
.crumb a:hover { color: var(--blue-hi); }
.crumb span { margin: 0 10px; color: var(--faint); }

/* ---------- cards ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 238, 246, 0.35), transparent);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(47, 125, 255, 0.08),
              0 22px 70px -32px var(--blue-glow);
}
.card:hover::before { opacity: 1; }

/* checklist */
.check-list li {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(151, 168, 199, 0.07);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; flex-shrink: 0;
  width: 15px; height: 15px; margin-top: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5 6 12.5 14 3.5' fill='none' stroke='%232f7dff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- price presentation ---------- */

.price {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  color: var(--silver-hi);
  line-height: 1;
  letter-spacing: 0.01em;
}
.price .cur { font-size: 0.5em; vertical-align: super; color: var(--blue-hi); margin-right: 2px; }
.price-note { font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }

/* vehicle toggle */
.vt-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(151, 168, 199, 0.04);
}
.vt-btn {
  border: 0; background: transparent;
  font-family: var(--font-tech);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  padding: 13px 26px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.vt-btn.active {
  background: linear-gradient(180deg, #3d88ff, #1d5fe0);
  color: #f4f8ff;
}
.vt-price { display: inline-block; transition: opacity 0.22s ease, transform 0.22s ease; }
.vt-price.swap { opacity: 0; transform: translateY(6px); }

/* ---------- motion package (options A, B, C, E) ---------- */

/* A. chrome shine sweep: hero headline chrome word only */
.chrome-sweep {
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.75) 50%, transparent 58%) no-repeat,
    var(--chrome);
  background-size: 260% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chromeSweep 9.5s linear 1.2s infinite;
}
@keyframes chromeSweep {
  0%   { background-position: 130% 0, 0 0; }
  46%  { background-position: -130% 0, 0 0; }
  100% { background-position: -130% 0, 0 0; }
}

/* B. watermark self-draw on page load.
   getTotalLength() is unavailable on SVG <text>, so the dash length can't be
   measured per word; 5600 sits safely above the longest glyph outline here
   (Michroma all-caps, max ~7 chars) so every word starts fully hidden. */
.hero-ghost text, .hero-outline text {
  stroke-dasharray: 5600;
  stroke-dashoffset: 5600;
  animation: ghostDraw 2.8s var(--ease) 0.25s forwards;
}
@keyframes ghostDraw { to { stroke-dashoffset: 0; } }

/* C. card spotlight: cursor-tracked glow, desktop pointers only */
.card { --mx: 50%; --my: 50%; }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(110, 168, 255, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
@media (hover: hover) { .card:hover::after { opacity: 1; } }

/* E. sheen pass on primary CTAs and the Most Popular ribbon */
.btn-primary { position: relative; overflow: hidden; }
.pkg-flag { overflow: hidden; }
.btn-primary::after, .pkg-flag::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -45%; width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  animation: sheenPass 5.5s var(--ease) 1.6s infinite;
  pointer-events: none;
}
.nav .btn-primary::after { animation-delay: 3.4s; }
@keyframes sheenPass {
  0%   { left: -45%; }
  26%  { left: 118%; }
  100% { left: 118%; }
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .hero-up { opacity: 1 !important; transform: none !important; }
  .hero-ghost text, .hero-outline text { stroke-dasharray: none; stroke-dashoffset: 0; }
  .atmo-beam, .atmo-dust { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- CTA band ---------- */

.cta-band { padding: 100px 0; position: relative; overflow: hidden; }
.cta-panel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: clamp(44px, 7vw, 80px);
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% -30%, rgba(47, 125, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--panel), #060a15);
  overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, 0.7), transparent);
}
.cta-panel h2 { margin: 16px auto 14px; max-width: 22ch; }
.cta-panel .lede { margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-phone {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--silver-hi);
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 26px;
  transition: color 0.3s var(--ease);
}
.cta-phone:hover { color: var(--blue-hi); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 20, 0.9));
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 56px;
}
.footer .logo { margin-bottom: 18px; }
.footer-tag { color: var(--muted); font-size: 0.95rem; max-width: 30ch; }
.footer h4 {
  font-family: var(--font-tech);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--faint);
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--blue-hi); }
.footer-contact li { margin-bottom: 13px; color: var(--muted); font-size: 0.95rem; }
.footer-contact a { transition: color 0.3s var(--ease); }
.footer-contact a:hover { color: var(--blue-hi); }
.footer-contact .k {
  display: block;
  font-family: var(--font-tech); font-size: 10.5px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 3px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-tech);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.footer-motto { color: var(--blue-hi); letter-spacing: 0.3em; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 20px; }
  .section { padding: 76px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-cta .btn { padding: 11px 16px; font-size: 11px; }
  .cta-actions .btn { width: 100%; }
  .page-hero { padding: calc(var(--nav-h) + 64px) 0 56px; }
}
