/* Granulla — промо-лендинг. Графитовая гамма, тонкие шрифты, палитра слотов синтезатора. */
:root {
  --bg: #0e0e10;
  --bg-2: #141417;
  --panel: #1b1b1e;
  --panel-2: #222226;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f0eb;
  --muted: #a3a19c;
  --dim: #6c6a66;
  --accent: #ff6b4a;
  --amber: #ffb340;
  --yellow: #e8e05a;
  --green: #7fdc8a;
  --cyan: #4fd1d9;
  --blue: #6f9dff;
  --violet: #b58cff;
  --pink: #ff7fb6;
  --t1: var(--cyan);
  --t2: var(--amber);
  --t3: var(--green);
  --t4: var(--pink);
  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 5vw, 88px);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Без overflow на body: иначе он станет контейнером прокрутки и сломает position: sticky.
     Горизонтальное переполнение обрезает html { overflow-x: clip }. */
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: #000; }

/* Плёночное зерно поверх всего — едва заметное */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3 { margin: 0; font-weight: 200; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(40px, 5.4vw, 92px); }
h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.45vw, 21px); color: var(--muted); max-width: 46ch; }
.grad {
  /* Слово «проявляется» цветом при появлении: белое → голубой → фиолетовый → оранжевый. */
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 48%, var(--cyan) 66%, var(--violet) 82%, var(--accent) 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 2.2s var(--ease) 0.2s;
}
.in .grad, .grad.in { background-position: 100% 0; }

section { position: relative; padding: clamp(96px, 14vw, 200px) var(--gutter); }
.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 96px); max-width: 1400px; }
.section-head.split { grid-template-columns: 1.7fr 1fr; align-items: end; max-width: none; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s, border-color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--text);
  color: #0d0d0f;
  box-shadow: 0 0 0 0 rgba(255, 107, 74, 0);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(255, 107, 74, 0.55); background: #fff; }
.btn-primary .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn small { font-family: var(--mono); font-size: 11px; color: inherit; opacity: 0.6; letter-spacing: 0.06em; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(14, 14, 16, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.42em; font-size: 15px; }
.logo img { width: 30px; height: 30px; }
/* Логотип в шапке — как на панели синтезатора: IBM Plex Mono Medium, разрядка 0.6em. */
.logo-nav { font-size: 21px; font-weight: 500; letter-spacing: 0.6em; margin-right: -0.6em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--accent); transition: right 0.4s var(--ease); }
.nav-links a:hover::after { right: 0; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 11px; }
.lang button { padding: 5px 10px; border-radius: 999px; color: var(--muted); letter-spacing: 0.1em; transition: background 0.3s, color 0.3s; }
.lang button.active { background: var(--text); color: #000; }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; place-items: center; }
.menu-toggle span { display: block; width: 14px; height: 1px; background: var(--text); box-shadow: 0 5px 0 var(--text); transform: translateY(-2.5px); }

/* ---------- Первый экран ---------- */
.hero {
  min-height: 100svh;
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
#grain-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(79, 209, 217, 0.10), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(181, 140, 255, 0.08), transparent 70%),
    radial-gradient(40% 40% at 10% 40%, rgba(255, 107, 74, 0.07), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  /* Воздушный заголовок: широкая разрядка, чуть меньше кегль, чтобы строки не ломались. */
  font-size: clamp(40px, 7.4vw, 128px);
  letter-spacing: 0.06em;
  line-height: 1.08;
  max-width: none;
  margin: 28px auto 0;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
/* Русский заголовок длиннее: чуть меньше кегль и без переноса — две строки, как в английском. */
html[lang="ru"] .hero h1 { font-size: clamp(30px, 6vw, 108px); }
@media (min-width: 700px) { .hero h1 .line { white-space: nowrap; } }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.4s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }
.hero .lead { margin: 32px auto 0; max-width: 52ch; opacity: 0; animation: fade 1.2s 0.5s var(--ease) forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 44px; opacity: 0; animation: fade 1.2s 0.7s var(--ease) forwards; }
.hero-meta { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.08em; opacity: 0; animation: fade 1.2s 0.9s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.device-wrap {
  --p: 0;
  width: min(1320px, 100%);
  margin-top: clamp(56px, 8vw, 96px);
  perspective: 1800px;
  opacity: 0;
  animation: fade 1.6s 0.9s var(--ease) forwards;
}
.device {
  position: relative;
  border-radius: clamp(10px, 1.6vw, 22px);
  overflow: hidden;
  background: #1b1b1d;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 60px 120px -30px rgba(0, 0, 0, 0.9),
    0 30px 80px -40px rgba(79, 209, 217, 0.35);
  transform: rotateX(calc((1 - var(--p)) * 24deg)) scale(calc(0.88 + var(--p) * 0.12)) translateY(calc((1 - var(--p)) * -20px));
  transform-origin: 50% 0%;
  will-change: transform;
}
.device video { width: 100%; height: auto; aspect-ratio: 1440 / 780; }
.device-glow {
  position: absolute;
  inset: auto 10% -12% 10%;
  height: 40%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(79, 209, 217, 0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* ---------- Цифры ---------- */
.stats { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(40px, 6vw, 80px); }

/* Плитки с цифрами (бенто) */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.tile {
  position: relative;
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), linear-gradient(180deg, #19191c, #111113);
}
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.t-layers { grid-column: span 4; min-height: 420px; }
.t-presets { grid-column: span 8; }
.t-grains, .t-samples, .t-reverb { grid-column: span 4; min-height: 380px; }
.tile-head { position: relative; z-index: 2; padding: 30px 32px 0; }
.tile-head.center { text-align: center; }
.tile-num {
  display: block;
  font-weight: 200;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 30%, rgba(242, 240, 235, 0.45));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tile h3 { margin-top: 10px; font-size: clamp(20px, 1.7vw, 26px); font-weight: 300; }
.tile-sub { margin: 8px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; }
.tile-canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; z-index: 1; }

/* 4 слоя: стопка цветных «треков» в перспективе */
.layers-viz { position: absolute; left: 50%; bottom: 22px; width: 68%; height: 36%; transform: translateX(-50%); perspective: 900px; z-index: 1; }
.layers-viz i {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent) 0 2px, transparent 2px 7px) center / 100% 46% no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
  box-shadow: 0 0 40px -10px var(--c);
  transform: rotateX(58deg) rotateZ(-32deg) translateZ(calc(var(--z) * 34px));
  animation: layer-float 5s ease-in-out infinite;
  animation-delay: calc(var(--z) * -0.6s);
  backdrop-filter: blur(2px);
}
@keyframes layer-float { 50% { transform: rotateX(58deg) rotateZ(-32deg) translateZ(calc(var(--z) * 34px + 14px)); } }

/* 120 пресетов: мини-обложки паков */
.mini-packs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 34px 40px 40px; }
.mini-pack {
  position: relative;
  aspect-ratio: 1.25;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  background:
    radial-gradient(2px 2px at 20% 30%, #fff8, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, #fff5, transparent), radial-gradient(2px 2px at 85% 55%, #fff7, transparent),
    radial-gradient(80% 70% at 25% 20%, color-mix(in srgb, var(--a) 70%, transparent), transparent 70%),
    radial-gradient(80% 80% at 90% 100%, color-mix(in srgb, var(--b) 65%, transparent), transparent 70%),
    #121214;
  box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--a) 70%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease);
}
.mini-pack::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -40%; height: 40%; background: inherit; transform: scaleY(-1); opacity: 0.15; filter: blur(6px); }
.mini-pack:hover { transform: translateY(-6px); }
.mp-count { font-size: clamp(30px, 3vw, 44px); font-weight: 200; line-height: 1; letter-spacing: -0.03em; }
.mp-name { margin-top: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; }
.mp-kind { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); }

/* 48 сэмплов: сетка пэдов */
.pads { position: absolute; left: 32px; right: 32px; bottom: 34px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; z-index: 1; }
.pads i { aspect-ratio: 1; border-radius: 5px; background: #1f1f23; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04); transition: background 0.5s, box-shadow 0.5s; }
.pads i.on { background: var(--c); box-shadow: 0 0 18px var(--c), inset 0 -2px 0 rgba(0, 0, 0, 0.25); transition: background 0.05s, box-shadow 0.05s; }

/* Бегущая строка пресетов */
.marquee { overflow: hidden; padding: 28px 0; border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 80s linear infinite; font-weight: 200; font-size: clamp(22px, 2.4vw, 34px); color: var(--dim); white-space: nowrap; }
.marquee-track span:nth-child(5n + 1) { color: var(--text); }
.marquee-track i { font-style: normal; color: var(--accent); margin-right: -20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Фичи (бенто) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  position: relative;
  grid-column: span 4;
  min-height: 340px;
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); }
.card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.card h3 { margin-top: 18px; max-width: 18ch; }
.card p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; max-width: 42ch; }
.card.wide { grid-column: span 8; }
.card.half { grid-column: span 6; }
.card.tall { min-height: 520px; }
.card-media { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.card .card-media.right { right: -5%; bottom: -10%; width: 60%; transform: rotate(-3deg); transition: transform 0.8s var(--ease); }
.card:hover .card-media.right { transform: rotate(-1deg) translateY(-8px); }
.card .card-media.bottom { position: relative; margin: 30px 0 -70px; transition: transform 0.8s var(--ease); }
.card:hover .card-media.bottom { transform: translateY(-8px); }
.card video, .card .card-media img { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.chip.c1 { color: var(--t1); border-color: color-mix(in srgb, var(--t1) 40%, transparent); }
.chip.c2 { color: var(--t2); border-color: color-mix(in srgb, var(--t2) 40%, transparent); }
.chip.c3 { color: var(--t3); border-color: color-mix(in srgb, var(--t3) 40%, transparent); }
.chip.c4 { color: var(--t4); border-color: color-mix(in srgb, var(--t4) 40%, transparent); }

.mic-viz { position: absolute; left: 34px; right: 34px; bottom: 34px; height: 90px; display: flex; align-items: center; gap: 3px; }
.mic-viz i { flex: 1; border-radius: 2px; background: #ff3b3b; opacity: 0.85; height: 10%; animation: mic 1.4s ease-in-out infinite; }
@keyframes mic { 50% { height: var(--h, 60%); opacity: 0.35; } }
.rec-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 14px #ff3b3b; margin-right: 8px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.formats { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.format { flex: 1; min-width: 110px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.format b { display: block; font-weight: 300; font-size: 24px; letter-spacing: -0.02em; }
.format span { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.1em; }

/* ---------- Внутри: липкий экран ---------- */
.inside { padding-bottom: 0; }
.scrolly { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 120px); }
.steps { padding-bottom: 30vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.25; transition: opacity 0.6s; }
.step.active { opacity: 1; }
.step .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--dim); }
.step h3 { font-size: clamp(32px, 3.6vw, 56px); font-weight: 200; letter-spacing: -0.03em; margin-top: 16px; }
.step p { color: var(--muted); max-width: 44ch; margin: 20px 0 0; }
.step .chips { margin-top: 26px; }
.step-img { display: none; }
.sticky { position: sticky; top: 12vh; height: 76vh; display: flex; align-items: center; }
.screen-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 612;
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(180deg, #2a2a2e, #1a1a1d);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 100px -30px rgba(0, 0, 0, 0.9);
}
.screen-frame .screens { position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.screen-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 1s var(--ease), filter 0.7s; }
.screen-frame img.active { opacity: 1; transform: none; filter: none; }
.screen-frame .page-leds { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); display: flex; gap: 10px; }
.page-leds span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--dim); display: flex; align-items: center; gap: 6px; transition: color 0.4s; }
.page-leds span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #333; transition: background 0.4s, box-shadow 0.4s; }
.page-leds span.active { color: var(--text); }
.page-leds span.active::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ---------- Мульти: интерактивная маршрутизация ---------- */
.multi { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.mode {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: all 0.35s var(--ease);
}
.mode:hover { color: var(--text); border-color: var(--text); }
.mode.active { background: var(--text); color: #000; border-color: var(--text); }
.router {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(22px, 3vw, 40px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.04), transparent 50%), var(--panel);
  overflow: hidden;
}
.router-left { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.mode-text h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 200; }
.mode-text p { color: var(--muted); margin: 14px 0 0; max-width: 46ch; min-height: 5.2em; }
.mini-keys { position: relative; display: flex; height: 132px; user-select: none; -webkit-user-select: none; touch-action: none; }
.mini-keys .k {
  position: relative;
  flex: 1;
  margin-right: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #d9d6cf, #f2f0eb);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.08s, background 0.2s;
}
.mini-keys .k.black {
  position: absolute;
  z-index: 2;
  width: calc(100% / 14 * 0.62);
  height: 62%;
  margin: 0;
  background: linear-gradient(180deg, #2b2b2f, #121214);
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.06);
  border-radius: 0 0 6px 6px;
}
.mini-keys .k.down { transform: translateY(2px); background: linear-gradient(180deg, #bdb9b0, #d9d6cf); }
.mini-keys .k.black.down { background: linear-gradient(180deg, #3b3b40, #222225); }
.mini-keys .k .lbl { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 9px; color: #777; }
.mini-keys .k.zone-low { box-shadow: inset 0 -6px 0 var(--t1); }
.mini-keys .k.zone-high { box-shadow: inset 0 -6px 0 var(--t2); }
.mini-keys .k.latched::after { content: ""; position: absolute; left: 25%; right: 25%; top: 10px; height: 3px; border-radius: 2px; background: var(--accent); }
.router-hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--dim); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sound-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; transition: all 0.3s; }
.sound-toggle.on { color: #000; background: var(--green); border-color: var(--green); }
.tracks { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }
.track {
  --c: var(--t1);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background 0.3s, opacity 0.3s, transform 0.3s var(--ease);
}
.track:nth-child(2) { --c: var(--t2); }
.track:nth-child(3) { --c: var(--t3); }
.track:nth-child(4) { --c: var(--t4); }
.track .tn { width: 38px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 500; color: #000; background: var(--c); }
.track .tname { font-size: 15px; }
.track .tname small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim); margin-top: 2px; }
.track .tmode { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); text-align: right; }
.track .tnotes { position: absolute; right: 18px; bottom: -9px; display: flex; gap: 4px; }
.track .tnotes b { font-family: var(--mono); font-weight: 500; font-size: 9.5px; padding: 2px 6px; border-radius: 5px; background: var(--accent); color: #000; }
.track.hit { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); transform: translateX(-4px); }
.track.focused { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.track.off { opacity: 0.35; }
.flyer { position: absolute; z-index: 5; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; }

/* ---------- Играть в браузере ---------- */
.play-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.synth {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 28px;
  background: linear-gradient(180deg, #2a2a2e 0%, #1d1d20 30%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 120px -40px rgba(0, 0, 0, 0.95);
}
.synth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--muted); }
.synth-top select {
  font: inherit;
  letter-spacing: 0.08em;
  color: var(--text);
  background: #000;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 12px;
}
.synth-screen { position: relative; border-radius: 14px; background: #000; overflow: hidden; aspect-ratio: 3.2 / 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.synth-screen canvas { width: 100%; height: 100%; }
.synth-screen .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text);
  transition: opacity 0.4s;
}
.synth-screen .overlay.hide { opacity: 0; pointer-events: none; }
.knobs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 22px 0 18px; }
.knob { display: flex; flex-direction: column; align-items: center; gap: 6px; user-select: none; -webkit-user-select: none; touch-action: none; cursor: ns-resize; }
.knob label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted); }
.knob svg { width: 100%; max-width: 74px; aspect-ratio: 1; overflow: visible; }
.knob output { font-family: var(--mono); font-size: 11px; color: var(--text); }
.synth-keys { display: flex; gap: 5px; user-select: none; -webkit-user-select: none; touch-action: none; }
.synth-keys button {
  flex: 1;
  height: 74px;
  border-radius: 9px;
  background: linear-gradient(180deg, #2c2c30, #232326);
  box-shadow: 0 3px 0 #111, inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 8px;
  transition: transform 0.06s, box-shadow 0.06s;
}
.synth-keys button.sharp { background: linear-gradient(180deg, #1c1c1f, #151517); }
.synth-keys button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3a3a3e; transition: background 0.2s, box-shadow 0.2s; }
.synth-keys button.down { transform: translateY(2px); box-shadow: 0 1px 0 #111; }
.synth-keys button.down::before, .synth-keys button.held::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.synth-keys button.held { box-shadow: 0 1px 0 #111, inset 0 -3px 0 var(--accent); }
.synth-keys kbd { font-family: var(--mono); font-size: 9px; color: var(--dim); }
.synth-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim); flex-wrap: wrap; }
.hold-btn { padding: 9px 16px; border-radius: 10px; background: #2a2a2e; box-shadow: 0 2px 0 #111; color: var(--muted); letter-spacing: 0.2em; display: inline-flex; align-items: center; gap: 8px; }
.hold-btn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3a3a3e; }
.hold-btn.on { color: var(--text); }
.hold-btn.on::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ---------- Звук ---------- */
.players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.player > div { min-width: 0; }
.player {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 26px 22px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.3s, background 0.3s;
}
.player:hover { border-color: var(--line-2); }
.player.playing { border-color: color-mix(in srgb, var(--pc, var(--cyan)) 50%, transparent); background: color-mix(in srgb, var(--pc, var(--cyan)) 6%, var(--panel)); }
.play-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #000; transition: transform 0.3s var(--ease), background 0.3s; }
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 18px; height: 18px; }
.player .meta { display: flex; justify-content: space-between; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; }
.player .meta b { white-space: nowrap; }
.player .meta b { font-weight: 400; font-size: 16px; }
.player .meta span { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.08em; white-space: nowrap; }
.player canvas { width: 100%; height: 44px; margin-top: 10px; cursor: pointer; }

/* ---------- Паки ---------- */
.packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.pack { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.pack-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pack-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pack-cover .pack-title { position: absolute; left: 34px; bottom: 30px; right: 34px; }
.pack-cover .pack-title .kicker::before { background: var(--pc); box-shadow: 0 0 12px var(--pc); }
.pack-cover h3 { font-size: clamp(36px, 4.4vw, 68px); font-weight: 200; letter-spacing: -0.04em; margin-top: 12px; }
.pack-body { padding: 30px 34px 34px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.pack-body p { margin: 0; color: var(--muted); }
.pack-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pack-stats div { padding: 16px 0; }
.pack-stats b { display: block; font-size: 30px; font-weight: 200; letter-spacing: -0.03em; line-height: 1.1; }
.pack-stats span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; text-align: left; transition: border-color 0.3s, background 0.3s; }
.preview:hover { border-color: var(--line-2); }
.preview i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); flex: none; }
.preview i svg { width: 11px; height: 11px; }
.preview.playing { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, transparent); }
.preview.playing i { background: var(--pc); color: #000; }
.preview small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--dim); letter-spacing: 0.08em; }
.pack-list { font-family: var(--mono); font-size: 11.5px; color: var(--dim); line-height: 1.9; letter-spacing: 0.02em; }
.pack-list b { color: var(--muted); font-weight: 400; }
.pack .btn { align-self: flex-start; margin-top: auto; }
.packs-note { margin-top: 26px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--dim); }

/* ---------- Темы ---------- */
.themes-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.theme-stage { position: relative; aspect-ratio: 1920 / 1040; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
.theme-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s var(--ease), transform 1.2s var(--ease); transform: scale(1.02); }
.theme-stage img.active { opacity: 1; transform: none; }
.scale-row { display: flex; gap: 8px; margin-top: 22px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.1em; flex-wrap: wrap; }
.scale-row span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Скачать ---------- */
.download { text-align: center; overflow: hidden; }
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 107, 74, 0.14), transparent 70%), radial-gradient(40% 40% at 50% 0%, rgba(79, 209, 217, 0.08), transparent 70%);
}
.download > * { position: relative; }
.download .app-icon { width: clamp(110px, 12vw, 160px); margin: 0 auto 34px; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
.download h2 { max-width: 18ch; margin: 0 auto; }
.download .lead { margin: 26px auto 0; }
.download .hero-cta { opacity: 1; animation: none; }
.dl-meta { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.08em; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: clamp(48px, 6vw, 80px) auto 28px; text-align: left; }
.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), linear-gradient(180deg, #19191c, #111113);
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.platform:hover { border-color: var(--line-2); transform: translateY(-4px); }
.platform.current { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 60px -30px rgba(255, 107, 74, 0.45); }
.platform.current::before { content: attr(data-here); position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--accent); }
.pf-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.pf-icon svg { width: 22px; height: 22px; }
.platform h3 { margin-top: 8px; font-size: 30px; font-weight: 200; }
.pf-req { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.platform .chips { margin-top: 4px; }
.pf-btn { margin-top: 18px; align-self: stretch; justify-content: center; }
.pf-alt { align-self: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px dashed var(--line-2); }
.pf-alt:hover { color: var(--text); }
.pack .btn.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); pointer-events: none; box-shadow: none; }
.pf-btn.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); pointer-events: none; box-shadow: none; }
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1200px; margin: clamp(56px, 7vw, 96px) auto 0; text-align: left; }
.install div { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.install b { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.18em; color: var(--accent); }
.install h4 { margin: 10px 0 8px; font-weight: 300; font-size: 19px; }
.install p { margin: 0; color: var(--muted); font-size: 14.5px; }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }

footer { padding: 48px var(--gutter); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: 0.06em; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }
.maker { display: flex; align-items: center; gap: 14px; }
.maker-logo { display: block; line-height: 0; transition: opacity .2s, transform .2s; }
.maker-logo img { width: 32px; height: 32px; display: block; }
.maker-logo:hover { opacity: .85; transform: translateY(-1px); }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero h1 .line > span { transform: none; }
  .hero .lead, .hero-cta, .hero-meta, .device-wrap { opacity: 1; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .card, .card.wide, .card.half { grid-column: span 6; }
  .t-layers, .t-grains, .t-samples, .t-reverb { grid-column: span 6; }
  .t-presets { grid-column: span 12; }
  .play-wrap { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .nav .btn { margin-left: auto; }
  .nav.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: rgba(14, 14, 16, 0.96); border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 200; }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: grid; }
  .bento { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .t-layers, .t-grains, .t-samples, .t-reverb, .t-presets { grid-column: auto; }
  .card, .card.wide, .card.half { grid-column: auto; }
  .card { min-height: 0; padding: 26px; }
  .card.tall { min-height: 0; }
  .card .card-media.right, .card .card-media.bottom { position: relative; right: auto; left: auto; bottom: auto; width: auto; margin: 26px -8px -40px; transform: none; }
  .mic-viz { position: relative; left: auto; right: auto; bottom: auto; margin-top: 26px; }
  .scrolly { grid-template-columns: 1fr; }
  .sticky { display: none; }
  .steps { padding-bottom: 0; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; border-top: 1px solid var(--line); }
  .step-img { display: block; margin-top: 26px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
  .router { grid-template-columns: 1fr; }
  .players, .packs-grid { grid-template-columns: minmax(0, 1fr); }
  .install { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .knobs { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
}
@media (max-width: 560px) {
  .mini-packs { grid-template-columns: repeat(2, 1fr); padding: 26px 22px 30px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .previews { grid-template-columns: 1fr; }
  .pack-stats { grid-template-columns: repeat(2, 1fr); }
  .pack-body, .pack-cover .pack-title { padding-left: 22px; padding-right: 22px; left: 0; right: 0; }
  .player { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .player .meta span { white-space: normal; }
  .player .play-btn { position: absolute; }
  .player { position: relative; padding-left: 88px; }
  .player .play-btn { left: 20px; top: 50%; transform: translateY(-50%); }
  .synth-keys button { height: 64px; }
  .synth-keys kbd { display: none; }
  .mini-keys { height: 104px; }
  .lang { display: none; }
  .nav.open .lang { display: flex; position: absolute; top: 18px; right: calc(var(--gutter) + 52px); }
  footer { flex-direction: column; align-items: flex-start; }
}
