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

html {
  /* fill-available fixes Safari's 100vh including address bar */
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  background: #050608;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  /* allow scroll on very short devices, prevent on normal ones via hero */
  overflow-x: hidden;
}

/* ──────────── REDIRECT OVERLAY ──────────── */
.redir {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 6, 8, 0.96);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.redir.show { opacity: 1; pointer-events: all; }
.redir__ring {
  width: 50px; height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #e8a23c;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.redir span {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ──────────── HERO ──────────── */
.hero {
  position: relative;
  width: 100%;
  /* fallback for browsers without dvh */
  height: 100vh;
  height: 100dvh;
  min-height: 580px; /* never collapse below this */
  display: flex; flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Real photo — night sedan on wet road */
.hero__photo {
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1555215695-3004980ad54e?auto=format&fit=crop&w=1400&q=88");
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  /* slow Ken Burns */
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translateX(0px); }
  to   { transform: scale(1.10) translateX(-18px); }
}

/* cinematic teal-orange grade */
.hero__grade {
  position: absolute; inset: 0;
  background:
    /* bottom warmth */
    radial-gradient(ellipse 100% 55% at 50% 110%, rgba(180, 90, 0, 0.52) 0%, transparent 60%),
    /* top cool */
    radial-gradient(ellipse 100% 50% at 50% -20%, rgba(10, 25, 55, 0.55) 0%, transparent 65%),
    /* overall darken */
    linear-gradient(180deg,
      rgba(5,6,8, 0.30) 0%,
      rgba(5,6,8, 0.18) 30%,
      rgba(5,6,8, 0.55) 65%,
      rgba(5,6,8, 0.94) 100%
    );
  mix-blend-mode: normal;
}

/* edge vignette */
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 110% at 50% 50%,
    transparent 40%, rgba(0,0,0,0.7) 100%);
}

/* ──────────── TOPBAR ──────────── */
.topbar {
  position: relative; z-index: 10;
  /* push down below notch / Dynamic Island / status bar */
  padding-top: max(20px, env(safe-area-inset-top, 0px) + 12px);
  padding-left: max(22px, env(safe-area-inset-left, 0px) + 16px);
  padding-right: max(22px, env(safe-area-inset-right, 0px) + 16px);
  padding-bottom: 0;
}
.topbar__pill {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px; padding: 5px 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
}

/* ──────────── BOTTOM CONTENT ──────────── */
.hero__foot {
  position: relative; z-index: 10;
  /* safe area bottom = home indicator on iPhone, nav bar on Android */
  padding-top: 0;
  padding-left: max(22px, env(safe-area-inset-left, 0px) + 16px);
  padding-right: max(22px, env(safe-area-inset-right, 0px) + 16px);
  padding-bottom: max(36px, env(safe-area-inset-bottom, 0px) + 20px);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0;
}

.label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #e8a23c;
  margin-bottom: 10px;
}

.title {
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.title em {
  font-style: normal;
  /* warm gold-ish without gradient so it's readable on photo */
  color: #ffc96b;
}

/* ──────────── NUMBERS ROW ──────────── */
.numbers {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 100%;
}
.num {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.num__val {
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 800; color: #fff;
  white-space: nowrap;
}
.num__val small { font-size: 0.72em; opacity: 0.75; }
.num__lbl {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.num__div {
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0; margin: 0 4px;
}

/* ──────────── CTA BUTTON ──────────── */
.cta {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 17px 22px;
  background: linear-gradient(160deg, #f7b731 0%, #e8820a 100%);
  color: #1c0d00;
  font-family: inherit;
  font-size: 16px; font-weight: 800;
  letter-spacing: 0.005em;
  border: none; border-radius: 16px;
  cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.22) inset,
    0 10px 50px rgba(240, 140, 10, 0.50),
    0 2px 8px rgba(0,0,0,0.4);
  transition: transform .14s ease, box-shadow .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.28) 0%, transparent 50%);
  border-radius: inherit; pointer-events: none;
}
/* glow pulse */
.cta::after {
  content: '';
  position: absolute; inset: -5px;
  border: 2px solid rgba(240, 160, 30, 0.5);
  border-radius: 21px;
  animation: glow-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 0;  transform: scale(1.06); }
}
.cta:active { transform: scale(0.97); }
.cta svg { flex-shrink: 0; }

.hint {
  margin-top: 10px;
  font-size: 11.5px; font-weight: 500;
  color: rgba(255,255,255,0.32);
  align-self: center;
  text-align: center; width: 100%;
}

/* ──────────── RESPONSIVE ──────────── */

/* very small phones: iPhone SE, 320px wide */
@media (max-width: 360px) {
  .title { font-size: 24px; margin-bottom: 16px; }
  .numbers { padding: 10px 12px; margin-bottom: 18px; }
  .num__val { font-size: 13px; }
  .num__lbl { font-size: 9px; }
  .cta { font-size: 15px; padding: 15px 18px; }
  .hint { font-size: 10.5px; }
}

/* short screens: landscape mode or compact Android */
@media (max-height: 700px) {
  .title { font-size: clamp(22px, 6vw, 32px); margin-bottom: 14px; }
  .label { margin-bottom: 7px; }
  .numbers { padding: 10px 14px; margin-bottom: 16px; }
  .num__val { font-size: 13px; }
  .cta { padding: 14px 20px; font-size: 15px; }
  .hint { margin-top: 7px; font-size: 10.5px; }
}

/* very short — landscape phones */
@media (max-height: 520px) {
  .label { display: none; }
  .title { font-size: 20px; margin-bottom: 10px; }
  .numbers { margin-bottom: 12px; }
  .hint { display: none; }
}

/* tablets and wide phones */
@media (min-width: 600px) {
  .hero__foot {
    padding-left: max(36px, env(safe-area-inset-left, 0px) + 28px);
    padding-right: max(36px, env(safe-area-inset-right, 0px) + 28px);
    padding-bottom: max(52px, env(safe-area-inset-bottom, 0px) + 32px);
    max-width: 560px;
  }
  .title { font-size: 44px; }
}
