/* ==========================================================================
   TeslaSsetStock — Design system & components
   --------------------------------------------------------------------------
   1. Tokens            6. Header & navigation     11. Plans
   2. Base / reset      7. Hero & ticker           12. Markets & news
   3. Layout            8. Sections & headings     13. Vehicles
   4. Typography        9. Cards & features        14. Dashboard preview
   5. Buttons & badges 10. Tabs / accordion / modal 15. Forms & auth
                                                   16. Footer, utilities, motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --c-primary: #1e40af;
  --c-primary-600: #17358f;
  --c-blue: #2563eb;
  --c-blue-400: #60a5fa;
  --c-blue-50: #eef3ff;
  --c-blue-100: #dbe6fe;
  --c-success: #16a34a;
  --c-success-bg: #e8f7ee;
  --c-danger: #dc2626;
  --c-danger-bg: #fdecec;
  --c-warn: #b45309;
  --c-warn-bg: #fff6e5;

  --c-ink: #0f172a;
  --c-text: #111827;
  --c-text-2: #334155;
  --c-muted: #64748b;
  --c-line: #e2e8f0;
  --c-line-2: #eef2f7;
  --c-bg: #f5f7fb;
  --c-white: #ffffff;

  /* dark surfaces */
  --d-bg: #0a1122;
  --d-bg-2: #0f172a;
  --d-surface: #121c33;
  --d-surface-2: #17223d;
  --d-line: rgba(148, 163, 184, 0.16);
  --d-text: #e6ebf5;
  --d-muted: #9aa8c1;
  --d-up: #4ade80;
  --d-down: #f87171;

  /* data-viz categorical (validated: blue, teal, amber, violet) */
  --viz-1: #2563eb;
  --viz-2: #0d9488;
  --viz-3: #d97706;
  --viz-4: #9333ea;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --sh-md: 0 8px 24px -8px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  --sh-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.25), 0 6px 18px -6px rgba(15, 23, 42, 0.08);
  --sh-blue: 0 10px 30px -10px rgba(37, 99, 235, 0.55);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-blue-400); }

::selection { background: var(--c-blue-100); color: var(--c-ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-ink);
  font-weight: 600;
  box-shadow: var(--sh-md);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--c-bg); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--flush-top { padding-top: 0; }
.section--dark {
  background: var(--d-bg);
  color: var(--d-text);
}
.section--dark .text-muted, .section--dark .lead { color: var(--d-muted); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }

.stack > * + * { margin-top: var(--stack, 16px); }

/* 4. TYPOGRAPHY ------------------------------------------------------------ */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: inherit;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 700;
}
.h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.04; }
.h2 { font-size: clamp(1.85rem, 3.5vw, 2.85rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--c-muted); line-height: 1.65; }
.text-muted { color: var(--c-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.78rem; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.up { color: var(--c-success); }
.down { color: var(--c-danger); }
.section--dark .up, .hero .up, .ticker .up { color: var(--d-up); }
.section--dark .down, .hero .down, .ticker .down { color: var(--d-down); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--c-blue-400); }

.text-gradient {
  background: linear-gradient(100deg, #93c5fd 0%, #60a5fa 45%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose { color: var(--c-text-2); max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 0.6em; color: var(--c-ink); }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; color: var(--c-ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }

/* 5. BUTTONS & BADGES ------------------------------------------------------ */
.btn {
  --btn-bg: var(--c-white);
  --btn-fg: var(--c-ink);
  --btn-bd: var(--c-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s, border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--c-blue); --btn-fg: #fff; --btn-bd: var(--c-blue); box-shadow: var(--sh-blue); }
.btn--primary:hover { --btn-bg: var(--c-primary); --btn-bd: var(--c-primary); }
.btn--dark { --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink); }
.btn--dark:hover { --btn-bg: #1e293b; }
.btn--outline:hover { --btn-bd: var(--c-ink); }
.btn--glass {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-bd: rgba(255, 255, 255, 0.4); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; padding-inline: 12px; }
.btn--ghost:hover { --btn-bg: var(--c-line-2); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.65; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--c-blue);
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--c-blue-400); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  background: var(--c-blue-50);
  color: var(--c-primary);
}
.badge--success { background: var(--c-success-bg); color: #15803d; }
.badge--danger { background: var(--c-danger-bg); color: #b91c1c; }
.badge--neutral { background: var(--c-line-2); color: var(--c-text-2); }
.badge--warn { background: var(--c-warn-bg); color: var(--c-warn); }
.badge--dark { background: rgba(255, 255, 255, 0.08); color: var(--d-muted); border: 1px solid var(--d-line); }

.demo-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--c-muted);
}
.demo-note .dot { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.section--dark .demo-note, .hero .demo-note { color: var(--d-muted); }

/* 6. HEADER & NAVIGATION --------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.3s var(--ease), color 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.header-solid .site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--c-ink);
  border-bottom-color: var(--c-line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex: none;
}
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__word b { font-weight: 700; color: var(--c-blue-400); }
.site-header.is-scrolled .logo__word b,
.header-solid .logo__word b,
.logo--dark .logo__word b { color: var(--c-blue); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.82;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav__link:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.site-header.is-scrolled .nav__link:hover,
.header-solid .nav__link:hover { background: var(--c-line-2); }
.nav__link[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-blue-400);
  transform: translateX(-50%);
}
.site-header.is-scrolled .nav__link[aria-current="page"]::after,
.header-solid .nav__link[aria-current="page"]::after { background: var(--c-blue); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn--ghost { --btn-fg: currentColor; }
.site-header:not(.is-scrolled) .header-actions .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); }
.header-solid .site-header .header-actions .btn--ghost:hover { --btn-bg: var(--c-line-2); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.site-header.is-scrolled .menu-toggle,
.header-solid .menu-toggle { border-color: var(--c-line); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 34, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 100%);
  background: var(--c-white);
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--sh-lg);
}
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-line);
}
.drawer__close {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
}
.drawer__nav { flex: 1; overflow-y: auto; padding: 16px var(--gutter); }
.drawer__nav ul { list-style: none; }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--c-line-2);
}
.drawer__link[aria-current="page"] { color: var(--c-blue); }
.drawer__link .icon { color: var(--c-muted); }
.drawer__foot { padding: 20px var(--gutter) 28px; display: grid; gap: 10px; border-top: 1px solid var(--c-line); }
body.is-locked { overflow: hidden; }

/* 7. HERO & TICKER --------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--d-bg);
  color: var(--d-text);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* hairline grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px; height: 900px;
  right: -260px; top: -320px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero__title { color: #fff; margin-bottom: 24px; }
.hero__title span { display: block; }
.hero__lead { color: var(--d-muted); max-width: 540px; margin-bottom: 32px; }
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  list-style: none;
  font-size: 0.88rem;
  color: var(--d-muted);
}
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .icon { color: var(--c-blue-400); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--d-line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--d-text);
  margin-bottom: 28px;
}
.pill__tag {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--c-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  border: 1px solid var(--d-line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 34, 0) 45%, rgba(10, 17, 34, 0.75) 100%);
}
.hero__caption {
  position: absolute;
  left: 24px; bottom: 22px;
  z-index: 1;
  color: #fff;
}
.hero__caption small { display: block; color: var(--d-muted); font-size: 0.8rem; }
.hero__caption strong { font-family: var(--font-display); font-size: 1.1rem; }

.float-card {
  position: absolute;
  z-index: 2;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: rgba(18, 28, 51, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--d-text);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
}
.float-card--portfolio { top: 28px; left: -36px; width: 236px; }
.float-card--plan { right: -24px; bottom: 76px; width: 214px; }
.float-card__label { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--d-muted); margin-bottom: 6px; }
.float-card__value { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.float-card svg.spark { width: 100%; height: 44px; margin-top: 8px; }
.float-card__row { display: flex; align-items: center; gap: 10px; }
.float-card__icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(37, 99, 235, 0.18);
  color: var(--c-blue-400);
}

/* Ticker */
.ticker {
  position: relative;
  border-top: 1px solid var(--d-line);
  background: #080e1d;
  color: var(--d-text);
  font-size: 0.875rem;
}
.ticker__inner { display: flex; align-items: stretch; }
.ticker { overflow: hidden; }
.ticker__label {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 20px 0 var(--gutter);
  border-right: 1px solid var(--d-line);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-muted);
  background: var(--d-bg);
  z-index: 1;
}
.ticker__label strong { color: #fff; letter-spacing: 0.08em; font-size: 0.75rem; }
.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  list-style: none;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-right: 1px solid var(--d-line);
  white-space: nowrap;
}
.ticker__sym { font-weight: 600; color: #fff; letter-spacing: 0.02em; }
.ticker__price { color: var(--d-muted); }
.ticker__chg { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 0.82rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Inner page hero */
.page-hero {
  position: relative;
  background: var(--d-bg);
  color: var(--d-text);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px; height: 720px;
  right: -200px; top: -300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.32), transparent 60%);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--d-bg) 25%, rgba(10, 17, 34, 0.6) 70%, rgba(10, 17, 34, 0.85));
}
.page-hero h1 { color: #fff; max-width: 18ch; margin-bottom: 18px; }
.page-hero .lead { color: var(--d-muted); max-width: 620px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero--compact h1 { max-width: none; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 0.85rem; color: var(--d-muted); margin-bottom: 20px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumb a:hover { color: #fff; }

/* 8. SECTIONS & HEADINGS --------------------------------------------------- */
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .h2 { margin-bottom: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.section-head--row > div { max-width: 640px; }

.check-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--c-blue); margin-top: 3px; }
.section--dark .check-list .icon { color: var(--c-blue-400); }

/* 9. CARDS & FEATURES ------------------------------------------------------ */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  transition: border-color 0.25s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card--hover:hover { border-color: #cbd5e1; box-shadow: var(--sh-md); transform: translateY(-3px); }

.icon-tile {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--c-blue-50);
  color: var(--c-blue);
  margin-bottom: 20px;
}
.section--dark .icon-tile { background: rgba(37, 99, 235, 0.16); color: var(--c-blue-400); }

/* Bento feature grid */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(240px, auto);
  gap: 20px;
}
.bento__item {
  position: relative;
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: var(--c-white);
  padding: 28px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.25s;
}
.bento__item:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: #cbd5e1; }
.bento__item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.bento__item p { color: var(--c-muted); font-size: 0.95rem; }
.bento__item .link-arrow { margin-top: auto; padding-top: 20px; font-size: 0.9rem; }
.bento__item--media {
  grid-column: span 2;
  grid-row: span 2;
  color: #fff;
  border: 0;
  justify-content: flex-end;
  min-height: 460px;
  background: var(--d-bg);
}
.bento__item--media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.bento__item--media:hover img { transform: scale(1.04); }
.bento__item--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 17, 34, 0.1) 20%, rgba(10, 17, 34, 0.92) 100%);
}
.bento__item--media > *:not(img) { position: relative; z-index: 2; }
.bento__item--media p { color: #cbd5e1; max-width: 44ch; }
.bento__item--media .link-arrow { color: #fff; margin-top: 0; }
.bento__item--media .icon-tile { background: rgba(255, 255, 255, 0.12); color: #fff; backdrop-filter: blur(6px); }
.bento__item--accent { background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-blue) 100%); border: 0; color: #fff; }
.bento__item--accent p { color: rgba(255, 255, 255, 0.8); }
.bento__item--accent .icon-tile { background: rgba(255, 255, 255, 0.14); color: #fff; }
.bento__item--accent .link-arrow { color: #fff; }

/* Media frame used in split sections */
.media-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--d-bg);
  aspect-ratio: 5 / 4;
}
.media-frame > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__overlay {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  display: grid;
  gap: 12px;
}
.glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--sh-md);
  padding: 16px 18px;
}

.alloc { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 10px 0 12px; }
.alloc span { display: block; height: 100%; border-radius: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; font-size: 0.8rem; color: var(--c-text-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.section--dark .legend, .dash .legend { color: var(--d-muted); }

.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--c-line); }
.metric-row dt { font-size: 0.82rem; color: var(--c-muted); margin-bottom: 4px; }
.metric-row dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--c-ink); }

/* Value grid (why us) */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
}
.value-grid__item {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.25s;
}
.value-grid__item:hover { background: var(--c-bg); }
.value-grid__item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-grid__item p { color: var(--c-muted); font-size: 0.95rem; }
.value-grid__item .icon-tile { margin-bottom: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); list-style: none; counter-reset: step; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 8%; right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--c-line) 0 8px, transparent 8px 14px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-blue);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  box-shadow: 0 0 0 8px var(--c-bg);
  position: relative;
}
.section:not(.section--tint) .step__num { box-shadow: 0 0 0 8px var(--c-white); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--c-muted); max-width: 30ch; margin-inline: auto; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: var(--r-xl);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; color: var(--c-ink); line-height: 1.1; }
.stat__value small { font-size: 0.55em; color: var(--c-blue); margin-left: 2px; }
.stat__label { font-weight: 600; margin-top: 8px; }
.stat__desc { color: var(--c-muted); font-size: 0.9rem; margin-top: 2px; }

/* Testimonials */
.quote-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
}
.quote-card blockquote { margin: 0; font-size: 1.08rem; line-height: 1.65; color: var(--c-text); }
.quote-card .quote-mark { color: var(--c-blue-100); width: 36px; height: 36px; }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-blue-50);
  flex: none;
}
.quote-card__name { font-weight: 600; }
.quote-card__role { color: var(--c-muted); font-size: 0.88rem; }

/* Security */
.security {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.security__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.security__item {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--d-surface);
  border: 1px solid var(--d-line);
}
.security__item h3 { font-size: 1.05rem; margin: 0 0 6px; color: #fff; }
.security__item p { color: var(--d-muted); font-size: 0.92rem; }
.security__item .icon-tile { margin-bottom: 16px; width: 42px; height: 42px; }
.shield-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 65%);
}
.shield-visual::before,
.shield-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--d-line);
}
.shield-visual::before { inset: 10%; }
.shield-visual::after { inset: 24%; border-style: dashed; }
.shield-visual__core {
  width: 36%; aspect-ratio: 1;
  border-radius: 28%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--c-blue), var(--c-primary));
  box-shadow: 0 30px 60px -20px rgba(37, 99, 235, 0.7);
  color: #fff;
}
.shield-visual__core .icon { width: 44%; height: 44%; stroke-width: 1.5; }

/* CTA band */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  isolation: isolate;
  background: var(--d-bg);
}
.cta > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(10, 17, 34, 0.96) 30%, rgba(23, 53, 143, 0.75) 100%);
}
.cta h2 { color: #fff; max-width: 16ch; margin-bottom: 18px; }
.cta p { color: #cbd5e1; max-width: 52ch; margin-bottom: 32px; font-size: 1.1rem; }

/* 10. TABS / ACCORDION / MODAL --------------------------------------------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-muted);
  transition: background-color 0.2s, color 0.2s;
}
.tab:hover { color: var(--c-ink); }
.tab[aria-selected="true"] { background: var(--c-ink); color: #fff; }
.tab .count { margin-left: 6px; font-size: 0.75rem; opacity: 0.6; font-weight: 500; }
.section--tint .tabs { background: var(--c-white); }
.section--dark .tabs { background: var(--d-surface); border-color: var(--d-line); }
.section--dark .tab:hover { color: #fff; }
.section--dark .tab[aria-selected="true"] { background: #fff; color: var(--c-ink); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-white);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-2);
  transition: all 0.2s;
}
.chip:hover { border-color: #94a3b8; }
.chip[aria-pressed="true"] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.accordion { border-top: 1px solid var(--c-line); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-ink);
}
.accordion__trigger:hover { color: var(--c-blue); }
.accordion__icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__body { padding: 0 52px 24px 4px; color: var(--c-text-2); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 17, 34, 0.6); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__media { aspect-ratio: 16 / 7; overflow: hidden; background: var(--c-bg); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(22px, 4vw, 36px); }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--sh-sm);
}

/* 11. PLANS ---------------------------------------------------------------- */
.plans-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #cbd5e1; }
.plan-card__tier { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.plan-card__name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
.plan-card__range { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.03em; color: var(--c-ink); line-height: 1.15; }
.plan-card__range span { color: var(--c-muted); font-weight: 500; margin: 0 4px; }
.plan-card__sub { font-size: 0.85rem; color: var(--c-muted); margin: 6px 0 20px; }
.plan-card__meter { height: 4px; border-radius: 4px; background: var(--c-line-2); margin-bottom: 22px; overflow: hidden; }
.plan-card__meter span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--c-blue-400), var(--c-blue)); }
.plan-card .check-list { font-size: 0.92rem; gap: 10px; margin-bottom: 28px; color: var(--c-text-2); }
.plan-card .check-list .icon { width: 16px; height: 16px; margin-top: 4px; }
.plan-card .btn { margin-top: auto; }
.plan-card--featured { background: var(--d-bg); border-color: var(--d-bg); color: var(--d-text); }
.plan-card--featured .plan-card__range { color: #fff; }
.plan-card--featured .plan-card__name,
.plan-card--featured .plan-card__sub,
.plan-card--featured .plan-card__range span { color: var(--d-muted); }
.plan-card--featured .check-list { color: var(--d-text); }
.plan-card--featured .check-list .icon { color: var(--c-blue-400); }
.plan-card--featured .plan-card__meter { background: rgba(255, 255, 255, 0.1); }
.plan-card--featured:hover { border-color: var(--d-bg); }

.plans-foot > span { display: inline-flex; align-items: center; gap: 8px; }
.plans-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 0.88rem; color: var(--c-muted); }

.plan-finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.finder-result { display: grid; gap: 10px; list-style: none; }
.finder-result li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.finder-result li strong { font-weight: 600; }
.finder-empty { padding: 20px; border-radius: var(--r-md); border: 1px dashed var(--c-line); color: var(--c-muted); }

/* 12. MARKETS & NEWS ------------------------------------------------------- */
.market-panel {
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.market-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-line);
}
.market-panel__head .tabs { border: 0; padding: 0; }
.market-table-wrap { overflow-x: auto; contain: paint; }
.market-table { min-width: 640px; font-size: 0.93rem; }
.market-table thead th {
  padding: 12px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-align: right;
  background: var(--c-bg);
  white-space: nowrap;
}
.market-table th:first-child, .market-table td:first-child { text-align: left; }
.market-table td, .market-table tbody th { padding: 14px 20px; font-weight: 400; border-top: 1px solid var(--c-line-2); text-align: right; white-space: nowrap; }
.market-table tbody tr { transition: background-color 0.2s; }
.market-table tbody tr:hover { background: #fafbfe; }
.market-table .col-spark { width: 120px; }
.market-table .col-action { width: 1%; }
.asset { display: flex; align-items: center; gap: 12px; }
.asset__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.asset__name { font-weight: 600; color: var(--c-ink); line-height: 1.3; }
.asset__sub { font-size: 0.8rem; color: var(--c-muted); }
.change { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; }
.change.up { background: var(--c-success-bg); }
.change.down { background: var(--c-danger-bg); }
.spark { width: 100px; height: 32px; margin-left: auto; overflow: visible; }
.market-panel__foot { padding: 14px 20px; border-top: 1px solid var(--c-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.market-empty { padding: 40px 20px; text-align: center; color: var(--c-muted); }

.search-field { position: relative; min-width: 220px; }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.search-field input { padding-left: 40px !important; min-height: 42px !important; border-radius: var(--r-pill) !important; }

.market-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.mini-card { padding: 18px 20px; border-radius: var(--r-md); background: var(--c-white); border: 1px solid var(--c-line); }
.mini-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85rem; color: var(--c-muted); }
.mini-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--c-ink); letter-spacing: -0.02em; }
.mini-card .spark { width: 100%; height: 36px; margin-top: 10px; }

/* News */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.news-list { display: grid; gap: 16px; }
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.news-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-bg); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--c-muted); margin-bottom: 10px; }
.news-card__title { font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; color: var(--c-ink); }
.news-card--lead .news-card__title { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.news-card__excerpt { color: var(--c-muted); font-size: 0.93rem; margin-bottom: 16px; }
.news-card .link-arrow { margin-top: auto; font-size: 0.9rem; align-self: flex-start; }
.news-card--row { flex-direction: row; }
.news-card--row .news-card__media { width: 38%; aspect-ratio: auto; flex: none; }
.news-card--row .news-card__body { padding: 18px 20px; }
.news-card--row .news-card__title { font-size: 1.02rem; }
.news-card--row .news-card__excerpt { display: none; }
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* 13. VEHICLES ------------------------------------------------------------- */
.vehicle-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.vehicle-toolbar select { min-width: 200px; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vehicle-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.vehicle-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.vehicle-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b1020; }
.vehicle-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.vehicle-card:hover .vehicle-card__media img { transform: scale(1.05); }
.vehicle-card__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.vehicle-card__badges .badge { background: rgba(255, 255, 255, 0.92); color: var(--c-ink); backdrop-filter: blur(6px); }
.vehicle-card__badges .badge--success { color: #15803d; }
.vehicle-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.vehicle-card__model { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.vehicle-card__variant { color: var(--c-muted); font-size: 0.9rem; }
.vehicle-card__price { margin: 18px 0 20px; }
.vehicle-card__price small { display: block; font-size: 0.78rem; color: var(--c-muted); }
.vehicle-card__price strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--c-ink); }
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--c-line-2);
  border-bottom: 1px solid var(--c-line-2);
  margin-bottom: 20px;
}
.specs div { min-width: 0; }
.specs dt { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.specs dt .icon { width: 14px; height: 14px; }
.specs dd { margin: 0; font-weight: 600; font-size: 0.92rem; color: var(--c-ink); overflow-wrap: anywhere; }
.vehicle-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.vehicle-card__actions .btn { padding-inline: 12px; }

/* Vehicle feature showcase */
.showcase {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--d-bg);
  color: #fff;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.showcase > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 17, 34, 0.7) 0%, rgba(10, 17, 34, 0.25) 55%, rgba(10, 17, 34, 0) 80%),
    linear-gradient(180deg, rgba(10, 17, 34, 0.05) 0%, rgba(10, 17, 34, 0.35) 45%, rgba(10, 17, 34, 0.94) 100%);
}
.showcase__content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: end;
  padding: clamp(24px, 5vw, 56px);
}
.showcase__content h2 { color: #fff; margin-bottom: 12px; }
.showcase__content p { color: #cbd5e1; max-width: 52ch; }
.showcase__specs {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 17, 34, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.showcase__specs div { padding: 18px 24px; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.showcase__specs div:last-child { border-right: 0; }
.showcase__specs dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 4px; }
.showcase__specs dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.showcase .btn-row { margin-top: 28px; }

/* Vehicle detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.gallery__main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-bg); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery__thumb {
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--c-blue); opacity: 1; }
.gallery__thumb:hover { opacity: 1; }
.order-card { position: sticky; top: calc(var(--header-h) + 24px); }
.spec-table { width: 100%; font-size: 0.95rem; }
.spec-table th, .spec-table td { padding: 12px 0; border-bottom: 1px solid var(--c-line-2); text-align: left; }
.spec-table th { color: var(--c-muted); font-weight: 500; width: 45%; }
.spec-table td { font-weight: 600; color: var(--c-ink); text-align: right; }

/* 14. DASHBOARD PREVIEW ---------------------------------------------------- */
.dash {
  border-radius: var(--r-xl);
  background: var(--d-surface);
  border: 1px solid var(--d-line);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  color: var(--d-text);
}
.dash__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(255, 255, 255, 0.02);
}
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(148, 163, 184, 0.3); }
.dash__url { flex: 1; text-align: center; font-size: 0.8rem; color: var(--d-muted); }
.dash__layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.dash__side { padding: 20px 14px; border-right: 1px solid var(--d-line); }
.dash__side ul { list-style: none; display: grid; gap: 2px; }
.dash__side li span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--d-muted);
}
.dash__side li.is-active span { background: rgba(37, 99, 235, 0.16); color: #fff; }
.dash__side li.is-active .icon { color: var(--c-blue-400); }
.dash__main { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 18px; min-width: 0; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px; border-radius: var(--r-md); background: var(--d-surface-2); border: 1px solid var(--d-line); min-width: 0; }
.kpi__label { font-size: 0.75rem; color: var(--d-muted); margin-bottom: 6px; }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: #fff; letter-spacing: -0.02em; white-space: nowrap; }
.kpi__delta { font-size: 0.78rem; margin-top: 4px; }
.dash__row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; }
.panel { padding: 18px; border-radius: var(--r-md); background: var(--d-surface-2); border: 1px solid var(--d-line); min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel__title { font-weight: 600; font-size: 0.92rem; color: #fff; }
.panel__range { display: flex; gap: 2px; }
.panel__range button { padding: 4px 9px; border-radius: 6px; font-size: 0.75rem; color: var(--d-muted); }
.panel__range button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: #fff; }
.dash__row > .panel:first-child { display: flex; flex-direction: column; }
.chart { position: relative; flex: 1; min-height: 220px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__tip {
  position: absolute;
  top: 0;
  pointer-events: none;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--c-ink);
  font-size: 0.78rem;
  box-shadow: var(--sh-md);
  white-space: nowrap;
  transform: translate(-50%, -110%);
  opacity: 0;
  transition: opacity 0.15s;
}
.chart__tip strong { display: block; font-size: 0.9rem; }
.chart.is-hover .chart__tip { opacity: 1; }
.activity { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.activity li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--d-line); font-size: 0.85rem; }
.activity li:last-child { border-bottom: 0; }
.activity__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--d-muted); flex: none; }
.activity__text { flex: 1; min-width: 0; }
.activity__text strong { display: block; color: #fff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity__text small { color: var(--d-muted); }
.activity__amt { font-weight: 600; white-space: nowrap; }

/* 15. FORMS & AUTH --------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 0.88rem; font-weight: 600; color: var(--c-ink); }
.field__hint { font-size: 0.8rem; color: var(--c-muted); }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid #cfd8e3;
  background: var(--c-white);
  color: var(--c-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
textarea.input { min-height: 140px; resize: vertical; }
select.input {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input::placeholder { color: #94a3b8; }
.input:hover { border-color: #94a3b8; }
.input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.field.is-invalid .input { border-color: var(--c-danger); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14); }
.field.is-valid .input { border-color: var(--c-success); }
.field__error { display: none; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--c-danger); }
.field.is-invalid .field__error { display: flex; }
.input-group { position: relative; }
.input-group .input { padding-right: 52px; }
.input-group__btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--c-muted);
}
.input-group__btn:hover { color: var(--c-ink); background: var(--c-line-2); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--c-text-2); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-blue); flex: none; }
.checkbox a { color: var(--c-blue); font-weight: 500; }
.form-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; }
.form-meta a { color: var(--c-blue); font-weight: 500; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.strength i { height: 4px; border-radius: 4px; background: var(--c-line); transition: background-color 0.3s; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--c-danger); }
.strength[data-score="2"] i:nth-child(-n+2) { background: #f59e0b; }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--c-blue); }
.strength[data-score="4"] i { background: var(--c-success); }

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  border: 1px solid;
}
.alert .icon { margin-top: 2px; }
.alert--success { background: var(--c-success-bg); border-color: #bbe5c8; color: #14532d; }
.alert--error { background: var(--c-danger-bg); border-color: #f5c2c2; color: #7f1d1d; }
.alert--info { background: var(--c-blue-50); border-color: var(--c-blue-100); color: var(--c-primary-600); }
.alert--warn { background: var(--c-warn-bg); border-color: #f6dfb2; color: #78350f; }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth__form-side { display: flex; flex-direction: column; padding: 28px var(--gutter) 40px; }
.auth__form-wrap { width: 100%; max-width: 440px; margin: auto; padding-block: 40px; }
.auth__form-wrap h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 10px; letter-spacing: -0.03em; }
.auth__form-wrap > p { color: var(--c-muted); margin-bottom: 32px; }
.auth__switch { text-align: center; margin-top: 24px; color: var(--c-muted); font-size: 0.92rem; }
.auth__switch a { color: var(--c-blue); font-weight: 600; }
.auth__visual { position: relative; background: var(--d-bg); color: #fff; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(32px, 5vw, 64px); isolation: isolate; }
.auth__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth__visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 17, 34, 0.2), rgba(10, 17, 34, 0.92) 85%); }
.auth__visual h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; max-width: 18ch; }
.auth__visual p { color: #cbd5e1; max-width: 44ch; }
.auth__visual .check-list { margin-top: 24px; color: #e2e8f0; }
.auth__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth__top a.text-sm { color: var(--c-muted); display: inline-flex; align-items: center; gap: 6px; }
.auth__top a.text-sm:hover { color: var(--c-ink); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-methods { display: grid; gap: 14px; list-style: none; }
.contact-methods li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: var(--c-white); border: 1px solid var(--c-line); }
.contact-methods .icon-tile { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-methods strong { display: block; margin-bottom: 2px; }
.contact-methods a { color: var(--c-blue); font-weight: 500; overflow-wrap: anywhere; }

.newsletter { display: flex; gap: 8px; max-width: 420px; }
.newsletter .input { min-height: 46px; background: rgba(255, 255, 255, 0.04); border-color: var(--d-line); color: #fff; border-radius: var(--r-pill); }
.newsletter .input::placeholder { color: #7c8aa5; }
.newsletter .input:focus { border-color: var(--c-blue-400); box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16); }
.newsletter-msg { font-size: 0.85rem; margin-top: 10px; min-height: 1.2em; }
.newsletter-msg.is-error { color: var(--d-down); }
.newsletter-msg.is-success { color: var(--d-up); }

/* FAQ page */
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; list-style: none; }
.faq-nav a { display: block; padding: 10px 14px; border-radius: var(--r-sm); color: var(--c-muted); font-weight: 500; }
.faq-nav a:hover, .faq-nav a.is-active { background: var(--c-bg); color: var(--c-ink); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 12px; }

/* Legal page */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }

/* 16. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--d-bg); color: var(--d-muted); padding-top: clamp(64px, 8vw, 96px); font-size: 0.93rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; padding-bottom: 56px; }
.footer-brand .logo { color: #fff; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; margin-bottom: 24px; }
.footer-col h2 { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-contact { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: #e2e8f0; }
.footer-contact:hover { color: #fff; }
.footer-risk {
  padding: 24px 0;
  border-top: 1px solid var(--d-line);
  font-size: 0.82rem;
  line-height: 1.7;
}
.footer-risk strong { color: #e2e8f0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--d-line);
  font-size: 0.85rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.footer-bottom a:hover { color: #fff; }

/* UTILITIES ---------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-md { margin-bottom: 24px; }
.center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* MOTION ------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
}

/* RESPONSIVE --------------------------------------------------------------- */
@media (max-width: 1200px) {
  .float-card--portfolio { left: -12px; }
  .float-card--plan { right: -8px; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .showcase__content { grid-template-columns: 1fr; }
  .showcase__specs { justify-self: start; }
}

@media (max-width: 1080px) {
  .nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 1024px) {
  .hero__grid, .split, .security, .contact-grid, .plan-finder, .detail { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
  .hero__visual { max-width: 640px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__item--media { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .vehicle-grid, .news-cards, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .dash__layout { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__visual { display: none; }
  .faq-layout, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .faq-nav a { border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 8px 14px; }
  .order-card { position: static; }
  .security__visual { display: none; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__points { gap: 10px 16px; }
  .float-card--portfolio { top: 12px; left: 12px; width: 180px; padding: 12px 14px; }
  .float-card--portfolio .float-card__value { font-size: 1.2rem; }
  .float-card svg.spark { height: 32px; }
  .float-card--plan { display: none; }
  .hero__grid { padding-bottom: 48px; }
  .hero__frame { aspect-ratio: 4 / 3; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--media { min-height: 360px; }
  .plans-grid, .vehicle-grid, .news-cards { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; }
  .dash__row { grid-template-columns: 1fr; }
  .security__list { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .showcase { min-height: 560px; }
  .showcase__specs { grid-template-columns: 1fr 1fr; width: 100%; }
  .showcase__specs div:nth-child(2) { border-right: 0; }
  .showcase__specs div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .news-card--row { flex-direction: column; }
  .news-card--row .news-card__media { width: 100%; aspect-ratio: 16 / 9; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .accordion__body { padding-right: 4px; }
  .search-field { min-width: 0; width: 100%; }
  .market-panel__head { padding: 12px 14px; }
  .plans-toolbar .tabs { width: 100%; }
  .modal__media { aspect-ratio: 16 / 9; }
}

@media (max-width: 480px) {
  .btn-row > .btn { flex: 1 1 100%; }
  .hero .btn-row > .btn { flex: 1 1 auto; }
  .ticker__label { display: none; }
  .dash__kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--c-line); }
  .stat:last-child { border-bottom: 0; }
  .market-summary { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vehicle-card__actions { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .newsletter { flex-direction: column; }
  .panel__head { flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .logo__word { font-size: 1rem; }
  .dash__kpis { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .drawer, .ticker, .site-footer, .modal { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Inline links inside running text */
.accordion__body a, .alert a:not(.btn):not(.link-arrow) { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
