/* ============================================================
   PRESTIGE BIMMER — Design System
   Deep BMW-blue tech / performance energy
   ============================================================ */

:root {
  /* ---- Surfaces (near-black, blue-tinted) ---- */
  --bg:        #06080c;
  --bg-2:      #0a0e14;
  --surface:   #0f141d;
  --surface-2: #141b26;
  --surface-3: #1a2330;
  --line:      rgba(150, 175, 210, 0.10);
  --line-2:    rgba(150, 175, 210, 0.18);

  /* ---- Text ---- */
  --text:       #eef3fa;
  --text-dim:   #9aa7b9;
  --text-faint: #586374;

  /* ---- BMW-blue accent system ---- */
  --blue:        #1f6dff;
  --blue-bright: #4d8bff;
  --blue-deep:   #0a44c4;
  --blue-glow:   rgba(31, 109, 255, 0.45);
  --blue-soft:   rgba(31, 109, 255, 0.12);
  --cyan:        #5fd0ff;

  /* status */
  --green: #38d39f;
  --amber: #f5b14c;
  --red:   #ff5e6b;

  /* ---- Type ---- */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Layout ---- */
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 14px;
  --radius-lg: 22px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

/* ambient page background — subtle blue aurora + grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(31,109,255,0.16), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(95,208,255,0.06), transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(150,175,210,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,175,210,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

#root { position: relative; z-index: 1; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }

.display-xl { font-size: clamp(48px, 8.5vw, 128px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.92; }
.display-l  { font-size: clamp(36px, 5.5vw, 76px); letter-spacing: -0.035em; line-height: 0.98; }
.display-m  { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -0.03em; }

.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--text-dim); line-height: 1.6; max-width: 56ch; text-wrap: pretty; }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 180px); position: relative; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform .4s var(--ease-out), background .3s, box-shadow .4s, border-color .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .4s var(--ease-out); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 30px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 14px 44px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--blue); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ============================================================
   CHIP / PILL
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: all .3s var(--ease-out);
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 6px 20px -8px var(--blue-glow); }

/* status badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 6px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-available { color: var(--green); background: rgba(56,211,159,0.10); }
.badge-reserved  { color: var(--amber); background: rgba(245,177,76,0.10); }
.badge-sold      { color: var(--red);   background: rgba(255,94,107,0.10); }

/* ============================================================
   IMAGE PLACEHOLDER (striped, labeled)
   ============================================================ */
.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(150,175,210,0.045) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 7px 13px;
  border: 1px dashed var(--line-2);
  border-radius: 7px;
  background: rgba(6,8,12,0.4);
  backdrop-filter: blur(4px);
  text-align: center;
  max-width: 80%;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img::after { display: none; }

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].in { transform: none; }

[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].in { transform: none; }

[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-title .hl, .hero-lede, .hero-actions, .hero-stats { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-photo { animation: none !important; }
  .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 100px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a3848; }

/* utility */
.text-dim { color: var(--text-dim); }
.text-blue { color: var(--blue-bright); }
.divider { height: 1px; background: var(--line); border: 0; }
.fade-up-stagger > * { opacity: 0; transform: translateY(20px); }
