/* FastCut — landing page styles */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --ink: #0f1218;
  --ink-2: #39414f;
  --muted: #6b7482;
  --line: #e9ebf1;
  --brand-1: #ffc24b;
  --brand-2: #ff8a2b;
  --brand-3: #ff5a3c;
  --violet: #6c5cee;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16,18,24,.05), 0 8px 24px rgba(16,18,24,.06);
  --shadow-lg: 0 30px 80px -20px rgba(20,20,40,.35);
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(120deg, var(--brand-2), var(--brand-3) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #1a1206;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  box-shadow: 0 8px 22px -6px rgba(255,120,50,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(255,120,50,.6); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #d7dae3; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 16px 16px;
  pointer-events: none;                 /* only the bar itself is clickable */
  transition: padding .35s ease;
}
.nav .wrap {
  width: 100%; max-width: var(--maxw); pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px 9px 20px;
  border: 1px solid transparent; border-radius: 16px;
  transition: max-width .45s cubic-bezier(.2,.7,.2,1), background .35s ease,
              border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
/* On scroll the bar condenses into a light floating island. */
.nav.scrolled { padding-top: 10px; }
.nav.scrolled .wrap {
  max-width: 940px;
  background: rgba(255,255,255,.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-color: rgba(230,232,240,.9);
  box-shadow: 0 14px 44px -16px rgba(20,20,50,.26);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a.link:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s, color .15s; }
.lang-btn:hover { color: var(--ink); border-color: #d7dae3; }
.lang-btn svg { width: 15px; height: 15px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 132px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 60; }
.lang:hover .lang-menu, .lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: block; width: 100%; text-align: left; background: transparent; border: 0;
  cursor: pointer; padding: 8px 12px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink-2); }
.lang-menu button:hover { background: var(--bg-soft); color: var(--ink); }
.lang-menu button.active { color: var(--brand-3); font-weight: 700; }

/* Changelog */
.changelog { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.clog { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-sm); }
.clog-ver { font-weight: 800; font-size: 16px; margin-bottom: 10px; display: flex; align-items: baseline; gap: 12px; }
.clog-ver span { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.clog ul { margin: 0; padding-left: 20px; }
.clog li { color: var(--ink-2); font-size: 14.5px; margin: 7px 0; }
.clog-more { text-align: center; margin-top: 26px; }
.clog-more a { color: var(--brand-3); font-weight: 600; }

/* Hero */
.hero { position: relative; padding: 150px 0 60px; text-align: center; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: -1; pointer-events: none; }
.glow.a { width: 620px; height: 620px; top: -220px; left: -140px; background: radial-gradient(circle, #ffd27a, transparent 65%); }
.glow.b { width: 640px; height: 640px; top: -260px; right: -160px; background: radial-gradient(circle, #b9a8ff, transparent 65%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg,var(--brand-2),var(--brand-3)); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.hero p.sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(16px,2.2vw,19px); color: var(--muted); }
.hero .actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero .meta { margin-top: 18px; font-size: 13px; color: var(--muted); }
.stat {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.stat:hover { border-color: #d7dae3; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(20,20,40,.28); }
.stat svg { width: 16px; height: 16px; color: var(--brand-3); }
.stat #stat-num { color: var(--ink); font-weight: 800; }
.stat #stat-label { color: var(--muted); font-weight: 500; }

.shot { margin: 64px auto 0; max-width: 900px; position: relative; }
.shot::before {
  content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px;
  background: linear-gradient(135deg, rgba(255,160,60,.5), rgba(120,90,240,.45)); filter: blur(60px); opacity: .55;
}
.shot img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Sections */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker { font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-3); }
.section-head h2 { font-size: clamp(28px,4vw,42px); letter-spacing: -.02em; font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(20,20,40,.25); border-color: #dfe2ea; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
  background: linear-gradient(135deg, #fff2df, #ffe0d0); color: var(--brand-3);
}
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 7px; }

/* Download */
.download { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dl-card {
  max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px; text-align: center; box-shadow: var(--shadow-sm);
}
.dl-card .os { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; }
.dl-card h3 { font-size: 22px; font-weight: 800; }
.dl-card .req { color: var(--muted); font-size: 14px; margin-top: 8px; }
.dl-card .dl-count { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dl-card .dl-count #dl-n { color: var(--brand-3); }
.dl-card .cmd {
  display: flex; align-items: center; gap: 10px; margin-top: 24px;
  background: #0f1218; border: 1px solid #1e2230; border-radius: 12px; padding: 11px 12px 11px 16px;
}
.dl-card .cmd code {
  flex: 1; color: #e8eaf0; text-align: left; white-space: nowrap; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
}
.copy-btn {
  flex: none; cursor: pointer; border: none; border-radius: 8px; padding: 7px 13px;
  font-weight: 600; font-size: 13px; color: #1a1206;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); transition: transform .1s;
}
.copy-btn:active { transform: translateY(1px); }
.dl-card .or { position: relative; text-align: center; margin: 18px 0 4px; color: var(--muted); font-size: 13px; }
.dl-card .or::before, .dl-card .or::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line); }
.dl-card .or::before { left: 0; } .dl-card .or::after { right: 0; }
.dl-card .or span { background: #fff; padding: 0 12px; position: relative; }
.dl-card .actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.dl-card .note { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.dl-card .note code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 12px; }

/* Keyboard showcase */
.keys { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.keyrow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
kbd {
  font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 7px; padding: 4px 9px; min-width: 26px; text-align: center;
}
.keyrow span { color: var(--ink-2); font-size: 15px; font-weight: 500; }

/* CTA band */
.cta {
  margin: 0 24px; border-radius: 32px; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 20% 0%, #22242e, #0d0e13);
  color: #fff; text-align: center; padding: 80px 24px;
}
.cta::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 80% at 80% 20%, rgba(255,140,60,.35), transparent 60%); pointer-events:none; }
.cta h2 { font-size: clamp(28px,4.4vw,44px); font-weight: 800; letter-spacing: -.02em; position: relative; }
.cta p { color: #c4c8d4; margin-top: 14px; font-size: 17px; position: relative; }
.cta .actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; position: relative; flex-wrap: wrap; }
.cta .btn-ghost { background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.2); box-shadow:none; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.14); }

/* Footer */
footer { padding: 60px 0 40px; }
.foot { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .brand { margin-bottom: 12px; }
.foot .tag { color: var(--muted); font-size: 14px; max-width: 280px; }
.foot .author {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink-2); font-size: 14px; font-weight: 600;
  transition: color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.foot .author svg { width: 15px; height: 15px; }
.foot .author:hover { color: var(--ink); border-color: #d7dae3; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--brand-3); }
.copyright .visits #visits-n { color: var(--ink-2); font-weight: 700; }
.copyright { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }

/* Feature marquee — continuous, seamless auto-scroll */
.marquee {
  position: relative; overflow: hidden; padding: 20px 0; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: scroll-x 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.fcard {
  flex: 0 0 320px; width: 320px; margin-right: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.fcard:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -18px rgba(20,20,40,.22); border-color: #dde1ea; }
.fcard h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.fcard p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Ambient motion */
@keyframes floaty  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift-a { 0%,100% { transform: translate(0,0); }   50% { transform: translate(42px,28px); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0); }   50% { transform: translate(-38px,22px); } }
.shot img { animation: floaty 6.5s ease-in-out infinite; }
.glow.a { animation: drift-a 17s ease-in-out infinite; }
.glow.b { animation: drift-b 21s ease-in-out infinite; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } .nav-links .link { display: none; } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .foot { flex-direction: column; }
  .cta { padding: 56px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .marquee-track, .shot img, .glow { animation: none !important; }
  html { scroll-behavior: auto; }
}
