/* ==========================================================================
   FlowGen Studio — official website
   Palette, radii and type are taken 1:1 from the desktop app
   (main_window.py DARK_THEME / SIDEBAR_STYLE and core/theme.py dark map)
   so the site and the tool feel like one product.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }

/* ---------- Light (the app's default theme) ---------- */
:root {
  --canvas:      #ECEAF6;   /* app window background */
  --card:        #FFFFFF;   /* sidebar / cards */
  --soft:        #F5F3FB;   /* buttons, popups */
  --base:        #FBFAFE;   /* lists, tables */
  --field-top:   #DDD9EB;   /* inset field gradient */
  --field:       #EDEBF6;
  --border:      #DAD5EC;
  --border-2:    #C9C2DF;
  --ink:         #4A4660;   /* body text */
  --ink-strong:  #2E2B45;
  --heading:     #544D72;
  --muted:       #8A85A3;
  --nav-text:    #86809F;
  --green:       #1DB582;
  --green-top:   #22C690;
  --green-hover: #2ED79F;
  --green-soft:  #E3F3EB;
  --green-deep:  #147A55;
  --shadow-rgb:  70, 60, 110;
  --hover-tint:  rgba(120, 110, 160, 0.08);
  --scroll:      #CFC9E2;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--heading); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--green-soft); color: var(--green-deep); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 6px; border: 2px solid var(--canvas); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.section { padding: 96px 0; }
@media (max-width: 760px) { .section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--green-deep);
  background: var(--green-soft); border-radius: 999px; padding: 6px 14px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(29,181,130,.18); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-top: 16px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }

.green { color: var(--green); }

/* ---------- Buttons (app QPushButton look) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 16px; border: 1px solid var(--border);
  background: var(--soft); color: var(--ink);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { border-color: var(--green); background: var(--canvas); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  border: none; color: #fff;
  background: linear-gradient(180deg, var(--green-top), var(--green));
  box-shadow: 0 10px 24px -8px rgba(29,181,130,.6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--green-hover), var(--green-top)); box-shadow: 0 14px 30px -8px rgba(29,181,130,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; border-radius: 18px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  transition: background .25s ease, box-shadow .25s ease;
}
.header.scrolled {
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--heading); letter-spacing: -0.01em; }
.brand-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 4px 10px rgba(var(--shadow-rgb), .14)); }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--green); letter-spacing: .04em; text-transform: uppercase; line-height: 1; margin-top: 3px; }
.brand-text { line-height: 1.1; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 14px;
  font-size: 14.5px; font-weight: 600; color: var(--nav-text); white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.brand-text { white-space: nowrap; }
.nav-links a:hover { background: var(--hover-tint); color: var(--ink); }
.nav-links a.active { color: #fff; background: linear-gradient(180deg, var(--green-top), var(--green)); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); display: grid; place-items: center; color: var(--muted);
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-links {
    position: fixed; inset: 70px 16px auto 16px; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 10px;
    box-shadow: 0 24px 60px -20px rgba(var(--shadow-rgb), .35);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .menu-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
}
.nav-login { background: transparent; border-color: transparent; color: var(--nav-text); }
.nav-login:hover { background: var(--hover-tint); border-color: transparent; color: var(--ink); }
@media (max-width: 560px) { .nav-actions .btn-primary { display: none; } .nav-login { padding: 0 12px; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 360px at 78% 30%, rgba(29,181,130,.16), transparent 70%),
    radial-gradient(520px 340px at 12% 10%, rgba(138,79,216,.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.035em; margin: 20px 0 22px; color: var(--ink-strong); }
.hero-copy h1 .line { display: block; }
.hero-copy h1 .grad { background: linear-gradient(90deg, var(--green) 0%, #14A79E 55%, #2F8FD8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
}
@media (max-width: 480px) { .hero-ctas .btn { width: 100%; } }

/* ---------- App mock (replica of the desktop UI) ---------- */
.app-window {
  background: var(--canvas); border: 1px solid var(--border); border-radius: 26px;
  box-shadow: 0 40px 90px -30px rgba(var(--shadow-rgb), .45), 0 0 0 8px color-mix(in srgb, var(--card) 55%, transparent);
  overflow: hidden; font-size: 12px; position: relative;
}
.app-titlebar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--heading); font-size: 12.5px; }
.app-titlebar svg { width: 20px; height: 20px; }
.app-titlebar .dots { display: flex; gap: 6px; }
.app-titlebar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #E0453B; display: block; }
.app-titlebar .dots i:nth-child(2) { background: #E39A17; }
.app-titlebar .dots i:nth-child(3) { background: #3AA655; }
.app-url {
  flex: 1; max-width: 340px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 12px;
  font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.app-url svg { width: 15px; height: 15px; flex: none; }
.app-body { display: grid; grid-template-columns: 178px 1fr; gap: 12px; padding: 12px; min-height: 420px; }
.app-sidebar { background: var(--card); border-radius: 20px; padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; }
.app-nav { display: flex; align-items: center; gap: 9px; padding: 6.5px 10px; border-radius: 12px; color: var(--nav-text); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.app-nav svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-nav.on { background: linear-gradient(180deg, var(--green-top), var(--green)); color: #fff; box-shadow: 0 6px 14px -6px rgba(29,181,130,.8); }
.app-nav.on svg { stroke: #fff; }
.app-main { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 12px; }
.app-card { background: var(--card); border-radius: 18px; padding: 14px; }
.app-card h5 { margin: 0 0 8px; font-size: 12.5px; color: var(--heading); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.app-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-head h4 { font-size: 17px; color: var(--ink-strong); }
.app-head p { color: var(--muted); font-size: 11px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: var(--green-soft); color: var(--green-deep); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.app-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.app-stat { background: var(--soft); border-radius: 12px; padding: 8px 10px; }
.app-stat b { display: block; font-size: 16px; color: var(--ink-strong); }
.app-stat span { color: var(--muted); font-size: 10px; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding-top: 6px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--green-top), var(--green)); opacity: .9; transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.bars i:nth-child(odd) { opacity: .55; }
.bars-x { display: flex; gap: 7px; margin-top: 6px; color: var(--muted); font-size: 9.5px; }
.bars-x span { flex: 1; text-align: center; }
@keyframes grow { from { transform: scaleY(0); } }
.app-prompt { grid-column: 1 / -1; }
.field {
  border-radius: 12px; padding: 10px 12px; font-size: 11.5px; color: var(--ink);
  background: linear-gradient(180deg, var(--field-top) 0%, var(--field) 22%, var(--field) 100%);
  border: 1px solid var(--border-2); border-bottom-color: var(--card);
  min-height: 46px;
}
.field .caret { display: inline-block; width: 1.5px; height: 13px; background: var(--green); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.app-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pill { padding: 5px 10px; border-radius: 10px; background: var(--soft); border: 1px solid var(--border); font-size: 10.5px; font-weight: 600; color: var(--muted); }
.pill.on { background: var(--green-soft); border-color: transparent; color: var(--green-deep); }
.app-go { margin-left: auto; padding: 7px 14px; border-radius: 11px; color: #fff; font-weight: 700; font-size: 11px; background: linear-gradient(180deg, var(--green-top), var(--green)); }
.progress { height: 6px; background: var(--field); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--green); animation: load 3.6s ease-in-out infinite; }
@keyframes load { 0% { width: 4%; } 80%, 100% { width: 100%; } }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.thumbs img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(var(--shadow-rgb), .45); padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--heading); animation: floaty 6s ease-in-out infinite;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.hero-visual { position: relative; }
.hero-visual .fc-1 { left: -34px; bottom: 56px; }
.hero-visual .fc-2 { right: -22px; top: -22px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 1100px) { .hero-visual .fc-1 { left: -10px; } .hero-visual .fc-2 { right: -6px; } }
@media (max-width: 720px) {
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { flex-direction: row; overflow: hidden; padding: 8px; gap: 4px; }
  .app-sidebar .app-nav:nth-child(n+5) { display: none; }
  .app-sidebar .app-nav span { display: none; }
  .app-sidebar .app-nav.on span { display: inline; }
  .float-card { display: none; }
}
@media (max-width: 460px) {
  .app-main { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Stats strip ---------- */
.stats { padding: 24px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--card); border-radius: 22px; padding: 22px 24px; display: flex; align-items: center; gap: 16px;
}
.stat b { font-size: 30px; font-weight: 800; color: var(--ink-strong); letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.35; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat { padding: 18px; } .stat b { font-size: 26px; } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border-radius: 24px; padding: 28px; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 26px 50px -28px rgba(var(--shadow-rgb), .45); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); margin-bottom: 20px;
}
.feature .ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } .feature { padding: 24px; } }

/* ---------- Spotlights ---------- */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.spot > *, .hero-grid > *, .app-main > *, .app-body > * { min-width: 0; }
.spot + .spot { margin-top: 110px; }
.spot.rev .spot-copy { order: 2; }
.spot-copy h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; margin: 16px 0 16px; }
.spot-copy > p { color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 8px; margin-top: 1px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.panel { background: var(--card); border-radius: 28px; padding: 22px; box-shadow: 0 34px 70px -36px rgba(var(--shadow-rgb), .5); }
@media (max-width: 920px) {
  .spot { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .spot.rev .spot-copy { order: 0; }
  .spot + .spot { margin-top: 80px; }
}

/* Director timeline */
.timeline-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.timeline-head b { color: var(--heading); font-size: 15px; }
.tl-row { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; margin-top: 10px; }
.tl-row > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.tl-track { display: flex; gap: 5px; height: 44px; }
.tl-track i { border-radius: 10px; flex: var(--w, 1); background-size: cover; background-position: center; }
.tl-track.vo i { background: linear-gradient(180deg, color-mix(in srgb, #E8722C 30%, var(--card)), color-mix(in srgb, #E8722C 18%, var(--card))); position: relative; overflow: hidden; height: 34px; align-self: center; }
.tl-track.vo i::after { content: ""; position: absolute; inset: 9px 8px; background: repeating-linear-gradient(90deg, #E8722C 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(180deg, transparent 0 20%, #000 20% 80%, transparent 80%); opacity: .65; }
.tl-track.mu i { height: 26px; align-self: center; background: color-mix(in srgb, #8A4FD8 22%, var(--card)); }
.tl-track.cap i { height: 22px; align-self: center; background: color-mix(in srgb, #2F6BD8 20%, var(--card)); }
.playhead { position: relative; }
.playhead::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: var(--green); border-radius: 2px; box-shadow: 0 0 0 3px rgba(29,181,130,.18); animation: scrub 7s linear infinite; }
@keyframes scrub { from { left: 82px; } to { left: 100%; } }
.tl-foot { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* Reverse video flow */
.rv-input { display: flex; gap: 8px; align-items: center; }
.rv-input .field { flex: 1; min-height: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; overflow: hidden; white-space: nowrap; }
.rv-input .field svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.rv-sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.rv-scenes { display: grid; gap: 10px; }
.rv-scene { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; background: var(--soft); border-radius: 16px; padding: 8px; }
.rv-scene img { border-radius: 11px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.rv-scene b { font-size: 12px; color: var(--green-deep); display: block; }
.rv-scene p { font-size: 13px; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* TTS */
.voices { display: grid; gap: 10px; }
.voice { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 16px; padding: 12px 14px; }
.voice .av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; flex: none; }
.voice div { flex: 1; min-width: 0; }
.voice b { font-size: 14px; color: var(--heading); display: block; }
.voice span { font-size: 12.5px; color: var(--muted); }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: var(--green); animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--green-top), var(--green)); color: #fff; flex: none; border: none; }
.play svg { width: 14px; height: 14px; }
@media (max-width: 420px) { .wave { display: none; } }

/* ---------- Styles gallery ---------- */
.styles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.style-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; background: var(--card); isolation: isolate; }
.style-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.style-card:hover img { transform: scale(1.07); }
.style-card span {
  position: absolute; left: 8px; bottom: 8px; z-index: 1; padding: 5px 10px; border-radius: 10px;
  background: rgba(255,255,255,.92); color: #2E2B45; font-size: 12.5px; font-weight: 700;
}
@media (max-width: 980px) { .styles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .styles-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Showcase ---------- */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.reel { position: relative; border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 16/9; cursor: pointer; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel .reel-ui {
  position: absolute; inset: auto 12px 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  pointer-events: none;
}
.reel .reel-ui span { padding: 6px 12px; border-radius: 12px; background: rgba(20,18,32,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 600; }
.reel .sound { pointer-events: auto; width: 36px; height: 36px; border-radius: 12px; border: none; background: rgba(20,18,32,.62); color: #fff; display: grid; place-items: center; }
.reel .sound svg { width: 17px; height: 17px; }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.credit-note {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  width: fit-content; max-width: 100%; margin: -24px auto 40px; padding: 10px 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-size: 14.5px; color: var(--muted);
}
.credit-note b { color: var(--green-deep); }
.cn-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--border-2); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 24px;
  background: var(--card); border: 2px solid transparent; border-radius: 28px; padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -32px rgba(var(--shadow-rgb), .5); }
.plan h3 { font-size: 22px; font-weight: 700; }
.plan-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 2px; margin-top: 22px; color: var(--ink-strong); }
.price .cur { font-size: 26px; font-weight: 700; align-self: flex-start; margin-top: 8px; }
.price .amt { font-size: 60px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .per { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.plan-quota { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-quota-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-quota > div { background: var(--soft); border-radius: 16px; padding: 14px; }
.plan-quota b { display: block; font-size: 22px; font-weight: 800; color: var(--ink-strong); letter-spacing: -0.02em; line-height: 1.1; }
.plan-quota span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.plan-quota b.inf { height: 25px; display: flex; align-items: center; }
.plan-quota b.inf svg { width: 40px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 7px; margin-top: 1px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231DB582' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.plan-btn { width: 100%; }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, var(--green-top), var(--green)); box-shadow: 0 8px 18px -8px rgba(29,181,130,.9);
}
.plan-pop { border-color: var(--green); box-shadow: 0 30px 60px -34px rgba(29,181,130,.55); }
.plan-max {
  color: #fff; border-color: transparent;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(255,255,255,.22), transparent 70%),
    linear-gradient(150deg, #1DB582 0%, #14A79E 55%, #0891B2 100%);
  box-shadow: 0 34px 70px -34px rgba(8,145,178,.7);
}
.plan-max h3, .plan-max .price, .plan-max .plan-quota b { color: #fff; }
.plan-max .plan-sub, .plan-max .price .per, .plan-max .plan-quota span { color: rgba(255,255,255,.82); }
.plan-max .plan-quota > div { background: rgba(255,255,255,.14); }
.plan-max .plan-list li::before { background-color: rgba(255,255,255,.95); }
.plan-max .plan-badge { background: #fff; color: #147A55; box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); }
.plans-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }
@media (max-width: 980px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; gap: 30px; }
}
@media (max-width: 420px) {
  .plan { padding: 28px 20px; }
  .price .amt { font-size: 52px; }
  .plan-quota b { font-size: 19px; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border-radius: 24px; padding: 30px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 22px;
  background: linear-gradient(180deg, var(--green-top), var(--green)); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 20px -10px rgba(29,181,130,.9);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-card {
  max-width: 860px; margin: 0 auto; background: var(--soft); border: 2px solid var(--green); border-radius: 28px;
  padding: 48px 40px; text-align: center; box-shadow: 0 30px 70px -36px rgba(var(--shadow-rgb), .55);
}
.about-card .logo { width: 84px; height: 84px; margin: 0 auto; }
.about-card .hi { color: var(--green); font-weight: 600; font-size: 16px; margin-top: 14px; }
.about-card h2 { font-size: 34px; font-weight: 700; margin-top: 4px; }
.team { display: flex; justify-content: center; gap: 12px; margin: 24px 0 26px; flex-wrap: wrap; }
.team div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 24px; }
.team b { display: block; color: var(--heading); font-size: 16px; }
.team span { color: var(--green); font-weight: 600; font-size: 12.5px; }
.about-card p { color: var(--ink); font-size: 17px; max-width: 640px; margin: 0 auto 14px; }
@media (max-width: 560px) { .about-card { padding: 36px 20px; } .about-card h2 { font-size: 28px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; border: 1px solid transparent; transition: border-color .2s; }
.faq details[open] { border-color: var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--heading); font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 10px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231DB582' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- Download CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px 40px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #1DB582 0%, #14A79E 55%, #0891B2 100%);
  box-shadow: 0 40px 80px -40px rgba(29,181,130,.8);
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); pointer-events: none; }
.cta-band::before { width: 520px; height: 200px; left: -120px; top: -40px; transform: rotate(-24deg); }
.cta-band::after { width: 520px; height: 200px; right: -140px; bottom: -50px; transform: rotate(30deg); }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; position: relative; }
.cta-band p { opacity: .9; font-size: 18px; margin: 14px auto 32px; max-width: 560px; position: relative; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-white { background: #fff; color: #147A55; border: none; box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }
.btn-white:hover { background: #F5F3FB; color: #147A55; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.cta-band small { display: block; margin-top: 18px; opacity: .85; font-size: 13.5px; position: relative; }
@media (max-width: 560px) { .cta-band { padding: 48px 20px; border-radius: 26px; } .cta-band .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-bottom a { color: var(--muted); transition: color .2s; }
.footer-bottom a:hover { color: var(--green); }
.footer p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 300px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer ul a { font-size: 15px; color: var(--ink); transition: color .2s; }
.footer ul a:hover { color: var(--green); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
