/* ============================================================
   ClipForge site — "screening room" design system, v3
   The editing-tool metaphor taken seriously: a dark cinema room,
   a projector beam lighting the stage, film-sprocket dividers,
   gradient-stroked glass cards, film grain. The dark app
   screenshots sit natively in this world. No libraries.
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e100f;
  --panel: #16171a;
  --panel-2: #1d1e23;
  --ink: #fffce1;
  --sub: #a5a3b4;
  --faint: #6d6b7d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --brand: #8b5cf6;
  --brand-2: #a78bfa;
  --grad: linear-gradient(100deg, #6366f1, #8b5cf6 55%, #d946ef);
  --glow: 0 0 60px rgba(139, 92, 246, 0.35);
  --r: 18px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* film grain over everything (SVG turbulence, extremely subtle) */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay;
  animation: grain 1.4s steps(4) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -1%); }
  75% { transform: translate(-1%, -2%); }
}
::selection { background: rgba(139, 92, 246, 0.45); }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: 13px 0;
  background: rgba(14, 16, 15, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
nav img { width: 30px; height: 30px; border-radius: 8px; }
nav .name { font-weight: 800; font-size: 17px; letter-spacing: -0.2px; }
nav .name em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--faint); margin-left: 8px; }
nav .spacer { flex: 1; }
nav a.plain { color: var(--sub); font-size: 14px; font-weight: 500; }
nav a.plain:hover { color: var(--ink); text-decoration: none; }
nav .btn { padding: 8px 18px; font-size: 13.5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1.4; position: relative; overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  text-decoration: none !important;
}
.btn-primary { background: #fff; color: #0e100f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.35); }
.btn-brand { background: var(--grad); background-size: 180% 100%; color: #fff; animation: gradslide 6s ease infinite; }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(139, 92, 246, 0.6); }
.btn-ghost { border: 1.5px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.btn-primary::after, .btn-brand::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after, .btn-brand:hover::after { animation: sheen 0.7s ease; }
@keyframes sheen { to { left: 130%; } }
@keyframes gradslide { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 30px; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(139, 92, 246, 0.1); color: var(--brand-2);
  font-size: 13px; font-weight: 600; margin-bottom: 30px;
  backdrop-filter: blur(6px);
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero h1 {
  font-size: clamp(46px, 7.4vw, 88px); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 26px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; animation: riseup 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes riseup { from { transform: translateY(112%); } to { transform: translateY(0); } }
.hero h1 .hl, .sec-head h2 .hl, .last-call h2 .hl {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 0 0.14em; border-radius: 0.09em;
  transform: rotate(-1.2deg);
}
.hero .sub { max-width: 660px; margin: 0 auto 32px; color: var(--sub); font-size: 17px; animation: fadeup 0.9s 0.25s ease both; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeup 0.9s 0.35s ease both; }
.trust { margin-top: 20px; color: var(--faint); font-size: 13.5px; animation: fadeup 0.9s 0.45s ease both; }
.trust b { color: var(--sub); font-weight: 600; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* the lit stage: app window under the beam (GSAP scrub unfolds it on scroll) */
.stage { position: relative; max-width: 980px; margin: 56px auto 0; perspective: 1400px; }
.window {
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: var(--panel);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  transform-origin: 50% 0%;
}
.window .bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.window .bar i { width: 10px; height: 10px; border-radius: 50%; }
.window .bar i:nth-child(1) { background: #ff5f57; } .window .bar i:nth-child(2) { background: #febc2e; } .window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin-left: 10px; color: var(--faint); font-size: 12px; }
/* floating capability badges — dark glass */
.fbadge {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px;
  background: rgba(20, 19, 27, 0.82); border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
}
.fbadge b { font-size: 15px; }
.fbadge.b1 { left: -26px; top: 16%; animation-delay: 0s; }
.fbadge.b2 { right: -30px; top: 34%; animation-delay: -1.6s; }
.fbadge.b3 { left: 3%; bottom: -18px; animation-delay: -3.2s; }
.fbadge.b4 { right: 5%; bottom: -14px; animation-delay: -2.4s; }
.fbadge .ok { color: #34d399; } .fbadge .price { color: #fb7185; } .fbadge .ai { color: var(--brand-2); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- platform marquee ---------- */
.marquee {
  margin: 72px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; position: relative;
}
.marquee .track { display: flex; gap: 56px; width: max-content; animation: scrollx 30s linear infinite; }
.marquee span {
  display: flex; align-items: center; gap: 56px; white-space: nowrap;
  font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -0.02em;
  color: var(--ink);
}
.marquee span:nth-child(even) {
  color: transparent; -webkit-text-stroke: 1.5px rgba(167, 139, 250, 0.75);
}
.marquee span::after { content: "✦"; font-size: 0.5em; color: var(--brand); -webkit-text-stroke: 0; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- sections & oversized chapter numbers ---------- */
section { padding: 92px 0 8px; position: relative; }
.sec-head { position: relative; text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sec-head .no {
  position: absolute; left: 50%; top: -58px; transform: translateX(-50%);
  font-size: 120px; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(167, 139, 250, 0.22);
  pointer-events: none; user-select: none; z-index: -1;
}
.sec-head .tag {
  display: inline-block; color: var(--brand-2); font-size: 13px; font-weight: 800;
  letter-spacing: 0.18em; margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(28px, 3.9vw, 44px); font-weight: 850; letter-spacing: -0.02em; line-height: 1.22; }
.sec-head p { color: var(--sub); margin-top: 12px; font-size: 15.5px; }

/* three steps — timeline */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5) 20%, rgba(217, 70, 239, 0.5) 80%, transparent);
}
.step-card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 52px 24px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--brand-2); }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 14px; left: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
}
.step-card .tc { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand-2); margin-bottom: 8px; }
.step-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.step-card p { color: var(--sub); font-size: 14px; line-height: 1.75; }

/* ---------- bento grid, gradient-stroked glass cards ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.b-card {
  position: relative; overflow: hidden; grid-column: span 2;
  border-radius: var(--r); padding: 28px 26px;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.b-card:hover { transform: translateY(-4px); border-color: var(--brand-2); }
.b-card.big { grid-column: span 4; grid-row: span 2; display: flex; gap: 28px; align-items: center; }
.b-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.b-card p { color: var(--sub); font-size: 14px; line-height: 1.78; }
.b-card p b { color: var(--ink); }
.b-card .ico {
  width: 40px; height: 40px; border-radius: 11px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  box-shadow: none;
}
.b-card .ico svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b-card.big::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 68%);
  pointer-events: none;
}

/* real generated demo videos in phone frames */
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-start; margin: 56px auto 0; }
.ph {
  position: relative; border-radius: 30px; overflow: hidden;
  background: #0d0c13; border: 6px solid #26232f;
  box-shadow: 0 34px 74px -24px rgba(0, 0, 0, 0.85);
}
.ph video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph.main { width: 276px; aspect-ratio: 9 / 16; z-index: 2; }
.ph.side { width: 214px; aspect-ratio: 9 / 16; opacity: 0.96; margin-top: 30px; }
.ph.side.l { transform: rotate(-5deg); }
.ph.side.r { transform: rotate(5deg); }
.ph.mini { flex: 0 0 auto; width: 176px; aspect-ratio: 9 / 16; border-radius: 26px; border-width: 5px; }
.ph figcaption {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.ph .snd {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 15px; line-height: 1;
  backdrop-filter: blur(4px); transition: transform 0.15s ease;
}
.ph .snd:hover { transform: scale(1.12); }
.phones-note { text-align: center; color: var(--faint); font-size: 13px; margin-top: 18px; }
.phones-note b { color: var(--sub); }

/* input-to-output strip above the demo phones: product photo -> storyboard grid -> films below */
.io-strip { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 4px; }
.io-strip figure { margin: 0; text-align: center; }
.io-strip img { width: 84px; border-radius: 10px; border: 1px solid var(--line-2); display: block; }
.io-strip figcaption { font-size: 11px; color: var(--sub); margin-top: 6px; }
.io-arrow { color: var(--faint); font-size: 20px; }

/* ---------- facts band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.stat {
  text-align: center; padding: 28px 12px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
}
.stat b {
  display: block; font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--sub); font-size: 13.5px; font-weight: 600; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- film strip with sprocket holes ---------- */
.filmreel { position: relative; padding: 26px 0; }
.filmreel::before, .filmreel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: repeating-linear-gradient(90deg,
    transparent 0 10px,
    rgba(255, 255, 255, 0.10) 10px 24px,
    transparent 24px 34px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.filmreel::before { top: 0; }
.filmreel::after { bottom: 0; }
.filmstrip { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; }
.frame {
  flex: 0 0 340px; scroll-snap-align: start;
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: var(--panel);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.frame:hover { transform: translateY(-6px) rotate(-0.5deg); border-color: var(--brand-2); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame figcaption { padding: 12px 16px; font-size: 13px; color: var(--sub); border-top: 1px solid var(--line); }
.frame figcaption b { color: var(--brand-2); margin-right: 8px; font-weight: 800; }

/* ---------- comparison tables ---------- */
.tablewrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); margin-bottom: 18px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--panel-2); font-size: 13px; color: var(--sub); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
td.win { color: var(--ink); font-weight: 600; background: rgba(139, 92, 246, 0.1); }
td.dim, td.na { color: var(--faint); }
.aftertable { text-align: center; color: var(--sub); font-size: 14px; margin-top: 6px; }
.tbl-note { color: var(--faint); font-size: 12.5px; margin-top: 10px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 2px; font-weight: 700; font-size: 15.5px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-size: 20px; font-weight: 400; transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--sub); font-size: 14.5px; padding: 0 2px 18px; line-height: 1.8; }

/* ---------- last call: type-driven, no gradient slab ---------- */
.last-call {
  margin: 96px 0 44px; padding: 84px 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.last-call h2 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.16; margin-bottom: 14px; }
.last-call p { color: var(--sub); margin-bottom: 30px; font-size: 15.5px; }

/* ---------- footer ---------- */
footer { padding: 8px 0 44px; text-align: center; color: var(--faint); font-size: 13px; }
footer a { color: var(--sub); }

/* ---------- scroll animations ----------
   Entrances are driven by GSAP ScrollTrigger (site.js). Content is
   fully visible by default so a failed CDN load degrades to a
   perfectly readable page — the JS sets initial states itself. */

/* Lenis smooth-scroll cooperation (classes added by the lib at runtime) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body::after { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-card { grid-column: span 1; }
  .b-card.big { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .miniphone { align-self: center; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .fbadge { display: none; }
  .sec-head .no { font-size: 88px; top: -44px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 60px; }
  .bento { grid-template-columns: 1fr; }
  .b-card.big { grid-column: span 1; }
  nav { gap: 14px; }
  nav a.plain { display: none; }
  nav a.plain.keep { display: inline; }
  .frame { flex-basis: 290px; }
}

/* ---------- hide desktop-download entries ---------- */
a[href*="/download/clipforge/"] { display: none !important; }


/* ---- 顶部吸顶销售联系条（两个手机号码）---- */
.salesbar{position:sticky;top:57px;z-index:45;background:linear-gradient(90deg,#5b2ee0,#7c3aed 55%,#6d28d9);box-shadow:0 6px 24px rgba(91,46,224,.45);padding:12px 20px}
.salesbar .sc-wrap{max-width:1140px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:12px 28px;flex-wrap:wrap}
.sc-item{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}
.sc-badge{font-size:12px;font-weight:700;color:#fff;background:#f97316;padding:3px 10px;border-radius:999px;box-shadow:0 2px 8px rgba(249,115,22,.5)}
.sc-badge.mgr{background:#0ea5e9;box-shadow:0 2px 8px rgba(14,165,233,.5)}
.sc-name{color:#fff;font-size:15px;white-space:nowrap}
.sc-name b{font-size:17px;margin-right:4px}
.sc-tel{display:inline-flex;align-items:center;gap:7px;color:#fff;text-decoration:none!important;font-size:16px;font-weight:700;background:rgba(255,255,255,.14);border:1.5px solid rgba(255,255,255,.55);padding:6px 16px;border-radius:999px;transition:background .15s}
.sc-tel:hover{background:rgba(255,255,255,.26);text-decoration:none!important}
.sc-tel svg{width:16px;height:16px}
.sc-copy{cursor:pointer;color:#fff;font-size:13px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.4);padding:6px 13px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;transition:background .15s}
.sc-copy:hover{background:rgba(255,255,255,.22)}
.sc-copy svg{width:13px;height:13px}
.sc-toast{position:fixed;top:130px;left:50%;transform:translateX(-50%) translateY(-8px);background:rgba(20,20,40,.94);color:#fff;font-size:13px;padding:9px 18px;border-radius:999px;opacity:0;pointer-events:none;transition:all .25s;z-index:120}
.sc-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:820px){
  .salesbar{top:56px;padding:10px 12px}
  .salesbar .sc-wrap{flex-direction:column;gap:9px}
  .sc-name{font-size:13.5px}
  .sc-tel{font-size:14.5px;padding:5px 13px}
}
