:root {
  --bg: #08090b;
  --bg-alt: #0e1014;
  --card: #13161b;
  --line: #222732;
  --text: #f1f4f8;
  --muted: #98a2b3;
  --accent: #4aa8ff;
  --accent-ink: #04111f;
  --danger: #ff6b6b;
  --radius: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 17px;
  padding-bottom: 76px; /* room for sticky mobile bar */
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 7.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 14px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 34px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.inline-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.inline-link:hover { text-decoration: underline; }

/* ---- header: transparent over the video, solid once you scroll ---- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease;
}
.topbar.scrolled {
  background: rgba(8, 9, 11, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.topbar-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; min-height: 72px; }
.brand { font-weight: 900; font-size: 1.35rem; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; color: #fff; }
.brand span { color: var(--accent); margin-left: 4px; }
.nav { display: none; gap: 38px; }
.nav a { text-decoration: none; color: #fff; font-weight: 600; font-size: 1.02rem; opacity: 0.92; transition: opacity .2s; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.topbar-cta { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #73bcff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.95rem; }
.btn-white { background: #fff; color: #0a0b0d; }
.btn-white:hover { background: #e6ebf1; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 0.98rem; letter-spacing: 0.14em; text-transform: uppercase; gap: 14px; }
.btn .arrow { font-size: 1.25em; line-height: 1; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- hero: full-screen slow cinematic video ---- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; background: #050608;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(110px + env(safe-area-inset-top, 0px)) 0 48px;
}
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background: #050608 url(/media/hero-poster-sm.jpg) 70% center / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
  filter: brightness(1.25) contrast(1.05);
  opacity: 0; transition: opacity 1.8s ease;
  animation: hero-drift 28s ease-in-out infinite alternate;
}
.hero-video.is-playing { opacity: 1; }
@keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.08) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 70%, rgba(8,9,11,0.92) 100%);
}
.hero-inner { position: relative; }
.hero-copy { max-width: 1000px; }
.hero-eyebrow { color: #fff; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 6.8rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.55; color: rgba(255,255,255,0.9); max-width: 600px; margin: 26px 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.hero-call { color: #fff; opacity: 0.85; font-weight: 600; text-decoration: none; }
.hero-call:hover { opacity: 1; text-decoration: underline; }
.hero-foot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 48px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 24px 12px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rating-badge .score { font-size: 1.5rem; font-weight: 700; color: #fff; }
.rating-text { display: flex; flex-direction: column; line-height: 1.25; font-size: 0.92rem; color: #fff; }
.hero-tags { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin: 0; }
.stars { color: #ffc94a; letter-spacing: 2px; }

/* ---- sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(74, 168, 255, 0.55); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: none; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(74, 168, 255, 0.14); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.chips { list-style: none; padding: 0; margin: 24px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 20px; font-weight: 600; }

/* ---- quote form ---- */
.quote-wrap { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
.form { display: grid; gap: 16px; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #0a0c0f; color: var(--text); font: inherit; font-size: 16px; /* 16px stops iOS zoom */
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 168, 255, 0.2); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.err { color: var(--danger); font-size: 0.88rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.form-err { text-align: center; margin: 10px 0 0; font-size: 0.95rem; }
.fine { color: var(--muted); font-size: 0.78rem; margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { background: var(--card); border: 1px solid var(--accent); border-radius: 18px; padding: 34px 24px; text-align: center; }
.success h3 { font-size: 1.6rem; color: var(--accent); }
.success p { color: #c3cad6; margin: 0; }
[hidden] { display: none !important; }

/* ---- faq ---- */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.5rem; font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* ---- footer + sticky bar ---- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: grid; gap: 24px; grid-template-columns: 1fr; }
.footer p { margin-bottom: 4px; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  transform: translateY(110%); transition: transform .35s ease;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 9, 11, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form { grid-template-columns: 1fr 1fr; padding: 30px; }
  .field-full { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
}
.sticky-cta.show { transform: none; }
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto 1fr; min-height: 92px; }
  .nav { display: flex; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .quote-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
  .hero-media { background-image: url(/media/hero-poster.jpg); }
  .hero { padding-bottom: 150px; }
  .hero-copy { margin-left: clamp(0px, 18vw, 280px); }
  .hero-eyebrow { font-size: 0.85rem; letter-spacing: 0.32em; margin-bottom: 24px; }
  .hero-foot { position: absolute; left: 0; right: 0; bottom: 40px; margin: 0 auto; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-video { display: none; }
}
