:root {
  --bg: #07080c;
  --bg2: #0d0f16;
  --card: #12151e;
  --line: rgba(255, 255, 255, 0.08);
  --fg: #f4f5f8;
  --muted: #9aa1b2;
  --rec: #ff4d5e;
  --glow1: #ff5f6d;
  --glow2: #7c5cff;
  --glow3: #29c6ff;
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; background: linear-gradient(100deg, var(--glow1), var(--glow2) 55%, var(--glow3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px 28px;
  background: rgba(7, 8, 12, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 14px 3px rgba(255, 77, 94, 0.55); display: inline-block; }
.nav nav { display: flex; gap: 22px; margin: 0 auto; }
.nav nav a, .lang { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav nav a:hover, .lang:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 18px; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--fg); color: #0a0b10; box-shadow: 0 8px 30px rgba(255, 95, 109, 0.25), 0 0 0 1px rgba(255,255,255,.1) inset; transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(124, 92, 255, 0.35); }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* hero */
.hero { position: relative; text-align: center; padding: 96px 24px 40px; max-width: 1200px; margin: 0 auto; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: -1; }
.g1 { width: 520px; height: 520px; background: var(--glow1); top: -120px; left: 8%; opacity: .28; }
.g2 { width: 560px; height: 560px; background: var(--glow2); top: 40px; right: 4%; opacity: .32; }
.g3 { width: 620px; height: 380px; background: var(--glow2); left: 50%; top: 10%; transform: translateX(-50%); opacity: .25; }
h1 { font-size: clamp(44px, 8vw, 92px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.sub { max-width: 640px; margin: 26px auto 0; font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); }
.cta { margin-top: 34px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* hero stage */
.stage-wrap { margin-top: 64px; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 22px; }
.toggle button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all .25s; }
.toggle button.on { background: var(--fg); color: #0a0b10; font-weight: 600; }

.stage { position: relative; aspect-ratio: 16 / 9; max-width: 1040px; margin: 0 auto; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: #1b1d24; transition: background .6s; cursor: pointer; }
.stage.glow-mode { background: var(--wall) center / cover; box-shadow: 0 40px 120px rgba(124, 92, 255, 0.18); }
.cam-frame { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform 1.1s cubic-bezier(.65, 0, .25, 1); }
.win { position: absolute; inset: 0; background: #fbfbfd; color: #1b1d24; display: flex; flex-direction: column; overflow: hidden; transition: inset .6s, border-radius .6s, box-shadow .6s; text-align: left; }
.glow-mode .win { inset: 8.5% 9%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.bar { height: 30px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #eceef3; border-bottom: 1px solid #dfe2e8; font-size: 12px; color: #6b7080; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.bar i:nth-child(2) { background: #febc2e; } .bar i:nth-child(3) { background: #28c840; }
.bar span { margin-left: 10px; font-weight: 600; }
.app { flex: 1; display: flex; min-height: 0; }
.app aside { width: 15%; background: #f2f3f7; border-right: 1px solid #e4e6ec; padding: 4% 2.5%; display: flex; flex-direction: column; gap: 9%; }
.app aside b { height: 8px; border-radius: 4px; background: #d6d9e2; }
.app aside b:first-child { background: #7c5cff; width: 70%; }
.app main { flex: 1; padding: 3.5%; display: flex; flex-direction: column; gap: 5%; min-width: 0; }
.row { display: flex; gap: 3.5%; align-items: center; }
.tile { flex: 1; border-radius: 10px; padding: 3.5% 4%; background: #f4f5f9; border: 1px solid #e7e9ef; display: flex; flex-direction: column; font-size: clamp(8px, 1.1vw, 12px); color: #7a8092; }
.tile strong { font-size: clamp(12px, 2vw, 22px); color: #14161d; letter-spacing: -0.02em; }
.tile.a strong { color: #7c5cff; }
.chart { flex: 1; border-radius: 10px; background: linear-gradient(180deg, #f6f4ff, #fff); border: 1px solid #ebe8fb; color: #7c5cff; padding: 2%; min-height: 0; }
.chart svg { width: 100%; height: 100%; }
.pill-btn { flex: none; padding: 1.6% 3.6%; border-radius: 999px; background: #14161d; color: #fff; font-size: clamp(8px, 1.1vw, 13px); font-weight: 600; }
.line { flex: 1; height: 8px; border-radius: 4px; background: #e8eaf0; }

.cursor { position: absolute; left: 30%; top: 60%; transition: left 1.1s cubic-bezier(.65, 0, .25, 1), top 1.1s cubic-bezier(.65, 0, .25, 1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); pointer-events: none; }
.stage:not(.glow-mode) .cursor { transition: none; }
.ripple { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgba(124, 92, 255, .85); opacity: 0; pointer-events: none; }
.ripple.go { animation: rip .7s ease-out; }
@keyframes rip { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.stage:not(.glow-mode) .ripple { display: none; }
.caption, .keycap { position: absolute; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity .4s; pointer-events: none; white-space: nowrap; }
.caption { bottom: 5%; font-weight: 800; font-size: clamp(14px, 2.6vw, 28px); color: #fff; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 0 6px #000, 0 2px 0 #000; }
.keycap { bottom: 15%; padding: 5px 12px; border-radius: 10px; background: rgba(20, 22, 29, .82); color: #fff; font-size: clamp(11px, 1.4vw, 15px); font-weight: 600; }
.glow-mode .caption.show, .glow-mode .keycap.show { opacity: 1; }

/* sections */
.sec { max-width: var(--max); margin: 0 auto; padding: 110px 24px 20px; position: relative; }
.sec.wide { max-width: 1280px; }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--glow1); }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin-top: 12px; max-width: 820px; }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 680px; }
.grid4, .grid3 { display: grid; gap: 16px; margin-top: 44px; }
.grid4 { grid-template-columns: repeat(4, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(124, 92, 255, .4); transform: translateY(-2px); }
.card h3 { font-size: 17px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* formats demo */
.fmt-demo { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.fmt-btns, .cap-btns { display: inline-flex; gap: 8px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.fmt-btn, .cap-btn { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.fmt-btn.on, .cap-btn.on { background: var(--fg); color: #0a0b10; font-weight: 600; }
.fmt-box { position: relative; height: 420px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--wall) center / cover; transition: aspect-ratio .7s cubic-bezier(.65,0,.25,1); max-width: 100%; }
.fmt-box[data-fmt="1:1"] { aspect-ratio: 1; }
.fmt-box[data-fmt="9:16"] { aspect-ratio: 9 / 16; }
.fmt-card { position: absolute; inset: 12% 10%; background: #fbfbfd; border-radius: 12px; padding: 7%; display: flex; flex-direction: column; gap: 9%; box-shadow: 0 20px 60px rgba(0,0,0,.4); transition: inset .7s cubic-bezier(.65,0,.25,1); }
.fmt-box[data-fmt="9:16"] .fmt-card { inset: 18% 6% 30% 6%; }
.fmt-box[data-fmt="1:1"] .fmt-card { inset: 14% 8% 22% 8%; }
.fmt-line { height: 10px; border-radius: 5px; background: #dde0e8; }
.w60 { width: 60%; background: #7c5cff; } .w80 { width: 80%; } .w40 { width: 40%; }
.fmt-btnfake { margin-top: auto; width: 34%; height: 18px; border-radius: 999px; background: #14161d; }
.fmt-cam { position: absolute; right: 4%; bottom: 5%; width: 17%; aspect-ratio: 1; border-radius: 26%; background: linear-gradient(160deg, #ffd5b8, #c98f78); border: 2px solid rgba(255,255,255,.8); transition: all .7s cubic-bezier(.65,0,.25,1); }
.fmt-box[data-fmt="9:16"] .fmt-cam { width: 34%; }
.fmt-box[data-fmt="1:1"] .fmt-cam { width: 22%; }

/* captions demo */
.cap-demo { margin: 44px 0 22px; height: 300px; border-radius: 20px; background: var(--wall) center / cover; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 46px; overflow: hidden; }
.cap-sample { font-size: clamp(20px, 3.4vw, 38px); font-weight: 800; color: #fff; transition: all .3s; text-align: center; padding: 0 20px; }
.cap-sample.classic { font-weight: 600; background: rgba(0,0,0,.72); padding: 6px 16px; border-radius: 6px; font-size: clamp(16px, 2.4vw, 26px); }
.cap-sample.outline { -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 0 8px #000, 0 3px 0 #000; }
.cap-sample.pill { background: rgba(255,255,255,.9); color: #14161d; padding: 8px 22px; border-radius: 999px; font-size: clamp(16px, 2.4vw, 26px); font-weight: 700; }
.cap-sample.karaoke { -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 0 8px #000; }
.cap-sample.karaoke .hl { color: #ffd60a; }
.cap-btns { display: flex; width: fit-content; margin: 0 auto; flex-wrap: wrap; justify-content: center; }

/* wallpapers */
.walls { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.walls img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); transition: transform .3s; }
.walls img:hover { transform: scale(1.03); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); }

.final { text-align: center; padding-top: 140px; padding-bottom: 60px; }
.final h2, .final .lead { margin-left: auto; margin-right: auto; }

.faq { margin-top: 30px; max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); }

footer { max-width: var(--max); margin: 80px auto 0; padding: 30px 24px 50px; border-top: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
footer span:first-child { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav { justify-content: space-between; padding: 12px 16px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .walls { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 0; }
  .fmt-box { height: 320px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 64px; }
  .sec { padding: 80px 16px 10px; }
  .grid4, .grid3 { grid-template-columns: 1fr; }
  .stage { border-radius: 14px; }
  .fmt-box { height: 260px; }
  .cap-demo { height: 220px; }
  .lang { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.mark { height: 22px; width: auto; }
footer .mark { height: 18px; }
