/* ---------- Design Tokens ---------- */
:root{
  --bg:#070b13;
  --fg:#eaf0ff;
  --muted:#a5b0c2;
  --accent:#6ee7ff;
  --accent-2:#8b5cf6;
  --radius:1.25rem;
  --maxw:1200px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

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

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Hero Layout ---------- */
.hero {
  position: relative;
  min-height: 100svh; /* dynamic viewport on mobile */
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video, .hero__image {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero__image { display: none; }

.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 12% 12%, rgba(0,0,0,.55), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 40%, rgba(0,0,0,.6));
}

.hero__content {
  position: relative; z-index: 1; min-height: 100%;
  display: grid; align-content: center; justify-items: start;
  gap: 1rem; padding: clamp(16px, 4vw, 48px);
  max-width: var(--maxw); margin: 0 auto;
}

h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.05; margin: 0;
  letter-spacing: .2px;
  background: linear-gradient(135deg, var(--fg), #dbe7ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 10px rgba(255,255,255,.08);
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 60ch;
}

.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  appearance: none; border: 0; cursor: pointer;
  padding: .9rem 1.15rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #021016; box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255,255,255,.08);
  color: var(--fg);
  backdrop-filter: saturate(140%) blur(6px);
}
.btn:active { transform: translateY(1px); }

.trust { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; opacity: .9; }
.trust img { height: 28px; filter: grayscale(1) contrast(1.1); opacity: .95; }

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .hero__video { display: none; }
  .hero__image { display: block; }
}

/* Small tweaks */
@media (max-width: 640px){
  .lead { max-width: 50ch; }
}
