:root {
  --bg: #ffffff; --soft: #f6f9fc; --card: #ffffff; --ink: #0a2540; --mute: #425466;
  --line: #e3e8ee; --accent: #635bff; --accent2: #00d4ff; --err: #b42318; --ok: #1a7f37;
  --shadow: 0 30px 60px -12px rgba(50,50,93,.18), 0 18px 36px -18px rgba(0,0,0,.22);
  --grad: linear-gradient(120deg, #ff6ec4 0%, #7873f5 30%, #00d4ff 60%, #ffcb57 90%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
       font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 1.2rem; font-weight: 800; }
h2.big { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; margin: .2rem 0 1.4rem; scroll-margin-top: 84px; }
.small { font-size: 1rem; color: var(--mute); }
.eyebrow { margin: 0 0 .4rem; font-weight: 700; font-size: .95rem; color: var(--accent); }
.wrap1 { max-width: 1120px; margin: 0 auto; padding: 2rem 16px 1rem; }
[id] { scroll-margin-top: 70px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.72);
          backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
          border-bottom: 1px solid rgba(227,232,238,.7); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: .7rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.topbar nav { display: flex; align-items: center; gap: 1.2rem; }
.topbar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topbar nav a.navcta { background: var(--ink); color: #fff; padding: .4rem .9rem; border-radius: 999px; }
@media (max-width: 560px) { .topbar nav a:not(.navcta) { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; z-index: -1; left: -10%; right: -10%; top: -45%; height: 95%;
           background: var(--grad); background-size: 300% 300%; transform: skewY(-9deg);
           animation: flow 14s ease infinite; filter: saturate(1.1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 55%, #fff 100%); }
@keyframes flow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 4.5rem 16px 3rem; display: grid;
           grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.grad { background: linear-gradient(90deg, #635bff, #ff6ec4 55%, #ff9a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--mute); max-width: 34rem; margin: 0 0 1.6rem; }
.hero-copy .eyebrow { color: var(--ink); background: rgba(255,255,255,.75); display: inline-block; padding: .2rem .7rem; border-radius: 999px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.cta { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
       padding: .8rem 1.4rem; border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(99,91,255,.6); transition: transform .15s, box-shadow .15s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(99,91,255,.65); }
.cta.ghost { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(10,37,64,.12); }
.hero-art { position: relative; width: 100%; max-width: 520px; justify-self: center; padding-bottom: 1.4rem; }
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 22px; background: #111;
              box-shadow: var(--shadow); }
.hero-label { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); white-space: nowrap;
              background: #fff; box-shadow: var(--shadow); border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: .92rem; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-art { max-width: 420px; order: -1; }
  .hero-bg { top: -30%; height: 75%; }
}

/* pricing band */
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap1 { padding: 3.5rem 16px 2.5rem; }
.pricing { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 760px; }
.pricing li { background: var(--card); border-radius: 14px; padding: 1.3rem 1.3rem 1.2rem;
              box-shadow: 0 2px 5px -1px rgba(50,50,93,.15), 0 1px 3px -1px rgba(0,0,0,.2); transition: transform .2s, box-shadow .2s; }
.pricing li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing li b { display: block; }
.pricing li em { display: block; font-style: normal; font-weight: 800; font-size: 2rem; letter-spacing: -.03em; margin: .2rem 0; }
.pricing li span { display: block; font-size: 1rem; color: var(--mute); }
.pricing li.best { position: relative; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.pricing li.best::before { content: "Best value"; position: absolute; top: -.75rem; right: 1rem; background: var(--ink);
                           color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }

/* maker */
.maker-head { padding-top: 4rem; padding-bottom: 0; }
.maker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; max-width: 1120px; margin: 0 auto; padding: 0 16px 3rem; align-items: start; }
@media (max-width: 900px) { .maker { grid-template-columns: 1fr; } }
.panel, .stage { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; min-width: 0;
                 box-shadow: 0 2px 5px -1px rgba(50,50,93,.1), 0 1px 3px -1px rgba(0,0,0,.12); }
.stage { position: sticky; top: 4.5rem; box-shadow: var(--shadow); }
@media (max-width: 900px) { .stage { position: static; } }
.panel h2 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; letter-spacing: -.01em; }
.panel h2:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .4rem 1rem;
                cursor: pointer; font: 600 .95rem system-ui, sans-serif; transition: all .15s; }
.chips button:hover { border-color: var(--accent); }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.drop { display: block; border: 2px dashed #c9d2dc; border-radius: 14px; padding: 1.5rem; text-align: center; cursor: pointer;
        background: var(--soft); font-weight: 600; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #f1f0ff; }
.drop.has-image { padding: .8rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.row-ctl { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.row-ctl select, .row-ctl input, .stage-head select { padding: .45rem .6rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; }
.row-ctl input { width: 64px; }
.ov-wrap { width: 100%; overflow: hidden; }
#overlay { max-width: 100%; height: auto; display: block; margin: 0 auto; touch-action: none; border-radius: 10px; }
.stage-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; gap: .5rem; }
#preview { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; background: #000; border-radius: 12px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .7rem 1.3rem;
       font: 700 .95rem system-ui, sans-serif; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px -8px rgba(99,91,255,.7); transition: transform .15s; }
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }
.btn:disabled, button:disabled { opacity: .45; cursor: default; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.actions .btn, .dl-row .btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.progress { height: 8px; background: var(--line); border-radius: 4px; margin-top: 1rem; overflow: hidden; }
#bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; }
#status.err { color: var(--err); }
.buy { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem; }
.buy p { width: 100%; margin: 0; }
#use-credit { margin-top: 1rem; }
.ok { color: var(--ok); font-weight: 600; }
.note { background: #fff4ce; color: #5c4400; border-radius: 10px; padding: .7rem; font-size: .9rem; }
.result video { width: 100%; max-height: 60vh; margin-top: 1rem; border-radius: 12px; background: #000; }
.dl-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }

/* example */
.example { max-width: 1120px; margin: 0 auto; padding: 3.5rem 16px; }
.example > p { color: var(--mute); max-width: 70ch; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.2rem 0; align-items: start; max-width: 860px; }
.example-grid img, .example-grid video { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: var(--shadow); background: #111; }
.example figure { margin: 0; }
.example figcaption { font-size: 1rem; color: var(--mute); margin-top: 8px; }
@media (max-width: 640px) { .example-grid { grid-template-columns: 1fr; } }

/* faq */
.faq { padding-bottom: 3rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.2rem; margin-bottom: .6rem; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--mute); }
#resend { display: flex; gap: .5rem; flex-wrap: wrap; }
#resend input { flex: 1 1 220px; padding: .6rem .9rem; border-radius: 999px; border: 1px solid #cbd5e1; font: inherit; }
.foot { text-align: center; padding: 2.5rem 16px; font-size: 1rem; color: var(--mute); background: var(--soft); border-top: 1px solid var(--line); }
.foot a { color: inherit; }
.prose { max-width: 720px; margin: 0 auto; padding: 2rem 16px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose li { margin-bottom: 6px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } html { scroll-behavior: auto; } }
