/* ====================================================================
   LineShadow — APP variant v2
   Snap-scroll deck · each section = 1 viewport
   Rounded surfaces, hairline borders, cyan accent, subtle motion
   ==================================================================== */

:root {
  --bg:           #121212;
  --surface:      #161616;
  --surface-2:    #1a1a1a;
  --surface-hi:   #202020;
  --surface-lo:   #0f0f0f;

  --border:       rgba(118, 120, 126, 0.16);
  --border-2:     rgba(118, 120, 126, 0.29);
  --border-hi:    rgba(0, 188, 195, 0.45);
  --hairline:     rgba(232, 232, 226, 0.06);
  --dash:         #66666650;

  --ink:          #e5e5e5;
  --ink-2:        #b7b7b7;
  --muted:        #7a7a7a;

  --accent:       #00bcc3;
  --accent-soft:  rgba(0, 188, 195, 0.10);
  --accent-dim:   rgba(0, 188, 195, 0.22);
  --orange:       #ffa500;

  --r-pill:       999px;
  --r-lg:         18px;
  --r-md:         12px;
  --r-sm:         8px;

  --header-h:     64px;
  --pad-x:        clamp(24px, 3vw, 56px);
  --pad-top:      calc(var(--header-h) + clamp(16px, 2vw, 32px));
  --pad-bot:      clamp(24px, 3vh, 56px);

  --font-display: "Space Grotesk", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans:    "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease:         cubic-bezier(.22, .61, .36, 1);
  --ease-out:     cubic-bezier(.16, 1, .3, 1);
  --surface-noise-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='1000' height='1000' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  --surface-noise-size: 1000px 1000px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- snap-scroll deck on the document element ----- */
html {
  scroll-snap-type: none;
  scroll-behavior: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
html::-webkit-scrollbar { width: 0; height: 0; }
body { scrollbar-width: none; }
body::-webkit-scrollbar { width: 0; height: 0; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #001012; }

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

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.app-header-inner {
  height: 100%;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  transition: opacity .25s var(--ease);
}
.brand:hover { opacity: 0.85; }
.brand img { height: 30px; width: auto; }
.brand .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.brand:hover .tag { color: var(--accent); border-color: var(--border-hi); }

.nav-pills {
  display: flex;
  gap: 6px;
  justify-self: center;
}
.nav-pills a {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 300;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.nav-pills a:hover {
  background: var(--surface-hi);
  color: var(--ink);
}
.nav-pills a.active {
  color: var(--accent);
  border-color: var(--border-hi);
  background: var(--accent-soft);
}

.header-right { justify-self: end; display: flex; align-items: center; gap: 10px; }

.header-app-offer {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.header-app-offer .open-app-btn {
  position: relative;
  z-index: 1;
}
.header-free-badge {
  height: 46px;
  min-width: 150px;
  margin-right: -62px;
  padding: 2px 78px 0 20px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: rgba(232, 232, 226, 0.05);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(76px) scaleX(0.76);
  transform-origin: right center;
  transition: transform .34s var(--ease-out), opacity .22s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease),
              background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header-app-offer:hover .header-free-badge,
.header-app-offer:has(.open-app-btn:hover) .header-free-badge,
.header-app-offer:focus-within .header-free-badge {
  opacity: 1;
  transform: translateX(0) scaleX(1);
  border-color: var(--accent);
  background: rgba(0, 188, 195, 0.08);
  color: var(--accent);
  box-shadow: 0 0 22px rgba(0, 188, 195, 0.20);
}

.open-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: rgba(0, 188, 195, 0.08);
  border: 1px solid rgba(0, 188, 195, 0.32);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease), transform .15s var(--ease);
}
.open-app-btn:hover {
  background: rgba(0, 188, 195, 0.16);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 188, 195, 0.25);
}
.open-app-btn:active { transform: scale(.98); }
.open-app-btn .arr { font-family: var(--font-mono); transition: transform .25s var(--ease); }
.open-app-btn:hover .arr { transform: translateX(3px); }

.lang-toggle {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: rgba(232, 232, 226, 0.05);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: border-color .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease);
}
.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--accent);
  background: rgba(0, 188, 195, 0.08);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 188, 195, 0.18);
}
.lang-toggle:active { transform: scale(.96); }

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: rgba(232, 232, 226, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.mobile-menu-toggle span {
  width: 16px;
  height: 1px;
  background: var(--ink);
  transform-origin: center;
  transition: transform .25s var(--ease), opacity .2s var(--ease), background-color .25s var(--ease);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(0, 188, 195, 0.08);
}
.mobile-menu-toggle:hover span,
.mobile-menu-toggle[aria-expanded="true"] span {
  background: var(--accent);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu-backdrop {
  display: none;
}

/* ============================================================
   GLOBAL BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-hi);
  border-color: var(--accent);
}
.btn:active { transform: scale(.98); }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #001012;
  font-weight: 500;
}
.btn-accent:hover {
  background: #2bd5dc;
  border-color: #2bd5dc;
  box-shadow: 0 0 28px rgba(0, 188, 195, 0.40);
  color: #001012;
}
.btn .arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   SLIDE / SECTION (snap)
   ============================================================ */
.slide {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  padding: var(--pad-top) var(--pad-x) var(--pad-bot);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

@media (min-width: 1101px) {
  .slide {
    margin-bottom: clamp(160px, 22vh, 260px);
  }
  .slide:last-of-type {
    margin-bottom: 0;
  }
}

/* ----- soft slide enter animation -----
   Two-layer reveal: slide-level containers, then inner cards
   with a small cascading delay. Pure transition-based — replays
   only when the slide leaves and re-enters the viewport. */
.slide > * {
  transform: translateY(96px);
  transition: transform 900ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
/* Scrolling DOWN → elements enter from the TOP.
   :where() keeps specificity at 0 so .slide.in-view > * still wins. */
:where(:root[data-scroll-dir="down"]) .slide > * {
  transform: translateY(-96px);
}
.slide > *:nth-child(2) { transition-delay: 80ms; }
.slide > *:nth-child(3) { transition-delay: 160ms; }
.slide > *:nth-child(4) { transition-delay: 240ms; }

.slide.in-view > * {
  transform: none;
}

/* ----- inner cascade: cards, items, headline elements ----- */
.slide :is(
  .hero-copy > *,
  .app-mock,
  .mock-side > *,
  .mock-stage,
  .proc-card,
  .param,
  .fmt,
  .use,
  .thumb,
  .light-slider,
  .demo-stage,
  .demo-aside,
  .cta-aside,
  .cta-foot > *,
  .slide-head .left > *,
  .slide-head .right
) {
  transform: translateY(56px);
  transition: transform 750ms cubic-bezier(.22, 1, .36, 1);
}
/* Scrolling DOWN → inner elements also drop in from the top.
   :where() keeps specificity at 0 so the .in-view override still wins. */
:where(:root[data-scroll-dir="down"]) .slide :is(
  .hero-copy > *,
  .app-mock,
  .mock-side > *,
  .mock-stage,
  .proc-card,
  .param,
  .fmt,
  .use,
  .thumb,
  .light-slider,
  .demo-stage,
  .demo-aside,
  .cta-aside,
  .cta-foot > *,
  .slide-head .left > *,
  .slide-head .right
) {
  transform: translateY(-56px);
}
.slide.in-view :is(
  .hero-copy > *,
  .app-mock,
  .mock-side > *,
  .mock-stage,
  .proc-card,
  .param,
  .fmt,
  .use,
  .thumb,
  .light-slider,
  .demo-stage,
  .demo-aside,
  .cta-aside,
  .cta-foot > *,
  .slide-head .left > *,
  .slide-head .right
) {
  transform: none;
}

/* slide-head intro */
.slide.in-view .slide-head .left > *:nth-child(1) { transition-delay: 60ms; }
.slide.in-view .slide-head .left > *:nth-child(2) { transition-delay: 140ms; }
.slide.in-view .slide-head .right { transition-delay: 200ms; }

/* hero copy + mock */
.slide.in-view .hero-copy > *:nth-child(1) { transition-delay: 120ms; }
.slide.in-view .hero-copy > *:nth-child(2) { transition-delay: 200ms; }
.slide.in-view .hero-copy > *:nth-child(3) { transition-delay: 280ms; }
.slide.in-view .hero-copy > *:nth-child(4) { transition-delay: 360ms; }
.slide.in-view .hero-copy > *:nth-child(5) { transition-delay: 440ms; }
.slide.in-view .app-mock { transition-delay: 240ms; }
.slide.in-view .mock-side > *:nth-child(1) { transition-delay: 360ms; }
.slide.in-view .mock-side > *:nth-child(2) { transition-delay: 420ms; }
.slide.in-view .mock-side > *:nth-child(3) { transition-delay: 480ms; }
.slide.in-view .mock-side > *:nth-child(4) { transition-delay: 540ms; }
.slide.in-view .mock-stage { transition-delay: 380ms; }

/* process / export / cases — 3-4 cards */
.slide.in-view .proc-card:nth-child(1),
.slide.in-view .fmt:nth-child(1),
.slide.in-view .use:nth-child(1) { transition-delay: 280ms; }
.slide.in-view .proc-card:nth-child(2),
.slide.in-view .fmt:nth-child(2),
.slide.in-view .use:nth-child(2) { transition-delay: 360ms; }
.slide.in-view .proc-card:nth-child(3),
.slide.in-view .fmt:nth-child(3),
.slide.in-view .use:nth-child(3) { transition-delay: 440ms; }
.slide.in-view .use:nth-child(4) { transition-delay: 520ms; }

/* params — 6 cards */
.slide.in-view .param:nth-child(1) { transition-delay: 280ms; }
.slide.in-view .param:nth-child(2) { transition-delay: 340ms; }
.slide.in-view .param:nth-child(3) { transition-delay: 400ms; }
.slide.in-view .param:nth-child(4) { transition-delay: 460ms; }
.slide.in-view .param:nth-child(5) { transition-delay: 520ms; }
.slide.in-view .param:nth-child(6) { transition-delay: 580ms; }

/* gallery — 7 thumbs */
.slide.in-view .thumb:nth-child(1) { transition-delay: 280ms; }
.slide.in-view .thumb:nth-child(2) { transition-delay: 340ms; }
.slide.in-view .thumb:nth-child(3) { transition-delay: 400ms; }
.slide.in-view .thumb:nth-child(4) { transition-delay: 460ms; }
.slide.in-view .thumb:nth-child(5) { transition-delay: 520ms; }
.slide.in-view .thumb:nth-child(6) { transition-delay: 580ms; }
.slide.in-view .thumb:nth-child(7) { transition-delay: 640ms; }

/* effect demo */
.slide.in-view .light-slider { transition-delay: 280ms; }
.slide.in-view .demo-stage { transition-delay: 360ms; }
.slide.in-view .demo-aside { transition-delay: 440ms; }

/* cta */
.slide.in-view .cta-aside { transition-delay: 200ms; }
.slide.in-view .cta-foot > *:nth-child(1) { transition-delay: 360ms; }
.slide.in-view .cta-foot > *:nth-child(2) { transition-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  .slide > *,
  .slide :is(.hero-copy > *, .app-mock, .mock-side > *, .mock-stage,
             .proc-card, .param, .fmt, .use, .thumb,
             .light-slider, .demo-stage, .demo-aside,
             .cta-aside, .cta-foot > *,
             .slide-head .left > *, .slide-head .right) {
    transform: none;
    transition: none;
  }
}

/* While the scroll-direction flips, snap off-screen slides to the new
   rest-offset instantly — otherwise they'd interpolate across the full
   travel before the target slide reaches the viewport, eating the
   entrance animation. */
body.dir-flipping .slide:not(.in-view) > *,
body.dir-flipping .slide:not(.in-view) :is(
  .hero-copy > *,
  .app-mock,
  .mock-side > *,
  .mock-stage,
  .proc-card,
  .param,
  .fmt,
  .use,
  .thumb,
  .light-slider,
  .demo-stage,
  .demo-aside,
  .cta-aside,
  .cta-foot > *,
  .slide-head .left > *,
  .slide-head .right
) {
  transition: none !important;
}

.slide-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(20px, 2.5vh, 36px);
  flex-shrink: 0;
}
.slide-head .left {
  display: flex; flex-direction: column; gap: 10px;
}
.slide-head .right {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: right;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .ac { color: var(--accent); }

.slash { color: var(--accent); }

/* ============================================================
   TYPE — thin + huge
   ============================================================ */
h1, h2, h3, h4, h5 { margin: 0; font-weight: 300; }

.h-display {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 200px);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.h-section {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.5vw, 156px);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.h-card {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.lede {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 520px;
}

/* ============================================================
   HERO  (slide 0)
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  flex: 1;
  min-height: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.4vh, 28px);
}

.hero-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 44px 7px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  width: fit-content;
}
.hero-id .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 188, 195, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 188, 195, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 188, 195, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 188, 195, 0); }
}
.hero-id span:last-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero h1 { text-wrap: balance; }
.hero h1 .br { display: block; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
}
.hero-foot .cell { display: flex; flex-direction: column; gap: 4px; }
.hero-foot .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-foot .val {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 400;
}

/* App mock visual in hero */
.app-mock {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  align-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.app-mock.demo-empty .mock-stage canvas,
.app-mock.demo-source-loaded:not(.demo-lines-loaded) .mock-stage canvas {
  opacity: 0;
}
.app-mock.demo-lines-loaded .mock-stage canvas {
  opacity: 1;
}
.app-mock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: radial-gradient(800px 240px at 80% -10%, rgba(0,188,195,0.10), transparent 60%);
  pointer-events: none;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 12px;
  flex-shrink: 0;
}
.mock-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2a; }
.mock-bar .dot.r { background: #f93838; }
.mock-bar .dot.y { background: #ffb20a; }
.mock-bar .dot.g { background: #2ec27e; }
.mock-bar .url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.mock-bar .live {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(0,188,195,0.08);
  border: 1px solid rgba(0,188,195,0.28);
}

.mock-inner {
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
}
.mock-side { display: flex; flex-direction: column; gap: 7px; }
.mock-card {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 13px;
  padding: 9px 12px;
}
.mock-card .ttl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-card .ttl .color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #232323;
  border: 1px solid var(--border-2);
}
.color-card .mock-row .nbox span:nth-child(1) {
  font-size: 0;
}
.color-card .mock-row .nbox span:nth-child(1)::before {
  content: "-";
  font-size: 11px;
}
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 11px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hairline);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row .nbox { display: inline-flex; align-items: center; gap: 4px; }
.mock-row .nbox span:nth-child(1),
.mock-row .nbox span:nth-child(3) {
  width: 17px; height: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-hi);
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
}
.mock-row .nbox span:nth-child(2) {
  width: 36px; height: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-lo);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
}

.mock-stage {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.mock-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity .55s var(--ease);
}
.mock-loader {
  height: 116px;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.mock-loader::before,
.mock-loader::after {
  position: absolute;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mock-loader::before {
  content: "SOURCE";
  top: 30px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--muted);
}
.mock-loader::after {
  content: "Open";
  top: 54px;
  min-width: 96px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--dash);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 11px;
  background: rgba(255, 255, 255, .02);
}
.app-mock.demo-empty .mock-loader {
  background: var(--surface-2);
  border-style: dashed;
}
.app-mock.demo-empty .mock-loader::before,
.app-mock.demo-empty .mock-loader::after {
  opacity: 1;
}
.app-mock.demo-empty .mock-loader::before {
  transform: translateX(-50%) translateY(-2px);
}
.app-mock.demo-empty .mock-loader::after {
  transform: translateX(-50%) translateY(2px);
}
.mock-loader img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 47% 44%;
  opacity: 1;
  transition: opacity .45s var(--ease), transform .7s var(--ease);
}
.app-mock.demo-empty .mock-loader img {
  opacity: 0;
  transform: scale(1.06);
}
.mock-loader-canvas-region,
.mock-loader-fragment-region {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  border-style: dashed;
  border-width: 1px;
}
.mock-loader-canvas-region {
  left: var(--canvas-left, 22%);
  top: var(--canvas-top, 6%);
  width: var(--canvas-width, 56%);
  height: var(--canvas-height, 88%);
  border-color: var(--accent);
  background: rgba(0, 188, 195, 0.28);
  transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease), opacity .35s var(--ease);
}
.mock-loader-fragment-region {
  left: 32%;
  top: 30%;
  width: 46%;
  height: 38%;
  border-color: #ffa500;
  background: rgba(255, 165, 0, 0.34);
  transition: opacity .35s var(--ease);
}
.mock-loader-legend {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 7px 6px 6px;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.80), rgba(18, 18, 18, 0));
  font-size: 9px;
  color: var(--ink);
  transition: opacity .35s var(--ease);
}
.app-mock.demo-empty .mock-loader-canvas-region,
.app-mock.demo-empty .mock-loader-fragment-region,
.app-mock.demo-empty .mock-loader-legend {
  opacity: 0;
}
.mock-loader-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.mock-loader-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.mock-loader-legend .canvas { background: var(--accent); }
.mock-loader-legend .fragment { background: #ffa500; }
.mock-loader .ico,
.mock-loader .t1,
.mock-loader .t2,
.mock-loader .open-btn { display: none; }
.mock-loader .ico {
  width: 26px; height: 26px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 15px;
}
.mock-loader .t1 { font-size: 12px; color: var(--ink); }
.mock-loader .t2 { font-size: 9px; color: var(--muted); }
.mock-loader .open-btn {
  margin-top: 4px;
  width: 100%; height: 26px;
  border: 1px dashed var(--dash);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mock-loader .ico,
.mock-loader .t1,
.mock-loader .t2,
.mock-loader .open-btn { display: none !important; }

.demo-cursor {
  --cursor-x: 86px;
  --cursor-y: 76px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 12;
  width: 19px;
  height: 25px;
  transform: translate(var(--cursor-x), var(--cursor-y));
  transition: transform .52s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  filter:
    drop-shadow(0 0 1px #000)
    drop-shadow(0 5px 10px rgba(0,0,0,.55))
    drop-shadow(0 0 10px rgba(255,255,255,.28));
}
.demo-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(0 0, 0 88%, 6px 72%, 11px 100%, 15px 98%, 10px 68%, 19px 68%);
}
.demo-cursor::after {
  display: none;
}
.demo-cursor.clicking {
  transform: translate(var(--cursor-x), var(--cursor-y)) scale(.88);
}
.demo-target-clicked {
  box-shadow: 0 0 0 2px rgba(0,188,195,.45), 0 0 24px rgba(0,188,195,.24) !important;
}
.demo-value-changed {
  color: var(--accent) !important;
}
.mock-color-menu {
  position: absolute;
  left: 122px;
  bottom: 28px;
  z-index: 10;
  display: flex;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: rgba(18,18,18,.92);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.app-mock.demo-color-menu-open .mock-color-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mock-color-menu span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.mock-color-menu .black { background: #050505; }
.mock-color-menu .blue { background: var(--accent); }

/* ============================================================
   /01 PROCESS
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
  flex: 1;
  min-height: 0;
}
.proc-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vh, 20px);
  position: relative;
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background-color .35s var(--ease);
}
.proc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      800px 620px at 50% 100%,
      rgba(0,188,195,0.12) 5%,
      rgba(0,188,195,0.05) 35%,
      rgba(0,188,195,0.01) 75%,
      rgba(0,188,195,0) 100%
    );
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.proc-card:hover,
.proc-card.mobile-center-active { border-color: var(--border-hi); transform: translateY(-3px); }
.proc-card:hover::after,
.proc-card.mobile-center-active::after { opacity: 1; }

.proc-card .num {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.proc-card .num .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(0,188,195,0.32);
  background: rgba(0,188,195,0.06);
  border-radius: var(--r-pill);
  letter-spacing: 0.05em;
}
.proc-card .num .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.proc-card .visual {
  flex: 0 0 clamp(110px, 11vw, 190px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
  min-height: 110px;
  position: relative;
}
.proc-card .visual svg { width: 100%; height: 100%; }
.process-source-visual svg,
.process-lines-visual svg,
.process-uv-visual svg {
  display: none;
}
.process-source-visual canvas,
.process-lines-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.process-source-visual img {
  display: none;
}
.process-uv-visual {
  display: grid;
  place-items: center;
  background: #1a1a1a;
}
.uv-stack {
  width: 76%;
  height: 54%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  overflow: hidden;
}
.uv-stack span {
  flex: 0 0 auto;
  height: 0;
  width: 100%;
  background: #e5e5e5;
  opacity: 1;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-timing-function: ease;
}
.uv-stack span:nth-child(1) { animation-name: uvLine1; }
.uv-stack span:nth-child(2) { animation-name: uvLine2; }
.uv-stack span:nth-child(3) { animation-name: uvLine3; }
.uv-stack span:nth-child(4) { animation-name: uvLine4; }
.uv-stack span:nth-child(5) { animation-name: uvLine5; }
@keyframes uvLine1 {
  0%, 4% {
    height: 0;
  }
  8%, 84% {
    height: 20%;
  }
  90%, 100% {
    height: 0;
  }
}
@keyframes uvLine2 {
  0%, 15% {
    height: 0;
  }
  19%, 84% {
    height: 20%;
  }
  90%, 100% {
    height: 0;
  }
}
@keyframes uvLine3 {
  0%, 26% {
    height: 0;
  }
  30%, 84% {
    height: 20%;
  }
  90%, 100% {
    height: 0;
  }
}
@keyframes uvLine4 {
  0%, 37% {
    height: 0;
  }
  41%, 84% {
    height: 20%;
  }
  90%, 100% {
    height: 0;
  }
}
@keyframes uvLine5 {
  0%, 48% {
    height: 0;
  }
  52%, 84% {
    height: 20%;
  }
  90%, 100% {
    height: 0;
  }
}
.proc-card .visual + .title {
  margin-top: clamp(12px, 1.6vh, 20px);
}
.proc-card .title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  min-height: 2em;
  white-space: pre-line;
}
.proc-card .desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ============================================================
   /02 EFFECT
   ============================================================ */
.effect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.8fr);
  gap: clamp(16px, 1.6vw, 24px);
  flex: 1;
  min-height: 0;
}
.demo-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

/* sun slider */
.light-slider {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  flex-shrink: 0;
}
.ls-track-wrap {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
}
.ls-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg,
    rgba(0,188,195,0.0) 0%,
    rgba(0,188,195,0.35) 50%,
    rgba(0,188,195,0.0) 100%);
  border: 1px solid var(--border);
}
.ls-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 50%, rgba(0,188,195,0.5), transparent 6px),
    radial-gradient(circle at 50% 50%, rgba(0,188,195,0.5), transparent 6px),
    radial-gradient(circle at 100% 50%, rgba(0,188,195,0.5), transparent 6px);
  border-radius: inherit;
  pointer-events: none;
}
.ls-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.ls-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px; height: 44px;
  background: transparent;
}
.ls-input::-moz-range-thumb {
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
}
.ls-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 10px rgba(0,188,195,.48));
  transition: filter .25s var(--ease);
}
.ls-thumb svg { width: 48px; height: 48px; overflow: visible; }
.ls-thumb .sun-core { fill: var(--accent); }
.ls-thumb .sun-rays { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.ls-thumb .sun-halo {
  display: none;
}

.ls-scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ls-scale span { transition: color .25s var(--ease); }
.ls-scale span:nth-child(1) { text-align: left; }
.ls-scale span:nth-child(2) { text-align: center; }
.ls-scale span:nth-child(3) { text-align: right; }
.ls-scale span.active { color: var(--accent); }

.demo-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.demo-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.demo-readout {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 6px 4px;
  background: rgba(18,18,18,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  display: none;
}
.demo-readout span { padding: 0 10px; display: inline-block; }
.demo-readout span + span { border-left: 1px solid var(--border); }
.demo-readout span:last-child {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 96px;
  text-align: center;
}

.demo-aside {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
}
.demo-aside h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.demo-aside p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.demo-aside .hint {
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: none;
}
.demo-aside .hint .state-now {
  color: var(--accent);
  margin-left: 6px;
}

.light-mode-buttons {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-rows: repeat(3, 38px);
  gap: 8px;
}
.light-mode-btn {
  width: 100%;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.02);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color .25s var(--ease),
    background-color .25s var(--ease),
    color .25s var(--ease),
    box-shadow .25s var(--ease),
    transform .15s var(--ease);
}
.light-mode-btn:hover {
  color: var(--ink);
  border-color: rgba(0,188,195,.45);
}
.light-mode-btn:active {
  transform: translateY(1px);
}
.light-mode-btn.active {
  color: var(--accent);
  border-color: rgba(0,188,195,.72);
  background: rgba(0,188,195,.08);
  box-shadow: 0 0 18px rgba(0,188,195,.16);
}

/* ============================================================
   /03 PARAMS — horizontal cards, 3x2
   ============================================================ */
.params {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
  flex: 1;
  min-height: 0;
}
.param {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: clamp(16px, 1.6vw, 22px);
  display: grid;
  grid-template-columns: minmax(124px, 145px) 1fr;
  gap: clamp(14px, 1.4vw, 22px);
  align-items: stretch;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.param:hover,
.param.mobile-center-active { border-color: var(--border-hi); transform: translateY(-2px); }
.param .pic {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--ink-2);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.param:hover .pic,
.param.mobile-center-active .pic { color: var(--ink); background: var(--surface-hi); }
.param .pic svg { width: 100%; height: auto; max-height: 100%; }

.param .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.param .idx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.param .idx .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  color: var(--ink);
}
.param .idx .unit {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.param .name {
  font-family: var(--font-display);
  font-size: clamp(32px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.param .desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ============================================================
   /04 EXPORT
   ============================================================ */
.export-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.4vw, 22px);
  flex: 1;
  min-height: 0;
}
.fmt {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background-color .35s var(--ease);
}
.fmt:hover,
.fmt.mobile-center-active { border-color: var(--border-hi); transform: translateY(-3px); }
.fmt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      800px 620px at 50% 100%,
      rgba(0,188,195,0.15) 0%,
      rgba(0,188,195,0.1) 35%,
      rgba(0,188,195,0.05) 75%,
      rgba(0,188,195,0.01) 150%
    );

  opacity: 0;
  transition: opacity .35s var(--ease);
}
.fmt:hover::after,
.fmt.mobile-center-active::after { opacity: 1; }
.fmt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,188,195,0.45), transparent);
  transform: translateX(-100%);
  transition: transform .8s var(--ease);
}
.fmt:hover::before,
.fmt.mobile-center-active::before { transform: translateX(100%); }
.fmt .badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(0,188,195,0.32);
  background: rgba(0,188,195,0.06);
  border-radius: var(--r-pill);
}
.fmt .ext {
  font-family: var(--font-display);
  font-size: clamp(72px, 8vw, 144px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.fmt .ext .dot {
  color: var(--accent);
}
.fmt .desc { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.fmt .specs {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fmt .specs .row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
}
.fmt .specs .lbl { color: var(--muted); }
.fmt .specs .val { color: var(--ink); }

/* ============================================================
   /05 USE CASES
   ============================================================ */
.uses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
  flex: 1;
  min-height: 0;
}
.use {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.use:hover,
.use.mobile-center-active { border-color: var(--border-hi); transform: translateY(-3px); }
.use::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      1000px 620px at 50% 100%,
      rgba(0,188,195,0.15) 0%,
      rgba(0,188,195,0.1) 25%,
      rgba(0,188,195,0.05) 75%,
      rgba(0,188,195,0.02) 100%
    );
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.use:hover::after,
.use.mobile-center-active::after { opacity: 1; }
.use .idx {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.use .idx .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.use .idx .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 3px 9px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
}
.use h4 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.use p {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.use .foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   /06 GALLERY — 5 cols, big spans 2x2, 6 small on right
   ============================================================ */
/* Shared subtle surface grain */
.proc-card,
.param,
.fmt,
.use,
.demo-aside,
.light-slider {
  background-color: var(--surface);
  background-image: var(--surface-noise-image);
  background-size: var(--surface-noise-size);
  background-blend-mode: screen;
}

/* ============================================================
   /06 GALLERY вЂ” 5 cols, big spans 2x2, 6 small on right
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1vw, 16px);
  flex: 1;
  min-height: 0;
}
.thumb {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.thumb:hover,
.thumb.mobile-center-active { border-color: var(--border-hi); transform: translateY(-2px); }
.thumb.big { grid-column: span 2; grid-row: span 2; }

.thumb .ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(232,232,226,0.05) 0,
      rgba(232,232,226,0.05) 2px,
      transparent 2px,
      transparent 8px),
    var(--surface-2);
  display: grid;
  place-items: center;
  transition: transform 1.5s var(--ease), filter .4s var(--ease);
}
.thumb:hover .ph,
.thumb.mobile-center-active .ph { transform: scale(1.05); filter: brightness(1.1); }
.thumb .ph .mark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* sliding caption */
.thumb .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0.75) 70%, transparent 100%);
  transform: translateY(calc(100% - 44px));
  transition: transform .45s var(--ease-out);
}
.thumb:hover .cap,
.thumb.mobile-center-active .cap { transform: translateY(0); }
.thumb .cap .ttl {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.thumb .cap .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s var(--ease) .05s, transform .35s var(--ease) .05s;
}
.thumb:hover .cap .meta,
.thumb.mobile-center-active .cap .meta { opacity: 1; transform: translateY(0); }
.thumb .cap .arrow {
  position: absolute;
  right: 16px; top: 14px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.thumb:hover .cap .arrow,
.thumb.mobile-center-active .cap .arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   /07 CTA  (final slide)
   ============================================================ */
.cta {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
  background:
    radial-gradient(
      800px 520px at 80% 0%,
      rgba(0,188,195,0.12) 0%,
      rgba(0,188,195,0.06) 35%,
      rgba(0,188,195,0.02) 75%,
      rgba(0,188,195,0) 100%
    );
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 72px);
  overflow: hidden;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='1000' height='1000' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 1000px 1000px;
  mix-blend-mode: screen;
  opacity: 0.15;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(18,18,18,0) 0, rgba(18,18,18,0) 60%, var(--bg) 100%);
  opacity: 0.0;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 168px);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 0.92;
  position: relative; z-index: 1;
}
.cta-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative; z-index: 1;
}
.cta-aside .lede { color: var(--ink-2); font-size: 16px; }
.cta-aside .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-foot {
  position: absolute;
  left: clamp(32px, 4vw, 72px);
  right: clamp(32px, 4vw, 72px);
  bottom: clamp(24px, 3vw, 40px);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  z-index: 1;
}
.cta-foot a { color: var(--muted); transition: color .25s var(--ease); }
.cta-foot a:hover { color: var(--accent); }
.cta-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-social-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  opacity: 0.72;
  transition: opacity .25s var(--ease);
}
.cta-social-link:hover .cta-social-icon,
.cta-social-link:focus-visible .cta-social-icon {
  opacity: 1;
}

/* ============================================================
   FLOATING SLIDE INDEX (right edge)
   ============================================================ */
.slide-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slide-nav a {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: transparent;
  transition: all .3s var(--ease);
  position: relative;
}
.slide-nav a:hover { border-color: var(--accent); transform: scale(1.3); }
.slide-nav a.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,188,195,0.6);
}
.slide-nav a::before {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  background: rgba(18,18,18,0.9);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  transition: opacity .3s var(--ease);
}
.slide-nav a:hover::before { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Narrower desktops: shrink nav pills so the open-app button doesn't get clipped */
@media (max-width: 1280px) {
  .nav-pills a { padding: 0 12px; font-size: 12px; }
  .nav-pills { gap: 4px; }
}

/* Below 1100px the deck content cannot fit a single viewport per slide,
   so we drop snap-scroll and let the page flow normally. */
@media (max-width: 1100px) {
  html { scroll-snap-type: none; }
  .slide {
    height: auto;
    min-height: auto;
    padding: calc(var(--header-h) + 28px) var(--pad-x) 64px;
  }
  .slide-nav { display: none; }
  .nav-pills { display: none; }
  .hero { grid-template-columns: 1fr; }
  .process, .export-grid { grid-template-columns: repeat(3, 1fr); }
  .params { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .effect-grid { grid-template-columns: 1fr; }
  .demo-stage { min-height: 360px; }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 220px);
  }
  .thumb.big { grid-column: span 2; grid-row: span 2; }
  .cta { grid-template-columns: 1fr; }
  .cta-foot { position: static; margin-top: 24px; }
}
@media (max-width: 720px) {
  :root {
    --header-h: 68px;
    --pad-x: 16px;
    --pad-top: calc(var(--header-h) + 6px);
    --pad-bot: 6px;
  }
  html,
  body {
    overflow-x: clip;
  }
  .app-header {
    height: var(--header-h);
  }
  .app-header-inner {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 0 14px;
  }
  .brand {
    height: 32px;
    min-width: 0;
  }
  .brand img {
    height: 24px;
  }
  .header-right {
    gap: 8px;
    min-width: 0;
  }
  .header-free-badge {
    display: none;
  }
  .header-app-offer {
    min-width: 0;
  }
  .header-app-offer .open-app-btn {
    height: 38px;
    padding: 0 13px;
    gap: 7px;
    font-size: 12px;
    width: 170px;
    max-width: 170px;
    justify-content: center;
  }
  .lang-toggle {
    width: 38px;
    height: 38px;
    font-size: 10px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .nav-pills {
    position: fixed;
    left: auto;
    right: var(--pad-x);
    top: calc(var(--header-h) + 10px);
    z-index: 101;
    width: min(130px, calc(100vw - var(--pad-x) * 2));
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--border-2);
    border-radius: 18px;
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease);
  }
  body.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  body.mobile-menu-open .nav-pills {
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0) !important;
  }
  .nav-pills a {
    width: 100%;
    height: 38px;
    justify-content: center;
    padding: 0 10px;
    font-size: 12px;
    text-align: center;
    border-radius: 12px !important;
    background: rgba(232, 232, 226, 0.035);
  }
  .slide {
    height: auto;
    min-height: 0;
    width: 100%;
    padding: var(--pad-top) var(--pad-x) var(--pad-bot);
    overflow: visible;
    scroll-snap-align: none;
    scroll-margin-top: var(--header-h);
  }
  .slide:not(#top) {
    padding-top: 38px;
  }
  .slide > *,
  .slide :is(.hero-copy > *, .app-mock, .mock-side > *, .mock-stage,
             .proc-card, .param, .fmt, .use, .thumb,
             .light-slider, .demo-stage, .demo-aside,
             .cta-aside, .cta-foot > *,
             .slide-head .left > *, .slide-head .right) {
    transform: none;
    transition: none;
  }
  .slide-head {
    display: block;
    margin-bottom: 0;
  }
  .slide-head .left {
    gap: 8px;
  }
  .slide-head .right {
    margin-top: 12px;
    text-align: left;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  .hero-copy {
    justify-content: flex-start;
    gap: 9px;
  }
  .hero .h-display,
  .h-display {
    font-size: clamp(34px, 11.7vw, 52px) !important;
    line-height: 0.98;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
  }
  .hero .lede {
    max-width: none;
    font-size: 14px;
  }
  .hero-actions .open-app-btn {
    width: 100%;
    justify-content: center;
  }
  .hero-foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin-top: 18px !important;
  }
  .app-mock.demo-empty {
    height: auto !important;
    min-height: 430px;
    justify-self: start;
    align-self: stretch;
  }
  .app-mock {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    margin: 0 !important;
  }
  .mock-inner {
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 0;
    min-height: 356px;
  }
  .mock-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    height: 356px;
  }
  .mock-card {
    padding: 6px 7px;
    border-radius: 0;
    border-bottom-width: 0;
    margin-top: -1px;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .mock-side > .mock-loader {
    height: auto;
    flex: 1.25 1 0;
    min-height: 86px;
  }
  .mock-side > .mock-card {
    flex: 1.3 1 0;
  }
  .mock-side > .color-card {
    flex: 0.85 1 0;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .mock-card:first-child { border-radius: 10px 0 0 0; }
  .mock-card:last-child {
    border-bottom-width: 1px;
    border-radius: 0 0 0 10px;
  }
  .mock-card .ttl {
    font-size: 9px;
    gap: 5px;
    margin-bottom: 5px;
  }
  .mock-card .ttl .color-dot {
    width: 12px;
    height: 12px;
  }
  .mock-row {
    padding: 3px 0;
    font-size: 8px;
  }
  .mock-row .nbox {
    gap: 2px;
  }
  .mock-row .nbox span:nth-child(1),
  .mock-row .nbox span:nth-child(3) {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }
  .mock-row .nbox span:nth-child(2) {
    width: 26px;
    height: 14px;
    font-size: 8px;
  }
  .mock-loader {
    border-radius: 10px 0 0 0;
  }
  .mock-loader::before {
    top: 20px;
    font-size: 8px;
  }
  .mock-loader::after {
    top: 40px;
    min-width: 72px;
    height: 22px;
    font-size: 10px;
    padding: 0 10px;
  }
  .mock-loader-legend {
    gap: 5px;
    padding-inline: 3px;
    font-size: 8px;
  }
  .mock-loader-legend span {
    gap: 3px;
  }
  .mock-loader-legend i {
    width: 6px;
    height: 6px;
  }
  .mock-stage {
    min-height: 356px;
    height: 356px;
    border-radius: 0 10px 10px 0;
  }
  .app-mock.demo-lines-loaded .mock-stage canvas {
    opacity: 1 !important;
  }
  .demo-aside .light-mode-buttons {
    display: none;
  }
  .header-free-badge {
    min-width: 118px;
    margin-right: -54px;
    padding: 0 64px 0 14px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .process, .export-grid, .params, .uses { grid-template-columns: 1fr; }
  .params {
    grid-auto-rows: 1fr;
  }
  .param {
    min-height: 300px;
  }
  .param .name {
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    min-height: 1em;
    display: flex;
    align-items: flex-start;
  }
  .use h4 {
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    min-height: 2em;
  }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .thumb.big { grid-column: auto; grid-row: auto; }
  .thumb { min-height: 330px; }
  .thumb,
  .thumb .ph,
  .thumb .cap,
  .thumb .cap .meta,
  .thumb .cap .arrow {
    transition: none;
  }
  .h-section {
    font-size: clamp(38px, 11vw, 64px) !important;
    line-height: 0.98;
    letter-spacing: -0.025em;
    padding-top: 0 !important;
  }
  .cta {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 14px;
    padding: 16px;
    border-radius: 17px !important;
  }
  .cta h2 {
    font-size: clamp(38px, 12vw, 52px) !important;
    line-height: 0.98;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
    padding-top: 16px;
  }
  .cta-aside .lede {
    font-size: 14px;
  }
  .cta-aside .actions,
  .cta-aside .open-app-btn {
    width: 100%;
  }
  .cta-aside .open-app-btn {
    justify-content: center;
  }
  .cta-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  #cta {
    padding-bottom: 36px;
  }
}
