/* AutoEditz landing page. Black canvas, one brand accent, system type, frosted-glass
   surfaces over soft colour, and product mockups that mirror the real AutoEditz UI.
   Motion is CSS-first; landing.js only adds scroll state. */

:root {
  color-scheme: dark;
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --indigo: #6366f1;
  --indigo-soft: #a5b4fc;
  --cyan: #06b6d4;
  --cyan-soft: #67e8f9;
  --brand-gradient: linear-gradient(92deg, #c7d2fe 0%, #a5b4fc 38%, #67e8f9 100%);
  /* One of the app's own framing wallpapers (Pexels License, see the app's SOURCES.json). */
  --photo: url("/media/wallpaper-paint.webp");
  --wallpaper:
    radial-gradient(80% 90% at 0% 0%, #7c6cff 0%, transparent 60%),
    radial-gradient(70% 80% at 100% 8%, #22d3ee 0%, transparent 58%),
    radial-gradient(90% 90% at 85% 100%, #f472b6 0%, transparent 58%),
    linear-gradient(135deg, #312e81 0%, #0e7490 100%);
  /* Glass material: a diagonal sheen over a translucent tint, a lit top edge, and a
     blurred, saturated backdrop. Only reads as glass when colour sits behind it. */
  --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.035) 52%, rgba(255, 255, 255, 0.09) 100%), rgba(14, 15, 22, 0.42);
  --glass-edge: rgba(255, 255, 255, 0.15);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.35);
  --glass-blur: blur(24px) saturate(165%);
  --max: 1120px;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI Variable", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);
  --loop: 9s;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cpath d='M0 8.7h1.2v2.6h-1.2zM2 8.1h1.2v3.8h-1.2zM4 5.7h1.2v8.6h-1.2zM6 7.6h1.2v4.8h-1.2zM8 5.1h1.2v9.9h-1.2zM10 5.6h1.2v8.9h-1.2zM12 7.0h1.2v5.9h-1.2zM14 4.2h1.2v11.6h-1.2zM16 6.9h1.2v6.2h-1.2zM18 4.3h1.2v11.4h-1.2zM20 6.6h1.2v6.9h-1.2zM22 6.4h1.2v7.2h-1.2zM24 4.3h1.2v11.5h-1.2zM26 1.7h1.2v16.5h-1.2zM28 6.3h1.2v7.4h-1.2zM30 5.8h1.2v8.4h-1.2zM32 3.6h1.2v12.8h-1.2zM34 2.1h1.2v15.7h-1.2zM36 4.6h1.2v10.8h-1.2zM38 5.9h1.2v8.2h-1.2zM40 3.9h1.2v12.2h-1.2zM42 8.2h1.2v3.7h-1.2zM44 6.3h1.2v7.3h-1.2zM46 8.2h1.2v3.7h-1.2zM48 7.9h1.2v4.1h-1.2zM50 7.6h1.2v4.7h-1.2zM52 6.4h1.2v7.1h-1.2zM54 3.5h1.2v13.0h-1.2zM56 6.5h1.2v7.0h-1.2zM58 4.0h1.2v12.1h-1.2zM60 3.3h1.2v13.3h-1.2zM62 4.8h1.2v10.4h-1.2zM64 3.5h1.2v12.9h-1.2zM66 6.6h1.2v6.8h-1.2zM68 9.4h1.2v1.2h-1.2zM70 9.4h1.2v1.2h-1.2zM72 9.4h1.2v1.2h-1.2zM74 9.4h1.2v1.2h-1.2zM76 9.4h1.2v1.2h-1.2zM78 9.4h1.2v1.2h-1.2zM80 5.0h1.2v10.0h-1.2zM82 6.1h1.2v7.7h-1.2zM84 4.2h1.2v11.6h-1.2zM86 5.3h1.2v9.4h-1.2zM88 7.6h1.2v4.7h-1.2zM90 7.6h1.2v4.8h-1.2zM92 7.2h1.2v5.6h-1.2zM94 5.1h1.2v9.8h-1.2zM96 4.9h1.2v10.2h-1.2zM98 6.4h1.2v7.2h-1.2zM100 2.4h1.2v15.1h-1.2zM102 6.8h1.2v6.5h-1.2zM104 4.8h1.2v10.4h-1.2zM106 2.5h1.2v14.9h-1.2zM108 6.1h1.2v7.7h-1.2zM110 3.9h1.2v12.2h-1.2zM112 6.8h1.2v6.5h-1.2zM114 2.7h1.2v14.7h-1.2zM116 2.1h1.2v15.8h-1.2zM118 3.4h1.2v13.1h-1.2zM120 1.7h1.2v16.5h-1.2zM122 5.4h1.2v9.2h-1.2zM124 3.4h1.2v13.1h-1.2zM126 4.4h1.2v11.2h-1.2zM128 4.9h1.2v10.2h-1.2zM130 5.9h1.2v8.1h-1.2zM132 5.0h1.2v9.9h-1.2zM134 5.7h1.2v8.6h-1.2zM136 8.2h1.2v3.6h-1.2zM138 6.4h1.2v7.2h-1.2zM140 8.0h1.2v4.1h-1.2zM142 4.8h1.2v10.5h-1.2zM144 4.5h1.2v11.0h-1.2zM146 2.2h1.2v15.7h-1.2zM148 9.3h1.2v1.3h-1.2zM150 9.4h1.2v1.2h-1.2zM152 9.4h1.2v1.2h-1.2zM154 9.4h1.2v1.2h-1.2zM156 9.4h1.2v1.2h-1.2zM158 4.0h1.2v12.0h-1.2zM160 5.9h1.2v8.2h-1.2zM162 6.3h1.2v7.4h-1.2zM164 6.7h1.2v6.5h-1.2zM166 2.5h1.2v15.0h-1.2zM168 6.5h1.2v6.9h-1.2zM170 6.1h1.2v7.9h-1.2zM172 5.6h1.2v8.8h-1.2zM174 3.7h1.2v12.6h-1.2zM176 7.7h1.2v4.6h-1.2zM178 6.8h1.2v6.5h-1.2zM180 7.3h1.2v5.4h-1.2zM182 6.6h1.2v6.8h-1.2zM184 5.6h1.2v8.9h-1.2zM186 4.5h1.2v11.0h-1.2zM188 6.5h1.2v6.9h-1.2zM190 5.5h1.2v9.0h-1.2zM192 5.5h1.2v9.0h-1.2zM194 2.2h1.2v15.7h-1.2zM196 1.4h1.2v17.2h-1.2zM198 6.2h1.2v7.7h-1.2zM200 5.9h1.2v8.2h-1.2zM202 5.5h1.2v9.0h-1.2zM204 5.5h1.2v9.0h-1.2zM206 3.9h1.2v12.2h-1.2zM208 3.3h1.2v13.4h-1.2zM210 5.5h1.2v9.0h-1.2zM212 7.2h1.2v5.6h-1.2zM214 4.9h1.2v10.1h-1.2zM216 5.5h1.2v9.0h-1.2zM218 4.8h1.2v10.4h-1.2zM220 3.5h1.2v12.9h-1.2zM222 5.4h1.2v9.2h-1.2zM224 6.8h1.2v6.4h-1.2zM226 7.6h1.2v4.8h-1.2zM228 6.7h1.2v6.6h-1.2zM230 8.1h1.2v3.8h-1.2zM232 4.1h1.2v11.8h-1.2zM234 4.0h1.2v12.0h-1.2zM236 3.0h1.2v14.1h-1.2zM238 2.9h1.2v14.2h-1.2z'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { overflow-x: clip; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

p { margin: 0; }

:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; border-radius: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 600; text-decoration: none; transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Faint page-wide colour so glass always has something to refract. */
.site-aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% 0%, rgba(99, 102, 241, 0.12), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(6, 182, 212, 0.08), transparent 70%);
}

/* Film-grain overlay: hides gradient banding on the black canvas. */
.site-noise {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* ── Glass ──────────────────────────────────────────────────────────────── */

.glass,
.glass-pane {
  border: 1px solid var(--glass-edge);
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* Specular rim: a 1px gradient border that catches light on the top-left edge. */
.glass-lit { position: relative; }
.glass-lit::after {
  content: ""; position: absolute; inset: 0; z-index: 4; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, 0.16) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ── Typography ─────────────────────────────────────────────────────────── */

h1,
h2,
h3 { margin: 0; font-weight: 450; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }

h1 { font-size: clamp(52px, 7.25vw, 96px); }
h2 { font-size: clamp(40px, 5.4vw, 72px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }

h2 em,
h3 em { font-style: normal; }

h2 em,
h3 em,
.gradient-text {
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.5) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

h1 .gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
}

.section-title { padding: 0 24px; text-align: center; }
.section-sub {
  max-width: 600px; margin: 24px auto 0; padding: 0 24px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5; letter-spacing: -0.01em; text-align: center; text-wrap: balance;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px;
  border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.98); }

.button-primary { background: #fff; color: #000; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.4) inset; }
.button-primary:hover { background: #e9e9ee; box-shadow: 0 18px 42px rgba(99, 102, 241, 0.28); }

.button-ghost { color: #fff; }
.button-ghost:hover { border-color: rgba(255, 255, 255, 0.32); }

.button-small { height: 36px; padding: 0 16px; font-size: 13.5px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 0 20px; border-bottom: 1px solid transparent; transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s; }
.site-header.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), rgba(8, 8, 12, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; width: min(100%, 1080px); height: 64px; margin: 0 auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 26px; height: 26px; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links > a:not(.button) { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links > a:not(.button):hover { color: #fff; }

.scroll-progress {
  position: absolute; inset: auto 0 -1px; height: 1px; transform: scaleX(0); transform-origin: left; opacity: 0.8;
  background: linear-gradient(90deg, transparent 0%, var(--indigo) 12%, var(--cyan-soft) 88%, transparent 100%);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7); will-change: transform;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { position: relative; isolation: isolate; padding: 164px 20px 110px; text-align: center; }

.hero-glow {
  position: absolute; inset: 0 0 auto; z-index: -1; height: 1100px; pointer-events: none;
  background:
    radial-gradient(46% 38% at 50% 0%, rgba(99, 102, 241, 0.42) 0%, transparent 72%),
    radial-gradient(30% 26% at 72% 18%, rgba(6, 182, 212, 0.2) 0%, transparent 72%),
    radial-gradient(28% 24% at 28% 22%, rgba(168, 85, 247, 0.16) 0%, transparent 72%);
  filter: blur(8px);
}

.hero-copy {
  max-width: 900px; margin: 0 auto;
  transform: translate3d(0, var(--hero-shift, 0px), 0); opacity: var(--hero-fade, 1);
}

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 15px 7px 12px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.78); font-size: 13.5px; font-weight: 500;
}

.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.18), 0 0 12px rgba(255, 69, 58, 0.8); animation: rec-pulse 2s ease-in-out infinite; }

.hero-lede { max-width: 600px; margin: 28px auto 0; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -0.01em; text-wrap: balance; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero-meta { margin-top: 20px; color: var(--faint); font-size: 13px; }

.hero-stage { position: relative; width: min(1120px, 100%); margin: 80px auto 0; perspective: 1800px; }
.hero-stage::after {
  content: ""; position: absolute; inset: auto 8% -70px; z-index: -1; height: 160px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(99, 102, 241, 0.45), transparent 70%); filter: blur(30px);
}

/* Coloured light behind the glass editor. */
.stage-orbs { position: absolute; inset: -4% -2%; z-index: -1; pointer-events: none; }
.stage-orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; animation: orb-drift 18s ease-in-out infinite alternate; }
.stage-orbs i:nth-child(1) { top: 4%; left: 2%; width: 44%; aspect-ratio: 1; background: #5b50f0; }
.stage-orbs i:nth-child(2) { top: 18%; right: 0; width: 38%; aspect-ratio: 1; background: #0891b2; animation-delay: -6s; }
.stage-orbs i:nth-child(3) { bottom: 0; left: 34%; width: 34%; aspect-ratio: 1; background: #c0267a; opacity: 0.45; animation-delay: -12s; }

.device {
  container-type: inline-size; padding: 10px; border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--glass-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 40px 120px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%);
  transform: rotateX(var(--hero-tilt, 0deg)); transform-origin: 50% 100%; will-change: transform;
  animation: stage-in 1.4s var(--ease) backwards 0.15s;
}
.device-screen { overflow: hidden; border-radius: 17px; background: rgba(9, 9, 13, 0.84); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }

.motion-toggle {
  position: absolute; right: 6px; bottom: -50px; z-index: 5; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; color: #fff; cursor: pointer;
}
.motion-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .icon-play { display: none; fill: currentColor; }
.motion-paused .motion-toggle .icon-pause { display: none; }
.motion-paused .motion-toggle .icon-play { display: block; }

/* ── Editor replica (mirrors the real AutoEditz editor; sized in em off one cqw base) ── */

.editor {
  display: grid; grid-template-columns: 17% minmax(0, 1fr) 3.6% 16.5%; grid-template-rows: 2.5em minmax(0, 1fr);
  aspect-ratio: 16 / 10; color: rgba(255, 255, 255, 0.88); font-size: 0.84cqw; line-height: 1.25; text-align: left;
}
.editor > * { min-width: 0; min-height: 0; }

.ed-titlebar { display: flex; grid-column: 1 / -1; align-items: center; padding: 0 1.2em; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.025); }
.lights { display: flex; gap: 0.6em; }
.lights i { width: 1em; height: 1em; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.ed-sidebar { display: flex; flex-direction: column; gap: 0.25em; overflow: hidden; padding: 1.1em 0.9em 0.9em; border-right: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); }
.ed-brand { display: flex; align-items: center; gap: 0.7em; margin: 0 0.3em 1em; }
.ed-brand img { width: 2.6em; height: 2.6em; }
.ed-brand b { display: block; color: #8b9dff; font-size: 1.35em; font-weight: 650; letter-spacing: -0.01em; }
.ed-brand small { display: block; color: rgba(255, 255, 255, 0.5); font-size: 0.85em; white-space: nowrap; }
.ed-group { display: grid; gap: 0.15em; margin-bottom: 0.5em; padding: 0.3em; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 0.9em; background: rgba(255, 255, 255, 0.03); }
.ed-item { display: flex; align-items: center; gap: 0.75em; padding: 0.58em 0.7em; border-radius: 0.6em; font-size: 1.06em; white-space: nowrap; }
.ed-item.on { background: rgba(99, 102, 241, 0.2); color: #c7d2fe; }
.ic { flex: none; width: 1.05em; height: 0.85em; border: 1.5px solid currentColor; border-radius: 0.22em; opacity: 0.7; }
.ic-dash { border-style: dashed; }
.ic-round { border-radius: 50%; height: 1.05em; }
.ic-cam { color: #8b9dff; border-radius: 0.3em 0.1em 0.1em 0.3em; opacity: 1; }
.ic-mic { width: 0.6em; height: 1.05em; border-radius: 999px; color: #30d158; opacity: 1; }
.ed-item .check { width: 0.35em; height: 0.65em; margin-left: auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-0.1em, -0.1em); }
.ed-switch { width: 2.3em; height: 1.35em; margin-left: auto; border-radius: 999px; background: radial-gradient(circle at calc(100% - 0.68em) 50%, #fff 0.5em, transparent 0.56em), #30d158; }
.ed-mic { color: rgba(255, 255, 255, 0.6); font-size: 0.98em; }
.ed-record {
  display: flex; align-items: center; justify-content: center; gap: 0.6em; margin: 0.5em 0 1.1em; padding: 0.72em; border-radius: 0.7em;
  background: linear-gradient(#ff4d42, #e5352b); color: #fff; font-size: 1.1em; font-weight: 600; box-shadow: 0 0.4em 1.2em rgba(255, 69, 58, 0.3);
}
.ed-record::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: #fff; }
.ed-label { margin: 0.2em 0.8em 0.25em; color: rgba(255, 255, 255, 0.4); font-size: 0.82em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ed-foot { display: grid; gap: 0.1em; margin-top: auto; padding-top: 0.6em; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ed-item em { margin-left: auto; padding: 0.1em 0.5em; border-radius: 0.4em; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); font-size: 0.8em; font-style: normal; }
.ed-ready .ic { color: #8b9dff; opacity: 1; }

.ed-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.ed-toolbar { display: flex; align-items: center; gap: 0.8em; padding: 0.7em 1.2em; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ed-doc-title { margin-right: auto; overflow: hidden; font-size: 1.38em; font-weight: 600; letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; }
.ed-more { color: rgba(255, 255, 255, 0.5); letter-spacing: 0.1em; }
.ed-btn { padding: 0.55em 1.1em; border-radius: 0.6em; background: rgba(255, 255, 255, 0.08); font-size: 1.06em; font-weight: 500; white-space: nowrap; }
.ed-btn-primary { background: linear-gradient(180deg, #5b7cfa, #4f5ff0); color: #fff; font-weight: 600; box-shadow: 0 0.3em 1em rgba(79, 95, 240, 0.4); }

.editor-canvas {
  position: relative; display: grid; place-items: center; container-type: size; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 40%, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.25));
}
.editor-canvas .framed { width: min(86cqw, 80cqh * 1.6); }
.ed-badge { position: absolute; top: 0.9em; right: 1.1em; padding: 0.35em 0.8em; border-radius: 0.5em; background: rgba(0, 0, 0, 0.55); color: rgba(255, 255, 255, 0.85); font-size: 1em; }

.framed { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 16 / 10; border-radius: 1.4cqw; background: var(--photo) 30% 40% / cover, var(--wallpaper); box-shadow: 0 1.5cqw 4cqw rgba(0, 0, 0, 0.45); }

.rec {
  position: absolute; inset: 6.5% 7%; container-type: inline-size; overflow: hidden; border-radius: 1.6cqw; background: #f5f6f9;
  box-shadow: 0 2.4cqw 5cqw rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.zoom-layer { position: absolute; inset: 0; container-type: inline-size; transform-origin: 74% 79.5%; }
.zoom-layer.zoomed { transform: translate(-8%, -8%) scale(1.5); }
.compare .zoom-layer.zoomed { transform: translate(-4%, -4%) scale(1.25); }
.pv-video .zoom-layer.zoomed { transform: translate(-5%, -5%) scale(1.32); }

.caption {
  position: absolute; bottom: 6%; left: 50%; z-index: 2; padding: 0.55em 1.35em; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; white-space: nowrap;
  background: rgba(10, 10, 16, 0.55); color: #fff; font-size: 1.3em; transform: translateX(-50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.caption b { color: var(--cyan-soft); font-weight: 600; }

.step-toast {
  position: absolute; top: 9%; right: 7%; z-index: 2; display: flex; align-items: center; gap: 0.7em; padding: 0.55em 1.1em 0.55em 0.55em;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0.9em; background: rgba(20, 20, 30, 0.55); color: #fff; font-size: 1.15em; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1em 3em rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.step-toast b { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 0.5em; background: linear-gradient(135deg, var(--indigo), var(--cyan)); font-size: 0.9em; }

.ed-transport { display: flex; align-items: center; gap: 0.9em; padding: 0.55em 1.2em; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 1em; white-space: nowrap; }
.ed-play { position: relative; flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.ed-play::after { content: ""; position: absolute; top: 50%; left: 54%; border-top: 0.42em solid transparent; border-bottom: 0.42em solid transparent; border-left: 0.66em solid #fff; transform: translate(-50%, -50%); }
.ed-time { padding: 0.35em 0.8em; border-radius: 0.5em; background: rgba(0, 0, 0, 0.35); color: rgba(255, 255, 255, 0.55); font-family: var(--mono); }
.ed-time b { color: #fff; font-weight: 600; }
.ed-pill { padding: 0.3em 0.7em; border-radius: 0.5em; background: rgba(99, 102, 241, 0.22); color: var(--indigo-soft); font-weight: 600; }
.ed-compare { padding: 0.3em 0.8em; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.5em; color: rgba(255, 255, 255, 0.7); }
.ed-zoom { position: relative; width: 9em; height: 0.25em; margin-left: auto; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.ed-zoom::after { content: ""; position: absolute; top: 50%; left: 8%; width: 1.1em; height: 1.1em; border-radius: 50%; background: #e5e7eb; transform: translate(-50%, -50%); }
.ed-fit { padding: 0.3em 0.8em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.7); }

.ed-timeline { --label: 6.4em; position: relative; display: grid; gap: 0.2em; padding: 0.3em 0 0.7em; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(0, 0, 0, 0.22); }
.tl-row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: center; height: 1.85em; }
.tl-ruler-row { height: 1.5em; }
.tl-ruler { display: flex; justify-content: space-between; margin-right: 1em; color: rgba(255, 255, 255, 0.38); font-family: var(--mono); font-size: 0.8em; }
.tl-label { padding-left: 1.5em; color: rgba(255, 255, 255, 0.42); font-size: 0.78em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tl-lane { position: relative; height: 100%; margin-right: 1em; }
.tl-lane > i {
  position: absolute; top: 10%; bottom: 10%; left: var(--l); width: var(--w); display: flex; align-items: center; overflow: hidden;
  padding-left: 0.6em; border: 1px solid; border-radius: 0.3em; font-size: 0.78em; font-style: normal; font-weight: 700; white-space: nowrap;
}
.tl-lane > b {
  position: absolute; top: 50%; left: var(--at); display: grid; place-items: center; width: 1.9em; height: 1.9em; margin: -0.95em 0 0 -0.95em;
  border-radius: 50%; font-size: 0.72em; font-weight: 700; box-shadow: 0 0 0 0.2em rgba(0, 0, 0, 0.45);
}
.tl-video { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 calc(4% - 1px), rgba(0, 0, 0, 0.5) calc(4% - 1px) 4%), #1b1c23; border-radius: 0.3em; }
.tl-video b { background: #22c55e; color: #03140a; }
.tl-clips i { border-color: rgba(129, 140, 248, 0.6); background: rgba(79, 70, 229, 0.42); }
.tl-zoom i { border-color: rgba(251, 191, 36, 0.65); background: linear-gradient(90deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.12)); color: #fbbf24; }
.tl-speed i { justify-content: center; padding: 0; border-color: rgba(74, 222, 128, 0.55); background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.tl-overlays i { border-color: rgba(34, 211, 238, 0.55); background: rgba(6, 182, 212, 0.18); color: var(--cyan-soft); font-weight: 600; }
.tl-steps b { background: var(--indigo); color: #fff; }
.tl-wave { position: absolute; inset: 0.15em 0; background: currentColor; -webkit-mask: var(--wave) 0 0 / 100% 100% no-repeat; mask: var(--wave) 0 0 / 100% 100% no-repeat; }
.tl-mic { color: #22c55e; }
.tl-system { color: #06b6d4; transform: scaleX(-1); }
.tl-playhead-track { position: absolute; top: 0.4em; right: 1em; bottom: 0.6em; left: var(--label); pointer-events: none; }
.tl-mover { position: absolute; top: 0; bottom: 0; left: 0; }
.tl-playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #fff; box-shadow: 0 0 0.6em rgba(255, 255, 255, 0.7); }
.tl-playhead::before { content: ""; position: absolute; top: 0; left: -0.55em; width: 1.1em; height: 1.1em; border-radius: 0.3em 0.3em 50% 50%; background: #fff; }

.ed-rail { display: flex; flex-direction: column; align-items: center; gap: 1.35em; padding-top: 1.2em; border-left: 1px solid rgba(255, 255, 255, 0.06); }
.ed-rail i { width: 1.6em; height: 1.5em; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 0.4em; }
.ed-rail i.ic-round { border-radius: 50%; }
.ed-rail i.on { border-color: var(--indigo-soft); background: rgba(99, 102, 241, 0.25); box-shadow: 0 0 0 0.5em rgba(99, 102, 241, 0.16); }

.ed-steps { display: flex; flex-direction: column; gap: 0.75em; overflow: hidden; padding: 1.2em 1em; border-left: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); }
.ed-steps-head { display: flex; align-items: baseline; justify-content: space-between; }
.ed-steps-head b { font-size: 1.25em; font-weight: 600; }
.ed-steps-head span { color: #8b9dff; font-size: 0.95em; }
.ed-seg { display: flex; width: fit-content; padding: 0.22em; border-radius: 0.6em; background: rgba(255, 255, 255, 0.06); }
.ed-seg span { padding: 0.4em 1em; border-radius: 0.45em; color: rgba(255, 255, 255, 0.55); }
.ed-seg .on { background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 500; }
.ed-kept { color: rgba(255, 255, 255, 0.45); font-size: 0.92em; }
.ed-generate { padding: 0.6em; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0.6em; font-weight: 500; text-align: center; }
.ed-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em 0.7em; }
.ed-thumb { position: relative; }
.ed-thumb .skeleton-app { position: relative; inset: auto; display: block; aspect-ratio: 16 / 10; border-radius: 0.45em; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ed-thumb .skeleton-app::after { content: ""; position: absolute; top: var(--y); left: var(--x); width: 1.4em; height: 1.4em; margin: -0.7em 0 0 -0.7em; border: 0.18em solid #f43f5e; border-radius: 50%; }
.ed-thumb b { position: absolute; top: 0.35em; left: 0.35em; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--indigo); font-size: 0.8em; }
.ed-thumb small { display: block; margin-top: 0.3em; color: rgba(255, 255, 255, 0.45); font-family: var(--mono); font-size: 0.82em; }
.ed-note { margin-top: auto; color: rgba(255, 255, 255, 0.38); font-size: 0.85em; line-height: 1.4; }

/* ── Recorded app (a light web app inside the recording; sized in .rec cqw) ── */

.app-ui { position: absolute; inset: 0; color: #1f2330; font-size: 2cqw; line-height: 1.2; text-align: left; }
.app-top { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 0.9cqw; height: 8%; padding: 0 2cqw; border-bottom: 1px solid #dde0e7; background: #e9ebf0; }
.app-top > i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #c9cdd6; }
.app-top > span { position: absolute; left: 50%; color: #6b7080; font-size: 1.6cqw; font-weight: 500; transform: translateX(-50%); }
.app-side { position: absolute; top: 8%; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 0.4cqw; width: 22%; padding: 2.6cqw 1.5cqw; border-right: 1px solid #e0e3ea; background: #eceef3; }
.app-side b { margin: 0 1cqw 1.4cqw; font-size: 2.1cqw; font-weight: 700; }
.app-side span { padding: 1cqw; border-radius: 0.8cqw; color: #4b5163; font-size: 1.75cqw; }
.app-side .on { background: #dfe3ff; color: #3f3ad9; font-weight: 600; }
.app-main { position: absolute; top: 14%; right: 7%; left: 28%; display: flex; flex-direction: column; gap: 1.4cqw; }
.app-h { font-size: 3.1cqw; font-weight: 700; letter-spacing: -0.02em; }
.app-sub { margin: -0.6cqw 0 1cqw; color: #737a8c; font-size: 1.75cqw; }
.app-row { display: flex; align-items: center; justify-content: space-between; min-height: 6cqw; padding: 0 1.8cqw; border: 1px solid #e3e6ec; border-radius: 1.1cqw; background: #fff; color: #3a3f4d; font-size: 1.85cqw; }
.app-row em { padding: 0.7cqw 1.4cqw; border: 1px solid #dfe2e8; border-radius: 0.8cqw; background: #f7f8fa; color: #1f2330; font-style: normal; font-weight: 500; }
.app-row .select::after { content: " ▾"; color: #8a90a0; }
.app-switch { width: 4.4cqw; height: 2.5cqw; border-radius: 999px; background: radial-gradient(circle at calc(100% - 1.25cqw) 50%, #fff 0.95cqw, transparent 1.05cqw), #4f46e5; }
.app-cancel,
.app-button { position: absolute; top: 76%; display: grid; place-items: center; height: 7%; border-radius: 1.1cqw; font-size: 1.8cqw; font-weight: 600; }
.app-cancel { left: 49%; width: 15%; border: 1px solid #d9dce3; background: #fff; color: #3a3f4d; }
.app-button { left: 66%; width: 16%; background: #4f46e5; color: #fff; box-shadow: 0 0.6cqw 1.6cqw rgba(79, 70, 229, 0.35); }

/* Tiny version of the same app for thumbnails: every block is one background layer. */
.skeleton-app {
  position: absolute; inset: 0; background-color: #f5f6f9; background-repeat: no-repeat;
  background-image:
    linear-gradient(#4f46e5, #4f46e5), linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
    linear-gradient(#aeb3bf, #aeb3bf),
    linear-gradient(#1f2330, #1f2330),
    linear-gradient(#dfe3ff, #dfe3ff),
    linear-gradient(#d3d7df, #d3d7df), linear-gradient(#d3d7df, #d3d7df), linear-gradient(#d3d7df, #d3d7df),
    linear-gradient(#1f2330, #1f2330),
    linear-gradient(#e9ebf0, #e9ebf0),
    linear-gradient(#eceef3, #eceef3);
  background-size:
    16% 7%, 15% 7%,
    65% 9.5%, 65% 9.5%, 65% 9.5%,
    36% 2.6%,
    30% 4.6%,
    19% 5.6%,
    12% 2.4%, 12% 2.4%, 12% 2.4%,
    12% 3%,
    100% 8%,
    22% 100%;
  background-position:
    78.57% 81.72%, 57.65% 81.72%,
    80% 34%, 80% 49%, 80% 64%,
    43.75% 23.6%,
    40% 17%,
    1.85% 51%,
    4.62% 35%, 4.62% 42%, 4.62% 60%,
    3.41% 15%,
    0 0,
    0 0;
}

.cursor { display: block; width: 4.4cqw; filter: drop-shadow(0 0.4cqw 0.8cqw rgba(0, 0, 0, 0.35)); transform-origin: 20% 10%; }
.cursor svg { width: 100%; height: auto; overflow: visible; }
.cursor path { fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; }
.cursor-track { position: absolute; top: 30%; left: 34%; width: 0; height: 0; }
.cursor-track .cursor,
.cursor-static { position: absolute; top: 0; left: 0; margin: -0.45cqw 0 0 -0.9cqw; }
.cursor-static { top: 79.5%; left: 74%; }

.ripple,
.click-ring {
  position: absolute; top: 79.5%; left: 74%; width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; border-radius: 50%;
  border: 0.5cqw solid rgba(99, 102, 241, 0.9); background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  opacity: 0; pointer-events: none;
}
.click-ring { animation: click-pulse 2.4s var(--ease) infinite; }

/* Hero loop choreography — one shared clock (--loop) keeps cursor, zoom, and timeline in sync. */
.az-zoom { animation: az-zoom var(--loop) cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.az-cursor { animation: az-cursor var(--loop) cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.az-press { animation: az-press var(--loop) ease-out infinite; }
.az-ripple { animation: az-ripple var(--loop) ease-out infinite; }
.az-button { animation: az-button var(--loop) ease-out infinite; }
.az-caption { animation: az-caption var(--loop) var(--ease-soft) infinite; }
.az-toast { animation: az-toast var(--loop) var(--ease) infinite; }
.az-playhead { animation: az-playhead var(--loop) linear infinite; }
.az-pop { animation: az-pop var(--loop) var(--ease) infinite; }
.az-card { animation: az-card var(--loop) var(--ease) infinite; }

@keyframes az-zoom {
  0%, 12% { transform: none; }
  30%, 58% { transform: translate(-10%, -10%) scale(1.6); }
  74%, 100% { transform: none; }
}
@keyframes az-cursor {
  0%, 8% { top: 30%; left: 34%; }
  30%, 58% { top: 79.5%; left: 74%; }
  74% { top: 52%; left: 52%; }
  94%, 100% { top: 30%; left: 34%; }
}
@keyframes az-press {
  0%, 32%, 37%, 100% { transform: none; }
  34% { transform: scale(0.82); }
}
@keyframes az-ripple {
  0%, 32.9% { opacity: 0; transform: scale(0.2); }
  33% { opacity: 1; transform: scale(0.3); }
  47%, 100% { opacity: 0; transform: scale(2.6); }
}
@keyframes az-button {
  0%, 32.5%, 40%, 100% { transform: none; background-color: #4f46e5; }
  34% { transform: scale(0.95); background-color: #3730a3; }
}
@keyframes az-caption {
  0%, 22% { opacity: 0; transform: translate(-50%, 0.6em); }
  28%, 64% { opacity: 1; transform: translate(-50%, 0); }
  70%, 100% { opacity: 0; transform: translate(-50%, 0.6em); }
}
@keyframes az-toast {
  0%, 38% { opacity: 0; transform: translateY(-0.6em) scale(0.96); }
  42%, 60% { opacity: 1; transform: none; }
  66%, 100% { opacity: 0; transform: translateY(-0.6em) scale(0.96); }
}
@keyframes az-playhead { from { left: 0%; } to { left: 100%; } }
@keyframes az-pop {
  0%, 33% { opacity: 0; transform: scale(0.3); }
  38%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.3); }
}
@keyframes az-card {
  0%, 34% { opacity: 0; transform: translateY(0.6em) scale(0.94); }
  40%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(0.6em) scale(0.94); }
}

/* ── Showcase (pinned on desktop) ───────────────────────────────────────── */

.showcase { position: relative; padding: 130px 0 40px; }

.showcase-panels { position: relative; margin-top: 88px; }
.showcase-sticky { display: grid; gap: 110px; width: min(var(--max), 100% - 48px); margin: 0 auto; }

.showcase-panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 6vw, 88px); }

.panel-kicker { display: inline-block; margin-bottom: 22px; color: var(--indigo-soft); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.panel-copy h3 { font-size: clamp(40px, 4.6vw, 64px); font-weight: 450; letter-spacing: -0.035em; line-height: 1; }
.panel-copy p { max-width: 400px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; }

/* The panel is the "wallpaper"; glass panes inside it blur the photo. */
.panel-visual {
  position: relative; isolation: isolate; aspect-ratio: 5 / 4; container-type: inline-size; overflow: hidden; border-radius: var(--radius);
  background: #0b0b12; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.5);
}
.panel-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--photo) 30% 40% / cover; }
.pv-guide::before { background-position: 75% 65%; background-size: 170%; filter: hue-rotate(-28deg) saturate(1.15) brightness(0.62); }
.pv-share::before { background-position: 15% 85%; background-size: 150%; filter: hue-rotate(40deg) saturate(1.1) brightness(0.6); }

.pv-video .rec { inset: 11% 9% 17%; border-radius: 2cqw; }
.pv-video .caption { bottom: 5%; font-size: 2.3cqw; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 1.2cqw; padding: 1.2cqw 2.2cqw; border-radius: 999px;
  color: #fff; font-size: 2.2cqw; font-weight: 500; white-space: nowrap;
  animation: slow-float 6s ease-in-out infinite alternate;
}
.chip i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--cyan-soft); box-shadow: 0 0 1.2cqw var(--cyan); }
.chip-1 { top: 4%; left: 4%; }
.chip-2 { top: 42%; right: 3%; animation-delay: -2s; }
.chip-2 i { background: var(--indigo-soft); box-shadow: 0 0 1.2cqw var(--indigo); }
.chip-3 { bottom: 20%; left: 3%; animation-delay: -4s; }
.chip-3 i { background: #fda4af; box-shadow: 0 0 1.2cqw #fb7185; }

.pv-guide { display: grid; place-items: center; }
.doc { width: 82%; padding: 3.6cqw 4cqw; border-radius: 3.4cqw; }
.doc-head { display: flex; align-items: center; gap: 2cqw; margin-bottom: 2.4cqw; }
.doc-head img { width: 4.4cqw; height: 4.4cqw; }
.doc-head strong { display: block; font-size: 3cqw; font-weight: 600; letter-spacing: -0.015em; }
.doc-head small,
.doc-step small { display: block; color: rgba(255, 255, 255, 0.6); font-size: 2.1cqw; }
.doc-step { display: flex; align-items: center; gap: 2.4cqw; padding: 2.1cqw 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.doc-step b { display: grid; flex: none; place-items: center; width: 4cqw; height: 4cqw; border-radius: 1.2cqw; background: linear-gradient(135deg, var(--indigo), var(--cyan)); font-size: 2cqw; }
.doc-step > div { display: grid; flex: 1; gap: 0.6cqw; }
.doc-step strong { font-size: 2.6cqw; font-weight: 600; letter-spacing: -0.01em; }
.doc-thumb.skeleton-app { position: relative; flex: none; width: 15cqw; aspect-ratio: 16 / 10; border-radius: 1cqw; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.doc-thumb::after { content: ""; position: absolute; top: var(--y); left: var(--x); width: 3.2cqw; height: 3.2cqw; margin: -1.6cqw 0 0 -1.6cqw; border: 0.45cqw solid #f43f5e; border-radius: 50%; }

.pv-share { display: grid; place-items: center; }
.browser { width: 84%; overflow: hidden; border-radius: 2.6cqw; }
.browser-bar { position: relative; display: flex; align-items: center; height: 6.6cqw; padding: 0 2.4cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); }
.browser-bar .lights { font-size: 1.5cqw; }
.browser-url { position: absolute; left: 50%; display: inline-flex; align-items: center; gap: 1cqw; padding: 0.9cqw 2.6cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.82); font-family: var(--mono); font-size: 1.9cqw; white-space: nowrap; transform: translateX(-50%); }
.browser-url svg { width: 2cqw; height: 2cqw; fill: none; stroke: var(--cyan-soft); stroke-width: 1.5; }
.share-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--photo) 60% 30% / cover; }
.share-player .rec { inset: 8% 12% 12%; border-radius: 1.2cqw; }
.play { position: absolute; top: 46%; left: 50%; width: 10cqw; height: 10cqw; border-radius: 50%; transform: translate(-50%, -50%); }
.play::after { content: ""; position: absolute; top: 50%; left: 54%; border-top: 2.2cqw solid transparent; border-bottom: 2.2cqw solid transparent; border-left: 3.5cqw solid #fff; transform: translate(-50%, -50%); }
.share-progress { position: absolute; right: 4%; bottom: 5%; left: 4%; height: 0.8cqw; border-radius: 999px; background: linear-gradient(90deg, #fff 38%, rgba(255, 255, 255, 0.3) 38%); }
.share-meta { padding: 2.6cqw 3.4cqw 0; }
.share-meta strong { display: block; font-size: 2.8cqw; font-weight: 600; letter-spacing: -0.015em; }
.share-tabs { display: flex; gap: 3cqw; margin-top: 2cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 2cqw; }
.share-tabs span { padding: 1cqw 0 1.4cqw; border-bottom: 0.35cqw solid transparent; color: rgba(255, 255, 255, 0.55); }
.share-tabs .on { border-bottom-color: #818cf8; color: #fff; font-weight: 600; }
.copied-toast {
  position: absolute; top: 5%; right: 5%; display: inline-flex; align-items: center; gap: 1.2cqw; padding: 1.3cqw 2.4cqw; border-radius: 999px;
  color: #fff; font-size: 2.2cqw; font-weight: 600; animation: slow-float 5s ease-in-out infinite alternate;
}
.copied-toast i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

.showcase-dots { display: none; }

/* Pin mode is enabled by landing.js only on wide screens without reduced motion. */
.showcase.pin .showcase-panels { height: 330vh; margin-top: 0; }
.showcase.pin .showcase-sticky { position: sticky; top: 0; display: grid; place-items: center; height: 100vh; gap: 0; }
.showcase.pin .showcase-panel {
  grid-area: 1 / 1; width: 100%; opacity: 0; transform: translate3d(0, 44px, 0) scale(0.98); filter: blur(8px); pointer-events: none;
  transition: opacity 0.7s var(--ease-soft), transform 0.9s var(--ease), filter 0.7s var(--ease-soft);
}
.showcase.pin[data-active="0"] [data-showcase-panel="0"],
.showcase.pin[data-active="1"] [data-showcase-panel="1"],
.showcase.pin[data-active="2"] [data-showcase-panel="2"] { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.showcase.pin .showcase-dots { position: absolute; bottom: 7vh; left: 50%; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; transform: translateX(-50%); }
.showcase-dots li { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); transition: width 0.5s var(--ease), background-color 0.5s; }
.showcase[data-active="0"] .showcase-dots li:nth-child(1),
.showcase[data-active="1"] .showcase-dots li:nth-child(2),
.showcase[data-active="2"] .showcase-dots li:nth-child(3) { width: 28px; background: #fff; }

/* ── Features ───────────────────────────────────────────────────────────── */

.features { position: relative; isolation: isolate; padding: 130px 0; }
.features::before {
  content: ""; position: absolute; top: 60%; left: 50%; z-index: -1; width: min(1000px, 96vw); height: 560px; pointer-events: none; transform: translate(-50%, -50%);
  background:
    radial-gradient(40% 55% at 28% 50%, rgba(99, 102, 241, 0.5), transparent 72%),
    radial-gradient(36% 50% at 74% 46%, rgba(6, 182, 212, 0.38), transparent 72%),
    radial-gradient(26% 36% at 52% 80%, rgba(236, 72, 153, 0.22), transparent 72%);
  filter: blur(34px);
}
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(1040px, 100% - 48px); margin: 64px auto 0; padding: 0; list-style: none; }

.feature-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 212px; overflow: hidden; padding: 26px 26px 26px; border-radius: 24px;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.12), transparent 45%);
}
.feature-card:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.feature-card:hover::before { opacity: 1; }
.feature-card p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.keycap {
  display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 15px;
  background: linear-gradient(145deg, #3a3a3e, #17171a); color: #f5f5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.45), 0 14px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s;
}
.keycap svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-card:hover .keycap { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 24px rgba(99, 102, 241, 0.35); color: var(--indigo-soft); }

/* ── Before / after ─────────────────────────────────────────────────────── */

.compare-section { padding: 130px 0; }
.compare {
  --split: 50%;
  position: relative; container-type: inline-size; width: min(1040px, 100% - 48px); aspect-ratio: 16 / 9; margin: 64px auto 0; overflow: hidden; border-radius: 30px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(99, 102, 241, 0.14);
}
.compare-layer { position: absolute; inset: 0; }
.compare-raw { background: linear-gradient(180deg, #3b404b, #22252c); }
.desk-menubar { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 2cqw; height: 3.2%; padding: 0 2cqw; background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.85); font-size: 1.1cqw; }
.desk-menubar b { font-weight: 700; }
.desk-window { position: absolute; top: 13%; left: 22%; width: 56%; aspect-ratio: 16 / 10; }
.desk-window .rec { inset: 0; border-radius: 0.9cqw; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.5); }
.desk-dock { position: absolute; bottom: 2.5%; left: 50%; display: flex; gap: 0.7cqw; padding: 0.7cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, 0.16); transform: translateX(-50%); }
.desk-dock i { width: 3.2cqw; height: 3.2cqw; border-radius: 0.8cqw; background: linear-gradient(135deg, #9ca3af, #6b7280); }
.desk-dock i:nth-child(2n) { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.desk-dock i:nth-child(3n) { background: linear-gradient(135deg, #34d399, #059669); }

.compare-polished { clip-path: inset(0 0 0 var(--split)); background: var(--photo) 30% 40% / cover, var(--wallpaper); }
.compare-polished .rec { inset: 8% 9%; }
.caption-static { bottom: 4%; left: 74%; font-size: 1.6cqw; }

.compare-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--split); z-index: 2; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; transform: translate(-50%, -50%); }
.compare-handle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare-range:focus-visible ~ .compare-handle span { box-shadow: 0 0 0 4px var(--indigo-soft), var(--glass-shadow); }
.compare-label { position: absolute; top: 5.5%; z-index: 2; padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 500; pointer-events: none; }
.compare-label-raw { left: 3%; }
.compare-label-polished { right: 3%; }

/* ── How it works ───────────────────────────────────────────────────────── */

.how { position: relative; isolation: isolate; padding: 110px 0 130px; }
.how::before {
  content: ""; position: absolute; top: 58%; left: 50%; z-index: -1; width: min(1000px, 96vw); height: 360px; pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(30% 60% at 20% 50%, rgba(255, 69, 58, 0.22), transparent 72%), radial-gradient(34% 60% at 50% 50%, rgba(99, 102, 241, 0.4), transparent 72%), radial-gradient(30% 60% at 82% 50%, rgba(6, 182, 212, 0.32), transparent 72%);
  filter: blur(40px);
}
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(1040px, 100% - 48px); margin: 64px auto 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.how-step { padding: 36px 28px 40px; }
.how-step + .how-step { border-left: 1px solid var(--line); }
.how-step p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.how-visual { display: grid; place-items: center; height: 132px; margin-bottom: 26px; }
.mini { display: grid; justify-items: center; gap: 12px; padding: 14px; border-radius: 18px; font-size: 13px; white-space: nowrap; }
.mini-seg { display: flex; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); }
.mini-seg span { padding: 6px 12px; border-radius: 7px; color: rgba(255, 255, 255, 0.6); }
.mini-seg .on { background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 500; }
.mini-rec { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 10px; background: linear-gradient(#ff4d42, #e5352b); font-weight: 600; box-shadow: 0 8px 20px rgba(255, 69, 58, 0.3); }
.mini-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.mini-btn { padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-weight: 500; }
.mini-link { grid-auto-flow: column; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; }
.mini-url { color: rgba(255, 255, 255, 0.82); font-family: var(--mono); font-size: 12.5px; }
.mini-copy { padding: 7px 14px; border-radius: 9px; background: #fff; color: #000; font-weight: 600; }

/* ── Export ─────────────────────────────────────────────────────────────── */

.export { padding: 60px 0 130px; }
.export-stage {
  position: relative; isolation: isolate; display: grid; place-items: center; width: min(1040px, 100% - 48px); margin: 64px auto 0; padding: 6% 7%; overflow: hidden; border-radius: 30px;
  background: #0b0b12; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 120px rgba(0, 0, 0, 0.6);
}
.export-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--photo) 50% 60% / cover; filter: saturate(1.05) brightness(0.82); }
.export-stage img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); }

/* ── Download ───────────────────────────────────────────────────────────── */

.download { position: relative; isolation: isolate; padding: 40px 24px 130px; }
.download::before {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: -1; width: min(760px, 90vw); height: 420px; pointer-events: none; transform: translate(-50%, -50%);
  background:
    radial-gradient(45% 55% at 34% 40%, rgba(99, 102, 241, 0.55), transparent 72%),
    radial-gradient(40% 50% at 70% 62%, rgba(6, 182, 212, 0.4), transparent 72%);
  filter: blur(40px);
}
.download-card { position: relative; isolation: isolate; max-width: 760px; margin: 0 auto; padding: 80px 32px 64px; border: 0; border-radius: 40px; text-align: center; }
.download-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.16) 20%, rgba(165, 180, 252, 0.95) 40%, rgba(103, 232, 249, 0.95) 50%, rgba(255, 255, 255, 0.16) 70%) 0 0 / 260% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: border-beam 7s linear infinite;
}
.download-lede { max-width: 460px; margin: 24px auto 0; color: var(--muted); font-size: 18px; text-wrap: balance; }
.download-card .hero-actions { margin-top: 32px; }
.download-note { margin-top: 18px; color: var(--faint); font-size: 13px; }
.app-icon {
  display: grid; place-items: center; width: 108px; height: 108px; margin: 0 auto 40px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 30px;
  background: var(--glass-fill); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 24px 60px rgba(99, 102, 241, 0.35);
  animation: slow-float 5s ease-in-out infinite alternate;
}
.app-icon img { width: 62px; height: 62px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { width: min(720px, 100% - 48px); margin: 0 auto; padding: 30px 0 130px; }
.faq h2 { margin-bottom: 44px; text-align: center; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; top: 50%; right: 6px; width: 14px; height: 14px; margin-top: -7px; transition: transform 0.35s var(--ease); background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; opacity: 0.7; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 24px; color: var(--muted); font-size: 16px; }
.faq details a { color: var(--indigo-soft); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  display: grid; grid-template-columns: minmax(200px, 0.8fr) minmax(0, 3.2fr); gap: 48px 40px; width: min(var(--max), 100% - 48px);
  margin: 0 auto; padding: 72px 0 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px;
}
.site-footer .brand { color: #fff; font-size: 16px; }
.site-footer .brand img { width: 28px; height: 28px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 24px; }
.footer-col h2 { margin: 0 0 16px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.footer-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-col a,
.footer-bottom a { color: var(--muted); line-height: 1.4; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover,
.footer-bottom a:hover { color: #fff; }
.footer-bottom { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-copy { margin-left: auto; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-left: 24px; border-left: 1px solid var(--line); }
.lang-switch a[aria-current] { color: #fff; }

@media (max-width: 900px) {
  .site-footer { grid-template-columns: 1fr; padding-top: 56px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-copy { flex-basis: 100%; margin-left: 0; }
  .lang-switch { flex-basis: 100%; padding-left: 0; border-left: 0; }
}

/* ── Reveal on scroll (only when JS runs) ───────────────────────────────── */

.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .feature-card.reveal:nth-child(3n + 2),
.js .how-step.reveal:nth-child(2) { transition-delay: 0.08s; }
.js .feature-card.reveal:nth-child(3n),
.js .how-step.reveal:nth-child(3) { transition-delay: 0.16s; }

/* ── Keyframes ──────────────────────────────────────────────────────────── */

@keyframes stage-in { from { opacity: 0; transform: translate3d(0, 60px, 0) rotateX(var(--hero-tilt, 0deg)) scale(0.96); } }
@keyframes rec-pulse { 50% { opacity: 0.45; } }
@keyframes click-pulse {
  0% { opacity: 0; transform: scale(0.3); }
  12% { opacity: 1; }
  70%, 100% { opacity: 0; transform: scale(2.2); }
}
@keyframes slow-float { from { translate: 0 -4px; } to { translate: 0 6px; } }
@keyframes orb-drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.08); } }
@keyframes border-beam { from { background-position: 160% 0; } to { background-position: -160% 0; } }

/* ── Motion preferences ─────────────────────────────────────────────────── */

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after,
[data-loop].offscreen * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  /* Freeze the hero on its most informative frame: zoomed in, clicked, captioned. */
  .az-zoom { transform: translate(-10%, -10%) scale(1.6); }
  .az-cursor { top: 79.5%; left: 74%; }
  .az-caption,
  .az-toast { opacity: 1; }
  .az-playhead { left: 33%; }
  .click-ring { opacity: 0.8; transform: scale(1.2); }
  .device,
  .hero-copy { transform: none; opacity: 1; }
  .motion-toggle { display: none; }
}

/* Without backdrop-filter, glass falls back to a darker, still-legible tint. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 52%, rgba(255, 255, 255, 0.07)), rgba(18, 18, 26, 0.9); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Narrow devices: keep the canvas and a short timeline, drop the side panels. */
@container (max-width: 700px) {
  .editor { grid-template-columns: minmax(0, 1fr); aspect-ratio: 1 / 1; font-size: 2.3cqw; }
  .ed-sidebar,
  .ed-rail,
  .ed-steps,
  .ed-more,
  .ed-compare,
  .ed-zoom,
  .tl-optional { display: none; }
  .ed-btn:not(.ed-btn-primary) { display: none; }
  .ed-fit { margin-left: auto; }
  .ed-timeline { --label: 5em; }
  .editor-canvas .framed { width: min(92cqw, 84cqh * 1.6); }
}

@media (max-width: 900px) {
  .showcase-panel { grid-template-columns: 1fr; gap: 32px; }
  .panel-copy { text-align: center; }
  .panel-copy p { margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .js .feature-card.reveal:nth-child(n),
  .js .how-step.reveal:nth-child(n) { transition-delay: 0s; }
  .compare { aspect-ratio: 4 / 3; }
  .how-steps { grid-template-columns: 1fr; }
  .how-step + .how-step { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-optional { display: none; }
  .nav-links { gap: 18px; }
  .hero { padding-top: 128px; }
  .hero-stage { margin-top: 56px; }
  .device { padding: 6px; border-radius: 16px; }
  .device-screen { border-radius: 11px; }
  .motion-toggle { right: 2px; bottom: -44px; width: 30px; height: 30px; }
  .showcase,
  .features,
  .compare-section,
  .how { padding: 90px 0; }
  .export { padding: 30px 0 90px; }
  .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { gap: 22px; min-height: 0; padding: 22px; border-radius: 20px; }
  .how-step { padding: 28px 8px 32px; }
  .download { padding: 20px 20px 90px; }
  .download-card { padding: 60px 22px 52px; border-radius: 30px; }
  .compare,
  .export-stage { border-radius: 20px; }
  .compare-handle span { width: 40px; height: 40px; }
  .compare-label { padding: 4px 10px; font-size: 11px; }
}
