/* RevidAPI AI Video — nội dung trắng/xanh giống lipsync (header/footer: revid-chrome.css) */
:root {
  --green: #15803d;
  --green-light: #f0fdf4;
  --green-mid: #dcfce7;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --bg: #fff;
  --bg2: #f8fafc;
  --radius: 12px;
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { background: #fff; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Hero — split layout giống revid.ai (3 card fan), nền trắng/xanh RevidAPI */
.hero {
  padding: 32px 0 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.hero-split {
  display: grid;
  gap: 16px 32px;
  align-items: center;
  text-align: left;
}
.hero-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 1; min-width: 0; padding: 8px 0; }
.hero-visual { grid-column: 2; grid-row: 1; }
.hero-actions { grid-column: 1; grid-row: 2; }
@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 36px;
    align-items: center;
    min-height: min(520px, 72vh);
  }
  .hero-visual { grid-row: 1 / span 2; align-self: center; }
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.hero-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.45;
}
.hero-points li i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 1px;
}
.hero-actions .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-actions .hero-note { margin-top: 10px; }
.hero-actions .hero-social { margin-top: 14px; max-width: 100%; }
.hero-copy .hero-cta { justify-content: flex-start; }
.hero-accent {
  background: linear-gradient(90deg, #15803d 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  max-width: 380px;
}
.hero-avatars { display: flex; }
.hero-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #15803d, #06b6d4);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  margin-left: -8px;
}
.hero-av:first-child { margin-left: 0; }
.hero-stars { color: #15803d; font-size: 0.75rem; letter-spacing: 1px; }
.hero-loved { font-size: 0.78rem; color: var(--muted); }
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: min(580px, 78vh);
  min-height: 520px;
  margin: 0 auto;
  flex-shrink: 0;
  contain: layout style;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(620px, 95%);
  height: min(620px, 95%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 128, 61, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 100%;
  margin: 0 auto;
}
.hero-card,
.hero-card.demo-vid-wrap {
  position: absolute !important;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 18px 48px rgba(21, 128, 61, 0.14), 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 3px solid #fff;
  width: 228px;
  height: 405px;
  transform-origin: center center;
}
.hero-card.demo-vid-wrap {
  width: 228px;
  height: 405px;
}
.hero-card .demo-vid-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-card .demo-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
}
.hero-card-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(21, 128, 61, 0.92);
  color: #fff;
  pointer-events: none;
}
/* Fan 3 card — giống revid.ai */
.hero-card--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 258px;
  height: 458px;
  z-index: 3;
}
.hero-card--left {
  left: 26%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-11deg);
  z-index: 1;
}
.hero-card--right {
  left: 74%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(11deg);
  z-index: 2;
}
@media (max-width: 959px) {
  .hero-split { text-align: center; }
  .hero-copy, .hero-visual, .hero-actions { grid-column: 1; grid-row: auto; }
  .hero-visual { order: -1; }
  .hero-actions .hero-cta { justify-content: center; }
  .hero-actions .hero-social { margin-left: auto; margin-right: auto; }
  .hero-points { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
  .hero-visual {
    max-width: min(440px, 94vw);
    height: min(480px, 68vh);
    min-height: 420px;
  }
  .hero-stack { max-width: 420px; }
  .hero-card { width: 178px; height: 316px; }
  .hero-card--center { width: 202px; height: 358px; }
  .hero-card--left { left: 25%; }
  .hero-card--right { left: 75%; }
}
@media (min-width: 960px) {
  .hero-visual { margin: 0 0 0 auto; width: 100%; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(21, 128, 61, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0;
  color: var(--text);
  position: relative;
}
.hero-split .hero-copy h1 { max-width: none; margin-bottom: 14px; }
.hero .lead {
  margin: 0;
  max-width: 36em;
  font-size: 1rem;
  color: var(--muted);
  position: relative;
  line-height: 1.6;
}
.hero-cta {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
}
.stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
}
.hero-stats { margin-top: 28px; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
  transition: 0.18s;
}
.stat:hover {
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.1);
}
.stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
}
.stat span { font-size: 0.82rem; color: var(--muted); }

/* Sections — đồng bộ lipsync */
.section {
  padding: 36px 0;
  background: #fff;
  position: relative;
  z-index: 1;
}
.eco {
  position: relative;
  z-index: 1;
}
.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.section-head h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.showcase-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: 0.18s;
}
.showcase-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 28px rgba(21, 128, 61, 0.09);
  transform: translateY(-2px);
}
.showcase-card .thumb {
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.showcase-card .body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.35;
}
.ep-thumb.demo-vid-wrap .demo-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #86efac;
  color: var(--green);
}
.showcase-card .body { padding: 12px 14px; background: #fff; }
.showcase-card .body a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.showcase-card .body a:hover { text-decoration: underline; }

/* AI Magic — tabs & demo trắng */
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.tool-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.tool-tab:hover {
  border-color: #86efac;
  color: var(--green);
}
.tool-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.tool-panel { display: none; }
.tool-panel.active { display: block; }
.tool-demo {
  display: grid;
  gap: 20px;
  border-radius: 18px;
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, var(--green-light) 0%, #fff 72%);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(21, 128, 61, 0.07);
}
@media (min-width: 900px) {
  .tool-demo { grid-template-columns: 1fr 300px; align-items: stretch; min-height: 380px; }
  .tool-demo--studio { grid-template-columns: 1fr 1.15fr; }
  .tool-demo--motion { grid-template-columns: 1fr auto 300px; gap: 12px 16px; }
}
.panel-input,
.studio-input,
.motion-input-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.panel-output {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
@media (min-width: 900px) {
  .panel-output { min-height: 0; height: 100%; }
}
.script-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.6;
  border: 1px solid var(--border);
}
.script-box .label {
  color: var(--green);
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.script-box p { margin-bottom: 8px; }
.script-box p:last-child { margin-bottom: 0; }

/* Studio / Motion panels — giống revid.ai Animate Photo */
.tool-demo--studio,
.tool-demo--motion {
  align-items: stretch;
}
@media (min-width: 900px) {
  .tool-demo--motion {
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
  }
}
.studio-input .label,
.motion-input-side .label {
  color: var(--green);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.studio-input,
.motion-input-side,
.studio-form {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}
.studio-form .prompt-editor {
  min-height: 100px;
  flex: 0 0 auto;
}
.cfg-advanced {
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}
.cfg-advanced-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  border-bottom: 1px solid #dcfce7;
  background: #f0fdf4;
}
.cfg-advanced-head i { font-size: 1rem; }
.cfg-panel {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cfg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cfg-field--full { grid-column: 1 / -1; }
.cfg-row {
  display: grid;
  gap: 10px;
}
.cfg-row--2 { grid-template-columns: 1fr 1fr; }
.cfg-row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .cfg-row--2, .cfg-row--3 { grid-template-columns: 1fr; }
}
.cfg-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
}
.cfg-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  color: #111827;
}
.cfg-select i:first-child { color: var(--green); font-size: 1rem; }
.cfg-select i:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 1rem;
}
.cfg-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cfg-mode-tab {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.cfg-mode-tab.is-active {
  border-color: var(--green);
  color: var(--green);
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.15);
}
.cfg-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cfg-upload-slot {
  border: 1px dashed #86efac;
  border-radius: 12px;
  background: #fff;
  padding: 12px 10px;
  text-align: center;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cfg-upload-slot i { font-size: 1.4rem; color: var(--green); opacity: 0.7; }
.cfg-upload-slot span { font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.cfg-upload-slot strong {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cfg-upload-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.cfg-tag-opt {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ecfdf5;
  color: var(--green);
}
.motion-input-side { justify-content: flex-start; }
.motion-input-side .cfg-advanced { margin-top: 4px; }
.tool-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -4px 0 0;
}
.prompt-editor {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  flex: 1;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
.prompt-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #374151;
  font-style: italic;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  flex: 1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--green);
}
.chip-model {
  background: #ecfdf5;
  border-color: #86efac;
}
.motion-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.motion-slot {
  flex: 1 1 0;
  min-width: 0;
  max-width: 148px;
}
.motion-slot-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.motion-ref-img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  background: #f1f5f9;
}
.motion-slot--vid {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
  min-height: 220px;
}
.motion-slot--vid.demo-vid-wrap {
  width: 100%;
}
.motion-slot--vid .demo-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.motion-flow-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 2rem;
  opacity: 0.85;
}
@media (min-width: 900px) {
  .motion-flow-arrow { display: flex; }
}
.motion-slot--vid .motion-slot-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  margin: 0;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
.motion-plus {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
}
.preview-box {
  border-radius: 14px;
  min-height: 200px;
  background: #0f172a;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.preview-box.preview-box--9x16 {
  aspect-ratio: 9/16;
  width: 100%;
  max-width: 300px;
  max-height: 420px;
  min-height: 0;
  margin: 0 auto;
}
.preview-box.preview-box--16x9 {
  aspect-ratio: 16/9;
  max-width: none;
  max-height: none;
  min-height: 220px;
  width: 100%;
}
@media (min-width: 900px) {
  .panel-output .preview-box--9x16 {
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: 420px;
  }
  .tool-demo--studio .preview-box--16x9 {
    width: 100%;
    min-height: 280px;
  }
}
.final-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.preview-box i { display: none; }
.preview-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.92) 45%, #fff 100%);
  width: 100%;
}
.preview-meta span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

/* Video demo — autoplay muted giống lipsync */
.demo-vid-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
}
.hero-stack .demo-vid-wrap:not(.is-playing)::after {
  display: none;
}
.hero-stack .demo-vid {
  opacity: 1;
}
.hero-stack .demo-vid-wrap {
  background: #0f172a;
}
.demo-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.demo-vid-wrap.is-playing .demo-vid { opacity: 1; }
.demo-vid-wrap:not(.is-playing)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  z-index: 0;
}
.film-card .poster,
.ep-card .ep-thumb {
  position: relative;
}
.film-card .dur {
  position: relative;
  z-index: 2;
}

/* Short films */
.film-grid { display: grid; gap: 14px; }
@media (min-width: 768px) {
  .film-grid { grid-template-columns: repeat(3, 1fr); }
}
.film-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: 0.18s;
}
.film-card:hover {
  border-color: #86efac;
  box-shadow: 0 8px 28px rgba(21, 128, 61, 0.09);
  transform: translateY(-2px);
}
.film-card .poster {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  display: flex;
  align-items: flex-end;
  padding: 14px;
  min-height: 160px;
}
.film-card .dur {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #86efac;
  color: var(--green);
}
.film-card .info {
  padding: 16px 18px;
  background: #fff;
}
.film-card h3 { font-size: 0.96rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.film-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }

/* Series */
.series-title {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.series-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.series-scroll::-webkit-scrollbar { height: 6px; }
.series-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.ep-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: 0.18s;
}
.ep-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.1);
}
.ep-card .ep-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  min-height: 140px;
}
.ep-yt {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.ep-yt .yt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.ep-yt .yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.25);
  transition: opacity 0.2s, transform 0.15s;
}
.ep-yt .yt-play i { margin-left: 3px; }
.ep-yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.05); }
.ep-yt .yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.ep-yt.is-playing .yt-frame {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}
.ep-card .ep-body { padding: 14px; background: #fff; }
.ep-card .ep-num { font-size: 0.72rem; color: var(--green); font-weight: 800; letter-spacing: 0.04em; }
.ep-card h4 { font-size: 0.92rem; margin-top: 4px; color: var(--text); font-weight: 600; }

/* Features grid */
.feat-grid { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}
.feat-grid--studio {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .feat-grid--studio { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .feat-grid--studio { grid-template-columns: repeat(5, 1fr); }
}
.feat-grid--benefits {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feat-grid--benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .feat-grid--benefits { grid-template-columns: repeat(2, 1fr); }
}
.feat-grid--benefits .feat-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.feat-grid--benefits .feat-card p { flex: 1; }
.feat-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  transition: 0.18s;
}
a.feat-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.feat-card:hover {
  border-color: #86efac;
  box-shadow: 0 8px 28px rgba(21, 128, 61, 0.09);
  transform: translateY(-2px);
}
.feat-card i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 10px;
}
.feat-card h3 { font-size: 0.96rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.feat-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }

/* Testimonials */
.testi-grid { display: grid; gap: 14px; }
@media (min-width: 768px) {
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
}
.testi {
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}
.testi p { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.testi .who strong { display: block; font-size: 0.88rem; color: var(--text); }
.testi .who span { font-size: 0.78rem; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; align-items: stretch; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.steps--equal .step {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.steps--equal .step p { flex: 1; }
.step {
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.step h3 { font-size: 0.95rem; margin-bottom: 6px; color: var(--text); font-weight: 700; }
.step p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.tool-link {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: 0.15s;
}
.tool-link:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.1);
}
.tool-link i { margin-right: 8px; color: var(--green); }

/* FAQ — giống lipsync */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: #fff;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.faq-q i { color: var(--muted); transition: 0.2s; }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--green); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 18px 16px; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.faq-help { text-align: center; margin-top: 24px; font-size: 0.9rem; }

/* CTA — giống lipsync */
.cta-band {
  text-align: center;
  padding: 48px 32px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  margin: 0;
}
.cta-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #fff;
}
.cta-band p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}
.cta-band .hero-cta { margin-top: 20px; }
.cta-band .btn-green {
  background: #fff;
  color: var(--green);
}
.cta-band .btn-green:hover {
  background: var(--green-light);
}
.cta-band .hero-note { color: rgba(255, 255, 255, 0.85); }

.section-cta { padding: 28px 0 36px; background: #fff; }
.section-cta-link,
.series-cta {
  text-align: center;
  margin-top: 24px;
}

/* API section */
.api-inline-code {
  font-size: 0.88em;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--green);
  font-weight: 600;
}
.api-layout {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 960px) {
  .api-layout { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.api-endpoints {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.api-flow-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.api-flow {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.api-flow code,
.api-route-path,
.api-auth code {
  font-size: 0.82em;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: #111827;
}
.api-route-grid {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
}
@media (min-width: 640px) {
  .api-route-grid { grid-template-columns: 1fr 1fr; }
}
.api-route {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.api-route:hover { border-color: #86efac; background: #fff; }
.api-route:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.25);
}
.api-route.is-active {
  border-color: var(--green);
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.18);
}
.api-route-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.api-route-path {
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}
.api-route p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.api-method {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 5px;
}
.api-method--post {
  background: #ecfdf5;
  color: var(--green);
}
.api-method--get {
  background: #eff6ff;
  color: #1d4ed8;
}
.api-code-panel {
  background: #0f172a;
  border-radius: 16px;
  border: 1px solid #1e293b;
  padding: 18px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.api-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.api-code-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.api-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.api-copy-btn:hover {
  border-color: #86efac;
  color: #86efac;
}
.api-copy-btn.is-copied {
  border-color: #86efac;
  background: rgba(134, 239, 172, 0.12);
  color: #86efac;
}
.api-copy-btn i { font-size: 0.95rem; }
.api-code-head a {
  color: #86efac;
  text-decoration: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.api-code-head a:hover { text-decoration: underline; }
.api-code {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #334155;
  overflow-x: auto;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #cbd5e1;
  flex: 0 0 auto;
  min-height: 180px;
  max-height: 280px;
}
.api-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.api-cmt { color: #64748b; }
.api-models {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #334155;
  flex: 1 1 auto;
}
.api-models-title {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.api-model-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.api-model-group {
  opacity: 0.55;
  transition: opacity 0.15s;
}
.api-model-group.is-highlight { opacity: 1; }
.api-model-cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 6px;
}
.api-model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.api-model-chip {
  font-size: 0.68rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 4px 8px;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
}
.api-model-group.is-highlight .api-model-chip {
  border-color: rgba(134, 239, 172, 0.35);
}
.api-auth {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #94a3b8;
}
.api-auth code {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
.api-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 16px;
}
.api-cta-row .btn-outline {
  border-color: #475569;
  color: #e2e8f0;
}
.api-cta-row .btn-outline:hover {
  border-color: #86efac;
  color: #86efac;
  background: rgba(134, 239, 172, 0.08);
}

@media (max-width: 900px) {
  .section { padding: 28px 0; }
  .hero { padding: 20px 0 16px; }
  .cta-band { padding: 36px 20px; border-radius: 16px; }
}

/* Guides / blog cards — YouTube thumbnails, lazy load */
.section-sub { color: var(--muted); max-width: 42rem; margin: 0.5rem auto 0; font-size: 0.95rem; }
.guides-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.guides-grid--5 .guide-card { border-radius: 10px; }
.guides-grid--5 .guide-card-body { padding: 10px 10px 12px; }
.guides-grid--5 .guide-card-body h3 { font-size: 0.82rem; margin: 0; line-height: 1.35; }
.guide-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.guide-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  text-decoration: none;
}
.guide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}
.guide-card-body { padding: 14px 16px 18px; flex: 1; }
.guide-card-body h3 { font-size: 1rem; margin: 0; line-height: 1.35; color: var(--text); }
.guide-card-body p { display: none; }
@media (max-width: 900px) {
  .guides-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .guides-grid { grid-template-columns: 1fr; }
}
