/* ============================================================
   MKYADA product site — light theme
   ============================================================ */

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #fbfbfd;
  --panel: #ffffff;
  --line: rgba(0,0,0,.08);
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --accent: #0ea5e9;
  --accent2: #6366f1;
  --accent3: #d946ef;
  --accent-deep: #0284c7;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-deep); text-decoration: none; }

/* language toggle: html[lang] hides the other language */
html[lang="en"] [lang="tr"] { display: none !important; }
html[lang="tr"] [lang="en"] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- inline SVG icons ---------- */
.ic {
  width: 26px; height: 26px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-f { fill: currentColor; stroke: currentColor; stroke-width: 1; }

/* ---------- paper grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- nav (in-flow: scrolls away with the page, never comes back) ---------- */
nav {
  background: rgba(251,251,253,.78);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
nav .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; color: var(--fg); letter-spacing: .02em; }
nav .brand img { width: 34px; height: 34px; border-radius: 9px; }
nav .links { margin-left: auto; display: flex; gap: 26px; align-items: center; font-size: 15.5px; }
nav .links a { color: var(--muted); transition: color .2s; }
nav .links a:hover { color: var(--fg); }
.lang-btn {
  border: 1px solid rgba(0,0,0,.16); border-radius: 99px; background: none; color: var(--muted);
  font: inherit; font-size: 14.5px; padding: 6px 15px; cursor: pointer; transition: all .2s;
}
.lang-btn:hover { color: var(--fg); border-color: rgba(0,0,0,.35); }
.progress {
  position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  transform: scaleX(var(--sp, 0)); transform-origin: left; pointer-events: none;
}

/* ---------- animated gradient orbs ---------- */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px);
  background: conic-gradient(from var(--angle),
    rgba(56,189,248,.30), rgba(129,140,248,.22), rgba(232,121,249,.18), rgba(56,189,248,.30));
  animation: orb-spin 18s linear infinite;
  transition: transform 1.6s cubic-bezier(.22, 1, .36, 1);
}
@keyframes orb-spin { to { --angle: 360deg; } }
.orb-a { width: 660px; height: 660px; top: -240px; left: 50%; margin-left: -560px; transform: translate(calc(var(--ox, 0px) * 1.1), calc(var(--p, .5) * -70px + var(--oy, 0px) * .9)); }
.orb-b { width: 520px; height: 520px; top: 40px; right: -160px; animation-duration: 26s; transform: translate(calc(var(--ox, 0px) * -1.5), calc(var(--p, .5) * -130px + var(--oy, 0px) * -1.2)); }
.orb-c { width: 620px; height: 620px; bottom: -280px; left: 50%; margin-left: -310px; animation-duration: 22s; }

/* ---------- hero ---------- */
header {
  position: relative; text-align: center;
  padding: 6px 0 72px;
}
header > .wrap { width: 100%; position: relative; z-index: 1; }

/* ---------- hero cinema: 70vh dark stage, WebGL reel + overlay ---------- */
.hero-cine {
  position: relative; height: 70vh; min-height: 560px;
  background: #050507; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-reel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* vignette so the overlay type always sits on something quiet */
.hero-cine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(5,5,7,.62) 0%, rgba(5,5,7,.18) 55%, rgba(5,5,7,0) 100%);
}
.hero-cine-overlay { position: relative; z-index: 1; padding: 0 24px; max-width: 1100px; }
.hero-cine h1 {
  background: linear-gradient(180deg, #ffffff 55%, #9aa4b6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cine h1.split-ready { background: none; color: #fff; }
.hero-cine h1.split-ready .wi {
  background: linear-gradient(180deg, #ffffff 55%, #9aa4b6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cine .tagline { color: #b7bdc9; }
.hero-cine .btn.ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.hero-cine .btn.ghost:hover { border-color: rgba(255,255,255,.6); }
.hero-cine .free-note { color: #878d9c; }
/* mobile falls back to the classic photo hero — the reel is desktop-only */
.hero-mobile { display: none; }
@media (max-width: 760px) {
  .hero-cine { display: none; }
  .hero-mobile { display: block; padding-top: 40px; }
}
h1 {
  font-size: clamp(44px, 7.5vw, 84px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04;
  background: linear-gradient(180deg, #1d1d1f 55%, #5a6472); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1.split-ready { background: none; color: var(--fg); }
h1.split-ready .wi {
  background: linear-gradient(180deg, #1d1d1f 55%, #5a6472);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { font-size: clamp(19px, 2.6vw, 27px); color: var(--muted); margin: 10px auto 0; max-width: 720px; font-weight: 500; }
.cta { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 99px; font-size: 15.5px; font-weight: 600; transition: box-shadow .25s, border-color .25s;
}
.btn.primary { background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff; box-shadow: 0 10px 30px rgba(56,189,248,.4); }
.btn.primary:hover { box-shadow: 0 14px 40px rgba(56,189,248,.55); }
.btn.ghost { border: 1px solid rgba(0,0,0,.22); color: var(--fg); }
.btn.ghost:hover { border-color: rgba(0,0,0,.45); }
.free-note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* hero entrance (load-driven, JS-gated so no-JS stays visible) */
html.js header .logo { animation: fade-up .9s var(--ease) .05s both; }
html.js .tagline     { animation: fade-up .9s var(--ease) .45s both; }
html.js header .cta  { animation: fade-up .9s var(--ease) .6s both; }
html.js .free-note   { animation: fade-up .9s var(--ease) .72s both; }
html.js .hero-img    { animation: fade-up 1.1s var(--ease) .85s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* hero 3D image: lies back on load, stands up as you scroll; mouse tilt on top */
.hero-img { margin: 72px auto -8px; max-width: 860px; position: relative; }
/* product-first hero: image sits above the headline, sized as large as it
   can while still sharing the first screen with a single-line heading */
/* fixed, deliberately large, not scaled down for short browser windows.
   sits close to the nav; the heading keeps a clear gap below it. */
.hero-img-top { margin: 0 auto 22px; max-width: 700px; }
html.js .hero-img-top { animation-delay: .12s; }
.hero-3d { perspective: 1300px; }
.hero-flat {
  transform-origin: 50% 100%;
  transform: rotateX(calc(max(0, .55 - var(--p, 1)) * 42deg)) scale(calc(1 - max(0, .55 - var(--p, 1)) * .1));
  will-change: transform;
}

/* ---------- 3D tilt + specular shine ---------- */
.tilt { perspective: 950px; }
.tilt-inner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  --mx: 50%; --my: 50%;
  box-shadow: 0 34px 80px rgba(15,23,42,.18), 0 0 0 1px rgba(0,0,0,.05);
}
.shine {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(255,255,255,.35), transparent 52%);
  opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light;
}
.tilt:hover .shine { opacity: 1; }

/* white-background product photos: no frame, they merge with the page */
.bare .tilt-inner { border-radius: 0; box-shadow: none; background: none; }
.bare .tilt-inner img {
  filter: brightness(1.04);
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
/* hero uses a transparent PNG — no edge feather, no brightness lift */
.hero-still .tilt-inner img { -webkit-mask-image: none; mask-image: none; filter: none; }

/* ---------- sections ---------- */
section { padding: 110px 0; position: relative; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.lead { font-size: clamp(16.5px, 2vw, 20px); color: var(--muted); margin-top: 18px; max-width: 620px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > .txt { order: 2; } .split.rev > .art { order: 1; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent); }

/* subtle scroll parallax on split art */
.float-art .art .tilt { transform: translateY(calc((.5 - var(--p, .5)) * 56px)); will-change: transform; }

/* ---------- word-by-word heading reveal ----------
   generous padding (cancelled out by negative margins) keeps ascenders,
   descenders and overhanging glyphs clear of both the overflow mask
   and the background-clip:text paint box — letters are never cropped */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .18em .12em .28em; margin: -.18em -.12em -.28em; }
.wi {
  display: inline-block; padding: .18em .12em .28em; margin: -.18em -.12em -.28em;
  transform: translateY(150%);
  transition: transform .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
  will-change: transform;
}
.split-now .wi, .in .wi { transform: none; }

/* animated gradient text (element-level until split, then per-word) */
.grad-anim:not(.split-ready) {
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 9s linear infinite;
}
.grad-anim.split-ready .wi {
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 9s linear infinite;
}
@keyframes grad-shift { to { background-position: -300% 0; } }

/* ---------- reveal engine ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.seq, html.js .reveal[data-stagger] { opacity: 1; transform: none; }

/* sequenced statement: kicker → heading words → lead → late content */
html.js .seq .kicker { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ease); }
html.js .seq .lead { opacity: 0; transform: translateY(16px); filter: blur(10px); transition: opacity .8s ease .3s, transform .8s var(--ease) .3s, filter .8s ease .3s; }
html.js .seq .seq-late { opacity: 0; transform: translateY(28px); transition: opacity .8s ease .5s, transform .8s var(--ease) .5s; }
html.js .seq.in .kicker, html.js .seq.in .lead, html.js .seq.in .seq-late { opacity: 1; transform: none; filter: none; }

/* staggered children */
html.js [data-stagger] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s var(--ease);
  transition-delay: calc(var(--sb, 0s) + var(--i, 0) * 90ms);
}
html.js .in [data-stagger] > *, html.js [data-stagger].in > * { opacity: 1; transform: none; }
.seq [data-stagger] { --sb: .4s; }

/* ---------- feature cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card {
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 8px 30px rgba(15,23,42,.05);
  --mx: 50%; --my: 50%;
  text-align: left;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle),
    transparent 0 52%, rgba(14,165,233,.8) 68%, rgba(99,102,241,.8) 78%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover::before { opacity: 1; animation: border-spin 3.5s linear infinite; }
@keyframes border-spin { to { --angle: 360deg; } }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(14,165,233,.09), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.card:hover::after { opacity: 1; }
.card .icon { margin-bottom: 16px; color: var(--accent-deep); }
.card .icon .ic { width: 28px; height: 28px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: 15.5px; color: var(--muted); }

/* ---------- big statement ---------- */
.statement { text-align: center; }
.statement h2 { max-width: 820px; margin: 0 auto; }
.statement .lead { margin-left: auto; margin-right: auto; }

/* ---------- 3D keypad (auto-typing show) ---------- */
.k3d { display: flex; justify-content: center; margin-top: 60px; perspective: 1100px; }
.k3d-plate {
  display: grid; grid-template-columns: repeat(3, 88px); gap: 16px;
  transform: rotateX(26deg); transform-style: preserve-3d;
}
.k3d-key {
  position: relative; height: 88px; border-radius: 18px; cursor: pointer;
  background: #c7ccd6;
  box-shadow: 0 9px 0 #adb4c0, 0 22px 34px rgba(15,23,42,.22);
  transition: transform .11s ease, box-shadow .11s ease;
  transform-style: preserve-3d;
}
.k3d-top {
  position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #edf0f4);
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  color: #4b5563;
  transform: translateZ(12px);
  transition: box-shadow .12s ease, border-color .12s ease, color .12s ease;
}
.k3d-top .ic { width: 30px; height: 30px; }
.k3d-key.pressed { transform: translateY(7px); box-shadow: 0 2px 0 #adb4c0, 0 10px 18px rgba(15,23,42,.18); }
.k3d-key.pressed .k3d-top {
  border-color: rgba(2,132,199,.5);
  color: var(--accent-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 26px rgba(14,165,233,.4);
}

/* big single screenshot under the recorder cards */
.big-shot { max-width: none; margin: 56px auto 0; }
.big-shot .tilt-inner { border-radius: 16px; box-shadow: 0 30px 70px rgba(15,23,42,.18), 0 0 0 1px rgba(0,0,0,.05); }
.big-shot figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- spec strip ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 52px; }
.spec { background: var(--panel); padding: 26px 22px; }
.spec b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.spec span { font-size: 14px; color: var(--muted); }
.specs-sec { padding-top: 0; }
.specs-sec .specs { margin-top: 0; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; }
.shots figure { margin: 0; }
.shots .tilt-inner { border-radius: 16px; box-shadow: 0 24px 60px rgba(15,23,42,.16), 0 0 0 1px rgba(0,0,0,.05); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- app screenshot slider (crossfade, on plain white) ---------- */
.slider { position: relative; margin-top: 48px; }
.slider-viewport { position: relative; }
.slider-track { position: relative; display: block; }
.slider figure {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity .55s var(--ease); pointer-events: none;
}
.slider figure.on { position: relative; opacity: 1; pointer-events: auto; }
.slider .tilt { perspective: none; }
.slider .tilt-inner {
  border-radius: 16px; background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 0 0 1px var(--line);
}
.slider figcaption { font-size: 15px; color: var(--muted); margin-top: 16px; text-align: center; min-height: 2.6em; }
.slider-arrow {
  position: absolute; top: 45%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.86); border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15,23,42,.16); cursor: pointer;
  display: grid; place-items: center; color: var(--fg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: box-shadow .2s, background .2s; z-index: 3;
}
.slider-arrow:hover { box-shadow: 0 14px 34px rgba(15,23,42,.24); background: #fff; }
.slider-arrow.prev { left: -76px; }
.slider-arrow.next { right: -76px; }
.slider-arrow .ic { width: 24px; height: 24px; stroke-width: 2.2; }
/* pull arrows back inside once there's no room outside the content */
@media (max-width: 1440px) {
  .slider-arrow.prev { left: 14px; }
  .slider-arrow.next { right: 14px; }
}
.slider-dots { display: flex; justify-content: center; gap: 9px; margin-top: 24px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .25s, background .25s, border-radius .25s; }
.slider-dot.on { background: var(--accent-deep); width: 24px; border-radius: 5px; }
@media (max-width: 560px) {
  .slider-arrow { width: 42px; height: 42px; }
  .slider-arrow.prev { left: 8px; } .slider-arrow.next { right: 8px; }
}

/* ---------- build steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; position: relative; z-index: 1; }
.step {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; background: var(--panel);
  box-shadow: 0 8px 30px rgba(15,23,42,.05);
  transition: opacity .5s ease, transform .5s var(--ease), border-color .5s ease, box-shadow .5s ease;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 24px;
  width: 32px; height: 32px; border-radius: 99px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #38bdf8, #6366f1); font-weight: 800; font-size: 15px; color: #fff;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--muted); }

/* ---------- full-bleed visual ---------- */
.bleed { padding: 0; }
.bleed-frame { position: relative; width: 72%; max-width: 1160px; margin: 0 auto; height: 74vh; height: 74svh; }
.bleed-frame > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transform: scale(calc(.94 + .06 * var(--p, 1)));
  will-change: transform;
}
.bleed-fade { display: none; }
.bleed-txt { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; padding: 0 24px; }
.bleed-txt h2 { font-size: clamp(34px, 5.4vw, 64px); max-width: 900px; margin: 0 auto; color: var(--fg); text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 2px 34px rgba(255,255,255,.8); }

/* ---------- sticky scroll shows (shared) ---------- */
.show-track { height: 280vh; padding: 0; }
.show-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.show-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; width: 100%; }
.show-steps { position: relative; margin-top: 30px; min-height: 190px; }
.show-step {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s ease, transform .5s var(--ease);
  pointer-events: none;
}
.show-step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.show-step[data-i="0"] h3 { color: #0284c7; }
.show-step[data-i="1"] h3 { color: #7c3aed; }
.show-step[data-i="2"] h3 { color: #db2777; }
.show-step p { color: var(--muted); font-size: 15.5px; max-width: 460px; }
.show-track[data-step="0"] .show-step[data-i="0"],
.show-track[data-step="1"] .show-step[data-i="1"],
.show-track[data-step="2"] .show-step[data-i="2"] { opacity: 1; transform: none; pointer-events: auto; }
.show-track[data-step="0"] { --lc: #0284c7; }
.show-track[data-step="1"] { --lc: #7c3aed; }
.show-track[data-step="2"] { --lc: #db2777; }
/* vertical nav dots stuck to the right, same treatment as the growing-keypad rail */
.show-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 45;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.show-rail.on { opacity: 1; }
.show-rail i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.22); transition: background .35s, transform .35s; }
.show-track[data-step="0"] .show-rail i:nth-child(1),
.show-track[data-step="1"] .show-rail i:nth-child(2),
.show-track[data-step="2"] .show-rail i:nth-child(3) { background: var(--lc, var(--accent-deep)); transform: scale(1.5); }

/* show 1: layers — flipping mini keypad */
.show-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.show-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: .12; filter: blur(2px) saturate(.8); pointer-events: none;
  border-radius: 16px;
}
.mini-pad {
  position: relative; display: grid; grid-template-columns: repeat(3, 80px); gap: 13px;
  padding: 22px; border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #eef1f6);
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px rgba(15,23,42,.16), 0 0 110px -40px var(--lc, var(--accent));
  transition: box-shadow .6s ease;
}
.mini-key {
  position: relative; height: 80px; border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #e9edf3);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 5px 12px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.9);
  perspective: 320px;
}
.kl {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: rotateX(-85deg);
  transition: transform .55s var(--ease), opacity .35s ease;
  transition-delay: calc(var(--k, 0) * 45ms);
  backface-visibility: hidden;
}
.kl .ic { width: 26px; height: 26px; }
.kl[data-l="0"] { color: #0284c7; }
.kl[data-l="1"] { color: #7c3aed; }
.kl[data-l="2"] { color: #db2777; }
.show-track[data-step="0"] .kl[data-l="0"],
.show-track[data-step="1"] .kl[data-l="1"],
.show-track[data-step="2"] .kl[data-l="2"] { opacity: 1; transform: none; }

/* show 2: build — drawing connector + igniting steps */
.build-head { max-width: 780px; }
.build-head .lead { max-width: 720px; }
.build-row { position: relative; }
.steps-line { position: absolute; left: 4%; top: 44px; width: 92%; height: 4px; z-index: 0; overflow: visible; }
.steps-line path {
  stroke: url(#lineGrad); stroke-width: 2; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1));
}
.build-track .step { opacity: .45; transform: scale(.97); }
.build-track[data-step="0"] .step[data-i="0"],
.build-track[data-step="1"] .step[data-i="0"],
.build-track[data-step="1"] .step[data-i="1"],
.build-track[data-step="2"] .step { opacity: 1; transform: none; }
.build-track[data-step="0"] .step[data-i="0"],
.build-track[data-step="1"] .step[data-i="1"],
.build-track[data-step="2"] .step[data-i="2"] {
  border-color: rgba(14,165,233,.5);
  box-shadow: 0 0 44px -8px rgba(14,165,233,.35);
  transform: scale(1.02);
}
.rp { display: none; }
@media (min-height: 700px) {
  .rp { display: block; margin-top: 16px; height: 160px; opacity: .4; filter: saturate(.7); transition: opacity .5s ease, filter .5s ease; }
  .rp img { width: 100%; height: 100%; object-fit: contain; }
  .build-track[data-step="1"] .rp, .build-track[data-step="2"] .rp { opacity: 1; filter: none; }
}

/* ---------- closing ---------- */
.closing { overflow: hidden; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 72px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
footer h4 { color: var(--fg); font-size: 13.5px; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; }
footer ul { list-style: none; } footer li { margin: 7px 0; } footer a { color: var(--muted); } footer a:hover { color: var(--fg); }
.fineprint { margin-top: 44px; font-size: 12.5px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .split, .split.rev > * { grid-template-columns: 1fr; order: initial !important; }
  .split { gap: 36px; }
  .grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps-line { display: none; }
  nav .links { gap: 12px; font-size: 12.5px; }

  .show-track { height: auto !important; }
  .show-stage { position: static; height: auto; padding: 100px 0; overflow: visible; }
  .show-grid { grid-template-columns: 1fr; gap: 44px; }
  .show-steps { min-height: 0; margin-top: 4px; }
  .show-step { position: static; opacity: 1; transform: none; margin-top: 24px; pointer-events: auto; }
  .show-rail { display: none; }
  .show-art { min-height: 0; }
  .show-bg { display: none; }
  .mini-pad { grid-template-columns: repeat(3, 68px); }
  .mini-key { height: 68px; }
  .build-track .step { opacity: 1; transform: none; }
  .rp { display: block; opacity: 1 !important; filter: none !important; }
  .bleed-frame { width: 100%; border-radius: 0; height: 64svh; }
  .k3d-plate { grid-template-columns: repeat(3, 72px); }
  .k3d-key { height: 72px; }
}

@media (max-width: 560px) {
  /* nav must never widen the layout viewport */
  nav .links a[href^="#"] { display: none; }
  nav .wrap { gap: 12px; }
}

/* ---------- reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .reveal, html.js [data-stagger] > *,
  html.js .seq .kicker, html.js .seq .lead, html.js .seq .seq-late {
    opacity: 1; transform: none; filter: none;
  }
  .wi { transform: none; }
  [data-scrub] { --p: 1; }
  .show-track { height: auto !important; }
  .show-stage { position: static; height: auto; padding: 100px 0; overflow: visible; }
  .show-steps { min-height: 0; }
  .show-step { position: static; opacity: 1; transform: none; margin-top: 24px; }
  .show-rail { display: none; }
  .show-art { min-height: 0; }
  .kl[data-l="0"] { opacity: 1; transform: none; }
  .build-track .step { opacity: 1; transform: none; }
  .steps-line path { stroke-dashoffset: 0; }
  .rp { opacity: 1; filter: none; }
}

/* ============================================================
   Feature catalog additions (actions, key logic, webhook, mic)
   ============================================================ */

/* full action catalog: endless card row — drifts on its own, scroll or drag to browse */
.act-marquee {
  margin-top: 48px; padding: 30px 0; overflow-x: auto; overflow-y: hidden;
  cursor: grab; user-select: none; -webkit-user-select: none;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.act-marquee::-webkit-scrollbar { display: none; }
.act-marquee.dragging { cursor: grabbing; }
.act-marquee.dragging .card { pointer-events: none; }
.act-track { display: flex; width: max-content; }
.act-track .card {
  flex: 0 0 340px; width: 340px; margin-right: 20px; margin-top: 0;
  white-space: normal;
}
.act-track .card h3 { display: flex; align-items: center; gap: 8px; }

/* ---------- key logic: tap / double / hold chips ---------- */
.gest {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
  margin-top: 48px;
}
.gest-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 30px; min-width: 150px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.gest-item b { font-size: 15px; }
.note-line { margin-top: 34px; font-size: 16px; color: var(--muted); }
.note-line a { color: var(--accent-deep); font-weight: 600; border-bottom: 1px solid rgba(2,132,199,.35); }
.note-line a:hover { border-bottom-color: var(--accent-deep); }
.gest-key {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(180deg, #fff, #eef1f6);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.gest-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deep); }
.gest-key.gest-hold { animation: gest-press 1.6s var(--ease) infinite; }
@keyframes gest-press {
  0%, 100% { transform: translateY(0); }
  40%, 70% { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, 0 1px 4px rgba(0,0,0,.12); }
}

/* ---------- webhook request card ---------- */
.webhook-demo {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.10);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}
.wh-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.02);
}
.wh-dot { width: 11px; height: 11px; border-radius: 50%; background: #dfe3ea; }
.wh-name { margin-left: 10px; font-size: 12.5px; color: var(--faint); letter-spacing: .01em; }
.wh-body { padding: 18px 18px 16px; }
.wh-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wh-method {
  font-weight: 700; font-size: 12px; letter-spacing: .04em;
  color: #fff; background: var(--accent-deep);
  padding: 3px 9px; border-radius: 7px;
}
.wh-url { font-size: 13.5px; color: var(--fg); word-break: break-all; }
.wh-row {
  display: flex; gap: 10px; font-size: 12.5px; margin-top: 12px;
  padding-top: 12px; border-top: 1px dashed var(--line);
}
.wh-row:first-of-type { border-top: 0; }
.wh-k { color: var(--accent2); min-width: 128px; }
.wh-v { color: var(--muted); }
.wh-json {
  margin-top: 14px; padding: 12px 14px; font-size: 13px;
  background: rgba(99,102,241,.06); border-radius: 12px;
  color: var(--fg); white-space: pre-wrap; word-break: break-word;
}
.wh-send {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 9px 15px; font-size: 13px; font-weight: 600;
  color: var(--accent-deep); background: rgba(14,165,233,.09);
  border: 1px solid rgba(14,165,233,.25); border-radius: 11px;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.wh-send .ic { width: 17px; height: 17px; }

/* ---------- mic modes ---------- */
.modes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 48px; text-align: left;
}
.mode {
  padding: 22px 20px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.mode .ic { width: 26px; height: 26px; color: var(--accent-deep); margin-bottom: 14px; }
.mode b { display: block; font-size: 16px; margin-bottom: 6px; }
.mode-d { font-size: 14.5px; color: var(--muted); }

/* ---------- comparison table ---------- */
.cmp-head { text-align: center; }
.cmp-head .lead { margin-left: auto; margin-right: auto; }
.cmp-scroll { margin-top: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 660px; }
.cmp th, .cmp td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 15px; font-weight: 700; color: var(--fg); vertical-align: bottom; line-height: 1.25; }
.cmp .cmp-feat { text-align: left; font-size: 15px; font-weight: 500; color: var(--muted); width: 40%; }
.cmp thead .cmp-feat { width: 40%; }
.cmp .yes { color: #16a34a; }
.cmp .no  { color: var(--faint); }
.cmp .mid { color: #d9880b; }
.cmp td .ic { width: 24px; height: 24px; display: inline-block; stroke-width: 2.4; }
.cmp td small { display: block; font-size: 12px; margin-top: 3px; color: var(--faint); font-weight: 500; }
.cmp th.cmp-me, .cmp td.cmp-me { background: linear-gradient(180deg, rgba(14,165,233,.09), rgba(99,102,241,.06)); }
.cmp thead th.cmp-me { color: var(--accent-deep); font-size: 18px; border-radius: 16px 16px 0 0; }
.cmp tbody tr:last-child td.cmp-me { border-radius: 0 0 16px 16px; }
.cmp-price td { font-weight: 800; font-size: 18px; color: var(--fg); }
.cmp-price .cmp-feat { font-weight: 700; color: var(--fg); }
.cmp-price td.cmp-me { color: var(--accent-deep); }

.cmp-note {
  margin: 52px auto 0; max-width: 720px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 34px; box-shadow: 0 18px 50px rgba(15,23,42,.06);
}
.cmp-note-icon {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 15px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 30px rgba(99,102,241,.35);
}
.cmp-note-icon .ic { width: 28px; height: 28px; }
.cmp-note h3 { font-size: 23px; letter-spacing: -.02em; margin-bottom: 12px; }
.cmp-note p { font-size: 16px; color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ---------- growing keypad (scroll-driven 4 -> 10 keys; image on top, text below) ---------- */
.grow-track { height: 260vh; position: relative; }
.grow-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; background: #f6f6f7;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 0 44px;
}
.grow-media { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; }
.grow-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.01); transition: opacity .4s var(--ease), transform .45s var(--ease);
  /* feather the photo edges into the stage, same treatment as .bare product shots */
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.grow-track[data-step="0"] .grow-img[data-i="0"],
.grow-track[data-step="1"] .grow-img[data-i="1"],
.grow-track[data-step="2"] .grow-img[data-i="2"] { opacity: 1; transform: none; }
/* key count sits over the keypad, inverting against it */
.grow-num {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: exclusion;
}
.grow-nums { position: relative; top: 100px; width: 1.7em; height: 1em; font-size: clamp(100px, 22vh, 280px); }
.grow-nums b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1em; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: #fff;
  opacity: 0; transform: scale(.86); transition: opacity .35s ease, transform .45s var(--ease);
}
.grow-track[data-step="0"] .grow-nums b[data-i="0"],
.grow-track[data-step="1"] .grow-nums b[data-i="1"],
.grow-track[data-step="2"] .grow-nums b[data-i="2"] { opacity: 1; transform: none; }
/* all copy sits below the image */
.grow-text { text-align: center; padding: 24px 24px 0; max-width: 820px; flex: 0 0 auto; }
.grow-text .grow-title { margin-top: 6px; }
.grow-desc { margin: 12px auto 0; }
/* vertical nav dots stuck to the right, centered in the viewport */
.grow-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 45;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.grow-rail.on { opacity: 1; }
.grow-rail i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.22); transition: background .35s, transform .35s; }
.grow-track[data-step="0"] .grow-rail i:nth-child(1),
.grow-track[data-step="1"] .grow-rail i:nth-child(2),
.grow-track[data-step="2"] .grow-rail i:nth-child(3) { background: var(--accent-deep); transform: scale(1.5); }
/* static fallback (mobile + reduced motion): all keypads stacked, growing */
@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .grow-track { height: auto; }
  .grow-stage { position: static; height: auto; overflow: visible; padding: 40px 0; display: block; }
  .grow-media { position: static; height: auto; }
  .grow-img { position: static; opacity: 1; transform: none; width: 100%; height: auto; margin: 0 auto 14px; }
  .grow-num, .grow-rail { display: none; }
  .grow-text { margin: 8px auto 0; }
}

@media (max-width: 900px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .modes { grid-template-columns: 1fr; }
  .act-track .card { flex-basis: 280px; width: 280px; }
}

/* marquee: no auto-drift when motion is reduced — plain hand-scrolled row */
@media (prefers-reduced-motion: reduce) {
  .act-marquee { -webkit-mask-image: none; mask-image: none; }
  .act-track [data-clone] { display: none; }
}
