/* StatusTune — "Prism" light theme: pastel aurora, frosted glass, holographic accents. */
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #f4f5fb;
  --ink: #0c0f1d;
  --ink-2: #2b3047;
  --muted: #646a82;
  --line: rgba(12, 15, 29, .09);
  --line-strong: rgba(12, 15, 29, .16);
  --glass: rgba(255, 255, 255, .66);
  --glass-strong: rgba(255, 255, 255, .86);
  --violet: #6d4dff;
  --cyan: #00b8f0;
  --mint: #21d39a;
  --peach: #ffad6b;
  --pink: #ff6fb5;
  --holo: linear-gradient(110deg, #6d4dff 0%, #00b8f0 28%, #21d39a 52%, #ffad6b 76%, #ff6fb5 100%);
  --holo-soft: linear-gradient(110deg, rgba(109, 77, 255, .14), rgba(0, 184, 240, .14), rgba(33, 211, 154, .14), rgba(255, 173, 107, .14));
  --ok: #0c8a5f;
  --ok-bg: rgba(33, 211, 154, .14);
  --warn: #b5400d;
  --warn-bg: rgba(255, 140, 80, .14);
  --radius: 26px;
  --shadow: 0 1px 1px rgba(12, 15, 29, .04), 0 12px 40px -16px rgba(40, 30, 120, .22);
  --shadow-lg: 0 40px 80px -30px rgba(40, 30, 120, .35);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body { margin: 0; color: var(--ink); background: transparent; font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, canvas, video { max-width: 100%; }
a { color: var(--violet); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.025em; }
h1, h2 { font-family: var(--display); font-weight: 600; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(109, 77, 255, .2); }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
/* Line icons. Illustrations (.scene-art) opt out. */
:where(svg:not(.scene-art)) { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .55; animation: blob 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: -15vmax; top: -20vmax; background: radial-gradient(closest-side, rgba(150, 120, 255, .55), transparent); }
.aurora i:nth-child(2) { right: -20vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(0, 200, 255, .38), transparent); animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { left: 10vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(40, 230, 170, .32), transparent); animation-duration: 38s; animation-delay: -14s; }
.aurora i:nth-child(4) { right: -10vmax; bottom: -25vmax; background: radial-gradient(closest-side, rgba(255, 170, 120, .34), transparent); animation-duration: 30s; animation-delay: -20s; }
@keyframes blob { 33% { transform: translate(8vmax, 6vmax) scale(1.1); } 66% { transform: translate(-6vmax, 10vmax) scale(.92); } 100% { transform: translate(4vmax, -6vmax) scale(1.05); } }
.grid-fade { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(12, 15, 29, .13) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%); }

/* ---------- Utilities ---------- */
.sr-only { 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: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(800px, 100% - 32px); }
.center { text-align: center; }
.hint { color: var(--muted); font-size: 14px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--holo); }
.kicker.center { display: flex; justify-content: center; }
.holo-text { background: var(--holo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo-shift 8s linear infinite; }
@keyframes holo-shift { to { background-position: 200% 0; } }
.noscript { margin: 0; padding: 14px; text-align: center; background: var(--warn-bg); color: var(--warn); }
[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

/* ---------- Glass surfaces ---------- */
.card, .glass { position: relative; background: var(--glass); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.card { padding: 22px; }
.card::after, .glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(109, 77, 255, .09), transparent 60%); }
.card:hover::after, .glass:hover::after { opacity: 1; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s, background .25s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--ink); box-shadow: 0 10px 30px -10px rgba(12, 15, 29, .6); }
.btn-primary::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: var(--holo); background-size: 200% 100%; opacity: 0; filter: blur(10px); transition: opacity .35s; animation: holo-shift 4s linear infinite; }
.btn-primary:hover::before { opacity: .85; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary svg path[d^="m8"] { fill: currentColor; }
.btn-ghost { background: rgba(255, 255, 255, .75); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-glass { color: var(--ink); background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-xl { width: 100%; padding: 19px 22px; font-size: 17px; }
.btn-small { padding: 9px 15px; font-size: 14px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled::before { display: none; }
.btn-xl:not(:disabled) { background: var(--ink) linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%) 0 0 / 250% 100% no-repeat; animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { from { background-position: 130% 0; } 60%, to { background-position: -130% 0; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; padding: 0 16px; margin-top: 12px; }
.header-inner { width: min(1100px, 100%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; padding: 0 10px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 30px -14px rgba(40, 30, 120, .25); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); transition: background .3s, box-shadow .3s; }
.scrolled .header-inner { background: rgba(255, 255, 255, .85); box-shadow: 0 14px 40px -16px rgba(40, 30, 120, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.03em; }
.brand b { font-weight: 600; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { border-radius: 11px; }
.site-header nav { display: flex; align-items: center; gap: 2px; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 9px 14px; border-radius: 999px; transition: background .2s; }
.nav-link:hover { background: rgba(12, 15, 29, .06); }
@media (max-width: 680px) { .hide-sm { display: none; } .brand { font-size: 15px; } .site-header { padding: 0 10px; top: 8px; margin-top: 8px; } .header-inner { height: 56px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow-x: clip; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 24px; } .hero { padding: 80px 0 60px; } }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
/* Boot: paint text and layout first, then start the expensive decoration (fx.js removes .boot after load). */
.boot .hero-visual { visibility: hidden; opacity: 0; }
.boot *:not(.hero-copy > *), .boot *::before, .boot *::after { animation-play-state: paused !important; }
.hero-visual { transition: opacity .8s var(--ease); }
/* Entrance uses movement only (no opacity), so the hero paints at once and LCP isn't delayed. */
.hero-copy > * { animation: hero-in .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
@keyframes hero-in { from { transform: translateY(18px); } }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(33, 211, 154, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(33, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(33, 211, 154, 0); } }
.hero h1 { margin-top: 24px; font-size: clamp(38px, 7.4vw, 82px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.hero-lead { margin-top: 22px; max-width: 560px; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 28px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b { font-family: var(--display); font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.hero-facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .hero-facts { grid-template-columns: repeat(2, auto); gap: 18px 32px; } }

/* Hero visual: a landscape clip morphing into a 9:16 status */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1200px; }
.holo-ring { position: absolute; width: 470px; height: 470px; border-radius: 50%; background: conic-gradient(from 0deg, #6d4dff, #00b8f0, #21d39a, #ffad6b, #ff6fb5, #6d4dff); -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 87%, #000 100%); mask: radial-gradient(closest-side, transparent 86%, #000 87%, #000 100%); opacity: .55; animation: spin 18s linear infinite; }
.holo-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; filter: blur(24px); opacity: .7; }
.hero-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); }
@keyframes spin { to { transform: rotate(360deg); } }
.device { position: relative; width: 250px; padding: 10px; border-radius: 46px; background: linear-gradient(150deg, #ffffff, #e7e9f4 60%, #d8dbea); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 -3px 6px rgba(12, 15, 29, .06), var(--shadow-lg); transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg)); transition: transform .5s var(--ease); }
.device-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: #0b0d17; }
.m-photo { position: absolute; inset: 0; background: radial-gradient(circle at 64% 40%, #fff3d6 0 7%, rgba(255, 220, 160, .7) 9%, transparent 26%), linear-gradient(180deg, #3a4f9a 0%, #a58bd8 38%, #ffb98a 62%, #ffd9a6 72%); overflow: hidden; }
.m-photo::before { content: ""; position: absolute; left: -5%; right: -5%; bottom: 0; height: 52%; background: #5a4a8e; clip-path: polygon(0 40%, 14% 18%, 26% 34%, 42% 4%, 58% 30%, 70% 16%, 84% 32%, 100% 12%, 100% 100%, 0 100%); }
.m-photo::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: 0; height: 32%; background: linear-gradient(180deg, #2b2357, #15112f); clip-path: polygon(0 34%, 18% 12%, 36% 40%, 54% 20%, 72% 44%, 88% 22%, 100% 36%, 100% 100%, 0 100%); }
.m-bg { position: absolute; inset: -20px; filter: blur(16px) brightness(.85); transform: scale(1.4); opacity: 1; animation: m-bg 9s var(--ease) infinite; }
.m-img { position: absolute; left: 10px; right: 10px; top: 50%; aspect-ratio: 16 / 9; translate: 0 -50%; border-radius: 6px; overflow: hidden; z-index: 2; box-shadow: 0 30px 60px -20px rgba(12, 15, 29, .6); animation: m-img 9s var(--ease) infinite; }
.m-img .m-photo { inset: 0; }
.m-safe { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; animation: m-safe 9s ease infinite; }
.m-safe::before, .m-safe::after { content: ""; position: absolute; left: 10px; right: 10px; border-top: 1.5px dashed rgba(255, 255, 255, .8); }
.m-safe::before { top: 13%; }
.m-safe::after { top: 87%; }
.m-scan { position: absolute; left: 0; right: 0; top: -20%; height: 18%; z-index: 4; background: linear-gradient(180deg, transparent, rgba(160, 230, 255, .55), transparent); mix-blend-mode: screen; opacity: 0; animation: m-scan 9s linear infinite; }
.m-caption { position: absolute; left: 50%; bottom: 20%; z-index: 4; translate: -50% 0; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: #c8f169; color: #10241b; font-size: 13px; font-weight: 700; animation: m-caption 9s var(--ease) infinite; }
.m-top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 4; display: flex; gap: 3px; animation: m-caption 9s var(--ease) infinite; }
.m-top i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.m-top i:first-child { background: #fff; }
.m-ready { position: absolute; left: 50%; top: 50%; z-index: 5; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); opacity: 0; animation: m-ready 9s var(--ease) infinite; }
.m-ready svg { width: 18px; height: 18px; color: #fff; background: var(--mint); border-radius: 50%; padding: 3px; stroke-width: 3; }
@keyframes m-img { 0% { scale: 1.75; opacity: 0; border-radius: 18px; } 6% { opacity: 1; } 16% { scale: 1.75; border-radius: 18px; } 32%, 92% { scale: 1; opacity: 1; border-radius: 0; } 100% { scale: 1; opacity: 0; } }
@keyframes m-bg { 0%, 28% { opacity: 0; } 42%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes m-safe { 0%, 40% { opacity: 0; } 46% { opacity: 1; } 54% { opacity: .4; } 58% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes m-scan { 0%, 30% { top: -20%; opacity: 0; } 32% { opacity: 1; } 44% { top: 100%; opacity: 1; } 45%, 100% { top: 100%; opacity: 0; } }
@keyframes m-caption { 0%, 50% { opacity: 0; transform: translateY(10px); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes m-ready { 0%, 66% { opacity: 0; transform: scale(.6); } 72% { opacity: 1; transform: scale(1.05); } 76%, 88% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(.9); } }
.float-chip { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: float 6s ease-in-out infinite; }
.float-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--violet)); box-shadow: 0 0 10px var(--c, var(--violet)); }
.float-chip.c1 { top: 14%; left: 2%; --c: var(--violet); }
.float-chip.c2 { top: 30%; right: 0; --c: var(--cyan); animation-delay: -1.5s; }
.float-chip.c3 { bottom: 24%; left: 0; --c: var(--mint); animation-delay: -3s; }
.float-chip.c4 { bottom: 9%; right: 6%; --c: var(--peach); animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 979px) { .hero-visual { min-height: 480px; } .holo-ring { width: 380px; height: 380px; } .device { width: 210px; } }
@media (max-width: 420px) { .float-chip { font-size: 12px; padding: 7px 11px; } .float-chip.c1 { left: -2%; } .float-chip.c3 { left: -2%; } .float-chip.c2, .float-chip.c4 { right: -2%; } }

/* Marquee */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .45); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 34s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(22px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.2px rgba(12, 15, 29, .35); }
.marquee span:nth-of-type(3n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; font-size: 22px; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Studio ---------- */
.studio { position: relative; padding: 80px 0 40px; }
.studio-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.studio-head h2 { font-size: clamp(28px, 4.4vw, 48px); letter-spacing: -.04em; }
.tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tabs::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease); }
[data-mode="photo"] .tabs::before { transform: translateX(100%); }
.tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; padding: 11px 24px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: color .3s; }
.tabs button[aria-selected="true"] { color: #fff; }
@media (max-width: 520px) { .tabs { width: 100%; } }

.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 16px; }
.card-head h3 { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.card-head .hint { flex-basis: 100%; font-size: 13.5px; }
@media (min-width: 640px) { .card-head .hint { flex-basis: auto; margin-left: auto; } }
/* Step number: dark tile, crisp white digits, thin holographic ring. */
.step { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 13px; font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums lining-nums; color: #fff; background: var(--ink); box-shadow: 0 8px 18px -10px rgba(12, 15, 29, .7); }
.step::before { content: "0"; }
.step::after { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 15px; background: var(--holo); opacity: .9; }
.card-head { isolation: isolate; }
.card-head h3 { line-height: 1.2; }

.studio-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "source" "preview" "settings" "export"; }
.source-card { grid-area: source; }
.preview-col { grid-area: preview; }
.settings { grid-area: settings; border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.studio-grid > .export-card { grid-area: export; }
@media (min-width: 980px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr) 370px; grid-template-areas: "source preview" "settings preview" "export preview"; align-items: start; }
  .preview-col { position: sticky; top: 100px; }
}

/* Source */
.dropzone { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 38px 18px; border-radius: 20px; border: 1.5px dashed rgba(109, 77, 255, .35); background: var(--holo-soft); transition: border-color .3s, transform .3s var(--ease); }
.card.dropzone { border: 1.5px dashed rgba(109, 77, 255, .35); }
.dropzone.drag { border-color: var(--violet); transform: scale(1.01); }
.dropzone h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin-top: 6px; }
.dropzone p { color: var(--muted); }
.dropzone small { color: var(--muted); font-size: 13px; }
.dropzone .btn { margin: 10px 0 4px; min-width: 210px; }
.drop-icon { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; color: #fff; background: var(--ink); box-shadow: 0 16px 30px -12px rgba(12, 15, 29, .6); }
.drop-icon::before { content: ""; position: absolute; inset: -6px; border-radius: 26px; background: var(--holo); z-index: -1; opacity: .5; filter: blur(12px); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .9; transform: scale(1.06); } }
.drop-icon svg { width: 28px; height: 28px; }
.file-row { display: none; align-items: center; gap: 14px; }
.has-video .file-row { display: flex; }
.has-video #drop { display: none; }
.file-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #fff; background: var(--ink); flex: none; }
.file-icon svg path { fill: currentColor; }
.file-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.file-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-text small { color: var(--muted); }
.source-video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

/* Options */
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .option-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .option-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) and (max-width: 1120px) { .settings .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option { position: relative; display: block; cursor: pointer; }
.option input, .seg input, .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-body { position: relative; height: 100%; display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.option-body b { font-size: 14.5px; font-weight: 600; }
.option-body small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.option:hover .option-body { transform: translateY(-2px); box-shadow: var(--shadow); }
.option input:checked + .option-body { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--holo) border-box; border: 1.5px solid transparent; box-shadow: 0 14px 30px -16px rgba(109, 77, 255, .55); }
.option input:focus-visible + .option-body { outline: 2.5px solid var(--violet); outline-offset: 3px; }
.tag { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 3px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.frame-icon { display: block; width: 28px; height: 46px; margin-bottom: 10px; border-radius: 7px; border: 2px solid var(--ink); position: relative; overflow: hidden; }
.frame-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 33%; bottom: 33%; background: var(--holo); }
.fi-fill::after { inset: 0; }
.fi-blur { background: linear-gradient(160deg, rgba(109, 77, 255, .3), rgba(33, 211, 154, .3)); }
.fi-fit { background: var(--ink); }
.fi-original { width: 46px; height: 30px; margin: 8px 0 18px; }
.fi-original::after { inset: 0; }

.sub-fields { display: grid; gap: 14px; margin-top: 16px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
@media (min-width: 640px) { .sub-fields { grid-template-columns: 1fr 1fr; } }
.range-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.range-field b { color: var(--violet); }
input[type="checkbox"], input[type="color"] { accent-color: var(--violet); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(109, 77, 255, .35), rgba(0, 184, 240, .35)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(109, 77, 255, .35), rgba(0, 184, 240, .35)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 4px 12px rgba(12, 15, 29, .25); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }

.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: rgba(12, 15, 29, .05); }
.seg label { position: relative; cursor: pointer; }
.seg span { display: block; padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.seg input:checked + span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 4px 12px -4px rgba(12, 15, 29, .25); }
.seg input:focus-visible + span { outline: 2.5px solid var(--violet); }
.row-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 16px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.range-field.compact { flex: 1; min-width: 180px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; margin-left: auto; }
.switch-ui { position: relative; width: 50px; height: 30px; border-radius: 999px; background: rgba(12, 15, 29, .14); transition: background .3s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.switch input:checked + .switch-ui { background: var(--holo); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2.5px solid var(--violet); outline-offset: 3px; }

.text-field { position: relative; display: block; }
.text-field input, .num-field input, .inline-field select { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .85); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.text-field input { padding-right: 60px; }
.text-field input:focus, .num-field input:focus, .inline-field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109, 77, 255, .14); }
.text-field small { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }
.inline-field { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 14px; }
.inline-field select { width: auto; padding: 9px 14px; }
.inline-field input[type="color"] { width: 44px; height: 32px; border: 0; padding: 0; background: none; }

/* Text & sticker layers */
.layer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.layer-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
@media (min-width: 640px) { .layer-list { flex: 1 1 auto; } }
.layer-chip { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: transform .2s var(--ease), box-shadow .2s; }
.layer-chip:hover { transform: translateY(-1px); }
.layer-chip[aria-pressed="true"] { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--holo) border-box; color: var(--ink); font-weight: 600; box-shadow: 0 8px 20px -12px rgba(109, 77, 255, .55); }
.layer-chip.is-sticker { font-size: 16px; padding: 4px 12px; }
.sticker-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-bottom: 14px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); animation: rise .35s var(--ease); }
.sticker-picker button { height: 44px; border: 0; border-radius: 14px; background: transparent; font-size: 24px; line-height: 1; transition: transform .2s var(--ease), background .2s; }
.sticker-picker button:hover { background: rgba(255, 255, 255, .9); transform: scale(1.12); }
.ff-sans { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ff-display { font-family: "Unbounded", system-ui, sans-serif; }
.ff-grotesk { font-family: "Space Grotesk", system-ui, sans-serif; }
.ff-serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.ff-mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.swatches label { position: relative; cursor: pointer; }
.swatches input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches span, .swatch-custom { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(12, 15, 29, .18); transition: transform .2s var(--ease), box-shadow .2s; }
.swatches label:hover span { transform: scale(1.1); }
.swatches input:checked + span, .swatches.custom-on .swatch-custom { box-shadow: inset 0 0 0 1px rgba(12, 15, 29, .18), 0 0 0 2.5px #fff, 0 0 0 4.5px var(--violet); }
.swatches input:focus-visible + span { outline: 2.5px solid var(--violet); outline-offset: 4px; }
.swatch-custom { overflow: hidden; background: conic-gradient(#ff6fb5, #ffad6b, #c8f169, #00b8f0, #6d4dff, #ff6fb5); }
.swatch-custom input[type="color"] { width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.live-preview canvas { touch-action: none; }
.live-preview canvas.can-drag { cursor: grab; }
.live-preview canvas.is-dragging { cursor: grabbing; }
.is-live .phone-top, .is-live .phone-bottom { pointer-events: none; }

/* Sound */
.music-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (min-width: 640px) { .music-file, #musicGroup .switch { grid-column: 1 / -1; } }
.music-file .hint { font-size: 13px; overflow-wrap: anywhere; }
#musicGroup .switch { margin-left: 0; }
.size-custom { width: 130px; }
.clip-card.is-audio { grid-column: 1 / -1; max-width: 420px; padding: 14px; }
.clip-card audio { width: 100%; }

/* Trim */
.trim-track { position: relative; height: 68px; border-radius: 16px; background: rgba(12, 15, 29, .06); overflow: hidden; --a: 0; --b: 1; }
.trim-track canvas { display: block; width: 100%; height: 100%; }
.trim-track::before, .trim-track::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none; background: rgba(244, 245, 251, .78); backdrop-filter: grayscale(1); -webkit-backdrop-filter: grayscale(1); }
.trim-track::before { left: 0; width: calc(10px + (100% - 20px) * var(--a)); }
.trim-track::after { right: 0; width: calc(10px + (100% - 20px) * (1 - var(--b))); }
.trim-window { position: absolute; z-index: 1; top: 0; bottom: 0; left: calc(10px + (100% - 20px) * var(--a)); right: calc(10px + (100% - 20px) * (1 - var(--b))); border-block: 3px solid var(--ink); pointer-events: none; }
.trim-track input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.trim-track input::-webkit-slider-runnable-track { height: 100%; background: none; }
.trim-track input::-moz-range-track { height: 100%; background: none; }
.trim-track input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 68px; margin-top: 0; border-radius: 8px; background: var(--ink); border: 0; box-shadow: 0 4px 14px rgba(12, 15, 29, .35); cursor: ew-resize; }
.trim-track input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 64px; border-radius: 8px; background: var(--ink); border: 0; cursor: ew-resize; }
.trim-track input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--violet); }
#selectionInfo { margin-top: 10px; font-variant-numeric: tabular-nums; }
.trim-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.num-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }
@media (min-width: 700px) { .trim-fields { grid-template-columns: 1fr 1fr auto auto; align-items: end; } }

/* Export */
.export-card { display: grid; gap: 16px; }
.plan { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip-strong { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.chip-note { background: transparent; border-style: dashed; color: var(--muted); }
.message { padding: 13px 16px; border-radius: 16px; font-size: 14.5px; font-weight: 500; background: rgba(12, 15, 29, .05); color: var(--ink-2); }
.message[data-tone="success"] { background: var(--ok-bg); color: var(--ok); }
.message[data-tone="error"] { background: var(--warn-bg); color: var(--warn); }
.progress-box { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; }
.progress-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); }
.progress-head b { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 12px; border: 0; border-radius: 999px; overflow: hidden; background: rgba(12, 15, 29, .07); -webkit-appearance: none; appearance: none; }
progress::-webkit-progress-bar { background: rgba(12, 15, 29, .07); }
progress::-webkit-progress-value { background: var(--holo); background-size: 200% 100%; border-radius: 999px; transition: width .3s; animation: holo-shift 2s linear infinite; }
progress::-moz-progress-bar { background: var(--holo); border-radius: 999px; }
.fine { text-align: center; font-size: 13px; color: var(--muted); }

/* Results */
.results { margin-top: 18px; display: grid; gap: 16px; animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.results-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.results-head h2 { font-size: 26px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.clip-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.clip-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #0b0d17; border-radius: 14px; }
.clip-card p { display: flex; justify-content: space-between; gap: 6px; padding: 0 4px; font-size: 13px; }
.clip-card p span { color: var(--muted); }
.clip-actions { display: flex; gap: 6px; }
.clip-actions .btn { flex: 1; }

/* ---------- Phone preview (studio) ---------- */
.showcase { --scene-accent: #c8f169; display: grid; justify-items: center; gap: 14px; }
.phone { width: min(100%, 300px); padding: 10px; border-radius: 46px; background: linear-gradient(150deg, #ffffff, #e7e9f4 60%, #d8dbea); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--shadow-lg); }
.phone-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: #0b0d17; color: #fff; isolation: isolate; }
.demo-art, .live-preview { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.live-preview { display: grid; place-items: center; }
.live-preview canvas { width: 100%; height: 100%; object-fit: contain; }
.safe-zone { position: absolute; inset: 0; pointer-events: none; display: none; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0 13%, transparent 13% 87%, rgba(0, 0, 0, .3) 87%); }
.safe-zone::before, .safe-zone::after { content: ""; position: absolute; left: 8px; right: 8px; border-top: 1px dashed rgba(255, 255, 255, .5); }
.safe-zone::before { top: 13%; }
.safe-zone::after { top: 87%; }
.live-preview.is-portrait .safe-zone { display: block; }
.scene-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: 58% 48%; animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.demo-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 17%, rgba(0, 0, 0, 0) 50%, rgba(3, 8, 10, .5) 68%, rgba(3, 8, 10, .88) 100%); }
.is-live .demo-shade { display: none; }
.phone-top { position: absolute; top: 0; left: 0; right: 0; padding: 10px 12px; z-index: 3; }
.stories { display: flex; gap: 3px; }
.stories i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; position: relative; }
.stories i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--story-progress, 0)); }
.profile { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: conic-gradient(var(--scene-accent), #00b8f0, #6d4dff, var(--scene-accent)); flex: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #0b0d17; }
.who { flex: 1; min-width: 0; line-height: 1.2; }
.profile strong { display: block; font-size: 13px; font-weight: 700; }
.profile small { display: block; font-size: 10.5px; opacity: .75; }
.badge { padding: 3px 7px; border-radius: 7px; background: rgba(255, 255, 255, .16); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.dots { display: flex; flex-direction: column; gap: 2.5px; padding: 0 2px; }
.dots i { width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .9; }
.demo-copy { position: absolute; left: 20px; right: 20px; bottom: 62px; z-index: 2; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.demo-tag { display: inline-block; padding: 5px 10px; margin-bottom: 12px; border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: .18em; color: var(--scene-accent); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: none; }
.demo-copy h3 { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.06; letter-spacing: -.04em; }
.demo-copy h3 em { display: block; margin-top: 2px; font-style: normal; color: var(--scene-accent); }
.demo-place { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 12px; font-weight: 500; opacity: .88; }
.demo-place svg { width: 14px; height: 14px; color: var(--scene-accent); }
.demo-copy.enter > * { animation: copy-in .8s var(--ease) both; }
.demo-copy.enter > :nth-child(2) { animation-delay: .12s; }
.demo-copy.enter > :nth-child(3) { animation-delay: .24s; }
@keyframes copy-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.phone-bottom { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; }
.reply { display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 600; opacity: .9; }
.reply svg { width: 16px; height: 16px; margin-bottom: -2px; }
.mode { display: none; }
.player { width: min(100%, 320px); display: grid; gap: 6px; }
.player-head { display: flex; justify-content: space-between; font-size: 13px; }
.player-head strong { font-weight: 600; }
.player-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.player-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .75); color: var(--ink); box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn.play { width: 54px; height: 54px; border: 0; color: #fff; background: var(--ink); box-shadow: 0 12px 26px -10px rgba(12, 15, 29, .7); }
.icon-btn:disabled { opacity: .5; }
.scene-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.scene-choices button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: 0 4px 14px -8px rgba(40, 30, 120, .3); }
.scene-choices button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.scene-swatch { width: 12px; height: 12px; border-radius: 50%; }
.swatch-0 { background: linear-gradient(135deg, #0d2a42, #f7d4a2); }
.swatch-1 { background: linear-gradient(135deg, #6b3560, #f6a46e); }
.swatch-2 { background: linear-gradient(135deg, #040a1c, #53f2b4); }
.note { font-size: 13px; color: var(--muted); text-align: center; max-width: 300px; }
.showcase-choose { display: none; }
.is-live .showcase-choose { display: inline-flex; }
.demo-sun { animation: glow 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.demo-cloud { animation: drift 16s ease-in-out infinite alternate; }
.demo-ripples { animation: shimmer 3s ease-in-out infinite; }
.demo-aurora { animation: sway 9s ease-in-out infinite alternate; }
.demo-stars { animation: twinkle 4s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); opacity: .85; } }
@keyframes drift { to { transform: translateX(30px); } }
@keyframes shimmer { 50% { opacity: .2; } }
@keyframes sway { to { transform: translateX(-24px) skewX(-4deg); } }
@keyframes twinkle { 50% { opacity: .55; } }
.is-paused .demo-art * { animation-play-state: paused !important; }

/* Mobile: keep the live preview pinned while adjusting settings */
@media (max-width: 979px) {
  .has-video .preview-col { position: sticky; top: 70px; z-index: 20; margin-inline: -16px; padding: 10px 16px 12px; background: rgba(244, 245, 251, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .has-video .showcase { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 8px 14px; }
  .has-video .phone { grid-row: span 3; width: auto; height: min(36svh, 320px); padding: 5px; border-radius: 24px; }
  .has-video .phone-screen { height: 100%; width: auto; border-radius: 19px; }
  .has-video .phone-top, .has-video .phone-bottom { display: none; }
  .has-video .player { width: 100%; }
  .has-video .note { text-align: left; font-size: 12px; }
  .has-video .showcase-choose { justify-self: start; }
}

/* ---------- Photos ---------- */
#photoInfo { margin: 14px 0 0; }
.photo-grid { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 980px) { .photo-grid { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; } .photo-side { position: sticky; top: 100px; } }
.photo-side { display: grid; gap: 18px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.thumb { position: relative; flex: none; width: 62px; height: 62px; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: rgba(12, 15, 29, .06); transition: transform .2s var(--ease); }
.thumb:hover { transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb span { position: absolute; left: 4px; bottom: 4px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: rgba(12, 15, 29, .75); color: #fff; font-size: 11px; font-weight: 700; }
.thumb[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(109, 77, 255, .3); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.compare figcaption { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.compare img, .compare canvas { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 16px; background: repeating-conic-gradient(rgba(12, 15, 29, .05) 0 25%, rgba(255, 255, 255, .7) 0 50%) 0 0 / 16px 16px; }
.compare.zoomed figure { overflow: auto; max-height: 62vh; border-radius: 16px; }
.compare.zoomed img, .compare.zoomed canvas { max-width: none; max-height: none; height: auto; }
.photo-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo-result { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; transition: transform .2s var(--ease); }
.photo-result img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 13px; }
.photo-result:hover { transform: translateY(-3px); }

/* ---------- Content sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-title { text-align: center; font-size: clamp(28px, 4.6vw, 52px); letter-spacing: -.045em; max-width: 18ch; margin: 0 auto 48px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li:nth-child(2) { transform: translateY(28px); } .steps li:nth-child(3) { transform: translateY(56px); } .steps li.is-in:nth-child(2) { transform: translateY(28px); } .steps li.is-in:nth-child(3) { transform: translateY(56px); } }
.steps li { position: relative; padding: 30px 26px 28px; overflow: hidden; }
.step-num { display: block; font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1; margin-bottom: 22px; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(12, 15, 29, .25); }
.steps li:hover .step-num { background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }
.steps h3, .features h3 { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 10px; }
.steps p, .features p { color: var(--muted); }
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } .features article:first-child, .features article:nth-child(4), .features article:nth-child(6) { grid-column: span 2; } }
.features article { position: relative; padding: 30px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.features article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.features article:first-child, .features article:nth-child(4), .features article:nth-child(6) { background: linear-gradient(140deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55)), var(--holo-soft); }
.f-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; margin-bottom: 22px; color: #fff; background: var(--ink); position: relative; }
.f-icon::after { content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 22px; background: var(--holo); filter: blur(10px); opacity: .45; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 24px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-lg); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); }
.tools-section { padding-top: 24px; }
.tool-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tool-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 22px 24px; color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.tool-card b { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.tool-card span { grid-column: 1; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.tool-card svg { grid-column: 2; grid-row: 1 / span 2; width: 38px; height: 38px; padding: 9px; border-radius: 50%; color: #fff; background: var(--ink); transition: transform .35s var(--ease); }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-card:hover svg { transform: translateX(3px); }
.landing-intro { padding: 72px 0 0; }
.landing-intro article > .breadcrumbs + h2 { margin-top: 0; }
.cta-band { padding: 40px 0 100px; }
.cta-inner { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 72px 24px; border-radius: 40px; color: #fff; background: var(--ink); box-shadow: var(--shadow-lg); isolation: isolate; }
.cta-inner::before { content: ""; position: absolute; width: 620px; height: 620px; top: -340px; left: 50%; margin-left: -310px; z-index: -1; border-radius: 50%; background: conic-gradient(#6d4dff, #00b8f0, #21d39a, #ffad6b, #ff6fb5, #6d4dff); filter: blur(70px); opacity: .55; animation: spin 14s linear infinite; }
.cta-band h2 { font-size: clamp(30px, 5vw, 56px); letter-spacing: -.045em; }
.cta-band p { color: rgba(255, 255, 255, .75); margin-bottom: 10px; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.footer-inner nav a:hover { color: var(--violet); }
.footer-inner .footer-tools { width: 100%; gap: 8px 18px; }
.footer-inner .footer-tools a { color: var(--muted); font-size: 14px; }
.footer-inner p { color: var(--muted); font-size: 14px; width: 100%; }
.footer-word { display: block; margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(54px, 15vw, 210px); line-height: .8; letter-spacing: -.07em; text-align: center; color: transparent; background: linear-gradient(180deg, rgba(12, 15, 29, .12), rgba(12, 15, 29, 0)); -webkit-background-clip: text; background-clip: text; user-select: none; }

/* ---------- Reading pages ---------- */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(32px, 5.6vw, 60px); letter-spacing: -.045em; max-width: 18ch; margin-top: 8px; }
.page-hero p { margin-top: 18px; max-width: 640px; font-size: 18px; color: var(--ink-2); }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-2); }
.reading { padding: 8px 0 90px; }
.reading article { width: min(780px, 100% - 32px); margin-inline: auto; padding: clamp(22px, 4vw, 48px); background: var(--glass); border: 1px solid rgba(255, 255, 255, .9); border-radius: 32px; box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.reading h2 { font-size: clamp(21px, 3vw, 27px); letter-spacing: -.035em; margin: 44px 0 14px; scroll-margin-top: 100px; }
.reading h3 { font-size: 18px; font-weight: 600; margin: 26px 0 8px; }
.reading p, .reading li { color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.reading p + p { margin-top: 14px; }
.reading ol, .reading ul { padding-left: 22px; }
.reading li + li { margin-top: 6px; }
.toc { padding: 20px 22px; border-radius: 20px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.toc strong { display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.toc ol { margin: 0; }
.toc li { font-size: 15.5px; }
.callout { margin: 24px 0; padding: 18px 20px; border-radius: 18px; background: var(--holo-soft); border: 1px solid rgba(109, 77, 255, .18); }
.callout p { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; background: rgba(255, 255, 255, .8); }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: rgba(12, 15, 29, .04); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.reading .btn { margin-top: 30px; }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.not-found h1 { font-size: clamp(32px, 6vw, 60px); letter-spacing: -.045em; }
.not-found p { color: var(--muted); margin: 14px 0 26px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .m-img { scale: 1; opacity: 1; } .m-bg { opacity: 1; } .m-caption, .m-top { opacity: 1; }
}
