/* ===================================================================
   ReelForge AI — Design System
   Dark · Glassmorphism · Neon purple/blue gradients
   =================================================================== */

:root {
  --bg: #07070d;
  --bg-2: #0b0b16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #ecebff;
  --text-dim: #a6a3c4;
  --text-mute: #6f6c8f;

  --purple: #a855f7;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --pink: #ec4899;

  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #3b82f6 100%);
  --grad-hot: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --glow: 0 0 0 1px rgba(139, 92, 246, .35), 0 10px 40px -8px rgba(139, 92, 246, .55);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

/* Ensure the [hidden] attribute always wins over class display rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ============ ANIMATED BACKGROUND ============ */
.bg-aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(99, 102, 241, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(168, 85, 247, .16), transparent 55%),
    var(--bg);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  will-change: transform;
}
.blob-1 { width: 520px; height: 520px; background: #8b5cf6; top: -120px; left: -80px; animation: float1 22s var(--ease) infinite; }
.blob-2 { width: 480px; height: 480px; background: #3b82f6; top: 30%; right: -120px; animation: float2 26s var(--ease) infinite; }
.blob-3 { width: 420px; height: 420px; background: #ec4899; bottom: -140px; left: 40%; opacity: .35; animation: float3 30s var(--ease) infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(80px,60px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-90px,40px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(50px,-70px)} }

/* ============ GLASS ============ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.glass-soft {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* ============ TYPOGRAPHY HELPERS ============ */
.grad-text {
  background: linear-gradient(120deg, #c4b5fd, #a855f7 35%, #60a5fa 75%, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.section-head p { color: var(--text-dim); margin-top: 16px; font-size: 17px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; border-radius: 12px; padding: 11px 20px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
  white-space: nowrap; line-height: 1;
}
.btn svg { flex-shrink: 0; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(99,102,241,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(139,92,246,.85); }
.btn-glow { position: relative; }
.btn-glow::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: var(--grad); filter: blur(16px); opacity: .55; transition: opacity .3s;
}
.btn-glow:hover::after { opacity: .9; }

.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }

.btn-pill {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
}
.btn-pill:hover { color: var(--text); border-color: var(--violet); background: rgba(139,92,246,.12); }
.btn-pill .lock { font-size: 11px; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,7,13,.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(139,92,246,.8);
}
.brand-dot { color: var(--violet); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-dim); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 22px 22px;
  background: rgba(11,11,22,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.mobile-menu a { padding: 12px 8px; color: var(--text-dim); font-weight: 600; border-radius: 10px; }
.mobile-menu a:hover { background: var(--surface); color: var(--text); }
.mobile-menu .btn { margin-top: 8px; }

/* ============ HERO ============ */
.hero { padding: 130px 0 70px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.6)} 70%{box-shadow:0 0 0 8px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }

.hero-title { font-size: clamp(34px, 6.2vw, 70px); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; max-width: 16ch; }
.hero-sub { color: var(--text-dim); font-size: clamp(16px, 2.2vw, 20px); margin: 22px auto 0; max-width: 60ch; }

/* ============ TOOL CARD ============ */
.tool-card { width: 100%; max-width: 760px; margin: 42px auto 0; padding: 22px; border-radius: var(--radius-lg); box-shadow: 0 30px 80px -30px rgba(99,102,241,.4); }
.url-form { display: flex; flex-direction: column; gap: 14px; }
.url-field {
  display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.35);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 6px 6px 6px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.url-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.url-icon { color: var(--violet); flex-shrink: 0; }
.url-field input {
  flex: 1; background: none; border: 0; outline: 0; color: var(--text);
  font-size: 15px; font-family: inherit; padding: 12px 0; min-width: 0;
}
.url-field input::placeholder { color: var(--text-mute); }
.paste-btn { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.paste-btn:hover { color: var(--text); border-color: var(--violet); }

.tool-actions { display: flex; gap: 12px; }
.tool-actions .btn { flex: 1; }
.tool-hint { font-size: 13px; color: var(--text-mute); text-align: center; margin-top: 2px; }

/* ============ SKELETON ============ */
.skeleton { margin-top: 22px; }
.sk-row { display: flex; gap: 18px; }
.sk-thumb { width: 130px; height: 170px; border-radius: 14px; flex-shrink: 0; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.sk-line { height: 14px; border-radius: 7px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; } .w90 { width: 90%; }
.shimmer { background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.13) 50%, rgba(255,255,255,.05) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk-status { text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 18px; }

/* ============ RESULT / REEL CARD ============ */
.result { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.reel-card { display: flex; gap: 18px; padding: 16px; border-radius: var(--radius); text-align: left; }
.reel-thumb {
  position: relative; width: 134px; height: 178px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(160deg, #2a1a4a, #1a2a5a 60%, #102a3a);
  overflow: hidden; display: grid; place-items: center;
}
.reel-thumb::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 30% 30%, rgba(168,85,247,.5), transparent 60%), radial-gradient(circle at 70% 80%, rgba(59,130,246,.5), transparent 60%); }
.reel-thumb.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.reel-thumb.has-img::before { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); }
.reel-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7); font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; z-index: 2; }
.reel-play { position: relative; z-index: 2; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.9); color: #1a1030; border: 0; display: grid; place-items: center; cursor: pointer; padding-left: 4px; transition: transform .2s; }
.reel-play:hover { transform: scale(1.1); }
.reel-meta { flex: 1; min-width: 0; }
.reel-creator { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-hot); flex-shrink: 0; }
.reel-handle { font-weight: 700; font-size: 15px; }
.reel-name { font-size: 13px; color: var(--text-dim); }
.verified { color: #3b82f6; font-weight: 800; margin-left: auto; }
.reel-caption { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-mute); margin-bottom: 14px; flex-wrap: wrap; }
.reel-stats b { color: var(--text); }
.reel-downloads { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ REPURPOSER ============ */
.repurposer, .features, .workflow, .testimonials, .pricing, .seo, .faq, .final-cta { padding: 80px 0; }
.repurpose-panel { max-width: 900px; margin: 0 auto; padding: 26px; border-radius: var(--radius-lg); }
.repurpose-controls { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 22px; }
.control label, .virality label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.select-wrap { position: relative; }
.select-wrap::after { content:'▾'; position:absolute; right:12px; top:50%; transform:translateY(-50%); color:var(--text-dim); pointer-events:none; }
select {
  appearance: none; background: rgba(0,0,0,.35); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 10px; padding: 10px 36px 10px 14px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-width: 150px;
}
select:focus { outline: 0; border-color: var(--violet); }
.virality { margin-left: auto; min-width: 180px; }
.meter { height: 9px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; display: inline-block; width: 130px; vertical-align: middle; }
.meter-fill { display: block; height: 100%; width: 87%; background: linear-gradient(90deg, #f59e0b, #ec4899, #a855f7); transition: width .8s var(--ease); }
.meter-val { font-weight: 800; margin-left: 10px; color: #f0abfc; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; scrollbar-width: thin; }
.tab { flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); border-radius: 10px; padding: 9px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .2s; font-family: inherit; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -8px rgba(139,92,246,.8); }

.output-area { position: relative; }
.output {
  width: 100%; min-height: 230px; resize: vertical; background: rgba(0,0,0,.35);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 18px;
  color: var(--text); font-family: inherit; font-size: 15px; line-height: 1.7; outline: none;
}
.output:focus { border-color: var(--violet); }
.output-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.char-count { font-size: 13px; color: var(--text-mute); }
.output-actions { display: flex; gap: 8px; }

.premium-lock { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; backdrop-filter: blur(8px); background: rgba(7,7,13,.45); }
.lock-inner { text-align: center; max-width: 380px; padding: 28px; border-radius: var(--radius); }
.lock-icon { font-size: 30px; margin-bottom: 10px; }
.lock-inner h4 { font-size: 18px; margin-bottom: 8px; }
.lock-inner p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }

.repurpose-extra { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 28px; border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.feat-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.i-purple { background: rgba(168,85,247,.16); } .i-blue { background: rgba(59,130,246,.16); } .i-pink { background: rgba(236,72,153,.16); }
.i-green { background: rgba(52,211,153,.16); } .i-amber { background: rgba(245,158,11,.16); } .i-cyan { background: rgba(34,211,238,.16); }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 15px; }

/* ============ WORKFLOW ============ */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; max-width: 300px; padding: 26px; border-radius: var(--radius); text-align: center; }
.step-no { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); font-weight: 800; margin: 0 auto 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14.5px; }
.step-arrow { display: grid; place-items: center; font-size: 24px; color: var(--violet); }

/* ============ STATS ============ */
.stats-band { padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(139,92,246,.05), transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-size: clamp(30px, 4.5vw, 48px); font-weight: 900; letter-spacing: -.02em; background: linear-gradient(120deg,#c4b5fd,#60a5fa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--text-dim); font-size: 14px; font-weight: 500; }

/* ============ TESTIMONIALS ============ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi { padding: 26px; border-radius: var(--radius); }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 15px; margin-bottom: 14px; }
.testi blockquote { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
.grad-bg { background: var(--grad); }
.testi figcaption strong { display: block; font-size: 15px; }
.testi figcaption span { font-size: 13px; color: var(--text-mute); }
.logos { text-align: center; margin-top: 48px; }
.logos > span { font-size: 13px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; }
.logo-row { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; margin-top: 18px; }
.logo-row span { font-weight: 800; font-size: 19px; color: var(--text-mute); opacity: .7; letter-spacing: -.01em; }

/* ============ PRICING ============ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card { padding: 32px 28px; border-radius: var(--radius-lg); position: relative; transition: transform .3s var(--ease); }
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { border-color: var(--violet); box-shadow: 0 0 0 1px rgba(139,92,246,.4), 0 24px 60px -24px rgba(139,92,246,.6); }
.popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 20px; margin-bottom: 12px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.amount { font-size: 46px; font-weight: 900; letter-spacing: -.03em; }
.per { color: var(--text-mute); font-size: 15px; }
.price-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.price-feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.price-feats li { font-size: 14.5px; color: var(--text); }
.price-feats li.muted { color: var(--text-mute); }
.price-note { text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 30px; }

/* ============ SEO ============ */
.seo .container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 50px; }
.seo-block h2 { font-size: 23px; margin-bottom: 10px; letter-spacing: -.01em; }
.seo-block p { color: var(--text-dim); font-size: 15.5px; }
.seo-block strong { color: var(--text); }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: var(--radius); padding: 0 22px; overflow: hidden; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.chev { font-size: 22px; color: var(--violet); transition: transform .3s; flex-shrink: 0; }
.faq-item[open] .chev { transform: rotate(45deg); }
.faq-item p { color: var(--text-dim); font-size: 15px; padding: 0 0 22px; }

/* ============ FINAL CTA ============ */
.cta-box { text-align: center; padding: 56px 32px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(139,92,246,.14), rgba(59,130,246,.08)); }
.cta-box h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.cta-box p { color: var(--text-dim); margin: 16px auto 28px; font-size: 17px; max-width: 50ch; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ NEWSLETTER ============ */
.newsletter { padding: 40px 0 0; }
.news-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px; border-radius: var(--radius-lg); flex-wrap: wrap; background: linear-gradient(160deg, rgba(99,102,241,.12), rgba(59,130,246,.06)); }
.news-copy h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.news-copy p { color: var(--text-dim); margin-top: 8px; max-width: 42ch; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input[type=email] { background: rgba(0,0,0,.35); border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px 16px; color: var(--text); font-family: inherit; font-size: 15px; min-width: 240px; }
.news-form input[type=email]:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.hidden-field { display: none; }
.news-success { color: #34d399; font-weight: 600; margin-top: 10px; }
.news-note { color: var(--text-mute); font-size: 13px; margin-top: 10px; }
@media (max-width: 640px) { .news-form { width: 100%; } .news-form input[type=email] { min-width: 0; flex: 1; } }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer-col h4 { font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-mute); }
.footer-disclaimer { max-width: 50ch; }

/* ============ STICKY CTA ============ */
.sticky-cta {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  background: var(--grad); color: #fff; border: 0; border-radius: 14px;
  padding: 15px 22px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 14px 40px -10px rgba(139,92,246,.8); overflow: hidden;
  animation: ctaIn .5s var(--ease);
}
@keyframes ctaIn { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.sticky-cta:hover { transform: translateY(-2px); }
.sticky-glow { position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); animation: sweep 3s infinite; }
@keyframes sweep { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }

/* ============ MODAL ============ */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(3,3,8,.7); backdrop-filter: blur(8px); animation: fadeIn .25s; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal { position: relative; width: 100%; max-width: 440px; padding: 38px 32px 30px; border-radius: var(--radius-lg); text-align: center; animation: modalIn .35s var(--ease); }
@keyframes modalIn { from{transform:translateY(20px) scale(.97);opacity:0} to{transform:translateY(0) scale(1);opacity:1} }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.modal-close:hover { color: var(--text); }
.modal-icon { font-size: 34px; margin-bottom: 10px; }
.modal h3 { font-size: 23px; margin-bottom: 10px; }
.modal > p { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }
.modal-feats { text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; background: rgba(0,0,0,.25); padding: 18px; border-radius: 14px; }
.modal-feats li { font-size: 14.5px; }
.modal-note { font-size: 12.5px; color: var(--text-mute); margin-top: 14px; }

/* ============ WATCH-DEMO + LIGHTBOX ============ */
.watch-demo {
  display: inline-flex; align-items: center; gap: 10px; margin: 26px auto 0;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 999px; padding: 11px 20px; font-family: inherit; font-weight: 600; font-size: 14.5px;
  cursor: pointer; transition: transform .2s var(--ease), background .2s;
}
.watch-demo:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.wd-play { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); font-size: 9px; color: #fff; padding-left: 2px; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(3,3,8,.85); backdrop-filter: blur(10px); animation: fadeIn .25s; }
.lightbox-frame { position: relative; width: min(94vw, 1040px); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 40px 100px -30px rgba(139,92,246,.7); animation: modalIn .35s var(--ease); background: #06060d; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close { position: absolute; top: 18px; right: 18px; z-index: 310; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); font-size: 16px; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.16); }

/* referral link box */
.ref-linkbox { display: flex; gap: 8px; }
.ref-linkbox input { flex: 1; min-width: 0; background: rgba(0,0,0,.3); border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 12px; color: var(--text); font-size: 13px; font-family: ui-monospace, monospace; }
.ref-linkbox .btn { white-space: nowrap; }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(15,15,28,.96); border: 1px solid var(--border-strong); color: var(--text);
  padding: 13px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 300;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.7); opacity: 0; transition: .3s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(52,211,153,.5); }
.toast.error { border-color: rgba(248,113,113,.5); }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .feature-grid, .testi-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .seo .container { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .virality { margin-left: 0; }
}
@media (max-width: 720px) {
  .nav-links, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 110px 0 50px; }
  .tool-actions { flex-direction: column; }
  .feature-grid, .testi-grid, .price-grid { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); }
  .reel-card { flex-direction: column; }
  .reel-thumb { width: 100%; height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .price-card.featured { order: -1; }
  .sticky-cta { left: 16px; right: 16px; bottom: 16px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .repurpose-extra { flex-direction: column; }
  .repurpose-extra .btn { width: 100%; }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
