:root {
  --bg: #0D0E10; --bg-2: #131418; --card: #17181C; --line: #24262B; --line-2: #31343A;
  --text: #ECEDEF; --muted: #A2A7AF; --dim: #737882; --accent: #FF6B35; --accent-hi: #FF8456; --ink: #1A0A03; --gold: #E8C26A;
  --h: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --b: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--b); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--h); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 18px; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.dim { color: var(--dim); }
.small { font-size: 14px; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #1F2126; color: var(--text); font: 600 15px var(--b); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s; }
.btn:hover { background: #272A30; border-color: #41454D; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.big { height: 50px; padding: 0 24px; font-size: 16px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1180px) / 2)); background: rgba(13, 14, 16, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--h); text-decoration: none; }
.brand img { border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a:not(.btn), .nav .link { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover, .nav .link:hover { color: var(--text); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.eyebrow { color: var(--accent-hi); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
h1 { font-size: clamp(38px, 5vw, 62px); }
.lead { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 36em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.meta { color: var(--dim); font-size: 14px; margin-top: 14px; }
.hero-demo { margin: 0; }
.hero-demo figcaption { color: var(--dim); font-size: 13px; margin-top: 10px; }
.vs, .ba { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .5); touch-action: none; user-select: none; }
.vs video, .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vs-before, .ba-before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.vs-handle, .ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; pointer-events: none; }
.vs-handle span, .ba-handle span { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .4); }
.vs-handle span::after, .ba-handle span::after { content: ""; position: absolute; top: 50%; left: -15px; width: 32px; height: 32px; margin-top: -16px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  background-image: linear-gradient(90deg, transparent 9px, #222 9px, #222 11px, transparent 11px, transparent 21px, #222 21px, #222 23px, transparent 23px); }
.tag { position: absolute; top: 12px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 5px; background: rgba(13, 14, 16, .78); color: var(--text); }
.tag.l { left: 12px; } .tag.r { right: 12px; }

.strip { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 26px 0; border-block: 1px solid var(--line); color: var(--dim); font-size: 15px; }
.strip b { color: var(--muted); font-weight: 600; }

/* features */
.features { padding: 84px 0 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.grid article { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.grid i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: #24170F; color: var(--accent-hi); margin-bottom: 16px; }
.grid i svg { width: 21px; height: 21px; }
.grid p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.compare { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; padding: 64px 0; }
.compare-copy p { color: var(--muted); margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--muted); }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }

.how { padding: 56px 0; text-align: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px auto 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 6px; }
.steps li::before { content: counter(s); font: 700 15px var(--h); color: var(--ink); background: var(--accent); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.steps span { color: var(--muted); font-size: 15px; }
.shot { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .5); margin: 0 auto; }

.bao-sec { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 60px 0; }
.bao-sec p { color: var(--muted); margin-top: 14px; max-width: 40em; }
.bao-stage { position: relative; height: 200px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; }
.bao-stage .bao-sprite, .bao-mini .bao-sprite { image-rendering: pixelated; width: 144px; height: 144px; cursor: pointer; }
.bao-stage .bao-bubble { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: max-content; max-width: 260px; }
.bao-bubble { position: relative; padding: 9px 30px 9px 12px; background: #F4EFE6; color: #1C1A17; border-radius: 8px; font-size: 14px; line-height: 1.45; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.bao-text { margin: 0; }
.bao-actions:empty { display: none; }
.bao-x { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #7A7266; cursor: pointer; }
.bao-x svg { width: 12px; height: 12px; stroke-width: 2.2; }
.bao-mini { display: flex; justify-content: center; }
.bao-mini .bao-sprite { width: 96px; height: 96px; }
.bao-mini .bao-bubble { display: none; }

/* pricing */
.pricing { padding: 72px 0; text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 36px auto 0; text-align: left; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.plan.pro { border-color: #6B3A22; background: linear-gradient(180deg, #1D1612, var(--card) 60%); }
.plan h3 { display: flex; align-items: center; gap: 10px; }
.badge { font: 600 12px var(--b); color: #2A1F06; background: var(--gold); padding: 2px 8px; border-radius: 4px; }
.price { font: 700 44px var(--h); margin: 4px 0 8px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; flex: 1; color: var(--muted); font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 11px; height: 6px; border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.plan li.dim::before { border-color: var(--dim); }
.plan b { color: var(--text); font-weight: 600; }
.fine { color: var(--dim); font-size: 13px; margin-top: 10px; }

.faq { padding: 40px 0 72px; max-width: 820px; }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--dim); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 10px; }

.help-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; }
.help-box p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.help-box b { color: var(--text); font-weight: 600; }
@media (max-width: 700px) { .help-box { flex-direction: column; align-items: stretch; } }
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0; }
.ad-label { color: var(--dim); font-size: 11px; }

.foot { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.credits { grid-column: 1 / -1; font-size: 12.5px; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5, 6, 7, .7); padding: 16px; }
.sheet { position: relative; width: min(520px, 100%); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 26px; display: grid; gap: 12px; }
.sheet.center { text-align: center; justify-items: center; }
.sheet p { color: var(--muted); }
.x { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--dim); font-size: 16px; cursor: pointer; }
.key { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #0B0C0E; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; }
.key code { flex: 1; font: 600 16px ui-monospace, Consolas, monospace; letter-spacing: .04em; color: var(--gold); }
.sheet ol { margin: 0; padding-left: 20px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: #F4EFE6; color: #1C1A17; padding: 10px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }

/* page (thanks / privacy) */
.page { padding: 64px 0; max-width: 760px; }
.page h1 { font-size: clamp(30px, 4vw, 44px); }
.page p, .page li { color: var(--muted); }
.page ol { display: grid; gap: 14px; padding-left: 22px; margin: 26px 0; }
.page b { color: var(--text); }

@media (max-width: 900px) {
  .hero, .compare, .bao-sec { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 40px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .foot { grid-template-columns: 1fr; }
  .bao-sec { justify-items: start; }
  .bao-stage { width: 100%; }
}
