:root {
  --bg: #08080d;
  --bg-soft: #0e0e16;
  --panel: rgba(255,255,255,.035);
  --border: rgba(255,255,255,.09);
  --text: #f2f3f8;
  --muted: #9aa0b4;
  --violet: #7c3aed;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--pink));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo, .amount {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -.02em;
}

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8,8,13,.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo { font-size: 22px; font-weight: 700; text-decoration: none; color: var(--text); }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-sm { font-size: 18px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  border-radius: 12px; padding: 11px 20px;
  transition: transform .12s ease, box-shadow .2s ease, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff; position: relative;
  background: linear-gradient(100deg, #6d28d9, #7c3aed 45%, #a855f7);
  box-shadow: 0 4px 24px rgba(124,58,237,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(124,58,237,.55); transform: translateY(-1px); }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.hero { position: relative; padding: 110px 24px 90px; text-align: center; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; pointer-events: none; }
.orb-a { width: 520px; height: 520px; background: #4c1d95; top: -160px; left: 50%; transform: translateX(-85%); }
.orb-b { width: 460px; height: 460px; background: #155e75; top: -60px; left: 50%; transform: translateX(10%); opacity: .35; }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 26px;
  background: rgba(255,255,255,.03);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.08; font-weight: 700; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 22px auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 16px; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; margin-top: 30px;
}
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

section { padding: 90px 24px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 10px; }

.studio-wrap { padding-top: 40px; }
.studio {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px;
  align-items: start;
}
.panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.field-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.field-label .hint { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.panel-left > * + * { margin-top: 22px; }

.dropzone {
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 16px; padding: 30px 20px; text-align: center;
  color: var(--muted); cursor: pointer; transition: all .18s;
  background: rgba(255,255,255,.02);
}
.dropzone:hover, .dropzone.drag { border-color: var(--violet); background: rgba(124,58,237,.08); color: var(--text); }
.dropzone p { margin-top: 8px; font-size: 15px; color: var(--text); }
.dz-sub { font-size: 12px; }

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; min-height: 0; }
.thumbs:not(:empty) { margin-top: 12px; }
.thumb { position: relative; width: 86px; height: 86px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.65); color: #fff; font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.thumb button:hover { background: var(--pink); }

textarea {
  width: 100%; resize: vertical; min-height: 96px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  color: var(--text); border-radius: 14px; padding: 14px 16px;
  font-family: inherit; font-size: 14.5px; line-height: 1.5;
  transition: border-color .15s;
}
textarea:focus, textarea:focus-visible { outline: none; border-color: var(--violet); }
textarea::placeholder { color: #5b6076; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  color: var(--muted); font-family: inherit; font-size: 12.5px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--violet); color: var(--text); background: rgba(124,58,237,.1); }

.style-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.pill:hover { color: var(--text); }
.pill.is-active { background: rgba(124,58,237,.18); border-color: var(--violet); color: #fff; }

.opts-row { display: flex; gap: 28px; flex-wrap: wrap; }
.opt-group { display: flex; flex-direction: column; gap: 8px; }
.opt-label { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button {
  border: 0; background: transparent; color: var(--muted);
  font-family: inherit; font-size: 13px; padding: 8px 14px; cursor: pointer;
  border-right: 1px solid var(--border);
}
.seg button:last-child { border-right: 0; }
.seg button.is-active { background: rgba(124,58,237,.25); color: #fff; }

.motion-group { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
input[type="range"] { accent-color: var(--violet); height: 4px; }
.range-marks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

.btn-generate { width: 100%; margin-top: 4px; }
.credits { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: -6px !important; }

.preview-empty { text-align: center; padding: 70px 20px; }
.pe-art { position: relative; width: 150px; height: 150px; margin: 0 auto 26px; }
.pe-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(124,58,237,.4); animation: spin 9s linear infinite; }
.pe-ring.r2 { inset: 22px; border-color: rgba(34,211,238,.35); animation-duration: 6s; animation-direction: reverse; }
.pe-play {
  position: absolute; inset: 44px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  box-shadow: 0 0 40px rgba(124,58,237,.5);
}
@keyframes spin { to { transform: rotate(360deg); } }
.preview-empty p { font-weight: 600; font-size: 16px; }
.preview-empty span { color: var(--muted); font-size: 13.5px; }

.hidden { display: none !important; }

.prog-canvas { height: 240px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, #13131f 30%, #23233a 46%, #13131f 62%);
  background-size: 250% 100%;
  animation: shimmer 1.6s infinite linear;
}
@keyframes shimmer { to { background-position: -150% 0; } }
.prog-status { margin-top: 18px; display: grid; gap: 9px; }
.prog-step { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; transition: color .2s; }
.prog-step.active { color: var(--text); }
.prog-step.done { color: var(--muted); }
.ps-dot { width: 8px; height: 8px; border-radius: 50%; background: #33364a; flex-shrink: 0; }
.prog-step.active .ps-dot { background: var(--violet); box-shadow: 0 0 10px var(--violet); animation: pulse 1.2s infinite; }
.prog-step.done .ps-dot { background: var(--cyan); }
.prog-bar { margin-top: 18px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.prog-fill { height: 100%; width: 0%; background: var(--grad); border-radius: 999px; transition: width .35s ease; }
.prog-pct { text-align: right; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.video-frame { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--border); animation: rise .45s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.vf-art { position: absolute; inset: 0; background:
  radial-gradient(120% 120% at 15% 20%, rgba(124,58,237,.55), transparent 55%),
  radial-gradient(130% 130% at 85% 80%, rgba(34,211,238,.4), transparent 55%),
  radial-gradient(90% 90% at 60% 30%, rgba(236,72,153,.35), transparent 60%),
  #101019; }
.vf-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: #111; font-size: 22px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5); transition: transform .15s;
}
.vf-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.vf-bar { position: absolute; left: 12px; right: 12px; bottom: 26px; height: 4px; background: rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.vf-progress { height: 100%; width: 0%; background: #fff; border-radius: 999px; }
.vf-time { position: absolute; left: 12px; right: 12px; bottom: 6px; display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.75); }
.result-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.result-meta { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto; }
.how-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px; transition: transform .18s, border-color .18s; }
.how-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,.45); }
.how-num { font-family: "Space Grotesk"; font-size: 15px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.how-card h3 { font-size: 19px; margin-bottom: 8px; }
.how-card p { color: var(--muted); font-size: 14.5px; }

.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
.show-tile { position: relative; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; }
.show-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.show-tile figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 13px; color: #fff; font-weight: 500;
}
.t1 { background: radial-gradient(140% 140% at 20% 15%, #fbbf24 0%, #b45309 45%, #1c0a00 100%); }
.t2 { background: radial-gradient(130% 130% at 75% 20%, #e879f9 0%, #701a75 45%, #180216 100%); }
.t3 { background: radial-gradient(150% 150% at 30% 80%, #22d3ee 0%, #0e7490 40%, #04121a 100%); }
.t4 { background: radial-gradient(140% 140% at 70% 25%, #67e8f9 0%, #155e75 50%, #05141b 100%); }
.t5 { background: radial-gradient(130% 130% at 25% 25%, #fb923c 0%, #9a3412 50%, #170700 100%); }
.t6 { background: radial-gradient(140% 140% at 60% 70%, #a78bfa 0%, #5b21b6 50%, #12042a 100%); }
.show-tile { transition: transform .2s ease; }
.show-tile:hover { transform: scale(1.03); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto; align-items: stretch; }
.price-card { position: relative; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border-color: var(--violet); box-shadow: 0 0 60px rgba(124,58,237,.22); }
.tag { position: absolute; top: -12px; left: 26px; background: var(--grad); font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { font-size: 17px; color: var(--muted); }
.amount { font-size: 38px; font-weight: 700; }
.amount span { font-size: 15px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; display: grid; gap: 9px; color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.price-card li::before { content: "✓ "; color: var(--cyan); font-weight: 700; }
.price-card .btn { margin-top: auto; }

.footer { border-top: 1px solid var(--border); padding: 44px 24px 60px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer p { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; gap: 20px; margin-top: 6px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.foot-links a:hover { color: var(--text); }
.copy { color: #565b70; font-size: 12.5px; margin-top: 14px; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #191927; border: 1px solid var(--border); color: var(--text);
  padding: 12px 22px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  opacity: 0; transition: all .3s cubic-bezier(.2,.9,.3,1.2); z-index: 99; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .how-grid, .show-grid, .price-grid { grid-template-columns: 1fr; max-width: 480px; }
  section { padding: 64px 18px; }
  .hero { padding: 70px 18px 60px; }
}
