/* 码影 CodeReel — the website. One file, no framework; system fonts (SF Pro / PingFang SC on a Mac). */
:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --paper: #f5f5f7;
  --white: #fff;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --line: rgba(255, 255, 255, .1);
  --line-light: rgba(0, 0, 0, .08);
  --blue: #3f8cff;
  --violet: #7a52ff;
  --pink: #f2557a;
  --brand: linear-gradient(100deg, #5b9dff 0%, #8f6bff 48%, #ff6f95 100%);
  --cta: linear-gradient(135deg, #4f8bff 0%, #7a52ff 55%, #b04fe6 100%);
  --link: #8fb6ff;
  --link-light: #4f6bff;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
          "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--text); font: 17px/1.5 var(--font); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(122, 82, 255, .45); color: #fff; }

.wrap { width: min(1080px, 100% - 48px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
br.m { display: none; }

.gradient-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; }
.eyebrow.accent { color: var(--violet); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit;
  font-weight: 600; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s; }
.btn-pill { border-radius: 999px; color: #fff; background: var(--cta); box-shadow: 0 8px 28px rgba(122, 82, 255, .32); }
.btn-pill:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 34px rgba(122, 82, 255, .42); }
.btn-pill:active { transform: none; filter: brightness(.96); }
.btn-small { height: 30px; padding: 0 15px; font-size: 13px; box-shadow: none; }
.btn-large { height: 52px; padding: 0 32px; font-size: 17px; }
.badge-beta { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.badge-beta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8f6bff; box-shadow: 0 0 12px 2px rgba(143, 107, 255, .8);
  animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.link-more { color: var(--link); font-size: 17px; font-weight: 500; }
.link-more::after { content: " ›"; font-size: 1.1em; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid #8f6bff; outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------------ global nav */
.gnav { position: fixed; inset: 0 0 auto; z-index: 50; height: 52px; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.gnav.scrolled { background: rgba(10, 10, 12, .72); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); }
.gnav-inner { display: flex; align-items: center; gap: 28px; height: 100%; width: min(1080px, 100% - 40px); margin: 0 auto; }
.gnav-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: .08em; }
.gnav-brand.dark { color: var(--ink); letter-spacing: .02em; font-size: 15px; }
.gnav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: rgba(245, 245, 247, .8); }
.gnav-links a { transition: color .2s; }
.gnav-links a:hover { color: #fff; }
.gnav.scrolled.on-light { background: rgba(250, 250, 252, .78); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.gnav.on-light .gnav-brand { color: var(--ink); }
.gnav.on-light .gnav-links { color: rgba(29, 29, 31, .8); }
.gnav.on-light .gnav-links a:hover { color: #000; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 132px 0 120px; text-align: center; isolation: isolate; }
.hero-inner { position: relative; width: min(1080px, 100% - 40px); margin: 0 auto; }
.hero-icon { width: 128px; height: 128px; margin: 0 auto 26px; filter: drop-shadow(0 24px 60px rgba(122, 82, 255, .55)); }
.hero-title { font-size: clamp(48px, 8.2vw, 112px); line-height: 1.04; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.hero-sub { margin: 26px auto 0; max-width: 760px; text-wrap: pretty; color: var(--text-2); font-size: clamp(19px, 2.1vw, 25px); line-height: 1.55; font-weight: 500; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; color: var(--text-3); font-size: 14px; }

.aurora { position: absolute; inset: -10% -20% auto; height: 1100px; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .9; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46%; height: 52%; left: 14%; top: 4%; background: radial-gradient(closest-side, rgba(63, 140, 255, .55), transparent); }
.aurora i:nth-child(2) { width: 42%; height: 50%; left: 44%; top: 0; background: radial-gradient(closest-side, rgba(122, 82, 255, .6), transparent); animation-duration: 26s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 36%; height: 44%; left: 34%; top: 26%; background: radial-gradient(closest-side, rgba(242, 85, 122, .38), transparent); animation-duration: 30s; animation-delay: -12s; }
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, #000 92%); }
.aurora.soft { top: auto; bottom: -30%; opacity: .55; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, 4%, 0) scale(1.08); }
  100% { transform: translate3d(-5%, -3%, 0) scale(.96); }
}

/* the composer: what writing an idea in 码影 looks like */
.composer-stage { margin: 92px auto 0; width: min(780px, 100%); }
.composer { position: relative; text-align: left; padding: 24px 24px 18px; border-radius: 30px; background: rgba(30, 30, 34, .62);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 120px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); }
.composer::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(91, 157, 255, .6), rgba(143, 107, 255, .15) 40%, rgba(255, 111, 149, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; }
.composer-text { min-height: 72px; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.5; color: var(--text); font-weight: 500; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -.18em; background: #9b86ff; border-radius: 1px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: #d2d2d7;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); transition: background .4s; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.chip b { font-weight: 500; }
.chip.flash { background: rgba(143, 107, 255, .22); }
.send { margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cta);
  box-shadow: 0 6px 22px rgba(122, 82, 255, .45); transition: transform .3s var(--ease); }
.send svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.send.go { animation: press .6s var(--ease); }
@keyframes press { 30% { transform: scale(.86); } 100% { transform: scale(1); } }

.pipeline { position: relative; display: flex; justify-content: space-between; gap: 6px; margin: 30px 8px 0; padding-top: 18px; }
.pipeline::before, .pipeline::after { content: ""; position: absolute; top: 4px; left: 0; height: 2px; border-radius: 2px; }
.pipeline::before { right: 0; background: rgba(255, 255, 255, .1); }
.pipeline::after { width: var(--progress, 0%); background: var(--brand); transition: width .55s var(--ease); box-shadow: 0 0 14px rgba(143, 107, 255, .7); }
.pipeline li { position: relative; flex: 1; font-size: 13px; color: var(--text-3); transition: color .4s; white-space: nowrap; }
.pipeline li::before { content: ""; position: absolute; top: -18px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #2c2c30; box-shadow: 0 0 0 3px #000; transition: background .4s, box-shadow .4s; }
.pipeline li.done { color: var(--text-2); }
.pipeline li.done::before { background: #8f6bff; }
.pipeline li.now { color: #fff; }
.pipeline li.now::before { background: #fff; box-shadow: 0 0 0 3px #000, 0 0 16px 4px rgba(143, 107, 255, .8); }

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; }
.section.dark { background: #000; color: var(--text); }
.section.light { background: var(--paper); color: var(--ink); }
.section.white { background: var(--white); color: var(--ink); }
.headline { font-size: clamp(40px, 6vw, 80px); line-height: 1.07; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
.headline.small { font-size: clamp(32px, 4vw, 48px); }
.lede { margin-top: 26px; max-width: 760px; text-wrap: pretty; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.6; font-weight: 500; color: var(--text-2); }
.light .lede, .white .lede { color: var(--ink-2); }
.footnote { margin-top: 40px; color: var(--ink-2); font-size: 15px; }

/* statement */
.statement { text-align: center; padding-top: clamp(40px, 6vw, 80px); }
.statement-text { font-size: clamp(52px, 9vw, 128px); line-height: 1.04; font-weight: 700; letter-spacing: -.01em; }
.statement .lede { margin-left: auto; margin-right: auto; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 72px; }
.step { position: relative; padding: 30px 26px 32px; border-radius: 24px; background: var(--white); box-shadow: 0 1px 0 var(--line-light), 0 20px 50px rgba(0, 0, 0, .04); }
.step-no { display: block; font: 600 15px/1 var(--mono); letter-spacing: .08em; color: transparent; background: var(--brand);
  -webkit-background-clip: text; background-clip: text; margin-bottom: 22px; }
.mini { height: 92px; margin-bottom: 26px; border-radius: 16px; background: var(--paper); position: relative; overflow: hidden; }
.mini-input { display: flex; align-items: center; padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--ink); }
.mini-input span { white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 0; animation: type-in 4s steps(11) infinite; }
.mini-input i { width: 2px; height: 18px; margin-left: 2px; background: var(--violet); animation: blink 1.05s steps(1) infinite; }
@keyframes type-in { 0% { max-width: 0; } 55%, 100% { max-width: 11em; } }
.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; background: #1d1d1f; }
.mini-board i { border-radius: 6px; font: normal 600 9px/1 var(--mono); color: rgba(255, 255, 255, .8); padding: 5px; display: flex; align-items: flex-end; }
.mini-board i:nth-child(1) { background: linear-gradient(135deg, #3f6fd8, #5a5be0); }
.mini-board i:nth-child(2) { background: linear-gradient(135deg, #5a5be0, #7a52ff); }
.mini-board i:nth-child(3) { background: linear-gradient(135deg, #7a52ff, #9a4fe6); }
.mini-board i:nth-child(4) { background: linear-gradient(135deg, #9a4fe6, #c24fc4); }
.mini-board i:nth-child(5) { background: linear-gradient(135deg, #c24fc4, #e2538f); }
.mini-board i:nth-child(6) { background: linear-gradient(135deg, #e2538f, #f2557a); }
.mini-preview { display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: linear-gradient(135deg, #d9e4ff, #eadfff 60%, #ffe0e6); }
.mini-preview .play { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .8); position: relative; box-shadow: 0 6px 16px rgba(80, 60, 200, .18); }
.mini-preview .play::after { content: ""; position: absolute; left: 19px; top: 15px; border: 8px solid transparent; border-left: 12px solid var(--violet); border-right: 0; }
.mini-preview em { font-style: normal; font-size: 13px; font-weight: 600; color: #fff; padding: 8px 12px; border-radius: 999px; background: var(--cta); }
.mini-render { display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.mini-render svg { width: 56px; height: 56px; transform: rotate(-90deg); fill: none; stroke-width: 4.5; stroke-linecap: round; }
.mini-render circle { stroke: #e3e3e8; }
.mini-render circle.arc { stroke: #7a52ff; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
.step.in .mini-render circle.arc { animation: fill-ring 2.2s .4s var(--ease) forwards; }
@keyframes fill-ring { to { stroke-dashoffset: 0; } }
.mini-render span { display: grid; gap: 3px; }
.mini-render b { font-size: 16px; }
.mini-render em { font-style: normal; font: 11px var(--mono); color: var(--ink-2); white-space: nowrap; }
.step h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* styles */
.styles .wrap { text-align: center; }
.styles .lede { margin-left: auto; margin-right: auto; }
.marquee { margin-top: 70px; display: grid; gap: 14px; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee var(--dur, 70s) linear infinite; }
.marquee-row.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 999px; font-size: 18px; font-weight: 500;
  color: #e8e8ed; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.marquee-track span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--h) 85% 66%); box-shadow: 0 0 12px hsl(var(--h) 85% 60% / .8); }
@keyframes marquee { to { transform: translateX(-50%); } }
.types { margin: 80px auto 0; max-width: 860px; }
.types p { color: var(--text-3); font-size: 14px; letter-spacing: .08em; margin-bottom: 18px; }
.types ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--text-2); font-size: 17px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 72px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 380px; padding: 36px;
  border-radius: var(--radius); background: var(--white); overflow: hidden; box-shadow: 0 1px 0 var(--line-light), 0 24px 60px rgba(0, 0, 0, .05); }
.tile h3 { font-size: clamp(24px, 2.3vw, 30px); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.tile p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.tile-editor { grid-column: span 6; flex-direction: row; align-items: center; gap: 48px; background: #0b0b0d; color: var(--text); }
.tile-editor .tile-copy { flex: 0 0 34%; }
.tile-editor p { color: var(--text-2); }
.tile-circle, .tile-beat, .tile-subs { grid-column: span 2; }
.tile-aspect { grid-column: span 2; }
.tile-export { grid-column: span 2; }
.tile-learn { grid-column: span 2; }

/* the editor's timeline, drawn */
.timeline { position: relative; flex: 1; min-width: 0; padding: 16px 16px 18px 76px; border-radius: 18px; background: #151518; border: 1px solid rgba(255, 255, 255, .07); }
.tl-ruler { display: flex; justify-content: space-between; margin-bottom: 12px; font: 11px/1 var(--mono); color: #5c5c62; }
.tl-track { position: relative; height: 30px; margin-bottom: 8px; border-radius: 7px; background: rgba(255, 255, 255, .03); }
.tl-track.tall { height: 52px; }
.tl-track em { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: #6e6e73; white-space: nowrap; }
.tl-track i { position: absolute; top: 3px; bottom: 3px; left: var(--x); width: var(--w); border-radius: 6px; font: normal 500 11px/1 var(--font);
  display: flex; align-items: center; padding: 0 9px; color: rgba(255, 255, 255, .92); overflow: hidden; white-space: nowrap; }
.c-text { background: linear-gradient(180deg, #d9884f, #b96c37); }
.c-pip { background: linear-gradient(180deg, #4ca58f, #2f7f6c); }
.c-video { background: linear-gradient(135deg, #3d63c9, #5a46d6); }
.c-video.b { background: linear-gradient(135deg, #5b48d8, #8946cf); }
.c-video.c { background: linear-gradient(135deg, #7d47cf, #b6489f); }
.c-video.d { background: linear-gradient(135deg, #b34aa0, #d9556f); }
.c-video::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, .18) 46px 47px); }
.c-audio { background: rgba(70, 200, 140, .14); padding: 0; }
.c-audio svg { width: 100%; height: 100%; fill: none; stroke: #46c88c; stroke-width: 1.2; }
.c-audio svg path:first-child { stroke-opacity: .25; }
.tl-playhead { position: absolute; top: 8px; bottom: 8px; left: calc(76px + (100% - 92px) * .38); width: 2px; background: #fff; border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, .6); animation: scrub 9s ease-in-out infinite alternate; }
.tl-playhead::before { content: ""; position: absolute; top: -6px; left: -5px; width: 12px; height: 12px; border-radius: 3px 3px 6px 6px; background: #fff; }
@keyframes scrub { from { left: calc(76px + (100% - 92px) * .12); } to { left: calc(76px + (100% - 92px) * .86); } }

/* circle to change */
.frame-art { position: relative; margin-top: auto; }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #c8d6ff 0%, #e9d9ff 55%, #ffe1dc 100%); }
.frame .sun { position: absolute; width: 22%; aspect-ratio: 1; left: 58%; top: 16%; border-radius: 50%; background: radial-gradient(circle, #fff7e6, #ffc9a3 70%); filter: blur(.5px); }
.frame .hill { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.frame .hill.a { height: 46%; bottom: -12%; left: -30%; right: 30%; background: linear-gradient(180deg, #8a7cff, #6a58e6); }
.frame .hill.b { height: 40%; bottom: -16%; left: 30%; right: -30%; background: linear-gradient(180deg, #b56bd6, #8b4fc2); }
.scribble { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #ff3b5c; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 520; stroke-dashoffset: 520; }
.tile.in .scribble { animation: draw 1.6s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.note { position: absolute; right: -6px; bottom: -14px; padding: 9px 14px; border-radius: 14px 14px 4px 14px; font-size: 14px; font-weight: 500;
  color: #fff; background: #1d1d1f; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(8px); transition: all .6s 1.6s var(--ease); }
.tile.in .note { opacity: 1; transform: none; }

/* beats */
.beats { position: relative; height: 120px; margin-top: auto; }
.bars { position: absolute; inset: 0 0 18px; display: flex; align-items: center; gap: 3px; }
.bars i { flex: 1; border-radius: 2px; background: #c9c9d3; height: var(--h); }
.bars i.beat { background: linear-gradient(180deg, #ff6f95, #8f6bff); }
.cuts { position: absolute; inset: 0; pointer-events: none; }
.cuts i { position: absolute; top: 0; bottom: 4px; width: 1px; background: repeating-linear-gradient(180deg, rgba(122, 82, 255, .55) 0 4px, transparent 4px 8px); }
.cuts i::after { content: ""; position: absolute; bottom: -4px; left: -3.5px; width: 8px; height: 8px; transform: rotate(45deg); border-radius: 2px; background: var(--violet); }

/* subtitles */
.subs { margin-top: auto; display: grid; gap: 8px; }
.subs li { display: flex; gap: 14px; align-items: baseline; padding: 11px 14px; border-radius: 12px; background: var(--paper); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.subs li.on { background: #1d1d1f; color: #fff; }
.subs time { font: 12px var(--mono); color: #8e8e93; }

/* aspects */
.aspects { margin-top: auto; display: flex; align-items: flex-end; gap: 16px; height: 96px; }
.aspects span { width: var(--w); height: var(--h); display: grid; place-items: center; border-radius: 9px; border: 2px solid #1d1d1f;
  font: 600 12px var(--mono); color: #1d1d1f; transition: transform .5s var(--ease); }
.aspects span:nth-child(2) { border-color: #7a52ff; color: #7a52ff; }
.tile-aspect:hover .aspects span { transform: translateY(-4px); }

/* exports */
.exports { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.exports span { padding: 10px 16px; border-radius: 12px; background: var(--paper); font-size: 15px; font-weight: 600; color: var(--ink); }

/* learning cards */
.cards-stack { position: relative; height: 150px; margin-top: auto; }
.card { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; border-radius: 18px; }
.card.c3 { transform: translateY(-26px) scale(.86); background: #e3dfff; }
.card.c2 { transform: translateY(-13px) scale(.93); background: #cfc5ff; }
.card.c1 { padding: 16px 18px; background: linear-gradient(135deg, #6e5bff, #a35cf0); color: #fff; display: grid; gap: 5px; align-content: start;
  box-shadow: 0 16px 40px rgba(110, 91, 255, .35); }
.card.c1 b { font-size: 13px; letter-spacing: .1em; opacity: .8; }
.card.c1 em { font-style: normal; font-size: 15px; font-weight: 500; }
.card.c1 em::before { content: "✓ "; opacity: .8; }

/* local rendering */
.local .glow { position: absolute; left: 50%; top: 32%; width: 900px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(122, 82, 255, .28), transparent); filter: blur(40px); pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; }
.stat { padding: 30px 0 0; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(56px, 6.4vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, #9a9aa3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat b small { font-size: .38em; font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.stat span { display: block; margin-top: 14px; color: var(--text-2); font-size: 17px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 90px; }
.panel { padding: 40px; border-radius: var(--radius); background: #111113; border: 1px solid rgba(255, 255, 255, .06); }
.panel h3 { margin-top: 34px; font-size: 26px; font-weight: 700; }
.panel p { margin-top: 12px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.dock { position: relative; width: 112px; height: 88px; padding: 8px 20px; border-radius: 22px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08); display: grid; place-items: center; }
.dock img { width: 72px; height: 72px; }
.dock i { position: absolute; top: 2px; right: 12px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #ff3b30;
  font: normal 700 14px/24px var(--font); color: #fff; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.cloudline { display: flex; align-items: center; gap: 14px; height: 88px; font-size: 15px; font-weight: 600; color: var(--text); }
.cloudline span { padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); }
.cloudline i { position: relative; flex: 0 0 90px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(143, 107, 255, .9), rgba(255, 255, 255, .12)); }
.cloudline i::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px #8f6bff; animation: travel 2.4s ease-in-out infinite alternate; }
@keyframes travel { to { left: calc(100% - 8px); } }

/* specs */
.specs { margin-top: 48px; border-top: 1px solid var(--line-light); }
.specs > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.specs dt { font-weight: 600; font-size: 17px; }
.specs dd { color: var(--ink-2); font-size: 17px; line-height: 1.6; }

/* download */
.download { text-align: center; isolation: isolate; }
.dl-icon { width: 144px; height: 144px; margin: 0 auto 34px; filter: drop-shadow(0 28px 70px rgba(122, 82, 255, .6)); }
.dl-version { margin-top: 18px; color: var(--text-2); font-size: 17px; }
.dl-cta { margin-top: 38px; }
.dl-for { margin-top: 16px; color: var(--text-3); font-size: 14px; }
.dl-mobile { margin-top: 12px; color: #ffb38a; font-size: 15px; }
.dl-notes { margin: 46px auto 0; max-width: 560px; padding: 22px 26px; border-radius: 20px; text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.dl-notes h3 { font-size: 15px; color: var(--text-2); margin-bottom: 8px; }
.dl-notes p { white-space: pre-wrap; font-size: 16px; line-height: 1.65; }
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; text-align: left; }
.install li { padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.install b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(143, 107, 255, .22); color: #c9bbff; font-size: 14px; margin-bottom: 16px; }
.install p { color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* footer */
.footer { background: var(--paper); color: var(--ink-2); font-size: 12px; padding: 34px 0 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #d2d2d7; }
.footer nav { display: flex; gap: 22px; font-size: 13px; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer p + p { margin-top: 8px; }

/* ------------------------------------------------------------------ reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1068px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tile-editor { flex-direction: column; align-items: stretch; }
  .tile-editor .tile-copy { flex: none; }
  .tile-circle, .tile-beat, .tile-subs, .tile-aspect, .tile-export, .tile-learn { grid-column: span 3; }
}
@media (max-width: 734px) {
  body { font-size: 16px; }
  br.m { display: inline; }
  .gnav-links { display: none; }
  .gnav-inner { justify-content: space-between; }
  .hero { padding: 108px 0 88px; }
  .hero-icon { width: 96px; height: 96px; }
  .hero-cta { flex-direction: column; gap: 18px; }
  .composer-stage { margin-top: 64px; }
  .composer { padding: 18px 16px 14px; border-radius: 24px; }
  .send { width: 38px; height: 38px; }
  .pipeline { overflow-x: auto; justify-content: flex-start; gap: 18px; margin: 26px 0 0; padding: 18px 4px 4px; scrollbar-width: none; }
  .pipeline::-webkit-scrollbar { display: none; }
  .pipeline li { flex: none; }
  .steps { grid-template-columns: 1fr; margin-top: 48px; }
  .step-no { margin-bottom: 28px; }
  .bento { grid-template-columns: 1fr; margin-top: 48px; }
  .tile, .tile-editor, .tile-circle, .tile-beat, .tile-subs, .tile-aspect, .tile-export, .tile-learn { grid-column: auto; min-height: 0; padding: 28px 24px; }
  .timeline { padding-left: 62px; }
  .marquee-track span { height: 44px; padding: 0 18px; font-size: 15px; }
  .stats, .duo, .install { grid-template-columns: 1fr; }
  .stats { gap: 34px; margin-top: 56px; }
  .duo { margin-top: 56px; }
  .panel { padding: 30px 26px; }
  .specs > div { grid-template-columns: 1fr; gap: 6px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .scribble { stroke-dashoffset: 0; }
  .note { opacity: 1; transform: none; }
}
