:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --paper: #f1f5f9;
  --white: #fff;
  --brand: #0d9488;
  --brand-deep: #0f766e;
  --brand-dark: #134e4a;
  --accent: #0284c7;
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  background: var(--paper);
  overflow-x: hidden;
}
body.nav-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }
@media (max-width: 480px) {
  .wrap { width: min(1100px, calc(100% - 1.25rem)); }
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 12px;
  position: relative;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-slogan { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { font-size: 14px; color: var(--muted); font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--brand-deep); }
.nav-cta {
  background: var(--brand); color: #fff !important; padding: 8px 14px;
  border-radius: 999px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--brand-deep); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(15, 23, 42, 0.35);
  z-index: 30;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-backdrop:not([hidden]) { display: block; }
  .brand-slogan { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px max(0.75rem, calc((100vw - 100%) / 2 + 0.25rem));
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    z-index: 35;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a {
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 16px;
  }
  .nav a.active { background: rgba(13, 148, 136, 0.08); }
  .nav-cta {
    margin-top: 4px;
    text-align: center;
    border-radius: 12px !important;
    padding: 12px 14px !important;
  }
}

.hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(13,148,136,0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(2,132,199,0.18), transparent 50%),
    linear-gradient(180deg, #ecfeff 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center;
}
@media (max-width: 860px) {
  .hero { padding: 36px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
}
.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #0f172a;
  aspect-ratio: 9 / 14;
  max-height: 520px;
  width: 100%;
  justify-self: end;
}
@media (max-width: 860px) {
  .hero-media {
    max-height: min(58vh, 420px);
    aspect-ratio: 9 / 12;
    border-radius: 16px;
    justify-self: stretch;
  }
}
.hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media .badge {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(15,23,42,0.72); color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.demo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}
.demo-card video, .demo-card img.cover {
  width: 100%; aspect-ratio: 9/12; object-fit: cover; background: #0f172a; display: block;
}
.demo-card .body { padding: 14px 16px 16px; }
.demo-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.demo-card p { color: var(--muted); font-size: 13px; }

/* Custom demo player */
.lf-player {
  position: relative;
  aspect-ratio: 9 / 12;
  background: #0f172a;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}
.lf-player video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.lf-player-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px; height: 64px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
  z-index: 2;
}
.lf-player-play::before {
  content: "";
  position: absolute;
  left: 26px; top: 20px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #fff;
}
.lf-player:hover .lf-player-play { transform: scale(1.06); background: var(--brand-deep); }
.lf-player.is-playing .lf-player-play {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}
.lf-player-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.lf-player:hover .lf-player-bar,
.lf-player.is-playing .lf-player-bar,
.lf-player.is-paused .lf-player-bar { opacity: 1; }
.lf-player-progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  overflow: hidden;
}
.lf-player-progress i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
}
.lf-player-time {
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  min-width: 2.5em;
  text-align: right;
}
.storyboard {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px;
}
.storyboard img {
  width: 100%; aspect-ratio: 9/12; object-fit: cover; border-radius: 8px; border: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 6.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 36rem; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .hero p { font-size: 0.98rem; margin-bottom: 18px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
    padding: 12px 14px;
    font-size: 14px;
  }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 10px; font-weight: 700; border: none; cursor: pointer;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.hero-panel {
  background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-panel h3 { margin-bottom: 10px; font-size: 1rem; }
.hero-panel ul { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.hero-panel li::before { content: "✓ "; color: var(--brand); font-weight: 800; }

.section { padding: 56px 0; }
.section h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 4.5vw, 1.75rem); letter-spacing: -0.02em; margin-bottom: 10px;
}
.section .lead { color: var(--muted); margin-bottom: 28px; max-width: 40rem; }
@media (max-width: 560px) {
  .section { padding: 40px 0; }
  .section .lead { font-size: 0.95rem; margin-bottom: 20px; }
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}
.card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 14px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line);
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(13,148,136,0.15);
}
.price-card .tag { font-size: 12px; color: var(--brand-deep); font-weight: 700; margin-bottom: 8px; }
.price-card .amount { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.price-card ul { margin-top: 14px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }

.steps { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px;
  background: #fff;
}
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.admin-box {
  max-width: 720px; margin: 40px auto; background: #fff; border-radius: 16px;
  padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.admin-box.admin-wide { max-width: 1100px; }
.admin-box h1 { font-size: 1.4rem; margin-bottom: 16px; }
.admin-box label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.admin-box input, .admin-box textarea, .admin-box select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: #fff;
}
.admin-box select { max-width: 220px; width: auto; }
.admin-box .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.admin-hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.admin-stack { display: grid; gap: 10px; }
.admin-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.admin-table th { background: #f8fafc; font-weight: 700; color: var(--muted); white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-detail {
  margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc;
}
.admin-detail h3 { font-size: 1.05rem; margin-bottom: 8px; }
.admin-detail h4 { font-size: 0.95rem; margin: 10px 0; }
.admin-pre {
  max-height: 240px; overflow: auto; background: #0f172a; color: #e2e8f0;
  padding: 12px; border-radius: 8px; font-size: 12px; margin: 6px 0 12px;
}
.admin-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(13,148,136,0.12); color: var(--brand-deep); font-size: 12px; font-weight: 700;
}
.admin-price-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin-bottom: 8px;
}
@media (max-width: 720px) { .admin-price-grid { grid-template-columns: 1fr; } }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.msg { margin-top: 12px; font-size: 14px; color: var(--brand-deep); }
.msg.err { color: #b91c1c; }
.btn.is-disabled, a.btn.is-disabled {
  opacity: 0.55; pointer-events: none; cursor: not-allowed;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a:hover { color: var(--brand-deep); }
.price-meter {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px 16px;
}
.price-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 280px; }
.price-table th, .price-table td {
  padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left;
}
.price-table th { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .price-meter { padding: 6px 12px 12px; }
  .price-table { font-size: 13px; }
  .price-table th, .price-table td { padding: 10px 6px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lf-player-play { width: 56px; height: 56px; }
  .lf-player-play::before { left: 22px; top: 17px; border-width: 11px 0 11px 16px; }
  .lf-player-bar { opacity: 1; }
}
.legal h3 { margin: 22px 0 8px; font-size: 1.1rem; }
.legal ul { margin: 8px 0 12px 1.2rem; color: var(--muted); display: grid; gap: 6px; }
.legal p { color: var(--muted); margin-bottom: 10px; }
.demo-grid > img.cover {
  width: 100%; aspect-ratio: 9/12; object-fit: cover; border-radius: 12px; border: 1px solid var(--line);
  background: #0f172a;
}

/* UGC selling points */
.compare-note {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.25);
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.65), rgba(224, 242, 254, 0.5));
  color: var(--ink-soft, #334155);
  font-size: 14px;
  line-height: 1.65;
}
.compare-note strong { color: var(--brand-deep); }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.pillar .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}
.pillar h3 { font-size: 1.02rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.pillar p { color: var(--muted); font-size: 13px; line-height: 1.55; }
