:root {
  --bg: #05071a;
  --bg-2: #0a0e26;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef0ff;
  --muted: #a3a9cc;
  --gold: #f5c56b;
  --gold-2: #ffe3a3;
  --violet: #8b7cff;
  --radius: 22px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .4em; font-weight: 600; }
p { margin: 0 0 1em; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 500; }
.center { text-align: center; }
.small { font-size: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font: 600 16px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; box-shadow: 0 6px 30px rgba(245, 197, 107, .35); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(245, 197, 107, .5); }
.btn.ghost { border-color: var(--border); background: rgba(255, 255, 255, .05); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left)); transition: background .3s, backdrop-filter .3s; }
.top.solid { background: rgba(5, 7, 26, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--text); }
@media (max-width: 820px) { .links { display: none; } .top .btn { margin-left: auto; } }

/* ---------- the night scene + story ---------- */
.story { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; z-index: 0; }
.stage canvas { width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, transparent 55%, rgba(3, 4, 14, .55) 100%), linear-gradient(to bottom, rgba(5,7,26,.55), transparent 28%); }
@media (min-aspect-ratio: 23/20) and (min-width: 700px) { .vignette { background: radial-gradient(ellipse at 50% 60%, transparent 55%, rgba(3, 4, 14, .55) 100%), linear-gradient(to bottom, rgba(5,7,26,.55), transparent 28%), linear-gradient(90deg, rgba(5,7,26,.55), transparent 50%); } }
.panel { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; padding: 0 max(24px, 6vw); }

.hero { flex-direction: column; justify-content: flex-start; padding-top: clamp(110px, 16vh, 180px); }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 600; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold-2), var(--gold), #ff9a6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: #d3d7f2; max-width: 480px; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.try { position: absolute; left: max(24px, 6vw); right: max(24px, 6vw); bottom: 34px; display: flex; flex-direction: column; align-items: center; }
.try-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips button { font: 500 14px var(--font); color: var(--text); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(10, 14, 38, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chips button:hover { border-color: rgba(255,255,255,.3); }
.chips button.on { background: var(--gold); color: #1a1405; border-color: transparent; }
.scroll-hint { display: none; }

.note { align-items: center; }
.note.right { justify-content: flex-end; }
.glass { background: rgba(10, 14, 38, .55); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.note .card { padding: 26px 30px; max-width: 360px; margin-top: -26vh; opacity: .25; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.note.active .card { opacity: 1; transform: none; }
.note .card h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 8px; }
.note .card p:last-child { margin: 0; color: #c9cdea; }
.date { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px !important; }
.note .card.wide { max-width: 560px; }
.finale { justify-content: center; }

.calendar { position: absolute; right: max(18px, 3vw); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .5s; }
.calendar.show { opacity: 1; }
.calendar span { font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.35); text-align: right; transition: color .3s, transform .3s; }
.calendar span.on { color: var(--gold-2); transform: translateX(-4px); }

@media (max-width: 700px) {
  .hero { padding-top: 96px; }
  .note, .note.right { justify-content: center; align-items: flex-start; padding-top: 22vh; }
  .note .card { margin-top: 0; max-width: 100%; }
  .calendar { display: none; }
  .try { bottom: 22px; }
}

/* ---------- regular content ---------- */
.content { position: relative; z-index: 2; background: linear-gradient(to bottom, rgba(5,7,26,0), var(--bg) 160px); padding-top: 120px; }
.section { max-width: 1140px; margin: 0 auto; padding: 80px max(24px, 4vw); }
.title { font-size: clamp(32px, 4vw, 50px); margin-bottom: 26px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.step { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.step::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245,197,107,.18), transparent 70%); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); margin: 0; }

.app { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.features li { padding-left: 30px; position: relative; color: var(--muted); }
.features li strong { color: var(--text); font-weight: 600; }
.features li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.phones { position: relative; height: 620px; }
.phone { position: absolute; margin: 0; width: 270px; border-radius: 42px; padding: 10px; background: #0d1028; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 80px rgba(139,124,255,.12); }
.phone img { border-radius: 33px; width: 100%; height: auto; }
.phone.front { left: 4%; top: 30px; transform: rotate(-4deg); z-index: 1; }
.phone.back { right: 2%; top: 0; transform: rotate(6deg); opacity: .9; }

.photo { position: relative; padding: 0; margin: 40px auto; max-width: 1200px; border-radius: 28px; overflow: hidden; }
.photo img { width: 100%; height: auto; }
.photo-cap { position: absolute; inset: auto 0 0; padding: 40px; background: linear-gradient(to top, rgba(3,4,14,.92), transparent); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.photo-cap h2 { font-size: clamp(24px, 3vw, 38px); max-width: 620px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tile h3 { font-size: 20px; color: var(--gold-2); }
.tile p { color: var(--muted); margin: 0; font-size: 16px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 26px; color: var(--gold); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

.quote { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.quote-copy p { color: var(--muted); }
.contact { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact .who { color: var(--text); font-weight: 600; }
.contact a { color: var(--gold-2); text-decoration: none; font-weight: 500; }
.form { padding: 30px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea { font: 16px var(--font); color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.09); }
.form select option { background: var(--bg-2); }
.form .invalid { border-color: #ff6b6b; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.form label.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 15px; }
.form-msg.ok { color: #7dffb0; }
.form-msg.err { color: #ff9a9a; }

.foot { border-top: 1px solid rgba(255,255,255,.06); padding: 40px max(24px, 4vw) 50px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); text-align: center; position: relative; z-index: 2; background: var(--bg); }
.foot p { margin: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .phones { height: 540px; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone { width: 230px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .quote { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 16px; }
  .grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .phones { height: 470px; }
  .phone { width: 200px; border-radius: 34px; padding: 8px; }
  .phone img { border-radius: 27px; }
  .phone.front { left: 0; }
  .phone.back { right: 0; }
  .photo { border-radius: 0; margin: 20px 0; }
  .photo-cap { position: static; background: var(--bg-2); padding: 24px 16px; }
  .form { padding: 20px; }
  .panel { padding-left: 16px; padding-right: 16px; }
  .try { left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .note .card { opacity: 1; transform: none; transition: none; }
}
