/* ============================================================
   Yugo Inc. — corporate site styles
   Light + dark (prefers-color-scheme). Shared by index / terms / privacy.
   The [data-theme] blocks mirror the media query so an explicit toggle
   would win in both directions if one is added later.
   ============================================================ */

/* ============================================================
   Yugo Inc. — OPTION A "Refined" (v2)
   Evolves the existing token system rather than replacing it.
   ============================================================ */

:root {
  color-scheme: light dark;
  --blue: #2563eb;
  --blue-strong: #1d4ed8;
  --blue-soft: #eef3ff;
  --on-accent: #ffffff;
  --gps: #2563eb;
  --dms: #6366f1;
  --pay: #0d9488;
  --vin: #8b5cf6;
  --ink: #0b1220;
  --slate: #46566c;
  --muted: #6b7a90;
  --line: #e4e9f2;
  --line-soft: #eef1f7;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --footer-bg: #0b1220;
  --ok: #0d9488;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 12px 30px rgba(15,23,42,.07);
  --shadow-lg: 0 2px 6px rgba(15,23,42,.06), 0 30px 60px rgba(37,99,235,.16);
  --maxw: 1140px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #60a5fa;
    --blue-strong: #93c5fd;
    --blue-soft: rgba(96,165,250,.14);
    --on-accent: #06101f;
    --gps: #60a5fa;
    --dms: #818cf8;
    --pay: #2dd4bf;
    --vin: #a78bfa;
    --ink: #eef2f9;
    --slate: #aebbcd;
    --muted: #8493a8;
    --line: #1f2940;
    --line-soft: #161e30;
    --bg: #080d18;
    --bg-alt: #0c1322;
    --surface: #121c30;
    --surface-2: #0e1727;
    --footer-bg: #05090f;
    --ok: #2dd4bf;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 8px rgba(0,0,0,.45), 0 34px 68px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --blue: #60a5fa;
  --blue-strong: #93c5fd;
  --blue-soft: rgba(96,165,250,.14);
  --on-accent: #06101f;
  --gps: #60a5fa;
  --dms: #818cf8;
  --pay: #2dd4bf;
  --vin: #a78bfa;
  --ink: #eef2f9;
  --slate: #aebbcd;
  --muted: #8493a8;
  --line: #1f2940;
  --line-soft: #161e30;
  --bg: #080d18;
  --bg-alt: #0c1322;
  --surface: #121c30;
  --surface-2: #0e1727;
  --footer-bg: #05090f;
  --ok: #2dd4bf;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.45), 0 34px 68px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: var(--on-accent); padding: 12px 18px;
  border-radius: 0 0 8px 0; font-weight: 650;
}
.skip:focus { left: 0; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.14rem; letter-spacing: -.02em; color: var(--ink); }
.mark svg { width: 30px; height: 30px; flex: 0 0 auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--slate); font-weight: 540; font-size: .93rem; }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: var(--on-accent) !important; padding: 9px 16px; border-radius: 9px;
  font-weight: 620; font-size: .88rem; box-shadow: 0 2px 10px rgba(37,99,235,.28);
  transition: transform .15s, background .15s;
}
.nav-cta:hover { background: var(--blue-strong); transform: translateY(-1px); }
.burger {
  display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px; color: var(--ink); cursor: pointer; line-height: 0;
}
.burger svg { width: 22px; height: 22px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 24px; color: var(--ink); font-weight: 560;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-child { border-bottom: 0; color: var(--blue); font-weight: 650; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 74px 0 70px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(58% 46% at 50% -10%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 70%),
    radial-gradient(38% 38% at 88% 6%, color-mix(in srgb, var(--vin) 14%, transparent), transparent 70%),
    radial-gradient(38% 38% at 10% 18%, color-mix(in srgb, var(--pay) 11%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .45;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(68% 52% at 50% 0%, #000 28%, transparent 74%);
  -webkit-mask-image: radial-gradient(68% 52% at 50% 0%, #000 28%, transparent 74%);
}
.hero .wrap { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: .8rem; font-weight: 620; color: var(--slate); margin-bottom: 20px;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 24%, transparent); }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.7rem); line-height: 1.05; letter-spacing: -.035em;
  margin: 0 0 16px; font-weight: 800; text-wrap: balance;
}
.hero h1 .grad {
  display: block;
  background: linear-gradient(112deg, var(--blue), var(--vin) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 620px; margin: 0 auto 28px; color: var(--slate); font-size: 1.09rem; text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 11px; font-weight: 640; font-size: .98rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--blue); color: var(--on-accent); box-shadow: 0 6px 18px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--blue-strong); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── Hero console — one suite, one record ── */
.console {
  margin: 52px auto 0; max-width: 980px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
}
.c-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.c-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.c-bar .title { margin-left: 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.c-bar .sample { margin-left: auto; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.c-body { display: grid; grid-template-columns: 186px 1fr; }
.c-rail { border-right: 1px solid var(--line); padding: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.c-rail button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--slate); font-family: inherit; font-size: .88rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.c-rail button .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.c-rail button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); }
.c-rail button[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--ink); }
.c-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.c-vehicle { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.c-vehicle h3 { margin: 0; font-size: 1.14rem; font-weight: 740; letter-spacing: -.02em; }
.c-vehicle .vin { font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.c-panes { display: grid; }
.pane {
  grid-area: 1 / 1;                 /* every pane shares one cell -> no reflow */
  display: flex; flex-direction: column; gap: 12px;
  visibility: hidden; opacity: 0;   /* keeps layout size, drops out of a11y tree */
  transform: translateY(4px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.pane.on { visibility: visible; opacity: 1; transform: none; }
.pane .line { display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: baseline; font-size: .9rem; }
.pane .line dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pane .line dd { margin: 0; color: var(--ink); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.chip {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; font-weight: 700;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.bars span { flex: 1; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 42%, transparent); }
.bars span.hi { background: var(--accent); }

/* ── Sections ── */
section { padding: 82px 0; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.head h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); letter-spacing: -.028em; margin: 0 0 12px; font-weight: 770; text-wrap: balance; }
.head p { color: var(--slate); margin: 0; font-size: 1.05rem; text-wrap: pretty; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--blue); margin: 0 0 12px; }

/* ── Products: flagship + three ── */
.lead-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 0; margin-bottom: 20px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.lead-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 85%); }
.lead-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.lead-main { padding: 32px; }
.lead-side { padding: 32px; border-left: 1px solid var(--line-soft); background: var(--surface-2); }
.lead-side .lab { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lead-side li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--slate); }
.lead-side li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 85%); }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.ico { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.ico svg { width: 22px; height: 22px; }
.kick { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.card h3, .lead-main h3 { margin: 0 0 8px; letter-spacing: -.018em; font-weight: 750; }
.card h3 { font-size: 1.26rem; }
.lead-main h3 { font-size: 1.7rem; }
.card p, .lead-main p { color: var(--slate); margin: 0 0 20px; font-size: .96rem; }
.lead-main p { font-size: 1.02rem; max-width: 46ch; }
.card p { flex: 1; }
.learn { font-weight: 640; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: .94rem; }
.learn .ar { transition: transform .15s; }
.card:hover .learn .ar, .lead-card:hover .learn .ar { transform: translateX(4px); }

/* ── Lifecycle with connectors ── */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 20px; box-shadow: var(--shadow-sm);
}
.step::after {
  content: ""; position: absolute; top: 50%; right: -16px; width: 16px; height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
  z-index: 1;
}
.step:last-child::after { display: none; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; margin-bottom: 12px;
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.step h4 { margin: 0 0 6px; font-size: 1.04rem; font-weight: 720; letter-spacing: -.012em; }
.step p { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.step .src { font-family: var(--mono); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* ── Why one company ── */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why div { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.why h4 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 720; letter-spacing: -.012em; }
.why p { margin: 0; color: var(--slate); font-size: .94rem; }
.why .num { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-weight: 700; display: block; margin-bottom: 10px; }

/* ── Company ── */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: start; }
.about p { color: var(--slate); font-size: 1.04rem; }
.vals { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.vals li { display: flex; gap: 14px; }
.vals .tick { flex: 0 0 auto; width: 29px; height: 29px; border-radius: 9px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.vals strong { display: block; color: var(--ink); }
.vals .d { color: var(--muted); font-size: .94rem; }

/* ── Contact ── */
.contact { max-width: 620px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 34px; box-shadow: var(--shadow); }
.contact p { color: var(--slate); margin: 0 0 24px; }
.email { display: inline-flex; align-items: center; gap: 9px; font-size: 1.2rem; font-weight: 730; color: var(--blue); padding: 12px 22px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--line)); background: var(--blue-soft); transition: transform .15s, box-shadow .15s; }
.email:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.routes { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.routes a { font-size: .86rem; color: var(--slate); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; transition: border-color .15s, color .15s; }
.routes a:hover { color: var(--accent, var(--blue)); border-color: color-mix(in srgb, var(--accent, var(--blue)) 45%, var(--line)); }

/* ── Footer ── */
.foot { background: var(--footer-bg); color: #cbd5e1; padding: 54px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.foot .mark { color: #fff; margin-bottom: 12px; }
.foot-blurb { color: #94a3b8; font-size: .9rem; max-width: 34ch; margin: 0; }
.foot h5 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; margin: 0 0 14px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { color: #cbd5e1; font-size: .92rem; }
.foot ul a:hover { color: #fff; }
.foot-bot { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: .88rem; color: #94a3b8; }

/* ── Motion ── */
.rise { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Responsive ── */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .c-body { grid-template-columns: 1fr; }
  .c-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .c-rail button { white-space: nowrap; }
  .lead-card { grid-template-columns: 1fr; }
  .lead-side { border-left: 0; border-top: 1px solid var(--line-soft); }
  .grid3, .why { grid-template-columns: 1fr 1fr; }
  .why div:last-child { grid-column: span 2; }
  .flow { grid-template-columns: 1fr 1fr; gap: 14px; }
  .step::after { display: none; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  section { padding: 58px 0; }
  .hero { padding: 52px 0 50px; }
  .grid3, .why, .flow, .foot-grid { grid-template-columns: 1fr; }
  .why div:last-child { grid-column: auto; }
  .lead-main, .lead-side { padding: 24px; }
  .pane .line { grid-template-columns: 1fr; gap: 2px; }
}

/* ── Legal pages (terms / privacy) ───────────────────────
   Uses the same token set as the landing page so the two stay in sync.
   Previously these rules lived only here and the landing page had its own
   scale; both now read from the shared tokens above. */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 84px; }
.legal .back {
  font-family: var(--mono); font-size: .74rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; color: var(--slate);
  display: inline-flex; align-items: center; gap: 7px;
}
.legal .back:hover { color: var(--blue); }
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -.032em;
  font-weight: 780; margin: 24px 0 8px; text-wrap: balance;
}
.legal .updated {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: 1.22rem; font-weight: 730; letter-spacing: -.016em;
  margin: 40px 0 10px;
}
.legal p, .legal li { color: var(--slate); font-size: 1rem; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 16px; }
.legal a:not(.back) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); font-weight: 650; }

@media (max-width: 620px) {
  .legal { padding: 40px 20px 60px; }
  .legal h2 { margin-top: 32px; }
}
