:root {
  --bg: #060607;
  --bg2: #0d0d0f;
  --card: rgba(255,255,255,.035);
  --card2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.14);
  --fg: #f4f4f5;
  --mut: #a1a1aa;
  --dim: #63636b;
  --acc: #f0b941;
  --acc2: #ff7a45;
  --grad: linear-gradient(100deg, #fff3cf 0%, #f0b941 45%, #ff7a45 100%);
  --r: 22px;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --head: "Inter Tight", "Inter", -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { font: 500 .88em ui-monospace, "SF Mono", Menlo, monospace; background: var(--card2); padding: 1px 6px; border-radius: 6px; color: #ffd98a; }
.muted { color: var(--mut); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: #ffe6a8; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }

/* backdrop */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 85%);
}
.bg-glow {
  position: fixed; inset: -20% -10% auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 50% 30%, rgba(240,185,65,.13), transparent 70%),
    radial-gradient(30% 40% at 80% 10%, rgba(255,122,69,.08), transparent 70%),
    radial-gradient(30% 40% at 15% 20%, rgba(120,140,255,.06), transparent 70%);
}

/* nav */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 12px; border-radius: 20px;
  background: rgba(14,14,16,.62); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
}
.brand { display: flex; align-items: center; gap: 12px; font: 700 18px var(--head); letter-spacing: -.2px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line2); box-shadow: 0 4px 18px rgba(240,185,65,.15); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--mut); font-size: 14px; font-weight: 500; transition: .2s; border: 1px solid transparent; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); background: rgba(255,255,255,.08); border-color: var(--line2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 13px;
  font-weight: 600; font-size: 14px; color: #1b1406; background: var(--grad);
  box-shadow: 0 6px 24px rgba(240,185,65,.25), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; height: 2px; background: var(--fg); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* hero */
.hero { padding: 150px 16px 40px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 500; letter-spacing: .3px;
}
.hero-badge .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.app-chip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font: 800 11px var(--head); }
.app-chip.pr { background: #00005b; color: #9999ff; border: 1px solid #9999ff55; }
.hero-title {
  margin: 26px auto 0; font: 800 clamp(44px, 8.4vw, 104px)/.98 var(--head); letter-spacing: -.045em;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title em { font-style: normal; color: var(--acc); -webkit-text-fill-color: var(--acc); }
.hero-sub { max-width: 660px; margin: 26px auto 0; color: var(--mut); font-size: clamp(16px, 1.6vw, 19px); }
.hero-sub b { color: var(--fg); font-weight: 600; }

/* coverflow */
.flow {
  position: relative; height: clamp(250px, 40vw, 470px); margin: 56px auto 0; max-width: 1400px;
  perspective: 1600px; transform-style: preserve-3d;
}
.flow-card {
  position: absolute; left: 50%; top: 0; width: min(760px, 78vw); aspect-ratio: 16/9;
  border-radius: 24px; overflow: hidden; cursor: pointer; background: #0b0b0d;
  border: 1px solid var(--line2);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s, filter .8s;
  will-change: transform;
}
.flow-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12); background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.flow-card.center { cursor: default; }
.fc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fc-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px;
  font: 600 15px var(--head); text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.fc-tag { font: 600 12px var(--sans); padding: 4px 10px; border-radius: 999px; background: rgba(240,185,65,.18); color: #ffd98a; border: 1px solid rgba(240,185,65,.35); backdrop-filter: blur(8px); }
.fc-split-tags { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; }
.fc-split-tags span, .ba-tag { font: 600 12px var(--sans); padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.55); border: 1px solid var(--line2); backdrop-filter: blur(8px); }
.flow-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.flow-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line2); cursor: pointer; transition: .3s; }
.flow-dots button.on { width: 26px; background: var(--acc); }

/* mock panel */
.mock-panel { position: absolute; inset: 0; background: #1e1e20; padding: 4.2% 4%; display: flex; flex-direction: column; gap: 3%; font-size: clamp(7px, 1.25vw, 12px); }
.mp-head { display: flex; align-items: center; gap: 8px; font-size: 1.2em; }
.mp-head img { height: 2.6em; width: auto; border-radius: 6px; }
.mp-head i { color: #6c6c74; font-style: normal; }
.mp-tabs { display: flex; gap: 1.6em; border-bottom: 1px solid #36363b; font-weight: 700; letter-spacing: .06em; color: #9b9ba3; font-size: .9em; white-space: nowrap; overflow: hidden; }
.mp-tabs span { padding-bottom: .7em; border-bottom: 2px solid transparent; }
.mp-tabs .on { color: var(--acc); border-color: var(--acc); }
.mp-chips { display: flex; gap: .6em; }
.mp-chips span { padding: .3em .9em; border-radius: 99px; background: #303034; color: #9b9ba3; font-size: .9em; }
.mp-chips .on { background: rgba(240,185,65,.14); color: var(--acc); }
.mp-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2%; align-content: start; }
.mp-cell { border-radius: 6px; overflow: hidden; border: 1px solid #36363b; position: relative; }
.mp-cell canvas { display: block; width: 100%; aspect-ratio: 16/9; }
.mp-cell span { display: block; padding: .35em .5em; color: #ececef; font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #262629; }
.mp-cell.hot { border-color: var(--acc); }

/* mock text */
.mock-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(70% 70% at 50% 50%, #2a1c08, #050505 75%);
  font: 900 clamp(30px, 7.5vw, 86px)/.95 var(--head); letter-spacing: -.03em;
}
.mock-text span { display: block; }
.mock-text span:last-child { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-preset { position: absolute; top: 14px; right: 14px; z-index: 2; font: 600 12px var(--sans); padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.55); border: 1px solid var(--line2); }

/* mock sfx */
.mock-sfx { position: absolute; inset: 0; background: linear-gradient(180deg, #111114, #08080a); }
.mock-sfx canvas { height: 72%; top: 8%; }
.ms-rows { position: absolute; left: 4%; right: 4%; top: 6%; display: flex; justify-content: space-between; align-items: center; z-index: 2; font-size: clamp(9px, 1.3vw, 14px); }
.ms-rows b { display: block; }
.ms-rows span { color: var(--mut); font-size: .9em; }
.keys { display: flex; gap: 6px; }
kbd { font: 600 .85em ui-monospace, Menlo, monospace; padding: .2em .55em; border-radius: 6px; background: #242428; border: 1px solid #3a3a3f; border-bottom-width: 3px; }

/* download */
.dl { margin: 44px auto 0; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 18px 14px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); scroll-margin-top: 140px; }
.dl-title { font: 700 18px var(--head); }
.dl-sub { color: var(--dim); font-size: 12.5px; margin-bottom: 12px; }
.dl-btns { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.dl-btn { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 13px; text-align: left; transition: background .2s; }
.dl-btn svg { width: 22px; height: 22px; }
.dl-btn b { display: block; font: 700 16px/1.1 var(--head); }
.dl-btn small { display: block; color: var(--mut); font-size: 11px; }
a.dl-btn:hover { background: rgba(255,255,255,.1); }
.dl-btn.disabled { opacity: .45; cursor: not-allowed; }
.dl-sep { width: 1px; height: 30px; background: var(--line2); }

/* marquee */
.marquee { margin: 70px 0 10px; overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; gap: 12px; width: max-content; animation: mq 60s linear infinite; }
.mq-track span { white-space: nowrap; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--mut); font-size: 14px; }
.mq-track span.a { color: #ffd98a; border-color: rgba(240,185,65,.3); background: rgba(240,185,65,.06); }
@keyframes mq { to { transform: translateX(-50%); } }

/* sections */
.section { max-width: 1180px; margin: 0 auto; padding: 110px 16px 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; font: 600 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
h2 { font: 800 clamp(32px, 4.8vw, 56px)/1.04 var(--head); letter-spacing: -.035em; margin: 0; }
h2 .serif { font-size: 1.1em; }
.sec-head p, .kf-txt p, .port p { color: var(--mut); font-size: 17px; margin: 18px auto 0; }
.underline { position: relative; white-space: nowrap; }
.underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .09em; border-radius: 9px; background: var(--grad); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r); padding: 26px; min-height: 280px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s; display: flex; flex-direction: column;
}
.tile:hover { border-color: rgba(240,185,65,.35); }
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(240,185,65,.1), transparent 60%); }
.tile:hover::before { opacity: 1; }
.tile-k { font: 700 11px var(--sans); letter-spacing: .16em; color: var(--dim); }
.tile h3 { font: 700 23px/1.15 var(--head); letter-spacing: -.02em; margin: 10px 0 8px; }
.tile p { color: var(--mut); font-size: 14.5px; margin: 0; }
.t-wide { grid-column: span 2; flex-direction: row; gap: 24px; align-items: stretch; padding: 0; }
.t-wide .tile-txt { padding: 26px; flex: 0 0 42%; display: flex; flex-direction: column; justify-content: center; }
.t-wide .tile-canvas { flex: 1; min-width: 0; width: 100%; height: auto; aspect-ratio: 16/9; align-self: center; margin: 18px 18px 18px 0; border-radius: 14px; border: 1px solid var(--line2); }
.anim-chips, .fav-chips, .brand-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.anim-chips span, .fav-chips span, .brand-cloud span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); color: var(--mut); transition: .3s; }
.anim-chips span.on, .fav-chips span.on { color: #1b1406; background: var(--acc); border-color: var(--acc); }
.brand-cloud span:nth-child(3n+1) { color: var(--fg); }
.sfx-list { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.sfx-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.sfx-row:hover, .sfx-row.play { border-color: rgba(240,185,65,.5); }
.sfx-row .pl { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); flex: none; }
.sfx-row .pl svg { width: 12px; height: 12px; }
.sfx-row.play .pl { background: var(--acc); color: #1b1406; }
.sfx-row .nm { font-size: 12.5px; width: 92px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfx-row canvas { flex: 1; min-width: 0; height: 26px; }
.lut-strip { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lut-strip canvas { width: 100%; aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); }

/* transitions showcase */
.tr-show { display: grid; grid-template-columns: 1fr 340px; gap: 16px; padding: 14px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.tr-stage { position: relative; border-radius: 18px; overflow: hidden; background: #000; display: flex; flex-direction: column; }
#trStage { width: 100%; aspect-ratio: 16/9; display: block; }
.tr-hud { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; font: 600 13px var(--sans); text-shadow: 0 1px 6px #000; }
.tr-hud .rec { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tr-tc { margin-left: auto; font: 500 12px ui-monospace, Menlo, monospace; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 6px; }
.tr-timeline { position: relative; height: 84px; background: #141416; border-top: 1px solid var(--line); font: 600 11px var(--sans); }
.tl-clip, .tl-adj, .tl-sfx { position: absolute; border-radius: 5px; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.tl-clip { top: 32px; height: 22px; }
.tl-clip.a { left: 2%; right: 50%; background: #3a5a8c; border: 1px solid #5c82c0; }
.tl-clip.b { left: 50%; right: 2%; background: #3a7c6a; border: 1px solid #5cae96; }
.tl-adj { top: 8px; height: 20px; background: #7a5aa8; border: 1px solid #a688d4; transition: left .3s, right .3s; }
.tl-sfx { top: 58px; height: 20px; background: #2f6b3f; border: 1px solid #4fa364; transition: opacity .3s, left .3s, right .3s; }
.tl-head { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff4d4d; left: 50%; }
.tl-head::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 7px solid #ff4d4d; }
.tr-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.tr-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-cats button, .kf-presets button, .looks button, .pcard-tabs button {
  font: 500 12.5px var(--sans); color: var(--mut); background: var(--card2); border: 1px solid var(--line); padding: 6px 11px; border-radius: 99px; cursor: pointer; transition: .2s;
}
.tr-cats button:hover, .kf-presets button:hover, .looks button:hover { color: var(--fg); border-color: var(--line2); }
.tr-cats button.on, .kf-presets button.on, .pcard-tabs button.on { color: #1b1406; background: var(--acc); border-color: var(--acc); }
.tr-list { flex: 1; overflow-y: auto; max-height: 360px; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.tr-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: .2s; font-size: 14px; }
.tr-item:hover { background: var(--card2); }
.tr-item.on { background: rgba(240,185,65,.1); border-color: rgba(240,185,65,.35); }
.tr-item small { margin-left: auto; color: var(--dim); font-size: 11.5px; }
.tr-item .star { color: var(--dim); font-size: 13px; }
.tr-item.on .star { color: var(--acc); }
.tr-ctrl { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; color: var(--mut); }
.tr-ctrl b { color: var(--fg); }
.chk { display: flex; align-items: center; gap: 8px; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--acc); }
input[type=checkbox] { accent-color: var(--acc); width: 16px; height: 16px; }

/* color */
.color-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 16px; padding: 14px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.ba { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; cursor: ew-resize; touch-action: pan-y; user-select: none; }
#baCanvas { width: 100%; height: 100%; display: block; }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.5); transform: translateX(-1px); }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #111; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.ba-tag { position: absolute; top: 14px; }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; }
.color-side { display: flex; flex-direction: column; gap: 14px; padding: 6px; }
.cs-block h4 { margin: 0 0 8px; font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; }
.cs-block h4 small { color: var(--acc); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
select { width: 100%; font: 500 14px var(--sans); color: var(--fg); background: #141416; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; outline: none; }
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.looks button { padding: 0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.looks button canvas { width: 100%; aspect-ratio: 16/10; display: block; }
.looks button span { padding: 5px 7px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.looks button.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); color: var(--fg); background: var(--card2); }
.pipeline { margin-top: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--dim); }
.pipeline span { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); }
.pipeline span.on { color: #ffd98a; border-color: rgba(240,185,65,.4); }
.pipeline i { width: 10px; height: 1px; background: var(--line2); }

/* keyframe */
.kf { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.kf-txt p { margin-left: 0; }
.kf-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.kf-code { display: inline-block; margin-top: 18px; font-size: 13px; padding: 8px 12px; border-radius: 10px; }
.kf-editor { position: relative; }
#kfSvg { width: 100%; height: auto; max-height: 440px; display: block; touch-action: none; }
.kf-grid line { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.kf-grid rect { fill: rgba(0,0,0,.35); stroke: var(--line2); }
.kf-arm { stroke: rgba(255,255,255,.35); stroke-width: 1.5; stroke-dasharray: 4 4; }
.kf-path { stroke: url(#kfGrad); stroke-width: 4; fill: none; filter: drop-shadow(0 0 8px rgba(240,185,65,.5)); }
.kf-end { fill: #fff; }
.kf-h { fill: #0d0d0f; stroke: var(--acc); stroke-width: 3; cursor: grab; transition: r .15s; }
.kf-h:hover, .kf-h.drag { r: 12; }
.kf-track { position: relative; height: 36px; margin: 6px 4% 0; border-radius: 99px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.kf-ball { position: absolute; top: 5px; left: 5px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px rgba(240,185,65,.6); }

/* edits */
.edits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.edit { padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.e-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(240,185,65,.1); border: 1px solid rgba(240,185,65,.3); color: var(--acc); font: 700 17px var(--head); }
.edit h4 { font: 700 18px var(--head); margin: 18px 0 6px; }
.edit p { color: var(--mut); font-size: 14px; margin: 0; }

/* portability */
.port { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 28px; background: linear-gradient(135deg, rgba(240,185,65,.08), rgba(255,255,255,.02) 50%); border: 1px solid var(--line); }
.port p { margin-left: 0; }
.tree { margin: 0; padding: 24px; border-radius: 18px; background: #0a0a0c; border: 1px solid var(--line); font: 14px/1.75 ui-monospace, "SF Mono", Menlo, monospace; color: var(--mut); overflow-x: auto; }
.tree .d { color: #ffd98a; } .tree .f { color: var(--fg); } .tree .ok { color: #5fd38d; font-size: 12px; }

/* pricing card */
.price-wrap { display: flex; justify-content: center; }
.pcard { width: min(460px, 100%); border-radius: 28px; overflow: hidden; background: #0f0f11; border: 1px solid var(--line2); box-shadow: 0 40px 120px rgba(240,185,65,.08), 0 30px 60px rgba(0,0,0,.5); }
.pcard-media { position: relative; aspect-ratio: 16/10; }
.pcard-badge { position: absolute; top: 14px; right: 14px; font: 700 10px var(--sans); letter-spacing: .12em; padding: 5px 9px; border-radius: 8px; background: rgba(255,255,255,.9); color: #111; }
.pcard-note { position: absolute; bottom: 12px; right: 14px; font-size: 12px; color: rgba(255,255,255,.8); text-shadow: 0 1px 6px #000; }
.pcard-body { padding: 24px 24px 22px; }
.pcard h3 { font: 800 26px var(--head); letter-spacing: -.02em; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.vchip { font: 600 11px var(--sans); padding: 3px 8px; border-radius: 7px; background: rgba(240,185,65,.14); color: var(--acc); letter-spacing: 0; }
.pcard-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.pcard-list li { position: relative; padding-left: 22px; font-size: 14px; color: #d4d4d8; }
.pcard-list li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.pcard-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.4); border: 1px solid var(--line); }
.pcard-tabs button { flex: 1; border-radius: 10px; border: 0; background: transparent; padding: 8px 6px; }
.pcard-pane { font-size: 13.5px; color: var(--mut); padding: 14px 4px 4px; min-height: 108px; }
.pcard-pane ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pcard-price { text-align: center; margin: 14px 0 16px; font: 900 54px/1 var(--head); letter-spacing: -.03em; }
.pcard-price small { display: block; font: 500 13px var(--sans); color: var(--dim); letter-spacing: 0; margin-top: 8px; }
.btn-primary, .btn-ghost { display: flex; justify-content: center; align-items: center; padding: 14px 22px; border-radius: 14px; font: 700 15px var(--sans); transition: transform .2s, background .2s; }
.btn-primary { color: #1b1406; background: var(--grad); box-shadow: 0 10px 30px rgba(240,185,65,.25), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { margin-top: 8px; color: var(--fg); border: 1px solid var(--line2); background: var(--card); }
.btn-ghost:hover { background: var(--card2); }

/* changelog */
.log { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.log::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--acc), var(--line) 40%); }
.log li { display: grid; grid-template-columns: 70px 1fr; gap: 34px; padding: 12px 0; position: relative; }
.log li::before { content: ""; position: absolute; left: 82px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--dim); }
.log li:first-child::before { border-color: var(--acc); background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.log .v { font: 700 15px var(--head); text-align: right; color: var(--mut); padding-top: 2px; }
.log li:first-child .v { color: var(--acc); }
.log p { margin: 0; color: var(--mut); font-size: 15px; }
.log p b { color: var(--fg); font-weight: 600; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(240,185,65,.3); background: var(--card2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font: 600 16.5px var(--head); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--acc); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--mut); font-size: 15px; }

/* final */
.final { text-align: center; max-width: 900px; margin: 130px auto 0; padding: 0 16px 40px; }
.final-logo { width: min(360px, 70vw); margin: 0 auto -30px; mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.final p { color: var(--mut); font-size: 17px; }
.final-btns { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.final-btns a { min-width: 190px; }
.final-btns .btn-ghost { margin-top: 0; }

.foot { border-top: 1px solid var(--line); margin-top: 80px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 28px 16px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.foot .brand { font-size: 15px; }
.foot .brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot-links { margin-left: auto; display: flex; gap: 18px; color: var(--mut); }
.foot-links a:hover { color: var(--fg); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mq-track { animation: none; }
}

/* responsive */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide { grid-column: span 2; }
  .tr-show, .color-wrap { grid-template-columns: 1fr; }
  .tr-list { max-height: 220px; }
  .kf, .port { grid-template-columns: 1fr; padding: 28px; }
  .edits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; padding: 10px; border-radius: 18px; background: rgba(14,14,16,.96); border: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-burger { display: block; }
  .nav-cta { margin-left: auto; }
  .brand span { font-size: 16px; }
  .hero { padding-top: 120px; }
  .flow { height: 56vw; margin-top: 40px; }
  .flow-card { width: 86vw; border-radius: 16px; }
  .bento, .edits { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; flex-direction: column; gap: 0; }
  .t-wide .tile-txt { padding: 24px 24px 0; }
  .t-wide .tile-canvas { margin: 18px; width: calc(100% - 36px); }
  .dl-btn { padding: 10px 14px; }
  .section { padding-top: 84px; }
  .log::before { left: 58px; }
  .log li { grid-template-columns: 44px 1fr; gap: 30px; }
  .log li::before { left: 54px; }
  .kf, .port { padding: 20px; }
  .looks { grid-template-columns: repeat(3, 1fr); }
}

/* ===== graded video layers ===== */
.grade-box, .gl { position: absolute; inset: 0; overflow: hidden; }
.grade-box video, .gl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-709 { transition: clip-path .05s linear; }
.gl-look { transition: opacity .7s ease; }
.gl-ov { position: absolute; inset: 0; pointer-events: none; }
.grade-box .gb-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 14px rgba(0,0,0,.6); z-index: 2; }
.color-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ba { background: #111; }
.ba .ba-line, .ba .ba-tag, .ba .mini, .ba .cursor, .ba .toast { z-index: 3; }
.ba-line.anim { transition: left 1.6s cubic-bezier(.65,0,.35,1); }
.steps { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.steps button { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--mut); font: 600 13.5px var(--sans); cursor: pointer; transition: .3s; white-space: nowrap; }
.steps button b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--card2); border: 1px solid var(--line2); flex: none; }
.steps button.on { background: var(--card2); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.steps button.on b { background: var(--acc); color: #1b1406; border-color: var(--acc); }
.steps button.done b { background: rgba(240,185,65,.2); color: var(--acc); border-color: rgba(240,185,65,.4); }
.steps .replay { flex: 0 0 auto; padding: 9px 12px; }
.ba-tag { transition: opacity .4s; }
.mini { position: absolute; right: 14px; bottom: 14px; width: 200px; padding: 10px; border-radius: 14px; background: rgba(30,30,32,.88); border: 1px solid #3a3a3f; backdrop-filter: blur(10px); box-shadow: 0 12px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(12px) scale(.97); transition: .5s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.mini.show { opacity: 1; transform: none; pointer-events: auto; }
.mini-h { display: flex; justify-content: space-between; font: 700 11px var(--sans); letter-spacing: .1em; color: var(--acc); margin-bottom: 8px; }
.mini-h small { color: #9b9ba3; letter-spacing: 0; font-weight: 500; }
.mini-g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-g button { padding: 0; border: 1px solid #36363b; border-radius: 7px; overflow: hidden; background: #262629; cursor: pointer; color: #ececef; font: 500 10px var(--sans); text-align: left; transition: border-color .2s, transform .15s; }
.mini-g button img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.mini-g button span { display: block; padding: 3px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-g button.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.mini-g button.press { transform: scale(.94); }
.cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); opacity: 0; transition: transform 1s cubic-bezier(.65,0,.35,1), opacity .3s; pointer-events: none; }
.cursor svg { width: 26px; height: 26px; stroke: #000; stroke-width: 1.2; }
.cursor.show { opacity: 1; }
.toast { position: absolute; left: 50%; top: 16px; transform: translate(-50%, -10px); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(20,20,22,.9); border: 1px solid rgba(95,211,141,.4); font: 600 13px var(--sans); opacity: 0; transition: .4s; white-space: nowrap; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 10px #5fd38d; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.credit { margin: 0; font-size: 12px; color: var(--dim); }
.looks button img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .steps button span { display: none; }
  .steps button.on span { display: inline; }
  .mini { width: 150px; right: 8px; bottom: 8px; padding: 7px; }
  .toast { font-size: 11.5px; top: 48px; }
}
.grade-box .glc, .ba .glc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grade-box .glv, .ba .glv { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.looks button span em, .mini-g button span em { font-style: normal; font-size: 9px; padding: 1px 4px; margin-left: 3px; border-radius: 4px; background: rgba(240,185,65,.2); color: var(--acc); }
/* scrollable mock panel */
.mock-panel { overflow: hidden; }
.mp-grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 .4em .8em 0; grid-auto-rows: min-content;
  scrollbar-width: thin; scrollbar-color: #4a4a50 transparent; mask-image: linear-gradient(#000 80%, transparent); -webkit-mask-image: linear-gradient(#000 80%, transparent); }
.mp-grid::-webkit-scrollbar { width: 6px; } .mp-grid::-webkit-scrollbar-thumb { background: #4a4a50; border-radius: 6px; }
.mp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mp-chips::-webkit-scrollbar { display: none; }
.mp-chips span { cursor: pointer; white-space: nowrap; }
.mp-chips span:hover { color: #ececef; }
.mp-cell { cursor: pointer; transition: border-color .2s; }
.mp-cell:hover span { color: var(--acc); }
/* keyframe list */
.kf-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.kf-list li { position: relative; padding-left: 22px; color: #d4d4d8; font-size: 15px; }
.kf-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.kf-list b { color: var(--fg); font-weight: 600; }
/* text animation showcase */
.tx-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; display: grid; place-items: center; }
.tx-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tx-shade { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.tx-title { position: relative; z-index: 1; text-align: center; will-change: transform, opacity, filter, clip-path; padding: 0 6%; }
.tx-title b { display: block; font: 900 clamp(26px, 5.6vw, 76px)/1 var(--head); letter-spacing: -.03em; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.5); white-space: nowrap; }
.tx-title small { display: block; margin-top: .7em; font: 600 clamp(10px, 1.2vw, 15px) var(--sans); letter-spacing: .35em; text-transform: uppercase; color: #ffd98a; }
.tx-phase { margin-left: auto; font: 700 11px var(--sans); letter-spacing: .12em; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.5); }
.tx-tl .tl-clip.v { left: 2%; right: 2%; top: 50px; height: 22px; background: #3a5a8c; border: 1px solid #5c82c0; }
.tl-gfx { position: absolute; left: 14%; right: 14%; top: 14px; height: 26px; border-radius: 5px; background: #a8577a; border: 1px solid #d47ea3; display: flex; align-items: center; justify-content: center; font-size: 11px; overflow: hidden; }
.tl-gfx i { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 4px, transparent 4px 8px); transition: width .3s, opacity .3s; }
.tl-gfx i.in { left: 0; } .tl-gfx i.out { right: 0; }
.tl-gfx span { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.seg button { flex: 1; border: 0; background: transparent; color: var(--mut); font: 600 12.5px var(--sans); padding: 7px 4px; border-radius: 7px; cursor: pointer; }
.seg button.on { background: var(--acc); color: #1b1406; }
.tx-input { width: 100%; font: 600 14px var(--sans); color: var(--fg); background: #141416; border: 1px solid var(--line2); border-radius: 10px; padding: 9px 11px; outline: none; }
.tx-input:focus { border-color: var(--acc); }
.tr-hud .tr-tc { margin-left: 0; }
.snd { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--sans); color: #fff; padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); backdrop-filter: blur(8px); cursor: pointer; animation: sndPulse 2s infinite; }
.snd svg { width: 15px; height: 15px; }
.snd.on { background: var(--acc); color: #1b1406; border-color: var(--acc); animation: none; }
@keyframes sndPulse { 50% { box-shadow: 0 0 0 6px rgba(240,185,65,.18); } }
.grade-box .glp, .ba .glp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glp[hidden] { display: none !important; }

.flow { user-select: none; -webkit-user-select: none; cursor: grab; }
.flow.dragging, .flow.dragging .flow-card { cursor: grabbing; }
.flow img { -webkit-user-drag: none; }

/* follow gate */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s; }
.gate.show { opacity: 1; }
.gate[hidden] { display: none; }
.gate-card { position: relative; width: min(420px, 100%); padding: 32px 28px 24px; border-radius: 24px; background: #111113; border: 1px solid var(--line2); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: translateY(12px) scale(.98); transition: transform .25s; }
.gate.show .gate-card { transform: none; }
.gate-card img { border-radius: 14px; margin-bottom: 12px; }
.gate-card h3 { font: 800 24px var(--head); margin: 0 0 8px; }
.gate-card p { color: var(--dim); font-size: 14.5px; margin: 0 0 20px; }
.gate-x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 99px; border: 0; background: rgba(255,255,255,.06); color: #fff; font-size: 20px; cursor: pointer; }
.gate-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gate-steps li { display: flex; align-items: center; gap: 12px; transition: opacity .3s; }
.gate-steps li > span:first-child { flex: none; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font: 700 13px var(--sans); background: rgba(240,185,65,.15); color: var(--acc); border: 1px solid rgba(240,185,65,.35); }
.gate-steps li.done > span:first-child { background: var(--acc); color: #000; }
.gate-steps li a { flex: 1; justify-content: center; text-align: center; cursor: pointer; }
.gate-steps li.off { opacity: .4; }
.gate-steps li.off a { cursor: not-allowed; }
.gate-note { display: block; margin-top: 14px; color: var(--mut); font-size: 12px; }
.gate-dls { flex: 1; display: flex; gap: 8px; }
.gate-dls a { flex: 1; }
.app-chip.fc { background: #1b1b1f; color: #f5b54a; border: 1px solid #f5b54a55; }
.gate-dls { flex-wrap: wrap; }
.gate-dls { flex-direction: column; }
.gate-dls a { width: 100%; }
