/* ScreenPro landing — static, coded, scroll-driven. No frameworks. */

:root {
  --bg: #0a0c10;
  --surface: #14171d;
  --surface-2: #1b1f27;
  --line: #262c37;
  --text: #f2f5f9;
  --muted: #8a93a3;
  --accent: #3385ff;      /* ScreenPro brand blue (app Color.brand) */
  --accent-soft: #7fb3ff;
  --good: #34d399;
  --warn: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
b { font-weight: 650; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav__logo { display: flex; align-items: center; }
.nav__logoimg { height: 40px; width: auto; display: block; }
.footer__logoimg { height: 22px; width: auto; display: block; }
.nav__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); display: inline-block; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn--primary { background: linear-gradient(135deg, var(--accent), #2456c8); color: #fff; box-shadow: 0 6px 24px rgba(51,133,255,.35); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(51,133,255,.45); }
.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--lg { padding: 15px 30px; font-size: 16.5px; }

/* ---------- hero track ---------- */
.hero-track { height: 560vh; position: relative; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.hero-copy {
  position: absolute; top: 50%; z-index: 6; text-align: center; padding: 0 20px;
  transform: translateY(-50%);
  will-change: transform, opacity;
}
.hero-copy h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--accent-soft), var(--accent) 55%, #9b7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { margin-top: 16px; color: var(--muted); font-size: clamp(14px, 1.5vw, 17px); line-height: 1.55; }
.scroll-hint { margin: 26px auto 0; width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 13px; position: relative; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: .2; } }

/* ---------- stage / FCP mock ---------- */
.stage-area { position: relative; width: min(1240px, 94vw); z-index: 2; }
/* The recording lives INSIDE the fcp window, so the chrome fades in as
   individual panels — fading .fcp itself would fade the recording too.
   Palette matched to the real Final Cut Pro: neutral charcoal, black seams. */
.fcp { position: relative; border-radius: 10px;
  --fcpbg: #18181a; --fcppanel: #1d1d1f; --fcpbar: #262628;
  --fcpseam: #0a0a0b; --fcptext: #c9c9cd; --fcpmut: #86868c; --fcpblue: #4d9ef6;
}
.fcp__frame {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  border: 1px solid #000; border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.045);
  opacity: 0; will-change: opacity;
}
.fcp__titlebar { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: linear-gradient(180deg, #2b2b2d, #232325); border-bottom: 1px solid var(--fcpseam); border-radius: 10px 10px 0 0; opacity: 0; will-change: opacity; }
.tbicons { display: flex; gap: 8px; margin-left: 12px; }
.tbicons i, .tbview i { width: 17px; height: 12px; border-radius: 3px; background: #3a3a3d; }
.tbview { display: flex; gap: 5px; margin-left: auto; }
.tbview i { width: 22px; background: #39393c; }
.tbview i:first-child { background: var(--accent); }
.fcp__infobar { position: relative; z-index: 1; display: flex; align-items: center; padding: 5px 12px; background: #202022; border-bottom: 1px solid var(--fcpseam); font-size: 10px; color: var(--fcpmut); opacity: 0; will-change: opacity; }
.fcp__infobar b { color: var(--fcptext); font-weight: 500; }
.fcp__infobar .mid { margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.fcp__infobar .zoomsel { margin-left: auto; }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl--r { background: #ff5f57; } .tl--y { background: #febc2e; } .tl--g { background: #28c840; }
.fcp__title { margin: 0 auto; font-size: 12px; color: var(--muted); }

.fcp__main { position: relative; z-index: 2; display: grid; grid-template-columns: 156px 1fr 196px; background: var(--fcpbg); }
.fcp__browser, .fcp__inspector { background: var(--fcppanel); padding: 11px 10px; font-size: 11.5px; opacity: 0; will-change: opacity; }
.fcp__browser { border-right: 1px solid var(--fcpseam); }
.fcp__inspector { border-left: 1px solid var(--fcpseam); }
.pane-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--fcpmut); margin-bottom: 8px; }
.pane-label--mt { margin-top: 14px; }

/* browser thumbs: little filmstrips with FCP-blue names */
.thumb { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 7px; border-radius: 6px; }
.thumb i { width: 100%; height: 34px; border-radius: 3px; flex: none; border: 1px solid #000;
  background: repeating-linear-gradient(90deg, #33404f 0 18px, #2a3542 18px 19px, #3b4a5c 19px 37px, #2a3542 37px 38px); }
.thumb:nth-child(3) i { background: repeating-linear-gradient(90deg, #4a4038 0 18px, #3a322c 18px 19px, #55483d 19px 37px, #3a322c 37px 38px); }
.thumb:nth-child(4) i { height: 18px; background: linear-gradient(180deg, #1f4e57, #17383f); }
.thumb--active { background: #2f2f33; }
.thumb b { font-weight: 400; font-size: 9.5px; color: var(--fcpblue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.prow { display: flex; justify-content: space-between; align-items: center; padding: 5px 7px; border-radius: 5px; color: var(--fcpmut); font-size: 10.5px; transition: background .25s, color .25s, opacity .3s; }
/* focus mode: only the active feature's rows stay lit */
.fcp__inspector.focus .prow:not(.hot) { opacity: .28; }
.fcp__inspector.focus .pane-label { opacity: .28; }
.fcp__inspector .pane-label { transition: opacity .3s; }
.prow b { color: var(--fcptext); font-weight: 500; }
.prow .check { color: var(--accent); font-style: normal; font-weight: 700; }
.prow.hot { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); }

/* viewer — overflow stays visible so the recording can escape to fullscreen
   before it docks; zoom clipping happens inside .screen instead. */
.fcp__center { position: relative; z-index: 3; display: flex; flex-direction: column; min-width: 0; }
.viewer { position: relative; aspect-ratio: 16 / 9; background: #000; transition: filter .35s ease; }
/* cut-silences beat: the timeline is the subject — everything else steps back */
.fcp.spot-tl .viewer { filter: brightness(.5) saturate(.85); }
.fcp.spot-tl .fcp__browser, .fcp.spot-tl .fcp__inspector { filter: brightness(.55); }
.fcp.spot-tl .timeline { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 65%, transparent); }
.fcp__browser, .fcp__inspector { transition: filter .35s ease, opacity .3s; }
.timeline { transition: box-shadow .35s ease, opacity .3s; }
.stagegray {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 130% at 15% 10%, #3b4150 0%, transparent 55%),
    radial-gradient(120% 130% at 90% 90%, #2b303b 0%, transparent 55%),
    linear-gradient(150deg, #23262e, #2a2e38 45%, #1d2027);
  will-change: opacity;
}
.stagebg {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(120% 130% at 15% 10%, #23306b 0%, transparent 55%),
    radial-gradient(120% 130% at 90% 90%, #14355c 0%, transparent 55%),
    linear-gradient(150deg, #0e1230, #131a3e 45%, #0b1024);
  will-change: opacity;
}

/* the recording (screenwrap docks from fullscreen; screen gets stage inset) */
.screenwrap {
  position: absolute; inset: 0;
  transform-origin: 0 0;
  will-change: transform;
  z-index: 2;
}
.screen {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #0c0e13;
  will-change: transform, border-radius, box-shadow;
}
.zoomlayer { position: absolute; inset: 0; will-change: transform; }
.dim { position: absolute; inset: 0; z-index: 5; background: linear-gradient(180deg, rgba(6,8,12,.92), rgba(6,8,12,.78) 48%, rgba(6,8,12,.88)); will-change: opacity; pointer-events: none; }

/* viewer transport strip (the row under the FCP viewer) */
.viewer__controls { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--fcppanel); border-top: 1px solid var(--fcpseam); font-size: 10px; color: var(--fcpmut); opacity: 0; will-change: opacity; }
.viewer__controls .vic { width: 15px; height: 11px; border-radius: 3px; background: #333336; }
.viewer__controls .tc { margin: 0 auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #9a9aa0; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.viewer__controls .tc b { color: #fff; font-weight: 400; }
.viewer__controls .play { color: #dadade; font-size: 11px; }

/* fake recorded app */
.fakeapp { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f4f6fa; color: #1d2433; font-size: clamp(6px, 1.05vw, 13px); }
.fakeapp__top { display: flex; align-items: center; gap: 5px; padding: .55em .8em; background: #e9edf4; border-bottom: 1px solid #d8dee8; }
.fdot { width: .6em; height: .6em; border-radius: 50%; background: #c6cedb; }
.faddr { margin-left: .6em; background: #fff; border-radius: 99px; padding: .28em 1em; color: #7a8496; font-size: .92em; }
.fakeapp__body { flex: 1; display: flex; min-height: 0; }
.fakeapp__side { width: 15%; background: #fff; border-right: 1px solid #e4e8f0; padding: .9em .7em; display: flex; flex-direction: column; gap: .55em; }
.srow { height: 1.15em; border-radius: .35em; background: #edf0f6; }
.srow--on { background: #dbe7ff; }
.fakeapp__content { flex: 1; padding: 1em 1.2em; min-width: 0; }
.fchip-row { display: flex; gap: .5em; margin-bottom: .9em; }
.fchip { padding: .3em .9em; border-radius: 99px; background: #e9edf4; color: #66707f; font-size: .9em; }
.fchip--a { background: #2f6bff; color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; margin-bottom: .9em; }
.card { background: #fff; border: 1px solid #e4e8f0; border-radius: .6em; padding: .75em .85em; }
.card em { font-style: normal; color: #7a8496; font-size: .85em; display: block; }
.card strong { font-size: 1.35em; letter-spacing: -.01em; }
.spark { display: flex; gap: .22em; align-items: flex-end; height: 2.1em; margin-top: .5em; }
.spark i { flex: 1; background: linear-gradient(180deg, #6ea8ff, #2f6bff); border-radius: .2em .2em 0 0; }
.card--target { position: relative; }
.fbtn { margin-top: .55em; display: inline-flex; align-items: center; gap: .4em; border: 0; background: #2f6bff; color: #fff; font-size: .95em; font-weight: 600; padding: .5em 1em; border-radius: .5em; font-family: inherit; }
.table { background: #fff; border: 1px solid #e4e8f0; border-radius: .6em; overflow: hidden; }
.trow { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: .5em .9em; border-top: 1px solid #eef1f6; }
.trow--h { border-top: 0; color: #7a8496; font-size: .85em; background: #fafbfd; }
.up { color: #14a06a; } .dn { color: #d05353; }

/* the hero's synthetic cursor: viewport layer, above the bar (z7) so it can
   visibly press Send; mapped into the recording's coordinates otherwise */
.cursor { position: absolute; left: 0; top: 0; z-index: 8; will-change: transform, opacity; transform-origin: 0 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); pointer-events: none; }
.ripple {
  position: absolute; z-index: 4; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 3px solid var(--accent-soft);
  opacity: 0; transform: scale(.2); will-change: transform, opacity;
}

/* record HUD (phase 0) */
/* Lives OUTSIDE the scaled recording, at real pixel size — putting it inside
   meant the GPU rasterized it small and upscaled it 3x, i.e. fuzzy. */
.hud {
  position: absolute; left: 50%; bottom: calc(3.5vh + 64px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; z-index: 7;
  background: rgba(16,18,24,.86); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.09); border-radius: 20px;
  padding: 12px 18px; font-size: 15px; color: #cfd6e2;
  will-change: opacity;
}
.hud__rec { width: 10px; height: 10px; border-radius: 50%; background: #ff453a; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hud__time { font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; }
.hud__sep { width: 1px; height: 22px; background: rgba(255,255,255,.14); }
.hud__ic { width: 15px; height: 15px; color: #9aa3b2; }
.hud__meter { width: 42px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.hud__meter i { display: block; height: 100%; width: 40%; background: var(--good); }
/* real record-bar controls */
.seg { display: flex; gap: 3px; background: #101013; border-radius: 13px; padding: 4px; }
.seg__opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #85858d; }
.seg__opt svg { width: 17px; height: 17px; }
.seg__opt--on { background: var(--accent); color: #fff; }
.hud__send {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  color: #a9c4f2; transition: background .15s, transform .12s, color .15s;
}
.hud__send svg { width: 22px; height: 22px; }
.hud__send.hov { background: rgba(51,133,255,.18); color: #cfe1ff; }
.hud__send.press { transform: scale(.88); background: rgba(51,133,255,.35); }
.hud__dev { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 550; color: #b7c0cf; }
.hud__dev svg { width: 18px; height: 18px; color: #8b95a6; }
.hud__meter { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-left: 3px; }
.hud__meter i { display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #34d399, #86efac);
  animation: mic-level 1.5s ease-in-out infinite; }
@keyframes mic-level {
  0% { width: 22%; } 12% { width: 61%; } 24% { width: 38%; } 38% { width: 74%; }
  52% { width: 45%; } 66% { width: 83%; } 78% { width: 34%; } 90% { width: 55%; } 100% { width: 22%; }
}
.hud__rec2 { width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #ff6a5e, #e6352a 68%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.28), 0 0 10px rgba(255,69,58,.35); }
/* tooltip lives INSIDE the hud so it inherits the counter-scale */
.sendtip {
  position: absolute; right: -6px; bottom: calc(100% + 15px);
  background: #f4f5f7; color: #17181c; font-size: 14px; font-weight: 600;
  padding: 9px 15px; border-radius: 9px; box-shadow: 0 8px 28px rgba(0,0,0,.45);
  opacity: 0; will-change: opacity, transform; white-space: nowrap;
}
.sendtip::after { content: ""; position: absolute; right: 44px; top: 100%; border: 6px solid transparent; border-top-color: #f4f5f7; }

/* webcam PIP */
.pip {
  position: absolute; right: 3.2%; bottom: 5.5%;
  width: 24%; height: 42.67%;
  border-radius: 16% / 9%;
  overflow: hidden; z-index: 7;
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  will-change: width, height, right, bottom, border-radius;
}
.pip__img {
  position: absolute; inset: 0;
  background: url("../assets/creator.jpg") center 20% / cover no-repeat,
              radial-gradient(90% 70% at 50% 38%, #3a4450 0%, transparent 60%),
              linear-gradient(160deg, #232936, #12161e);
}

/* timeline */
.timeline { position: relative; background: #131315; border-top: 1px solid var(--fcpseam); border-radius: 0 0 10px 10px; padding: 0 12px 12px; opacity: 0; will-change: opacity; }
.timeline__bar { display: flex; align-items: center; gap: 10px; margin: 0 -12px 7px; padding: 5px 12px; background: var(--fcpbar); border-bottom: 1px solid var(--fcpseam); font-size: 10px; color: var(--fcpmut); }
.timeline__bar .idx { color: var(--fcptext); }
.timeline__bar .tools { display: flex; gap: 6px; }
.timeline__bar .tools i { width: 13px; height: 10px; border-radius: 2.5px; background: #38383b; }
.timeline__bar .proj { margin: 0 auto; color: var(--fcptext); }
.timeline__ruler { display: flex; justify-content: space-between; font-size: 8.5px; color: #6a6a70; padding: 0 2px 5px; font-variant-numeric: tabular-nums; }
.timeline__lanes { display: flex; flex-direction: column; gap: 5px; }
.lane { display: flex; gap: 3px; height: 26px; }
.lane--camera { height: 20px; } .lane--mic { height: 18px; }
.clip { position: relative; border-radius: 5px; overflow: hidden; min-width: 0; }
.seg { will-change: flex-grow; }
/* flex-grow set from JS: keep segments 42/12/46 initially */
.clip--screen {
  border: 1px solid #0d1e33;
  background:
    linear-gradient(180deg, transparent 62%, #234a80 62%),
    repeating-linear-gradient(90deg, #8fa4bd 0 22px, #7d93ad 22px 23px, #9db1c9 23px 45px, #7d93ad 45px 46px);
}
.clip--screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: repeating-linear-gradient(90deg, rgba(120,180,255,.55) 0 2px, rgba(120,180,255,.18) 2px 4px, rgba(120,180,255,.4) 4px 7px, rgba(120,180,255,.12) 7px 9px);
  mask-image: linear-gradient(180deg, transparent 0, #000 40%); }
.clip--camera {
  border: 1px solid #142a2e;
  background:
    linear-gradient(180deg, transparent 55%, #1c5a62 55%),
    repeating-linear-gradient(90deg, #6d5b4e 0 20px, #5c4c41 20px 21px, #7a675a 21px 41px, #5c4c41 41px 42px);
}
.clip--mic { background: linear-gradient(180deg, #1f4e57, #183d44); border: 1px solid #0e262b; }
.clip--silent { background: #26262a; border: 1px solid #111114; }
.clip--silentcam { background: #232327; border: 1px solid #111114; }
.clip--micflat { background: #1e2a2d; border: 1px solid #101a1c; }
.clip__fx {
  position: absolute; left: 5px; top: 4px; z-index: 2;
  font-size: 8.5px; font-weight: 600; color: #fff;
  background: color-mix(in srgb, var(--accent) 85%, #000); border-radius: 3px; padding: 1.5px 5px; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.clip__cutlabel { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-size: 8px; color: #6a6a72; letter-spacing: .08em; text-transform: uppercase; }
.mk { position: absolute; top: 0; width: 5px; height: 5px; border-radius: 1px 1px 3px 3px; }
.mk--b { background: #58a6ff; } .mk--g { background: #3fd68f; } .mk--r { background: #ff6b6b; }
.wave, .waveflat, .wave--2 { position: absolute; inset: 3px 4px; display: block; }
.wave { background: repeating-linear-gradient(90deg, rgba(84,206,227,.8) 0 2px, rgba(84,206,227,.3) 2px 4px, rgba(84,206,227,.6) 4px 6px, rgba(84,206,227,.2) 6px 8px); mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%); }
.wave--2 { background: repeating-linear-gradient(90deg, rgba(84,206,227,.6) 0 3px, rgba(84,206,227,.22) 3px 5px, rgba(84,206,227,.8) 5px 8px, rgba(84,206,227,.16) 8px 10px); }
.waveflat { background: linear-gradient(180deg, transparent 46%, rgba(255,255,255,.35) 48%, rgba(255,255,255,.35) 52%, transparent 54%); }
.playhead { position: absolute; top: 36px; bottom: 10px; width: 1.5px; background: #e8e8ec; box-shadow: 0 0 6px rgba(255,255,255,.45); left: 14%; will-change: left; }
.playhead::before { content: ""; position: absolute; top: -7px; left: -4.2px; width: 10px; height: 7px; background: #e8e8ec; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.timeline__dur { position: absolute; right: 12px; top: 27px; z-index: 2; font-size: 9px; color: var(--fcpmut); font-variant-numeric: tabular-nums; }
.timeline__dur b { color: var(--text); transition: color .3s; }
.timeline__dur.cut b { color: var(--good); }

/* phase label chip — JS-positioned: above the record bar while recording,
   riding the video after the dock. Hidden until the headline clears. */
.phase-label { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 9; opacity: 0; will-change: top, opacity; }
.phase-label span {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-size: 15.5px; font-weight: 600; color: var(--text);
  transition: opacity .28s ease, transform .28s ease;
  white-space: nowrap;
}
.phase-label span.swap { opacity: 0; transform: translateX(-0px) translateY(6px); }

/* ---------- content blocks ---------- */
.block { max-width: 1080px; margin: 0 auto; padding: 130px 24px; }
/* the hero rides above the next section, so as it unpins the positioning
   block slides in beneath the departing FCP window instead of after a gap */
.hero-track { z-index: 5; pointer-events: none; }
#positioning { margin-top: -18vh; position: relative; z-index: 1; padding-top: 130px; }
.block--center { text-align: center; }
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); font-weight: 700; margin-bottom: 14px; }
.block h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.02em; line-height: 1.12; font-weight: 800; }
.block h2.big { font-size: clamp(30px, 4.4vw, 54px); }
.lede { margin: 18px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; }
.lede b { color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.feat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.feat__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-soft); font-size: 18px; margin-bottom: 16px; }
.feat h3 { font-size: 17.5px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.feat p i { color: var(--text); font-style: normal; font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; text-align: left; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; margin-bottom: 12px; }
.step h4 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.5; }

.timebar { margin: 42px auto 0; max-width: 620px; display: flex; flex-direction: column; gap: 14px; }
.timebar__row { display: grid; grid-template-columns: 130px 1fr 70px; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.timebar__row b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 5px; width: 0; transition: width 1.1s cubic-bezier(.22,.8,.26,1); }
.bar__fill--slow { background: linear-gradient(90deg, #5a6472, #3c434e); }
.bar__fill--fast { background: linear-gradient(90deg, var(--accent-soft), var(--accent)); }
.revealed .bar__fill--slow { width: 100%; }
.revealed .bar__fill--fast { width: 9%; }

.who-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.who { padding: 12px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }

.cta { padding-bottom: 150px; }
.cta .btn { margin-top: 32px; }
.fineprint { margin-top: 20px; font-size: 12.5px; color: #5a6472; }

.footer { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer__mut { color: #5a6472; }

/* reveals */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .block { padding: 90px 22px; }
}

/* ---------- MOBILE HERO: stacked & static, not scroll-scrubbed ----------
   The pinned scroll-scrub is desktop-only. On phones the hero becomes a normal
   stacked block — headline + subhead on top, the finished Final Cut frame shown
   statically below (Screen Studio's approach). All the animation-only layers
   are hidden; the JS skips the choreography entirely (see main.js isMobile). */
@media (max-width: 820px) {
  .hero-track { height: auto !important; position: static; z-index: auto; pointer-events: auto; }
  .hero-sticky { position: static; height: auto; overflow: visible;
    padding: 92px 20px 30px; gap: 22px; }
  .hero-copy { position: static; transform: none !important; opacity: 1 !important;
    top: auto; pointer-events: auto; }
  .hero-copy .scroll-hint { display: none; }
  .stage-area { width: 100%; }

  /* the animation-only chrome is gone; the finished frame stays */
  .hud, .cursor, .phase-label, .dim, .site-cursor, .finale, .finale-dim { display: none !important; }
  .fcp__frame, .fcp__titlebar, .fcp__infobar, .viewer__controls, .timeline { opacity: 1 !important; }
  .fcp__browser, .fcp__inspector { opacity: 1 !important; }
  .screenwrap { transform: none !important; }
  /* single-column FCP so the viewer isn't auto-placed into a 0px track when the
     side panels are hidden */
  .fcp__main { grid-template-columns: 1fr !important; }
  .fcp__browser, .fcp__inspector { display: none !important; }
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: auto !important; }
  #positioning { margin-top: 34px !important; padding-top: 40px; }
}
@media (max-width: 560px) {
  .fcp__infobar { font-size: 9px; flex-wrap: wrap; gap: 2px 8px; }
  .fcp__infobar .zoomsel { display: none; }
  .hero-copy h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span, .hud__rec { animation: none; }
}

/* ---------- feature-card hover demos ----------
   Hover a card: the copy dims away and a small coded loop of the actual
   feature plays. Animations are paused until hover so nothing burns cycles.
   Each .fdemo is also a drop-in slot for a real recorded <video> later. */
.feat { position: relative; overflow: hidden; }
.feat > .feat__icon, .feat > h3, .feat > p { transition: opacity .3s ease; }
.fdemo { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.fdemo * { animation-play-state: paused !important; }
@media (hover: hover) {
  .feat:hover > .feat__icon, .feat:hover > h3, .feat:hover > p { opacity: .05; }
  .feat:hover .fdemo { opacity: 1; }
  .feat:hover .fdemo * { animation-play-state: running !important; }
}
.fdemo__tag { position: absolute; left: 14px; bottom: 12px; font-size: 11px; font-weight: 650; color: var(--accent-soft); letter-spacing: .04em; }

/* mini screen */
.ms { position: relative; width: 80%; aspect-ratio: 16/9; background: #eef1f7; border-radius: 9px; overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,.45); }
.ms--dark { background: #10131c; }
.msz { position: absolute; inset: 0; }
.ml { position: absolute; background: #d3dae6; border-radius: 3px; }
.ml--hot { background: #c9dcff; }
.mcur { position: absolute; width: 15px; height: 18px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2020%2024%22%3E%3Cpath%20d%3D%22M3%201%20L3%2019.6%20L8%2015.2%20L10.9%2022%20L14.4%2020.4%20L11.5%2013.9%20L17.8%2013.9%20Z%22%20fill%3D%22%23fff%22%20stroke%3D%22rgba%280%2C0%2C0%2C.6%29%22%20stroke-width%3D%221.3%22/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.mcur--big { width: 19px; height: 23px; }

/* 1 — smart zoom: cursor circles a spot, the content zooms there */
.mcur--circle { left: 66%; top: 56%; animation: d1cur 4.2s ease-in-out infinite; }
@keyframes d1cur {
  0% { transform: translate(-34px, 4px); } 6% { transform: translate(0, -14px); }
  12% { transform: translate(26px, 2px); } 18% { transform: translate(2px, 16px); }
  24% { transform: translate(-24px, -2px); } 30% { transform: translate(12px, -12px); }
  36%, 100% { transform: translate(4px, 4px); }
}
.mring { position: absolute; left: 71%; top: 60%; width: 90px; height: 60px; margin: -30px 0 0 -45px; border: 2.5px solid rgba(51,133,255,.75); border-radius: 50%; opacity: 0; animation: d1ring 4.2s ease-in-out infinite; }
@keyframes d1ring { 8%, 30% { opacity: 1; } 0%, 38%, 100% { opacity: 0; } }
.msz--zoomdemo { animation: d1zoom 4.2s cubic-bezier(.55,0,.15,1) infinite; transform-origin: 71% 60%; }
@keyframes d1zoom { 0%, 36% { transform: scale(1); } 52%, 78% { transform: scale(1.9); } 92%, 100% { transform: scale(1); } }

/* 2 — gliding cursor: rides the SAME bezier the trail is drawn with, so the
   motion is a true smooth arc (offset-path), never point-to-point segments.
   The bounce lives on transform, which composes with the path position. */
.gtrail { position: absolute; left: 10%; top: 20%; }
.mcur--glide {
  left: 10%; top: 20%;
  offset-path: path("M4 6 C 44 58, 116 62, 156 24");
  offset-rotate: 0deg;
  animation: d2glide 3.6s infinite;
}
@keyframes d2glide {
  0%, 8% { offset-distance: 0%; transform: scale(1); animation-timing-function: cubic-bezier(.45,.02,.2,1); }
  54% { offset-distance: 100%; transform: scale(1); }
  60% { offset-distance: 100%; transform: scale(.78); }
  66% { offset-distance: 100%; transform: scale(1.06); }
  72%, 100% { offset-distance: 100%; transform: scale(1); }
}
.gripple { position: absolute; left: calc(10% + 156px); top: calc(20% + 24px); width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 3px solid var(--accent); border-radius: 50%; opacity: 0; animation: d2rip 3.6s ease-out infinite; }
@keyframes d2rip { 0%, 56% { opacity: 0; transform: scale(.2); } 64% { opacity: .9; } 82%, 100% { opacity: 0; transform: scale(1.5); } }

/* 3 — predictive follow: frame travels STRAIGHT to where the cursor lands */
.fframe { position: absolute; left: 4%; top: 8%; width: 46%; height: 56%; border: 2.5px solid #fff; border-radius: 7px; box-shadow: 0 0 0 2000px rgba(10,14,22,.28); animation: d3frame 4.4s infinite; animation-timing-function: cubic-bezier(.6,0,.12,1); }
@keyframes d3frame { 0%, 38% { transform: translate(0,0); } 62%, 100% { transform: translate(105%, 46%); } }
.mcur--wander { left: 18%; top: 28%; animation: d3cur 4.4s ease-in-out infinite; }
@keyframes d3cur {
  0% { transform: translate(0,0); } 12% { transform: translate(34px, 10px); }
  24% { transform: translate(10px, 26px); } 38% { transform: translate(30px, 18px); }
  52% { transform: translate(150px, 60px); } 64%, 100% { transform: translate(176px, 74px); }
}

/* 4 — smart camera: talking -> PIP takes the screen -> back */
.dpip { position: absolute; right: 5%; bottom: 8%; width: 26%; height: 42%; border-radius: 10px;
  background: url("../assets/creator.jpg") center 22% / cover no-repeat; box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: d4pip 4.6s cubic-bezier(.5,0,.16,1) infinite; }
@keyframes d4pip {
  0%, 22% { right: 5%; bottom: 8%; width: 26%; height: 42%; border-radius: 10px; }
  36%, 64% { right: 0%; bottom: 0%; width: 100%; height: 100%; border-radius: 0px; }
  80%, 100% { right: 5%; bottom: 8%; width: 26%; height: 42%; border-radius: 10px; }
}
.dtalk { position: absolute; left: 8%; bottom: 12%; display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.dtalk i { width: 4px; background: var(--good); border-radius: 2px; animation: d4talk 4.6s ease-in-out infinite; }
.dtalk i:nth-child(1) { animation-delay: .00s } .dtalk i:nth-child(2) { animation-delay: .12s }
.dtalk i:nth-child(3) { animation-delay: .24s } .dtalk i:nth-child(4) { animation-delay: .08s }
.dtalk i:nth-child(5) { animation-delay: .18s }
@keyframes d4talk { 0%, 18% { height: 3px; } 26%, 34%, 46%, 58% { height: 20px; } 30%, 40%, 52% { height: 7px; } 66%, 100% { height: 3px; } }

/* 5 — silence cut: the gap collapses, the duration ticks down */
.dlane { display: flex; gap: 4px; width: 80%; height: 34px; }
.dlane--tall { position: relative; height: 46px; display: block; }
.dclip { border-radius: 6px; }
.dclip--a { flex: 42 0 0; background: linear-gradient(180deg, #2c68d8, #2456c8); }
.dclip--b { flex: 46 0 0; background: linear-gradient(180deg, #2c68d8, #2456c8); }
.dclip--gap { flex: 26 0 0; background: repeating-linear-gradient(-45deg, #2c2c31 0 6px, #232327 6px 12px); animation: d5gap 3.8s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes d5gap { 0%, 30% { flex-grow: 26; opacity: 1; } 55%, 88% { flex-grow: 0.001; opacity: 0; } 96%, 100% { flex-grow: 26; opacity: 1; } }
.ddur { position: absolute; right: 16px; top: 14px; font-size: 12px; font-variant-numeric: tabular-nums; }
.ddur b { position: absolute; right: 0; top: 0; font-weight: 650; }
.ddur--old { color: var(--muted); animation: d5old 3.8s infinite; }
.ddur--new { color: var(--good); opacity: 0; animation: d5new 3.8s infinite; }
@keyframes d5old { 0%, 42% { opacity: 1; } 50%, 90% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes d5new { 0%, 42% { opacity: 0; } 50%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* 6 — handoff: the compound clip slides in, markers pop on, click ticks land */
.hclip { position: absolute; left: 0; right: 0; top: 4px; height: 24px; border-radius: 6px; background: linear-gradient(180deg, #2c68d8, #2456c8); transform: translateX(-115%); animation: d6clip 4.4s cubic-bezier(.5,0,.14,1) infinite; }
@keyframes d6clip { 0%, 6% { transform: translateX(-115%); } 26%, 92% { transform: translateX(0); } 100% { transform: translateX(-115%); } }
.hmk { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 2px 2px 4px 4px; background: var(--c); transform: scale(0); animation: d6mk 4.4s ease-out infinite; }
.hmk:nth-child(1) { animation-delay: .0s } .hmk:nth-child(2) { animation-delay: .12s }
.hmk:nth-child(3) { animation-delay: .24s } .hmk:nth-child(4) { animation-delay: .36s }
.hmk:nth-child(5) { animation-delay: .48s }
@keyframes d6mk { 0%, 30% { transform: scale(0); } 36% { transform: scale(1.35); } 40%, 90% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
.hticks { position: absolute; left: 0; right: 0; top: 36px; height: 8px; }
.hticks i { position: absolute; width: 4px; height: 8px; border-radius: 2px; background: #9b7bff; opacity: 0; animation: d6tick 4.4s ease-out infinite; }
.hticks i:nth-child(1) { animation-delay: .05s } .hticks i:nth-child(2) { animation-delay: .17s }
.hticks i:nth-child(3) { animation-delay: .29s } .hticks i:nth-child(4) { animation-delay: .41s }
.hticks i:nth-child(5) { animation-delay: .53s }
@keyframes d6tick { 0%, 32% { opacity: 0; } 40%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }


/* ---------- site-wide synthetic cursor (the product metaphor) ---------- */
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
.site-cursor { position: fixed; left: 0; top: 0; z-index: 999; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.site-cursor svg { display: block; transform-origin: 6px 4px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); transition: transform .18s ease; }
.site-cursor.lift svg { transform: scale(1.22); }
.site-cursor.click svg { animation: curclick .35s ease-out; }
/* the app's own clickBounce: quick dip, small overshoot pop, settle */
@keyframes curclick { 0% { transform: scale(1); } 35% { transform: scale(.76); } 70% { transform: scale(1.07); } 100% { transform: scale(1); } }
.site-ripple { position: fixed; z-index: 998; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid var(--accent-soft); border-radius: 50%; pointer-events: none; animation: srip .6s cubic-bezier(.2,.6,.35,1) forwards; }
@keyframes srip { from { transform: scale(.25); opacity: .95; } to { transform: scale(1.5); opacity: 0; } }

.hero-sub-mobile { display: none; }
@media (max-width: 820px) { .hero-sub-desktop { display: none; } .hero-sub-mobile { display: block; margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.55; } }


/* ---------- card demo: real-timeline silence cut ---------- */
.mtl { display: flex; flex-direction: column; gap: 4px; width: 82%; }
.mtl .lane { height: 22px; }
.mtl .lane--camera { height: 17px; }
.mtl .lane--mic { height: 15px; }
.mgap { animation: mgap-cut 4s cubic-bezier(.6,0,.2,1) infinite; flex-grow: 12; }
@keyframes mgap-cut {
  0%, 30% { flex-grow: 12; opacity: 1; }
  55%, 88% { flex-grow: 0.001; opacity: 0; }
  96%, 100% { flex-grow: 12; opacity: 1; }
}

/* ---------- card demo: one-click handoff ---------- */
.hstack { display: flex; flex-direction: column; gap: 16px; width: 82%; }
.hbar {
  position: relative; align-self: center;
  display: flex; align-items: center; gap: 11px;
  background: rgba(22,24,30,.96); border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 8px 13px;
}
.hbar__seg { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 8px; }
.hbar__seg svg { width: 13px; height: 13px; }
.hbar__send { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #a9c4f2; animation: hbar-press 4.5s ease-in-out infinite; }
.hbar__send svg { width: 15px; height: 15px; }
@keyframes hbar-press {
  0%, 8% { background: transparent; transform: scale(1); }
  13%, 16% { background: rgba(51,133,255,.2); transform: scale(1); }
  18% { background: rgba(51,133,255,.42); transform: scale(.86); }
  21%, 100% { background: transparent; transform: scale(1); }
}
.hbar__rec { width: 21px; height: 21px; border-radius: 50%; background: radial-gradient(circle at 42% 36%, #ff6a5e, #e6352a 68%); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.28); }
.hbar__cur { position: absolute; right: 42px; top: 30px; animation: hbar-cur 4.5s ease-in-out infinite; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
@keyframes hbar-cur {
  0% { transform: translate(26px, 20px); } 14% { transform: translate(2px, -12px); }
  18% { transform: translate(2px, -12px) scale(.82); } 22%, 78% { transform: translate(2px, -12px); }
  100% { transform: translate(26px, 20px); }
}
.mtl--in { overflow: hidden; }
.hslide { flex-grow: 1; transform: translateX(-115%); animation: hclip-in 4.5s cubic-bezier(.5,0,.14,1) infinite; }
.hslide--d2 { animation-name: hclip-in2; }
.hslide--d3 { animation-name: hclip-in3; }
@keyframes hclip-in  { 0%, 20% { transform: translateX(-115%); } 38%, 92% { transform: translateX(0); } 100% { transform: translateX(-115%); } }
@keyframes hclip-in2 { 0%, 24% { transform: translateX(-115%); } 42%, 92% { transform: translateX(0); } 100% { transform: translateX(-115%); } }
@keyframes hclip-in3 { 0%, 28% { transform: translateX(-115%); } 46%, 92% { transform: translateX(0); } 100% { transform: translateX(-115%); } }
.hslide .hmk { animation-name: hmk-in; animation-duration: 4.5s; }
@keyframes hmk-in { 0%, 44% { transform: scale(0); } 50% { transform: scale(1.35); } 54%, 90% { transform: scale(1); } 96%, 100% { transform: scale(0); } }

/* ---------- hero finale: "All in Final Cut Pro." ---------- */
.finale-dim {
  position: absolute; inset: 0; z-index: 9; pointer-events: none;
  background: rgba(5,6,10,.86); opacity: 0; will-change: opacity;
  border-radius: 10px;
}
.finale {
  position: absolute; left: 50%; top: 0; z-index: 10; pointer-events: none;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0; will-change: opacity, top;
  text-align: center;
}
.finale__icon { width: clamp(52px, 5.5vw, 80px); height: auto; will-change: transform;
  filter: drop-shadow(0 14px 40px rgba(122,82,255,.4)); }
.finale__text { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.02em; color: var(--text); will-change: transform, opacity; }
.finale__text b { background: linear-gradient(100deg, #b79cff, #8e6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* the demo story on mobile: stacked beats under the frame */
.mbeats { display: none; }
@media (max-width: 820px) {
  .mbeats {
    display: block; min-height: 50px;
    list-style: none; margin: 18px 0 4px; padding: 0 6px; width: 100%;
  }
  .mbeats li {
    display: none;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    border: 1px solid var(--line); border-radius: 12px;
    padding: 11px 16px; font-size: 14.5px; font-weight: 600; text-align: center;
  }
  .mbeats li.on { display: flex; align-items: center; justify-content: center; gap: 9px; animation: beat-in .45s ease; }
  @keyframes beat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .mbeats__last { display: flex; align-items: center; justify-content: center; gap: 9px;
    border-color: color-mix(in srgb, #8e6bff 45%, var(--line)) !important; }
  .mbeats__last img { width: 24px; height: 24px; }
  .mbeats__last b { background: linear-gradient(100deg, #b79cff, #8e6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
}

/* tap-to-play on touch: .demo-on mirrors the hover state */
.feat.demo-on > .feat__icon, .feat.demo-on > h3, .feat.demo-on > p { opacity: .05; }
.feat.demo-on .fdemo { opacity: 1; }
.feat.demo-on .fdemo * { animation-play-state: running !important; }
