/* VFX 4 All. Visual language from nomastudio.ai: deep navy and purple, neon
   magenta for actions, blue, cyan, green and purple accents, Montserrat, HUD
   brackets, hex grids and bevel-cut panels. */

/* Montserrat variable (400 to 900), self-hosted from Google Fonts. SIL OFL 1.1, see fonts/OFL.txt. */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/fonts/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d1117;
  --bg-deep: #0a0012;
  --surface: rgba(10, 25, 41, 0.62);
  --surface-solid: #0a1929;
  --surface-alt: #0d2038;
  --line: rgba(56, 182, 255, 0.2);
  --line-soft: rgba(255, 255, 255, 0.07);

  --magenta: #ff00ff;
  --magenta-dim: rgba(255, 0, 255, 0.14);
  --blue: #38b6ff;
  --blue-dim: rgba(56, 182, 255, 0.15);
  --cyan: #33f5ff;
  --green: #73ee1b;
  --purple: #8c11e4;
  --purple-light: #cc66ff;
  --pink: #dd005d;

  --text: #ffffff;
  --text-2: #c8cdd5;
  --muted: #8a93a3;

  --bevel: 16px;
  --bevel-lg: 26px;
  --font: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font: 15px/1.55 var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(140, 17, 228, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(56, 182, 255, 0.07), transparent 70%),
    var(--bg-deep);
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
.hidden { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.muted { color: var(--muted); }

/* keyboard focus: a cyan ring everywhere; clipped shapes draw it inside instead */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.card:focus-visible, .mode:focus-visible, .socials a:focus-visible, .rail:focus-visible { outline: none; }
.card:focus-visible .card-in::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border: 3px solid var(--cyan); box-shadow: inset 0 0 0 1px #0a0012, inset 0 0 18px rgba(51, 245, 255, 0.35); }
.mode:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan); }
.socials a:focus-visible { color: #fff; background: var(--magenta); }
.rail:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan); }
.chip:focus-visible { outline-offset: 3px; }
.small { font-size: 12.5px; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 14px; height: 14px; }
.ic.lg { width: 26px; height: 26px; }
.ic.xl { width: 34px; height: 34px; stroke-width: 1.5; }

/* bevel-cut surfaces with a hairline border that follows the cut */
.bevel {
  --b: var(--bevel);
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(56, 182, 255, 0.35), rgba(255, 0, 255, 0.28) 60%, rgba(56, 182, 255, 0.18));
  clip-path: polygon(0 0, calc(100% - var(--b)) 0, 100% var(--b), 100% 100%, var(--b) 100%, 0 calc(100% - var(--b)));
}
.bevel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(160deg, rgba(13, 32, 56, 0.92), rgba(10, 0, 18, 0.94));
  clip-path: polygon(0 0, calc(100% - var(--b) + 0.4px) 0, 100% calc(var(--b) - 0.4px), 100% 100%, calc(var(--b) - 0.4px) 100%, 0 calc(100% - var(--b) + 0.4px));
  backdrop-filter: blur(10px);
}

/* ------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(16px, 4vw, 44px);
  background:
    linear-gradient(rgba(56, 182, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(56, 182, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(13, 17, 23, 0.95), rgba(13, 17, 23, 0.78));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { width: 96px; height: auto; }
.nav-sep { width: 1px; height: 26px; background: linear-gradient(transparent, var(--magenta), transparent); }
.nav-brand a { text-decoration: none; }
.nav-logo { display: flex; transition: filter 0.25s ease, transform 0.25s ease; }
.nav-logo:hover { filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.55)); transform: translateY(-1px); }
.wordmark { font-weight: 900; letter-spacing: 0.14em; font-size: 15px; white-space: nowrap; }
.wordmark b { color: var(--magenta); text-shadow: 0 0 12px rgba(255, 0, 255, 0.7); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--blue); color: var(--blue); background: var(--blue-dim); border-radius: 999px; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse 2.4s ease-in-out infinite; }
.status.ok { color: var(--green); border-color: rgba(115, 238, 27, 0.7); background: rgba(115, 238, 27, 0.1); }
.status.warn { color: #ffb547; border-color: rgba(255, 181, 71, 0.6); background: rgba(255, 181, 71, 0.1); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; cursor: pointer; color: var(--text);
  background: rgba(10, 25, 41, 0.6); border: 1px solid var(--line); border-radius: 10px; transition: all 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--magenta); color: var(--magenta); box-shadow: 0 0 14px rgba(255, 0, 255, 0.35); }

/* ------------------------------------------------ hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) clamp(16px, 5vw, 64px) 60px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 24s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(to right, rgba(10, 0, 18, 0.96) 0%, rgba(13, 17, 23, 0.86) 38%, rgba(13, 17, 23, 0.35) 72%, rgba(13, 17, 23, 0.2) 100%),
  linear-gradient(to top, var(--bg-deep) 0%, rgba(140, 17, 228, 0.35) 22%, transparent 48%),
  radial-gradient(ellipse 50% 60% at 80% 50%, rgba(140, 17, 228, 0.18), transparent 70%); }
.hex { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hud { position: absolute; inset: calc(var(--nav-h) + 18px) 10px 14px; pointer-events: none; }
.hud-el { position: absolute; display: block; background: var(--magenta); -webkit-mask: var(--m) no-repeat center / contain; mask: var(--m) no-repeat center / contain; opacity: 0.9; }
.hud-el.tl { --m: url(/static/brand/corner-top-left.svg); top: 0; left: 0; width: clamp(140px, 18vw, 260px); aspect-ratio: 540 / 142; }
.hud-el.tr { --m: url(/static/brand/corner-top-right.svg); top: 0; right: 0; width: clamp(140px, 18vw, 260px); aspect-ratio: 540 / 142; }
.hud-el.bl { --m: url(/static/brand/corner-bottom-left.svg); bottom: 0; left: 0; width: clamp(140px, 18vw, 260px); aspect-ratio: 540 / 142; }
.hud-el.br { --m: url(/static/brand/corner-bottom-right.svg); bottom: 0; right: 0; width: clamp(140px, 18vw, 260px); aspect-ratio: 540 / 142; }
.hud-el.vx { --m: url(/static/brand/vertical-x.svg); top: 18px; left: 14px; width: 26px; height: 110px; }
.hud-el.sig { --m: url(/static/brand/signal.svg); bottom: 22px; left: 28px; width: min(380px, 50vw); height: 16px; animation: pulse 3s ease-in-out infinite; }
.hud-el.hexes { --m: url(/static/brand/hexagons.svg); bottom: 70px; right: 30px; width: 110px; height: 110px; animation: float 7s ease-in-out infinite; }
.hud-el.slant { --m: url(/static/brand/slanted-boxes-1.svg); bottom: 24px; right: 160px; width: 120px; height: 18px; background: #fff; opacity: 0.7; }

.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 16px; border: 1px solid var(--magenta); border-radius: 999px;
  color: var(--magenta); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(255, 0, 255, 0.06);
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.18); }
h1 { margin: 0 0 18px; font-size: clamp(38px, 6.4vw, 78px); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; }
.grad { background: linear-gradient(100deg, var(--magenta), var(--purple-light) 45%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: sheen 6s ease-in-out infinite; }
.lead { margin: 0 0 30px; max-width: 560px; font-size: clamp(15px, 1.6vw, 18px); color: var(--text-2); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; }
.facts li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.facts .ic { color: var(--cyan); }

/* ------------------------------------------------ buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; cursor: pointer;
  font-weight: 800; font-size: 14px; letter-spacing: 0.02em; text-decoration: none; border: 0; overflow: hidden; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s; }
.btn.sm { padding: 9px 14px; font-size: 13px; }
.btn.xs { padding: 5px 10px; font-size: 12px; gap: 6px; }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 0 16px rgba(255, 0, 255, 0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(255, 0, 255, 0.75); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline { background: var(--magenta-dim); color: var(--magenta); border: 1px solid var(--magenta); }
.btn-outline:hover { background: rgba(255, 0, 255, 0.24); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: progress; transform: none; }

/* ------------------------------------------------ sections */
section { position: relative; }
.effects, .studio, .how, .try, .demo { padding: 70px clamp(16px, 5vw, 64px) 30px; max-width: 1480px; margin: 0 auto; }

/* Static catalog site (tools/build_site.py): no server, so the studio and the key controls go away */
html:has(meta[name="vfx4all-mode"][content="static"]) .app-only { display: none !important; }
.try-preview, .demo-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.demo-video { object-fit: contain; }
.try-note { margin: 0; font-size: 13px; line-height: 1.5; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 12px; }
.eyebrow::after { content: ""; width: 64px; height: 2px; background: linear-gradient(to right, var(--magenta), transparent); }
.count { color: var(--magenta); font-weight: 900; }
.sec-sub { margin: 0; color: var(--muted); font-size: 14px; }
.rail-nav { display: flex; gap: 8px; }

/* chips: skewed tabs, like the services switcher on the site */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { --c: var(--blue); flex: none; cursor: pointer; padding: 8px 16px; border: 1px solid var(--c); background: transparent; color: var(--c);
  font-size: 12.5px; font-weight: 800; transform: skewX(-12deg); transition: all 0.2s var(--ease); }
.chip > span { display: inline-flex; align-items: center; gap: 7px; transform: skewX(12deg); }
.chip:hover { box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); }
.chip.on { background: var(--c); color: #0a0012; box-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); }
.chip .n { opacity: 0.7; font-weight: 700; }

/* rail: horizontal scroll with snap */
.rail-wrap { position: relative; margin: 0 calc(-1 * clamp(16px, 5vw, 64px)); }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 clamp(16px, 5vw, 64px);
  padding: 10px clamp(16px, 5vw, 64px) 22px; scrollbar-width: none; cursor: grab; outline: none;
  -webkit-mask: linear-gradient(to right, transparent, #000 clamp(16px, 5vw, 64px), #000 calc(100% - clamp(16px, 5vw, 64px)), transparent);
  mask: linear-gradient(to right, transparent, #000 clamp(16px, 5vw, 64px), #000 calc(100% - clamp(16px, 5vw, 64px)), transparent); }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-progress { height: 3px; background: rgba(255, 255, 255, 0.06); margin-top: 4px; }
.rail-progress span { display: block; height: 100%; width: 10%; background: linear-gradient(to right, var(--magenta), var(--blue)); box-shadow: 0 0 10px var(--magenta); transition: width 0.15s linear, margin-left 0.15s linear; }

.card { --c: var(--magenta); --b: 22px; flex: 0 0 clamp(270px, 30vw, 420px); scroll-snap-align: start; position: relative; isolation: isolate; cursor: pointer;
  padding: 1px; border: 0; text-align: left; color: var(--text);
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 70%, transparent), rgba(56, 182, 255, 0.25) 45%, color-mix(in srgb, var(--c) 40%, transparent));
  clip-path: polygon(0 0, calc(100% - var(--b)) 0, 100% var(--b), 100% 100%, var(--b) 100%, 0 calc(100% - var(--b)));
  transition: transform 0.35s var(--ease), filter 0.35s; }
.card-in { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #05010a;
  clip-path: polygon(0 0, calc(100% - var(--b) + 0.4px) 0, 100% calc(var(--b) - 0.4px), 100% 100%, calc(var(--b) - 0.4px) 100%, 0 calc(100% - var(--b) + 0.4px)); }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s; }
.card video { opacity: 0; }
.card.playing video { opacity: 1; }
.card:hover img, .card:hover video { transform: scale(1.06); }
.card:hover { transform: translateY(-6px); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 0, 18, 0.96) 0%, rgba(10, 0, 18, 0.55) 34%, transparent 62%); }
.card-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--c); color: var(--c); background: rgba(10, 0, 18, 0.65); border-radius: 999px; backdrop-filter: blur(4px); }
.tag.live { --c: var(--green); }
.tag.soon { --c: #c8cdd5; }
.tag.beta { --c: #ffb547; }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 20px; }
.card-name { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.card-name .ic { color: var(--c); filter: drop-shadow(0 0 6px var(--c)); }
.card-desc { display: block; margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.card-use { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  background: var(--magenta); color: #fff; box-shadow: 0 0 14px rgba(255, 0, 255, 0.5); opacity: 0; transform: translateY(8px); transition: all 0.3s var(--ease); }
.card:hover .card-use, .card.selected .card-use { opacity: 1; transform: none; }
.card.selected { background: linear-gradient(120deg, var(--magenta), var(--blue), var(--magenta)); background-size: 300% 300%; animation: border-flow 3s linear infinite; filter: drop-shadow(0 0 14px rgba(255, 0, 255, 0.45)); }
.card.selected .card-use { background: var(--green); color: #0a0012; box-shadow: 0 0 14px rgba(115, 238, 27, 0.5); }
.card.disabled { filter: grayscale(0.85) brightness(0.55); cursor: not-allowed; }
.card.disabled:hover { transform: none; }

.card.soon .art { position: absolute; inset: 0; background:
  radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 55%, transparent), transparent 45%),
  radial-gradient(circle at 75% 70%, rgba(56, 182, 255, 0.35), transparent 50%),
  linear-gradient(160deg, #10051f, #05010a); }
.card.soon .art::before { content: ""; position: absolute; inset: -20%; opacity: 0.35;
  background-image: url(/static/brand/hexagons.svg); background-size: 90px; filter: invert(1) sepia(1) saturate(4) hue-rotate(250deg); animation: float 9s ease-in-out infinite; }
.card.soon .art .big { position: absolute; left: 50%; top: 40%; width: 34%; height: 34%; transform: translate(-50%, -50%); color: var(--c); filter: drop-shadow(0 0 18px var(--c)); stroke-width: 1.2; animation: float 6s ease-in-out infinite; }
.card.soon:hover { transform: translateY(-3px); }

/* ------------------------------------------------ studio */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.mode { --b: 18px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; text-align: left; color: var(--text);
  background: rgba(10, 25, 41, 0.55); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--b)) 0, 100% var(--b), 100% 100%, var(--b) 100%, 0 calc(100% - var(--b))); transition: all 0.25s var(--ease); }
.mode-ic { display: grid; place-items: center; width: 54px; height: 54px; flex: none; color: var(--blue); border: 1px solid var(--line); background: var(--blue-dim); transform: skewX(-8deg); }
.mode-ic .ic { transform: skewX(8deg); }
.mode-txt { display: flex; flex-direction: column; gap: 2px; }
.mode-txt b { font-size: 17px; }
.mode-txt small { color: var(--muted); font-size: 12.5px; }
.mode:hover { border-color: rgba(255, 0, 255, 0.5); }
.mode.active { border-color: var(--magenta); background: linear-gradient(120deg, rgba(255, 0, 255, 0.16), rgba(140, 17, 228, 0.12)); box-shadow: inset 0 0 30px rgba(255, 0, 255, 0.08); }
.mode.active .mode-ic { color: var(--magenta); border-color: var(--magenta); background: var(--magenta-dim); box-shadow: 0 0 16px rgba(255, 0, 255, 0.4); }
.mode.active .mode-ic .ic { animation: pop 0.5s var(--ease); }

.work { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 20px; align-items: start; }
.panel { padding: 20px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 14px); }
.mode-panel { display: flex; flex-direction: column; gap: 16px; }
.chosen { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.chosen img { width: 64px; height: 40px; object-fit: cover; background: #05010a; border: 1px solid var(--line-soft); }
.chosen img:not([src]) { visibility: hidden; }

.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer; font-size: 13px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--magenta); cursor: pointer; }
.check span { display: flex; flex-direction: column; gap: 2px; }
.check small { color: var(--muted); font-size: 12px; }
.check.flash { animation: limits-flash 0.5s ease 3; }
.chosen div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chosen small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chosen b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link { color: var(--magenta); font-size: 12.5px; font-weight: 700; text-decoration: none; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 16px; cursor: pointer;
  border: 1.5px dashed rgba(56, 182, 255, 0.4); background: rgba(56, 182, 255, 0.04); transition: all 0.2s var(--ease); }
.drop .ic { color: var(--blue); margin-bottom: 4px; transition: transform 0.3s var(--ease); }
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--magenta); background: rgba(255, 0, 255, 0.06); outline: none; }
.drop:hover .ic, .drop.over .ic { color: var(--magenta); transform: translateY(-3px); }
.drop-main { font-weight: 800; }
.drop-sub { color: var(--muted); font-size: 12.5px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; height: 84px; border: 1px solid var(--magenta); box-shadow: 0 0 12px rgba(255, 0, 255, 0.3); animation: rise 0.4s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(10, 0, 18, 0.8); cursor: pointer; line-height: 1; }

.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.label em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 0.8; }
textarea, input[type="password"], input[type="number"] { width: 100%; padding: 10px 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); resize: vertical; }
.sample-btn { align-self: flex-start; margin-top: -6px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--cyan); font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sample-btn:hover { color: var(--text); }
.sample-btn:disabled { opacity: 0.5; cursor: wait; }
.more { padding: 10px 12px; border: 1px solid var(--line); }
.more summary { cursor: pointer; width: fit-content; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.more summary:hover { color: var(--text); }
.more[open] summary { margin-bottom: 12px; }
.more .field + .field { margin-top: 12px; }
textarea:focus, input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(255, 0, 255, 0.15); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1 1 0; min-width: 78px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 8px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--text-2); font-size: 13px; font-weight: 700; transition: all 0.2s var(--ease); }
.seg button:hover { border-color: rgba(255, 0, 255, 0.5); color: #fff; }
.seg button.on { border-color: var(--magenta); background: var(--magenta-dim); color: #fff; box-shadow: 0 0 12px rgba(255, 0, 255, 0.25); }
.seg button.on .ic { color: var(--magenta); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.track { width: 40px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); position: relative; transition: all 0.2s; flex: none; }
.knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: all 0.25s var(--ease); }
.switch input:checked + .track { background: var(--magenta-dim); border-color: var(--magenta); }
.switch input:checked + .track .knob { left: 20px; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(255, 0, 255, 0.25); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }

.video-box { display: flex; flex-direction: column; gap: 10px; }
.video-box video { width: 100%; max-height: 260px; background: #000; border: 1px solid var(--line); }
.cut-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cut-label { font-size: 13px; color: var(--muted); }
.cut-label b { color: var(--text); }
#cutCanvas { width: 96px; height: 54px; border: 1px solid var(--magenta); background: #000; margin-left: auto; }

.comfy-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; border: 1px solid var(--green); background: rgba(115, 238, 27, 0.08); color: var(--green); }
.comfy-link span { display: flex; flex-direction: column; }
.comfy-link b { color: #fff; font-size: 14px; }
.comfy-link small { color: var(--text-2); font-size: 12px; }
.comfy-link:hover { box-shadow: 0 0 16px rgba(115, 238, 27, 0.35); }

.stage { --b: var(--bevel-lg); padding: 20px; min-height: 460px; display: flex; flex-direction: column; gap: 16px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.progress-top b { color: var(--magenta); }
.progress-right { display: inline-flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar span { position: relative; display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--magenta), var(--purple-light), var(--blue)); box-shadow: 0 0 12px var(--magenta); transition: width 0.5s var(--ease); overflow: hidden; }
.bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); animation: shimmer 1.4s linear infinite; }
.scene { display: flex; flex-direction: column; gap: 10px; animation: rise 0.5s var(--ease); }
.scene img { width: 100%; border: 1px solid var(--line); }
.scene-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.results { display: flex; flex-direction: column; gap: 16px; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 380px; border: 1px dashed var(--line); color: var(--text-2); padding: 24px; }
.empty .ic { color: var(--magenta); margin-bottom: 8px; animation: float 5s ease-in-out infinite; }
.empty p { margin: 0; }
.result { border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); animation: rise 0.5s var(--ease); }
.result video { width: 100%; background: #000; object-fit: contain; }
.result .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.result .meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--magenta); text-decoration: none; margin-left: 14px; font-weight: 800; }
.result .meta a:hover { color: #fff; }
.result-media { position: relative; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 12px 12px; }
.result-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; cursor: pointer; font-size: 12px; font-weight: 800;
  color: var(--text-2); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); transition: all 0.2s var(--ease); }
.result-actions button:hover { border-color: var(--magenta); color: #fff; }
.result-actions button[aria-pressed="true"] { border-color: var(--magenta); background: var(--magenta-dim); color: #fff; }
.result-actions button:disabled { opacity: 0.5; cursor: progress; }
.seed { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.prompt { padding: 0 12px 12px; font-size: 12.5px; color: var(--text-2); }
.scene .prompt { padding: 0; }
.prompt summary { cursor: pointer; width: fit-content; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.prompt summary:hover { color: var(--text); }
.prompt p { margin: 8px 0 0; max-height: 220px; overflow: auto; line-height: 1.5; white-space: pre-wrap; }

.compare-orig { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.compare-line { position: absolute; top: 0; bottom: 46px; width: 2px; transform: translateX(-1px); pointer-events: none; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.compare-tag { position: absolute; top: 10px; padding: 3px 8px; pointer-events: none; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(10, 0, 18, 0.7); border: 1px solid var(--line); }
.compare-tag.l { left: 10px; }
.compare-tag.r { right: 10px; }
.compare-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.compare-row input { flex: 1; accent-color: var(--magenta); }

/* ------------------------------------------------ how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.step .ic { color: var(--cyan); }
.step b { font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.step-n { font-size: 34px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px var(--magenta); line-height: 1; }

/* ------------------------------------------------ footer, dialog, toast */
.foot { margin-top: 50px; padding: 0 clamp(16px, 5vw, 64px) 30px; }
.foot-line { height: 1px; background: linear-gradient(to right, transparent, var(--blue), var(--magenta), transparent); margin-bottom: 28px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; max-width: 1480px; margin: 0 auto 26px; }
.foot-brand { display: grid; gap: 10px; max-width: 420px; }
.foot-brand p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.foot-logo { display: inline-flex; width: fit-content; transition: filter 0.25s ease; }
.foot-logo:hover { filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.55)); }
.foot-logo img { width: 112px; height: auto; }
.foot-web { display: inline-flex; align-items: center; gap: 7px; width: fit-content; font-weight: 700; font-size: 13.5px; color: var(--cyan); text-decoration: none; }
.foot-web:hover { color: #fff; }
.foot-social { display: grid; gap: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.socials a:hover { color: #fff; background: var(--magenta); transform: translateY(-2px); box-shadow: 0 0 18px rgba(255, 0, 255, 0.5); }
.soc { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.foot-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; font-size: 12.5px; color: var(--text-2); max-width: 1480px; margin: 0 auto; padding-top: 18px; border-top: 1px solid rgba(56, 182, 255, 0.1); }

.limits { margin-top: 12px; padding: 12px 14px; background: rgba(56, 182, 255, 0.06); border: 1px solid var(--line); border-left: 3px solid var(--cyan); }
.limits ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.limits li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.limits li .ic { color: var(--cyan); }
.limits li b { color: #fff; }
.limits p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.limits.flash { animation: limits-flash 0.5s ease 3; }
@keyframes limits-flash { 50% { border-color: var(--magenta); box-shadow: 0 0 18px rgba(255, 0, 255, 0.45); } }
dialog { padding: 0; border: 0; background: transparent; color: var(--text); width: min(470px, 92vw); }
dialog::backdrop { background: rgba(5, 0, 12, 0.7); backdrop-filter: blur(4px); }
.settings { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.settings h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.settings p { margin: 0; font-size: 13px; }
.settings .settings-msg { padding: 10px 12px; color: #ffb547; border: 1px solid rgba(255, 181, 71, 0.6); background: rgba(255, 181, 71, 0.08); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: 92vw;
  padding: 11px 18px; background: #12061f; border: 1px solid var(--magenta); box-shadow: 0 0 20px rgba(255, 0, 255, 0.3); font-size: 13.5px; transition: all 0.3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: #ff5d6c; box-shadow: 0 0 20px rgba(255, 93, 108, 0.35); }

/* ------------------------------------------------ motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.card.soon .art .big { animation-name: floatc; }
@keyframes floatc { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes border-flow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: skewX(8deg) scale(0.6); } 70% { transform: skewX(8deg) scale(1.15); } 100% { transform: skewX(8deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .work { grid-template-columns: 1fr; }
  .panel { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .nav-links { display: none; }
  .nav-brand img { width: 78px; }
  .wordmark { font-size: 13px; }
  .status .txt { display: none; }
  .status { padding: 7px; }
  .hero { min-height: 88vh; padding-bottom: 46px; align-items: flex-end; }
  .hero-shade { background:
    linear-gradient(to top, var(--bg-deep) 2%, rgba(13, 17, 23, 0.86) 45%, rgba(13, 17, 23, 0.45) 100%),
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(140, 17, 228, 0.2), transparent 70%); }
  .hud-el.hexes, .hud-el.slant, .hud-el.vx { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .modes { grid-template-columns: 1fr; }
  .mode { padding: 14px 16px; }
  .card { flex-basis: 78vw; }
  .row { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
  .sec-head { align-items: start; }
  .effects, .studio, .how { padding-top: 54px; }
}
