:root {
  --bg: #0b0b1a;
  --bg-2: #12122a;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.narrow { width: min(760px, 92%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.85em 1.5em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .7); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(124, 92, 255, .9); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-sm { padding: 0.55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(11, 11, 26, .85); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .55em; font-weight: 800; font-size: 1.35rem; color: #fff; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: rgba(255,255,255,.8); font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, #2a1f6b 0%, transparent 60%), var(--bg);
  padding: 150px 0 110px;
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.glow-1 { width: 420px; height: 420px; background: #7c5cff; top: 10%; left: -120px; animation: float 12s ease-in-out infinite; }
.glow-2 { width: 380px; height: 380px; background: #22d3ee; bottom: -140px; right: 10%; animation: float 14s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, -30px); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.pill { display: inline-block; padding: .4em 1em; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.6rem; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; color: rgba(255,255,255,.65); font-size: .9rem; font-weight: 500; }

.stack { position: relative; height: 440px; }
.stack-card {
  position: absolute; width: 78%; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.1);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.stack-card.c1 { top: 0; left: 0; transform: rotate(-4deg); z-index: 1; }
.stack-card.c2 { top: 90px; right: 0; transform: rotate(3deg); z-index: 2; }
.stack-card.c3 { top: 200px; left: 8%; transform: rotate(-1deg); z-index: 3; }
.stack:hover .c1 { transform: rotate(-6deg) translate(-14px, -10px); }
.stack:hover .c2 { transform: rotate(5deg) translate(14px, -4px); }
.stack:hover .c3 { transform: rotate(0) translateY(14px); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--brand); margin-bottom: .8rem; }
.eyebrow.light { color: var(--brand-2); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.product-card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .preview { padding: 1.4rem 1.4rem 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, #fff), #fff); }
.product-card .body { padding: 1.4rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product-tag { display: inline-flex; align-items: center; gap: .4em; font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.product-card h3 { font-size: 1.4rem; margin: .4rem 0 .3rem; }
.product-card .tagline { color: var(--muted); margin: 0 0 1rem; }
.product-card ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.product-card li { position: relative; padding-left: 1.6em; font-size: .94rem; }
.product-card li::before {
  content: "✓"; position: absolute; left: 0; top: .05em; width: 1.15em; height: 1.15em; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent); font-size: .75rem; font-weight: 800;
  display: grid; place-items: center;
}
.audience { font-size: .85rem; color: var(--muted); margin: auto 0 1.2rem; padding-top: .4rem; }
.card-actions { display: flex; gap: .6rem; }
.card-actions .btn { flex: 1; padding: .7em 1em; font-size: .92rem; }

/* ---------- Mock app UIs ---------- */
.mock { background: #fff; border-radius: 12px 12px 0 0; overflow: hidden; font-size: 10px; color: #334155; box-shadow: 0 -2px 30px -12px rgba(15,23,42,.25); }
.stack .mock { border-radius: 14px; }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 8px; flex: 1; height: 14px; border-radius: 7px; background: #fff; font-size: 8px; color: #94a3b8; padding: 0 8px; line-height: 14px; }
.mock-body { padding: 12px; }
.sk { background: #e2e8f0; border-radius: 4px; height: 7px; }
.mock-hero { border-radius: 8px; padding: 14px; color: #fff; margin-bottom: 10px; }
.mock-hero b { display: block; font-size: 13px; margin-bottom: 4px; }
.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-prod { border: 1px solid #e2e8f0; border-radius: 6px; padding: 5px; }
.mock-prod .img { height: 38px; border-radius: 4px; margin-bottom: 5px; }
.mock-prod .price { font-weight: 800; color: #0f172a; font-size: 9px; margin-top: 4px; }
.mock-inv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-doc { border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px; }
.inv-doc h6 { margin: 0 0 6px; font-size: 12px; color: #0f172a; letter-spacing: .05em; }
.inv-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed #e2e8f0; }
.inv-total { display: flex; justify-content: space-between; font-weight: 800; color: #0f172a; padding-top: 5px; font-size: 11px; }
.inv-form { display: grid; gap: 6px; align-content: start; }
.inv-form .in { height: 18px; border: 1px solid #e2e8f0; border-radius: 4px; padding: 0 6px; line-height: 17px; color: #94a3b8; font-size: 8px; }
.inv-form .go { height: 20px; border-radius: 4px; color: #fff; font-weight: 700; text-align: center; line-height: 20px; }
.mock-dash { display: grid; grid-template-columns: 52px 1fr; gap: 10px; }
.dash-side { display: grid; gap: 6px; align-content: start; }
.dash-side .sk:first-child { height: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.kpi { border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px; }
.kpi b { display: block; font-size: 13px; color: #0f172a; }
.miles { display: grid; gap: 6px; }
.mile { display: grid; grid-template-columns: 60px 1fr 26px; align-items: center; gap: 6px; }
.bar { height: 7px; border-radius: 4px; background: #f1f5f9; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; }

/* ---------- Demos ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.tab {
  border: 1px solid var(--line); background: #fff; padding: .7em 1.3em; border-radius: 999px;
  font-weight: 700; font-family: inherit; font-size: .95rem; cursor: pointer; color: var(--muted); transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.demo-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.8rem; animation: fadeUp .5s ease; }
.demo-panel[hidden] { display: none; }
.video-wrap { border-radius: var(--radius); overflow: hidden; background: #0b0b1a; aspect-ratio: 16 / 10; box-shadow: var(--shadow); position: relative; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 2rem; background: radial-gradient(600px 300px at 30% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent), #0b0b1a; }
.video-placeholder .play { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 1rem; }
.video-placeholder p { color: rgba(255,255,255,.7); margin: .3rem 0 0; font-size: .95rem; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.shot { margin: 0; cursor: zoom-in; }
.shot .frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: #f1f5f9; transition: transform .25s, box-shadow .25s; }
.shot:hover .frame { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot figcaption { font-size: .85rem; color: var(--muted); margin-top: .45rem; font-weight: 500; }
.shot-fallback { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: .8rem; font-size: .8rem; font-weight: 600; color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, #fff), #fff); }
.shot-fallback span { display: block; font-size: 1.6rem; margin-bottom: .2rem; }
.demo-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.6rem; border-radius: var(--radius); background: #f8fafc; border: 1px solid var(--line); }
.demo-cta p { margin: 0; font-weight: 600; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Register ---------- */
.section-register { background: radial-gradient(900px 500px at 0% 0%, #2a1f6b 0%, transparent 60%), var(--bg); color: #fff; }
.register-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
.register-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
.register-copy p { color: rgba(255,255,255,.72); font-size: 1.08rem; }
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.checklist li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(34, 211, 238, .18); color: var(--brand-2); font-weight: 800; margin-right: .7em; font-size: .8rem; }
.card { background: #fff; color: var(--text); border-radius: 22px; padding: 2rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  font: inherit; font-weight: 400; padding: .75em .95em; border: 1.5px solid var(--line); border-radius: 12px; background: #f8fafc; transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(124, 92, 255, .12); }
.form .invalid { border-color: #ef4444 !important; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .88rem; font-weight: 600; margin-bottom: .5rem; }
fieldset.invalid legend { color: #ef4444; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: .4em; padding: .55em 1em; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .2s; user-select: none; }
.chip input:checked + span { border-color: var(--brand); background: rgba(124, 92, 255, .08); color: var(--brand); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .6rem !important; font-weight: 500 !important; color: var(--muted); }
.consent input { margin-top: .3em; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; font-size: .92rem; min-height: 1.2em; text-align: center; }
.form-status.ok { color: #059669; }
.form-status.err { color: #dc2626; }
.success { text-align: center; padding: 2rem 1rem; }
.success .big { font-size: 3rem; }
.success h3 { font-size: 1.5rem; }
.success p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.4rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 1.1rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: rgba(255,255,255,.6); padding: 2.2rem 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 15, .9); display: grid; place-items: center; padding: 4vh 4vw; animation: fadeIn .2s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox-media img, .lightbox-media .shot-fallback { max-height: 80vh; width: 100%; object-fit: contain; border-radius: 12px; }
.lightbox-media .shot-fallback { aspect-ratio: 16 / 10; font-size: 1.2rem; border-radius: 12px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 1rem; font-weight: 600; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }

/* ---------- Motion ---------- */
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .register-inner, .demo-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .stack { height: 380px; max-width: 560px; }
  .product-grid, .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 11, 26, .97); padding: .5rem 4% 1.2rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links .btn { margin-top: .8rem; border: 0; }
  .nav { background: rgba(11, 11, 26, .9); backdrop-filter: blur(12px); }
  .section { padding: 72px 0; }
  .field-row { grid-template-columns: 1fr; }
  .stack { height: 300px; }
  .stack-card { width: 88%; }
  .stack-card.c2 { top: 70px; }
  .stack-card.c3 { top: 150px; left: 4%; }
  .card { padding: 1.4rem; }
  .shots { grid-template-columns: 1fr 1fr; gap: .7rem; }
}
.video-placeholder[hidden] { display: none; }
.captcha { display: flex; justify-content: center; }
.captcha[hidden] { display: none; }
.consent a { color: var(--brand); text-decoration: underline; }
.footer-links { display: flex; gap: 1.4rem; }

/* ---------- Simple content pages (privacy) ---------- */
.page-hero { background: var(--bg); color: #fff; padding: 130px 0 60px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.7); margin: 0; }
.prose { padding: 60px 0 90px; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p, .prose li { color: #334155; }
.prose a { color: var(--brand); text-decoration: underline; }
.signin-link { display: block; text-align: center; margin-top: .9rem; font-size: .88rem; font-weight: 600; color: var(--accent); }
.signin-link:hover { text-decoration: underline; }
