/* ------------------------------------------------------------------
   Orbit — darker Polestar-inspired design.
   Visual hierarchy is enforced through contrast tiers:
     tier 1 (most important): --fg       near-white on near-black
     tier 2                : --fg-2     light gray
     tier 3 (least)        : --fg-3     muted gray
------------------------------------------------------------------ */
:root {
  --bg:        #0a0a0b;
  --bg-2:      #111114;
  --bg-3:      #16171a;
  --line:      #22242a;
  --fg:        #f4f4f5;   /* tier 1 — headlines, primary CTA text */
  --fg-2:      #b8bac0;   /* tier 2 — body */
  --fg-3:      #6b6d75;   /* tier 3 — meta, footer, secondary nav */
  --accent:    #d4f24a;   /* Polestar-esque electric yellow-green */
  --accent-dim:#9ab038;
  --radius:    2px;
  --maxw:      1360px;
  --pad-x:     clamp(20px, 4vw, 56px);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 48px;
  padding: 20px var(--pad-x);
  background: rgba(10,10,11,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--fg);
}
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-actions { display: flex; gap: 20px; align-items: center; }

/* hierarchy in nav itself */
.primary-link   { color: var(--fg);   font-weight: 500; font-size: 14px; letter-spacing: 0.02em; }
.secondary-link { color: var(--fg-2); font-weight: 400; font-size: 14px; }
.tertiary-link  { color: var(--fg-3); font-weight: 400; font-size: 13px; }
.primary-link:hover, .secondary-link:hover, .tertiary-link:hover { color: var(--fg); }

/* ============ CTA ============ */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 500; font-size: 14px; letter-spacing: 0.04em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.cta-sm { padding: 10px 18px; font-size: 13px; }
.cta-primary { background: var(--fg); color: var(--bg); }
.cta-primary:hover { background: var(--accent); transform: translateY(-1px); }
.cta-ghost { color: var(--fg); border: 1px solid var(--line); }
.cta-ghost:hover { border-color: var(--fg); }

/* ============ HERO — tier 1, maximum visual weight ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  padding: 120px var(--pad-x) 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 70% 40%, #2a2d35 0%, transparent 60%),
    linear-gradient(180deg, #0f1013 0%, #06070a 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(212,242,74,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(212,242,74,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 60% 50%, #000 40%, transparent 80%);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 75% 70%, rgba(212,242,74,0.08), transparent 50%);
}
.hero-content { max-width: 820px; }
.eyebrow {
  color: var(--accent);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  margin-bottom: 24px;
}
.display {
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.96; letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 32px;
}
.display-dim { color: var(--fg-3); font-weight: 300; }
.lead {
  color: var(--fg-2);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 40px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-offer {
  color: var(--fg-3);
  font-size: 13px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 420px;
}
.hero-offer strong { color: var(--fg); font-weight: 600; }

/* ============ LINEUP ============ */
.lineup { padding: 120px var(--pad-x); max-width: var(--maxw); margin: 0 auto; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--fg);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: var(--fg-3); transform: translateY(-4px); }
.card-feature { border-color: #2d3140; }
.card-feature:hover { border-color: var(--accent); }

.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1c22 0%, #0e0f13 100%);
  position: relative;
}
.card-media::after {
  content: attr(data-model);
  position: absolute;
  bottom: 16px; right: 20px;
  font-size: 120px; font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1; letter-spacing: -0.05em;
}
.card-feature .card-media {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(212,242,74,0.12), transparent 60%),
    linear-gradient(135deg, #1a1c22 0%, #0e0f13 100%);
}

.card-body { padding: 28px; }
.card-title { font-size: 24px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.card-sub   { font-size: 14px; color: var(--fg-2); margin-bottom: 20px; }
.card-meta  { font-size: 13px; color: var(--fg-3); margin-bottom: 20px; }
.card-meta strong { color: var(--fg); font-weight: 600; }
.card-link {
  font-size: 14px; font-weight: 500; color: var(--fg);
  border-bottom: 1px solid var(--fg-3);
  padding-bottom: 3px;
  transition: border-color .2s ease;
}
.card-feature .card-link { color: var(--accent); border-bottom-color: var(--accent-dim); }
.card-link:hover { border-bottom-color: var(--fg); }

/* ============ PILLARS — tier 2 ============ */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: var(--maxw); margin: 0 auto;
  padding: 80px var(--pad-x);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 1px; background: var(--line);
}
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--bg); padding: 56px 40px; }
.pillar-kicker {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 24px;
}
.pillar-stat {
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  color: var(--fg);
  margin-bottom: 16px;
}
.pillar-stat .unit {
  font-size: 0.4em; color: var(--fg-3); font-weight: 400;
  margin-left: 6px; letter-spacing: 0;
}
.pillar-desc { color: var(--fg-2); font-size: 14px; line-height: 1.5; }

/* ============ SUPPORT — tier 3 ============ */
.support { padding: 80px var(--pad-x); max-width: var(--maxw); margin: 0 auto; }
.support-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 800px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
.support-tile {
  background: var(--bg);
  padding: 40px 32px;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: background .25s ease;
}
.support-tile:hover { background: var(--bg-2); }
.tile-kicker {
  color: var(--fg-3); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 12px;
}
.tile-title { color: var(--fg-2); font-size: 18px; font-weight: 500; }
.support-tile:hover .tile-title { color: var(--fg); }

/* ============ FOOTER — lowest tier ============ */
.foot {
  padding: 80px var(--pad-x) 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg-3);
  font-size: 13px;
}
.foot-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  max-width: var(--maxw); margin: 0 auto 60px;
}
@media (max-width: 800px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } }
.foot-head {
  color: var(--fg-2);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 20px;
}
.foot-cols a {
  display: block; padding: 6px 0;
  color: var(--fg-3);
  transition: color .15s ease;
}
.foot-cols a:hover { color: var(--fg); }
.foot-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 12px;
}

/* hide nav-links on small screens */
@media (max-width: 780px) {
  .nav-links { display: none; }
}
