/* ============================================================================
   AI Video Generator — design system v3 ("editorial premium" template)
   Layout inspired by top review sites (thrivelance, ai-toolspot,
   thetoolbus): glance table first, winner cards, clean white editorial body,
   glass sticky nav, gradient accents used sparingly.
   ============================================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --ink: #101426;
  --muted: #596072;
  --faint: #8b91a4;
  --line: #e7e9f2;
  --primary: #4f46e5;
  --primary-d: #4338ca;
  --primary-2: #7c3aed;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --primary-soft: #eeedfd;
  --accent: #0d9488;
  --gold: #f59e0b;
  --yes: #16a34a;
  --no: #dc4b4b;
  --shadow: 0 1px 2px rgba(16,20,38,.05), 0 10px 30px rgba(16,20,38,.06);
  --shadow-h: 0 6px 14px rgba(16,20,38,.08), 0 22px 48px rgba(79,70,229,.16);
  --radius: 16px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.022em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 760; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: .85em; color: var(--primary-d); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 12px; font-weight: 680; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .16s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 11px 26px rgba(79,70,229,.38); filter: brightness(1.06); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9c6f7; color: var(--primary); background: #fbfbff; }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 9px; }

/* ---- header (glass, compact) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); font-size: 1.04rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.dot { background: var(--grad); color: #fff; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; box-shadow: 0 4px 10px rgba(79,70,229,.35); }
.nav-links { display: flex; align-items: center; gap: 20px; margin: 0 auto; }
.nav-links a { color: var(--muted); font-weight: 560; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; color: var(--ink); }

/* ---- hero: compact, vertically centered, equal visual weight ---- */
.hero {
  background:
    radial-gradient(900px 420px at 90% -14%, rgba(124,58,237,.10) 0%, rgba(255,255,255,0) 62%),
    radial-gradient(720px 380px at -6% 30%, rgba(79,70,229,.08) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
  padding: 52px 0 46px; border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; align-items: center; }
.hero-main { min-width: 0; }
.hero .eyebrow { display: inline-block; font-size: .74rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--primary-d); background: var(--primary-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; border: 1px solid #ded9fc; }
.hero h1 { max-width: 21ch; font-size: clamp(1.8rem, 3.3vw, 2.55rem); }
.hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 58ch; margin: 14px 0 22px; }
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: .86rem; font-weight: 550; }
.trust-row span::before { content: "✔"; color: var(--accent); margin-right: 6px; font-weight: 700; }
.hero-side { display: flex; align-items: center; }
.hs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; box-shadow: var(--shadow-h); width: 100%; display: flex; flex-direction: column; }
.hs-card h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--primary-d); }
.hs-card .muted { font-size: .83rem; margin: 0 0 10px; }
.hs-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.hs-item:first-of-type { border-top: none; }
.hs-item:hover .hs-name { color: var(--primary); }
.hs-name { font-weight: 620; font-size: .9rem; flex: 1; color: var(--ink); }
.hs-cta { width: 100%; margin-top: 12px; }
.logo-badge.sm { width: 28px; height: 28px; font-size: .68rem; border-radius: 8px; }

/* ---- sections ---- */
.section { padding: 58px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; max-width: 70ch; }
.kicker { font-size: .74rem; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.section-head h2 { margin: 0; }
.section-head .muted { margin: 8px 0 0; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat .n { font-size: 2.1rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--muted); font-size: .88rem; margin-top: 7px; }

/* ---- grids ---- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---- tool card ---- */
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease, border-color .16s; display: flex; flex-direction: column; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: #d8d4fb; }
.tool-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; position: relative; }
.logo-badge { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; flex: 0 0 auto; box-shadow: 0 4px 10px rgba(79,70,229,.25); }
.logo-badge.lg { width: 60px; height: 60px; font-size: 1.3rem; border-radius: 16px; }
.tool-card h3 { margin: 0; font-size: 1.08rem; }
.tool-card .cat { font-size: .8rem; color: var(--faint); line-height: 1.3; }
.score-badge { position: absolute; top: 0; right: 0; background: var(--primary-soft); color: var(--primary-d); font-weight: 800; font-size: .9rem; padding: 4px 9px; border-radius: 9px; border: 1px solid #ded9fc; }
.tool-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.tags span { font-size: .7rem; font-weight: 750; padding: 3px 9px; border-radius: 999px; }
.tool-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.tool-card .foot-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-card .foot .btn { margin: 0; }
.tool-card .tc-try { box-shadow: 0 5px 14px rgba(79,70,229,.28); }
.tool-card h3 a { color: var(--ink); }
.tool-card h3 a:hover { color: var(--primary); }

/* ---- at-a-glance quick-score table ---- */
.glance-sec { padding-top: 50px; }
.glance { width: 100%; border-collapse: collapse; min-width: 640px; }
.glance th, .glance td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: middle; }
.glance thead th { background: var(--bg-alt); font-weight: 720; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; }
.glance tbody tr:last-child td { border-bottom: none; }
.glance tbody tr:hover { background: #fafaff; }
.rank-chip { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: .8rem; margin-right: 10px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); vertical-align: middle; }
.rank-chip.r1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; border: none; box-shadow: 0 3px 8px rgba(245,158,11,.4); }
.rank-chip.r2 { background: #e7e9f2; color: #4b5266; border: none; }
.rank-chip.r3 { background: #f3e0cf; color: #93562a; border: none; }
.g-tool { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 640; }
.g-tool:hover { color: var(--primary); }
.g-price { color: var(--muted); font-weight: 600; white-space: nowrap; }
.g-try { text-align: right; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.cmp { width: 100%; border-collapse: collapse; min-width: 520px; }
.cmp.wide { min-width: 900px; }
.cmp th, .cmp td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.cmp thead th { background: var(--bg-alt); font-weight: 700; color: var(--ink); position: sticky; top: 0; }
.cmp tbody tr:hover { background: #fafaff; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp .tool-name { font-weight: 600; color: var(--muted); white-space: nowrap; }
.yes { color: var(--yes); font-weight: 700; }
.no { color: var(--no); font-weight: 700; }

/* ---- cta box ---- */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; box-shadow: 0 10px 28px rgba(79,70,229,.28); }
.cta-box h3 { color: #fff; margin: 0 0 4px; }
.cta-box p { color: rgba(255,255,255,.92); margin: 0; font-size: .92rem; }
.cta-box .btn-primary { background: #fff; color: var(--primary-d); box-shadow: none; }
.cta-box .btn-primary:hover { background: #f2f0ff; filter: none; }
.cta-box.neutral { background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.cta-box.neutral h3, .cta-box.neutral p { color: var(--ink); }
.cta-box.neutral .btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.28); }

/* ---- scores ---- */
.score-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.score-list .overall { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.score-list .big { font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.score-list .of { color: var(--faint); font-weight: 600; }
.score-row { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 10px; margin-bottom: 9px; }
.score-row span:first-child { font-size: .88rem; color: var(--muted); }
.score-row .val { font-size: .82rem; font-weight: 700; text-align: right; color: var(--ink); }
.bar { background: var(--bg-alt); border-radius: 999px; height: 9px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

/* ---- pros/cons ---- */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc .pro, .pc .con { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.pc h4 { margin: 0 0 10px; font-size: 1rem; }
.pc .pro h4 { color: var(--yes); }
.pc .con h4 { color: var(--no); }
.pc ul { margin: 0; padding-left: 18px; }
.pc li { margin-bottom: 7px; font-size: .92rem; color: var(--muted); }

/* ---- spec table ---- */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.spec-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec-table td:first-child { color: var(--muted); font-weight: 600; width: 45%; }

/* ---- verdict / chips / tool hero ---- */
.verdict { background: var(--primary-soft); border-left: 4px solid var(--primary); padding: 16px 18px; border-radius: 0 12px 12px 0; color: var(--ink); font-weight: 500; }
.chip { display: inline-block; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; margin: 3px 4px 3px 0; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.tool-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 0 4px; }
.tool-hero h1 { margin: 0; }
.tool-hero .cat { color: var(--muted); font-weight: 500; }
.score-inline { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.score-num { font-weight: 800; color: var(--primary-d); }
.stars { color: #f59e0b; letter-spacing: 2px; }
.stars .off { color: #e4e6ee; }

/* ---- callout / bullet / disclosure ---- */
.disclosure { background: #fff8ec; border: 1px solid #f3e2bf; color: #6b561f; border-radius: 12px; padding: 13px 16px; font-size: .88rem; margin: 16px 0; }
.callout { background: #eef0f6; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: .95rem; }
.bullet { padding-left: 20px; }
.bullet li { margin-bottom: 8px; color: var(--muted); }

/* ---- ad slot (hidden while adsenseEnabled = false) ---- */
.ad-slot { background: repeating-linear-gradient(45deg, #fafbff, #fafbff 12px, #f2f3fa 12px, #f2f3fa 24px); border: 1px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--faint); font-size: .85rem; margin: 22px 0; }
.ad-slot .tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 6px; }

/* ---- faq ---- */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 620; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 14px; color: var(--muted); margin: 0; }

/* ---- crumb / cta band / prose ---- */
.crumb { font-size: .85rem; color: var(--faint); margin-bottom: 14px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #101426 10%, #241a55 100%); color: #fff; border-radius: 20px; padding: 30px 34px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose ul { color: var(--muted); }

/* ---- best-for quick-pick rows (diyai-style) ---- */
.bf-list { display: grid; gap: 14px; margin-top: 22px; }
.bf-row { display: grid; grid-template-columns: 220px minmax(0,1fr) auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .15s ease, box-shadow .15s ease; }
.bf-row:hover { border-color: #d8d4fb; box-shadow: var(--shadow-h); }
.bf-label { font-weight: 780; font-size: .98rem; line-height: 1.3; color: var(--primary-d); display: flex; align-items: center; gap: 8px; }
.bf-label::before { content: "★"; color: var(--gold); font-size: 1rem; }
.bf-tool { display: flex; gap: 12px; align-items: flex-start; }
.bf-tool b a { font-size: 1.02rem; }
.bf-tool .tier { margin-left: 8px; }
.bf-tool p { margin: 5px 0 0; font-size: .9rem; line-height: 1.5; }
.bf-cta { display: flex; flex-direction: column; gap: 8px; }

/* ---- contact page ---- */
.contact-card { margin: 24px 0 8px; border: 1px solid var(--line); border-radius: 14px; max-width: 620px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.contact-card .cc-row { padding: 15px 20px; }
.contact-card .cc-row + .cc-row { border-top: 1px solid var(--line); }
.contact-card .cc-label { display: block; font-size: .76rem; font-weight: 760; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 3px; }
.contact-card a { font-weight: 620; font-size: 1.02rem; }

/* ---- free-tier badges ---- */
.tier { font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.tier-free { background: #e5f7ec; color: #0f7a43; border: 1px solid #b8e8cc; }
.tier-watermark { background: #fff4e0; color: #9a6400; border: 1px solid #f3dca6; }
.tier-trial { background: #efedff; color: #3a30c0; border: 1px solid #d4d2fb; }
.tier-paid { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.price-muted { font-size: .84rem; font-weight: 600; color: var(--muted); }
.price-pill { display: none; }

/* ---- free legend ---- */
.free-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 4px; }
.fl-item { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fl-item p { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }

/* ---- header language dropdown (globe + code pill, market-standard) ---- */
.lang {
  position: relative; display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; transition: border-color .15s ease, background .15s ease;
}
.lang:hover { border-color: #c9c6f7; background: var(--bg-alt); }
.lang-globe { width: 15px; height: 15px; color: var(--muted); flex: none; }
.lang-select {
  appearance: none; -webkit-appearance: none; border: 0; margin: 0;
  background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' stroke='%23555c70' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right center/9px;
  padding: 0 15px 0 0; font-family: inherit; font-size: .82rem; font-weight: 700;
  color: var(--muted); letter-spacing: .03em; cursor: pointer;
}
.lang-select:hover { color: var(--ink); }
.lang-select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ---- demo gallery ---- */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.video-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.video-poster { position: relative; aspect-ratio: 16 / 9; background: #0e1116; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-poster.channel { background: linear-gradient(135deg, #151a36, #2b2460); }
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-initial { font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,.9); letter-spacing: .5px; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.94); color: #111; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; padding-left: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .15s ease; }
.video-poster:hover .video-play, .video-poster:focus .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-poster:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.vc-label { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #fff; font-size: .8rem; font-weight: 600; }
.video-meta { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vm-head b { font-size: .98rem; }
.vm-head .tier { margin-left: auto; }
.video-meta p { margin: 2px 0 6px; font-size: .85rem; line-height: 1.45; }
.vm-link { margin-top: auto; font-weight: 600; color: var(--primary); text-decoration: none; font-size: .88rem; }
.vm-link:hover { text-decoration: underline; }
.video-poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cta { position: absolute; right: 10px; bottom: 10px; z-index: 3; background: var(--grad); color: #fff; font-weight: 700; font-size: .82rem; padding: 8px 13px; border-radius: 9px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.video-cta:hover { filter: brightness(1.06); color: #fff; transform: translateY(-1px); }
.vm-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.vm-actions .vm-cta { box-shadow: 0 5px 14px rgba(79,70,229,.28); }

/* ---- footer ---- */
.site-footer { background: linear-gradient(180deg, #0b0d1a 0%, #12142e 100%); color: #c9cde0; margin-top: 48px; padding: 50px 0 22px; border-top: 1px solid rgba(124,58,237,.35); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .dot { background: var(--grad); }
.site-footer h4 { color: #fff; font-size: .92rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #aab0cc; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #242848; margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #8b91b0; }
.footer-social { margin-top: 14px; font-size: .88rem; color: #aab0cc; }
.footer-social a { color: #aab0cc; }
.footer-social a:hover { color: #fff; }

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-side { display: block; }
  .bf-row { grid-template-columns: 1fr; gap: 10px; }
  .bf-cta { flex-direction: row; flex-wrap: wrap; }
  .glance { min-width: 600px; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pc { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .free-legend { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: block; }
  .lang { margin-left: auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 34px; }
  .hero .lead { font-size: 1rem; }
  .section { padding: 42px 0; }
  .glance-sec { padding-top: 38px; }
  .score-row { grid-template-columns: 100px 1fr 46px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .tool-hero { gap: 12px; }
  .cta-band { padding: 24px 22px; }
}
@media (max-width: 560px) { .demo-grid { grid-template-columns: 1fr; } }
