/* =========================================================
   ADD GROUP — design tokens
   Palette: brand red (logo) + engineering blue + steel greys
   Type: Archivo (display) / Inter (body) / IBM Plex Mono (spec data)
========================================================= */
:root{
  --red: #C8102E;
  --red-dark: #970C22;
  --blue: #0B5FA5;
  --blue-dark: #0A4A80;
  --ink: #12181F;
  --steel: #4A5561;
  --steel-light: #889199;
  --paper: #F6F7F8;
  --paper-alt: #EEF1F3;
  --line: #E2E5E9;
  --white: #FFFFFF;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ overflow-x: hidden; width: 100%; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
p{ margin: 0; }

:focus-visible{
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: '';
  width: 22px; height: 1.5px;
  background: var(--red);
  display: inline-block;
}

/* ---------------- Header / Nav ---------------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.nav-logo img{ height: 30px; width: auto; }
.nav-links{ display: flex; gap: 36px; align-items: center; }
.nav-links a{
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav-links a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--red); }
.nav-cta{
  background: var(--ink); color: var(--white) !important;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 13.5px !important; font-weight: 700 !important;
  letter-spacing: 0.02em;
}
.nav-cta:hover{ background: var(--red); }
.nav-toggle{ display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span{ display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 860px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0; height: calc(100vh - 78px);
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 32px 28px; gap: 26px; transform: translateX(100%);
    transition: transform .28s ease; overflow-y: auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ font-size: 20px; }
}

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  letter-spacing: 0.01em; border: 1.5px solid transparent; cursor: pointer;
  transition: all .18s ease;
}
.btn-primary{ background: var(--red); color: var(--white); }
.btn-primary:hover{ background: var(--red-dark); }
.btn-outline{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover{ border-color: var(--ink); }
.btn-white{ background: var(--white); color: var(--ink); }
.btn-white:hover{ background: var(--paper-alt); }

/* ---------------- Hero showcase (image-led) ---------------- */
.hero-showcase{ padding: 22px 0 60px; }
.hero-image-wrap{
  max-width: 1400px; margin: 0 auto; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(18,24,31,0.2); border: 1px solid var(--line);
}
.hero-image-wrap img{ width: 100%; display: block; }
.hero-cta-row{ display: flex; justify-content: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

/* ---------------- Hero (legacy text-overlay variant, kept for reference) ---------------- */
.hero{
  position: relative; min-height: 640px; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(18,24,31,0.35) 0%, rgba(18,24,31,0.55) 55%, rgba(18,24,31,0.92) 100%),
              url('../img/card_mv_motors.png') center 30% / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-inner{ position: relative; z-index: 2; padding-bottom: 76px; width: 100%; }
.hero .eyebrow{ color: #FF8FA1; }
.hero .eyebrow::before{ background: #FF8FA1; }
.hero h1{
  font-size: clamp(40px, 6vw, 76px); font-weight: 800; color: var(--white);
  margin: 18px 0 22px; max-width: 15ch;
}
.hero p{ font-size: 18px; color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 34px; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- Spec ticker (signature element) ---------------- */
.ticker{
  background: var(--ink); color: var(--white);
  overflow: hidden; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-track{
  display: inline-flex; align-items: center;
  animation: ticker 34s linear infinite;
  padding: 13px 0;
}
@media (prefers-reduced-motion: reduce){ .ticker-track{ animation: none; } .ticker{ overflow-x: auto; } }
.ticker-track span{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78); padding: 0 22px; border-right: 1px solid rgba(255,255,255,0.18);
}
.ticker-track span b{ color: var(--white); font-weight: 600; }
@keyframes ticker{ 0%{ transform: translateX(0); } 100%{ transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */
section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }
.section-alt{ background: var(--paper); }
.section-ink{ background: var(--ink); color: var(--white); }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 42px); margin-top: 16px; }
.section-head p{ color: var(--steel); font-size: 16px; margin-top: 16px; }
.section-ink .section-head p{ color: rgba(255,255,255,0.65); }

/* ---------------- Grid utilities ---------------- */
.grid{ display: grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-5{ grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px){ .grid-3, .grid-4, .grid-5{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4, .grid-5{ grid-template-columns: 1fr; } }

/* ---------------- Cards ---------------- */
.card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover{ border-color: var(--steel-light); transform: translateY(-3px); }
.card .num{ font-family: var(--font-mono); font-size: 13px; color: var(--red); margin-bottom: 14px; display: block; }
.card h3{ font-size: 19px; margin-bottom: 10px; }
.card p{ color: var(--steel); font-size: 14.5px; }

.photo-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.photo-card:hover{ transform: translateY(-4px); box-shadow: 0 18px 34px rgba(18,24,31,0.1); }
.photo-card img{ width: 100%; aspect-ratio: 512/439; object-fit: cover; border-bottom: 1px solid var(--line); }
.photo-card .body{ padding: 20px 22px 24px; }
.photo-card h3{ font-size: 17px; margin-bottom: 6px; }
.photo-card p{ font-size: 13.5px; color: var(--steel); }
.photo-card .tag{ font-family: var(--font-mono); font-size: 11px; color: var(--blue); letter-spacing: 0.05em; text-transform: uppercase; }

.status-pill{
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.status-active{ background: #FBEAEC; color: var(--red); }
.status-planned{ background: #EAF2F8; color: var(--blue); }

/* ---------------- Stats ---------------- */
.stat-row{ display: flex; gap: 56px; flex-wrap: wrap; }
.stat b{ display: block; font-family: var(--font-display); font-size: 40px; color: var(--ink); }
.stat span{ font-size: 13.5px; color: var(--steel); }
.section-ink .stat b{ color: var(--white); }
.section-ink .stat span{ color: rgba(255,255,255,0.6); }

/* ---------------- Roadmap (real sequence -> numbered) ---------------- */
.roadmap{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.roadmap-step{ background: var(--white); padding: 34px 26px; }
.roadmap-step .num{ font-family: var(--font-mono); font-size: 28px; color: var(--red); display: block; margin-bottom: 18px; }
.roadmap-step h3{ font-size: 17px; margin-bottom: 10px; }
.roadmap-step p{ font-size: 13.5px; color: var(--steel); }
@media (max-width: 860px){ .roadmap{ grid-template-columns: 1fr; } }

/* ---------------- Table (specs) ---------------- */
.spec-table{ width: 100%; border-collapse: collapse; }
.spec-table th{
  text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--steel); padding: 12px 16px; border-bottom: 2px solid var(--ink);
}
.spec-table td{ padding: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child{ font-weight: 700; }

/* ---------------- Product tabs ---------------- */
.tabbar{ display: flex; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.tab-btn{
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px; color: var(--steel);
  background: none; border: none; padding: 16px 4px; margin-right: 30px; cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.tab-btn.active{ color: var(--ink); border-bottom-color: var(--red); }
.tab-panel{ display: none; }
.tab-panel.active{ display: block; }

/* ---------------- Icon list ---------------- */
.icon-row{ display: flex; align-items: flex-start; gap: 16px; }
.icon-dot{
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  margin-top: 8px; flex-shrink: 0;
}
.icon-row h4{ font-family: var(--font-body); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.icon-row p{ font-size: 13.5px; color: var(--steel); }

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,0.72); padding-top: 76px; }
.footer-top{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-top img{ height: 26px; margin-bottom: 18px; }
.footer-top p{ font-size: 13.5px; line-height: 1.6; max-width: 34ch; }
.footer-col h4{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
.footer-col a, .footer-col span{ display: block; font-size: 14px; margin-bottom: 12px; color: rgba(255,255,255,0.78); }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 12.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }

/* ---------------- Page header (inner pages) ---------------- */
.page-hero{ padding: 168px 0 64px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1{ font-size: clamp(34px, 4.6vw, 54px); margin-top: 16px; max-width: 18ch; }
.page-hero p{ font-size: 16.5px; color: var(--steel); max-width: 56ch; margin-top: 18px; }

/* ---------------- Misc ---------------- */
.divider{ height: 1px; background: var(--line); }
.center{ text-align: center; }
.mt-8{ margin-top: 8px; }
