/* ============================================================
   Эфир AI — styles
   ============================================================ */
:root {
  --bg: #08070f;
  --bg-2: #0d0a1a;
  --panel: rgba(22, 18, 38, 0.66);
  --panel-solid: #14101f;
  --line: rgba(168, 130, 255, 0.16);
  --line-strong: rgba(168, 130, 255, 0.34);
  --text: #f3eefb;
  --muted: #a99fc4;
  --muted-2: #7d7498;

  --violet: #a855f7;
  --pink: #ff5da2;
  --amber: #ffb86b;
  --cyan: #38e1ff;

  --grad: linear-gradient(100deg, #a855f7 0%, #ff5da2 52%, #ffb86b 100%);
  --grad-soft: linear-gradient(120deg, #c084fc, #ff7ab8);
  --glow: 0 0 0 1px rgba(168,130,255,.18), 0 24px 60px -24px rgba(168,90,247,.5);

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-name { font-family: "Unbounded", "Manrope", sans-serif; line-height: 1.08; letter-spacing: -0.01em; overflow-wrap: anywhere; word-break: break-word; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
main { max-width: 100%; overflow-x: clip; }
::selection { background: rgba(255,93,162,.35); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- backdrop ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(1200px 800px at 70% -10%, rgba(168,90,247,.18), transparent 60%),
  radial-gradient(900px 700px at 10% 20%, rgba(255,93,162,.12), transparent 55%),
  var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: #7b2fff; top: -120px; left: -80px; }
.orb-2 { width: 460px; height: 460px; background: #ff3d8b; top: 30%; right: -120px; animation-delay: -7s; }
.orb-3 { width: 420px; height: 420px; background: #2bd4ff; bottom: -160px; left: 30%; animation-delay: -13s; opacity: .35; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(60px,-40px) scale(1.08); } 66% { transform: translate(-40px,30px) scale(.96); } }
.bg-grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(16px, 4vw, 48px);
  max-width: 100%;
  transition: background .3s var(--ease), backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,7,15,.72); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; flex-shrink: 0; }
.brand-mark {
  filter: drop-shadow(0 4px 16px rgba(168,90,247,.5));
  border-radius: 30px;
  flex-shrink: 0;
}
.footer-brand > img {
  border-radius: 30px;
  flex-shrink: 0;
}
.brand-name { font-size: 20px; font-weight: 700; }
.brand-ai { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(168,130,255,.1); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 7, 15, 0.45);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 11px/1 "Manrope", sans-serif;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.on {
  color: var(--text);
  background: rgba(168, 90, 247, 0.22);
  box-shadow: inset 0 0 0 1px rgba(168, 130, 255, 0.28);
}
.nav-login, .nav-cabinet { white-space: nowrap; }
.nav-cta { margin-left: 0; }
.hero-visual { will-change: transform; margin-top: 0; padding-top: 12px; }
@media (min-width: 981px) {
  #heroNowPlaying { will-change: transform; }
}
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .3s, background .3s, border-color .3s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #1a0c25; box-shadow: 0 12px 30px -10px rgba(255,93,162,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(255,93,162,.75); }
.btn-ghost { background: rgba(168,130,255,.08); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(168,130,255,.16); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.play-glyph { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }
.btn-ic { font-size: 14px; line-height: 1; }
.btn-text { background: none; border: 0; color: var(--muted); }
.btn-text:hover { background: none; color: var(--text); transform: none; }

/* ---------- layout ---------- */
.section { max-width: min(var(--maxw), 100%); margin: 0 auto; padding: clamp(70px, 11vw, 140px) clamp(16px, 4vw, 32px); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet); padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; margin-bottom: 20px; }
.section-title { font-size: clamp(30px, 5vw, 54px); margin: 0 0 18px; font-weight: 700; overflow-wrap: anywhere; text-wrap: balance; }
.section-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(920px, 100svh); display: flex; flex-direction: column; justify-content: flex-start;
  padding: calc(76px + clamp(36px, 5vw, 64px)) clamp(16px, 4vw, 32px) 72px; max-width: min(var(--maxw), 100%); margin: 0 auto; width: 100%; }
.hero-parallax { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.float-chip, .float-note, .float-ring { position: absolute; left: var(--x); top: var(--y); will-change: transform; }
.float-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 8px 14px; background: rgba(20,16,31,.7); border: 1px solid var(--line-strong); border-radius: 999px; backdrop-filter: blur(8px); }
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.float-note { width: 38px; height: 38px; font-size: 0; opacity: .7; color: transparent; }
.float-note .site-ic { width: 100%; height: 100%; }
.float-note.alt { width: 28px; height: 28px; opacity: .55; }
.float-ring { width: 90px; height: 90px; border-radius: 50%; border: 1.5px solid var(--line-strong); opacity: .5; }
.float-ring.small { width: 50px; height: 50px; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(22px, 4vw, 48px); align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 7px 15px; border: 1px solid var(--line-strong); border-radius: 999px; margin-bottom: 26px; background: rgba(20,16,31,.5); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255,93,162,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,93,162,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,93,162,0); } 100% { box-shadow: 0 0 0 0 rgba(255,93,162,0); } }
.hero-title { font-size: clamp(38px, 6.8vw, 78px); font-weight: 800; margin: 0 0 18px; overflow-wrap: anywhere; }
.hero-title .grad-text { display: block; }
.hero-lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 540px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-listen { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 22px; transition: color .2s; }
.hero-listen:hover { color: var(--text); }
.scroll-arrow { display: block; flex-shrink: 0; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--violet); animation: scrollArrowBounce 1.6s ease-in-out infinite; }
@keyframes scrollArrowBounce { 0%, 100% { transform: translateY(-4px); opacity: 0.55; } 50% { transform: translateY(4px); opacity: 1; } }
.hero-stats.compact { margin-bottom: 8px; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Unbounded"; font-size: clamp(22px, 3vw, 30px); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats span { font-size: 13.5px; color: var(--muted-2); }

/* now playing card */
.now-playing, .preview-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 24px; backdrop-filter: blur(20px); box-shadow: var(--glow); }
.np-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.np-onair { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--pink); }
.np-onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: pulse 1.8s infinite; }
.np-host { font-size: 13px; color: var(--muted); font-weight: 600; }
.np-track { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.np-cover { width: 76px; height: 76px; border-radius: var(--r-md); background: linear-gradient(135deg, #2a1a4a, #4a1a3a); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line-strong); }
.np-cover.lg { width: 92px; height: 92px; }
.np-eq { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.np-eq i { width: 5px; border-radius: 3px; background: var(--grad-soft); animation: eq 1s ease-in-out infinite; }
.np-eq i:nth-child(1){ animation-delay: -.2s; height: 40%; }
.np-eq i:nth-child(2){ animation-delay: -.5s; height: 80%; }
.np-eq i:nth-child(3){ animation-delay: -.1s; height: 55%; }
.np-eq i:nth-child(4){ animation-delay: -.7s; height: 95%; }
.np-eq i:nth-child(5){ animation-delay: -.3s; height: 65%; }
.np-eq i:nth-child(6){ animation-delay: -.6s; height: 50%; }
@keyframes eq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.np-eq.paused i { animation-play-state: paused; }
.np-meta strong { display: block; font-family: "Unbounded"; font-size: 19px; }
.np-meta span { font-size: 13.5px; color: var(--muted); }
.np-script, .preview-script { font-size: 15px; line-height: 1.45; color: var(--text); background: rgba(10,8,20,.5); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 16px; min-height: 96px; overflow-wrap: anywhere; word-break: break-word; }
.np-wave { height: 40px; border-radius: var(--r-sm); background:
  repeating-linear-gradient(90deg, rgba(168,130,255,.5) 0 3px, transparent 3px 7px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); opacity: .6; }

.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; z-index: 1; pointer-events: auto; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 3px; background: var(--violet); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature-card { grid-column: span 2; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; backdrop-filter: blur(12px); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.feature-card.big { grid-column: span 6; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; align-items: start; }
.feature-card.big .feature-ic { grid-row: span 2; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(168,90,247,.5); }
.feature-ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: var(--r-md); background: rgba(168,130,255,.1); border: 1px solid var(--line); margin-bottom: 16px; }
.feature-ic .site-ic { width: 30px; height: 30px; }
.feature-card.big .feature-ic { margin-bottom: 0; }
.feature-card h3 { font-size: 19px; margin: 0 0 8px; }
.feature-card.big h3 { font-size: 26px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- download ---------- */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dl-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 36px; backdrop-filter: blur(14px); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .3s; position: relative; overflow: hidden; }
.dl-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); opacity: .8; }
.dl-card:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -34px rgba(168,90,247,.55); }
.dl-ic { width: 72px; height: 72px; display: grid; place-items: center; border-radius: var(--r-md); background: rgba(168,130,255,.1); border: 1px solid var(--line); margin-bottom: 20px; }
.dl-ic .site-ic { width: 38px; height: 38px; }
.dl-card h3 { font-size: 24px; margin: 0 0 12px; }
.dl-card > p { color: var(--muted); font-size: 15px; margin: 0 0 20px; flex: 1; }
.dl-meta { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0 0 22px; }
.dl-meta li { font-size: 12.5px; color: var(--muted); padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.dl-fine { font-size: 13px; color: var(--muted-2); text-align: center; margin: 14px 0 0; }
.dl-fine a { color: var(--violet); }
.success-downloads { display: grid; gap: 10px; margin: 6px 0 14px; }

/* ---------- personas ---------- */
.section-personas { max-width: 100%; padding-left: 0; padding-right: 0; overflow-x: clip; }
.section-personas .section-head { padding: 0 16px; }
.persona-rail-wrap {
  position: relative; max-width: min(var(--maxw), 100%); margin: 0 auto; overflow: hidden;
  --persona-pad: clamp(16px, 4vw, 32px);
  --persona-card-w: min(86vw, 380px);
  padding-inline: clamp(40px, 4.5vw, 52px);
}
@media (min-width: 1180px) {
  .persona-rail-wrap {
    --persona-card-w: min(380px, calc((100% - 2 * var(--persona-pad) - 44px) / 3));
  }
}
.persona-rail {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--persona-pad) 28px;
  padding-inline-end: max(var(--persona-pad), calc(100% - var(--persona-card-w) - var(--persona-pad)));
  scroll-padding-inline: var(--persona-pad);
  scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.persona-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.persona-rail.is-dragging .persona-card { pointer-events: none; }
.persona-rail::-webkit-scrollbar { display: none; }
.persona-card { scroll-snap-align: center; flex: 0 0 var(--persona-card-w); border-radius: var(--r-lg); overflow: hidden; position: relative;
  border: 1px solid var(--line-strong); background: var(--panel-solid); min-height: 520px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s; }
.persona-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), var(--glow); }
.persona-portrait { position: relative; height: 320px; overflow: hidden; background: #0d0a14; }
.persona-portrait img.persona-art { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; transform: scale(1.02); transition: transform .5s var(--ease); }
.persona-card:hover .persona-portrait img.persona-art { transform: scale(1.06); }
.persona-portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 38%, rgba(15,11,25,.55) 72%, var(--panel-solid)); }
.persona-portrait[data-persona="radio_host"]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,122,61,.18), transparent 70%); mix-blend-mode: screen; }
.persona-portrait[data-persona="night_dj"]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(154,215,255,.14), transparent 70%); mix-blend-mode: screen; }
.persona-portrait[data-persona="expert"]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(94,240,255,.12), transparent 70%); mix-blend-mode: screen; }
.persona-portrait[data-persona="contemporary"]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,207,138,.16), transparent 70%); mix-blend-mode: screen; }
.persona-portrait[data-persona="fan"]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,61,139,.16), transparent 70%); mix-blend-mode: screen; }
.persona-portrait[data-persona="backstage"]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,138,.14), transparent 70%); mix-blend-mode: screen; }
.persona-play { position: absolute; right: 18px; bottom: 18px; z-index: 3; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #1a0c25; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(255,93,162,.7); transition: transform .25s var(--ease); }
.persona-play:hover { transform: scale(1.08); }
.persona-play.playing { animation: ring 1.4s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,93,162,.5); } 100% { box-shadow: 0 0 0 22px rgba(255,93,162,0); } }
.persona-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.persona-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.persona-name { font-size: clamp(20px, 2.4vw, 24px); margin: 0 0 10px; overflow-wrap: anywhere; }
.persona-desc { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.persona-traits { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.persona-traits span { font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.persona-quote { font-size: 13.5px; font-style: italic; color: var(--muted-2); border-left: 2px solid var(--line-strong); padding-left: 12px; min-height: 40px; }
.persona-status { font-size: 12px; color: var(--pink); margin-top: 10px; min-height: 16px; font-weight: 600; }
.rail-btn { position: absolute; top: 40%; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(20,16,31,.85); color: var(--text); font-size: 26px; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, transform .2s; display: grid; place-items: center; }
.rail-btn:hover { background: rgba(168,130,255,.25); transform: scale(1.06); }
.rail-prev { left: 8px; } .rail-next { right: 8px; }
.rail-progress { max-width: 340px; height: 4px; margin: 8px auto 0; background: var(--line); border-radius: 4px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 20%; background: var(--grad); border-radius: 4px; transition: width .2s, margin-left .2s; }

/* ---------- pipeline ---------- */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.pipe-step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; backdrop-filter: blur(12px); transition: transform .35s var(--ease), border-color .3s; overflow: hidden; }
.pipe-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad); opacity: .7; }
.pipe-step:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.pipe-num { font-family: "Unbounded"; font-size: 15px; font-weight: 700; color: var(--violet); opacity: .7; }
.pipe-step h3 { font-size: 19px; margin: 10px 0 8px; }
.pipe-step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.how-note { max-width: 720px; margin: 36px auto 0; text-align: center; font-size: 17px; color: var(--muted);
  background: rgba(168,130,255,.07); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 20px 26px; }
.how-note strong { color: var(--text); }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: start; }
.studio-controls { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 28px; backdrop-filter: blur(14px); display: grid; gap: 24px; }
.ctrl label { font-size: 14px; font-weight: 600; color: var(--text); }
.ctrl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ctrl-head output { font-size: 13px; color: var(--violet); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.chip { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(168,130,255,.05); transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.on { color: #1a0c25; background: var(--grad); border-color: transparent; }
.select { width: 100%; font-family: inherit; font-size: 15px; color: var(--text); background: rgba(10,8,20,.6); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 12px; cursor: pointer; }
.select option { background: #14101f; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--pink)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(255,93,162,.6); border: 3px solid var(--pink); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: pointer; border: 3px solid var(--pink); }
.studio-preview { position: sticky; top: 100px; }
.preview-script { min-height: 150px; transition: opacity .2s; font-size: 15.5px; line-height: 1.65; }
.preview-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.tag { font-size: 12px; color: var(--muted); padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; }
.preview-foot .btn { margin-left: auto; min-width: 0; }
.studio-hint { font-size: 13px; color: var(--muted-2); text-align: center; margin: 14px 0 0; }

/* ---------- models ---------- */
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.model-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; backdrop-filter: blur(12px); transition: transform .35s var(--ease), border-color .3s; }
.model-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.model-card h3.model-h { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 12px; }
.model-card h3.model-h .site-ic { width: 24px; height: 24px; flex-shrink: 0; }
.model-card p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.model-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.model-card li { font-size: 13.5px; color: var(--muted); padding-left: 20px; position: relative; }
.model-card li::before { content: "▹"; position: absolute; left: 0; color: var(--violet); }

/* ---------- pricing ---------- */
.tiers-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.tier-explain { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; backdrop-filter: blur(12px); }
.tier-explain.accent { border-color: var(--line-strong); background: linear-gradient(160deg, rgba(168,90,247,.12), rgba(255,93,162,.06)); }
.tier-explain header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.tier-explain h3 { font-size: 24px; margin: 0; }
.tier-price-min { font-size: 14px; font-weight: 700; color: var(--violet); }
.tier-lead { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.tick-list li { position: relative; padding-left: 30px; font-size: 15px; color: var(--text); }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #1a0c25; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.tick-list.sm li { font-size: 14px; padding-left: 26px; color: var(--muted); }
.tick-list.sm li::before { width: 17px; height: 17px; font-size: 10px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; backdrop-filter: blur(12px); display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.plan.featured { border-color: transparent; background: linear-gradient(170deg, rgba(168,90,247,.18), rgba(255,93,162,.1)); box-shadow: var(--glow); transform: scale(1.04); z-index: 2; }
.plan.featured:hover { transform: scale(1.04) translateY(-5px); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; color: #1a0c25; background: var(--grad); padding: 6px 16px; border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(255,93,162,.6); }
.plan-badge.soft { background: rgba(168,130,255,.2); color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.plan-name { font-size: 20px; margin: 8px 0 16px; }
.plan-price { display: flex; align-items: baseline; gap: 2px; }
.plan-price .cur { font-size: 22px; color: var(--muted); }
.plan-price .amount { font-family: "Unbounded"; font-size: 52px; font-weight: 800; }
.plan-price .per { font-size: 16px; color: var(--muted); margin-left: 4px; }
.plan-old { font-size: 14px; color: var(--muted-2); text-decoration: line-through; margin: 6px 0 0; }
.plan-old .save { display: inline-block; margin-left: 8px; text-decoration: none; color: #4ade80; font-weight: 700; }
.plan-note { font-size: 14px; color: var(--muted); margin: 14px 0 20px; }
.plan .tick-list { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }
.pricing-fine { text-align: center; color: var(--muted-2); font-size: 14px; margin: 28px auto 0; max-width: 620px; }

/* ---------- account cabinet ---------- */
.cabinet-main {
  max-width: min(640px, 100%);
  margin: 0 auto;
  padding: clamp(108px, 16vh, 148px) clamp(20px, 5vw, 36px) clamp(64px, 10vh, 96px);
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cabinet-wrap { display: grid; gap: 28px; width: 100%; }
.cabinet-wrap .section-head { text-align: center; }
.cabinet-user-line { margin-top: 8px; }
.cabinet-user-line strong { color: var(--text); word-break: break-all; }
.cabinet-panel { margin-top: 8px; }
.cabinet-status-wrap { margin-bottom: 8px; }
.cabinet-loading { color: var(--muted); font-size: 15px; margin: 0; }
.cabinet-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; padding: 12px 18px; border-radius: 999px;
  margin-bottom: 14px;
}
.cabinet-badge--active {
  background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .35); color: #7dffa8;
}
.cabinet-badge--inactive {
  background: rgba(168, 130, 255, .1); border: 1px solid var(--line-strong); color: var(--muted);
}
.cabinet-until { font-size: 17px; color: var(--text); margin: 0 0 20px; }
.cabinet-until strong { color: var(--violet); }
.cabinet-actions { display: grid; gap: 14px; margin-top: 12px; }
.cabinet-cancel { border-color: rgba(255, 184, 107, .4); color: #ffd4a8; }
.cabinet-cancel:hover { border-color: rgba(255, 184, 107, .65); background: rgba(255, 184, 107, .08); }
.nav-logout { color: var(--muted); }
.cabinet-url-note {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-2);
  margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); word-break: break-all;
}
.cabinet-url-note .site-ic { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.cabinet-back { text-align: center; margin: 8px 0 0; }
.account-msg.is-err { color: #ff6b8a; }
.account-msg.is-ok { color: #7dffa8; }

.modal-login { width: min(440px, calc(100% - 32px)); }
.modal-login .modal-close { top: 16px; right: 16px; }
.modal-login-inner {
  padding: clamp(36px, 7vw, 52px) clamp(28px, 6vw, 44px) clamp(32px, 6vw, 44px);
}
.modal-login-inner .kicker { display: inline-block; margin: 0 0 14px; padding-right: 40px; }
.modal-login-inner h3 { font-size: clamp(22px, 4vw, 28px); margin: 0 0 12px; }
.modal-login-inner .modal-note { margin: 0 0 24px; line-height: 1.55; }
.modal-login .field { margin-bottom: 20px; }
.modal-login .field > span { margin-bottom: 10px; }
.modal-login .field input { padding: 15px 18px; }
.modal-login form > .btn { margin-top: 6px; }
.login-code-block { margin-top: 18px; animation: fade .25s ease; }
.login-modal-msg { font-size: 14px; margin: 18px 0 0; text-align: center; line-height: 1.5; }
.login-modal-msg.is-err { color: #ff6b8a; }
.login-modal-msg.is-ok { color: #7dffa8; }

.section-account { max-width: 720px; }
.account-panel {
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px); backdrop-filter: blur(12px);
}
.account-url {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted);
  background: rgba(10,8,20,.55); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 16px; margin-bottom: 22px; word-break: break-all;
}
.account-url .site-ic { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.account-code-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-bottom: 8px; }
.account-code-field { margin-bottom: 0; }
.account-code-row .btn { white-space: nowrap; height: 52px; align-self: end; }
.account-status { font-size: 15px; color: var(--muted); margin-bottom: 18px; line-height: 1.7; }
.account-status p { margin: 0 0 8px; }
.account-status strong { color: var(--text); }
.account-unlink { border-color: rgba(255,107,138,.35); color: #ffb4c4; }
.account-unlink:hover { border-color: rgba(255,107,138,.6); background: rgba(255,107,138,.08); }
.account-hint { font-size: 13.5px; color: var(--muted-2); margin: 12px 0 0; }
.account-msg { margin-top: 14px; text-align: center; }

/* ---------- docs ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; backdrop-filter: blur(12px); transition: transform .35s var(--ease), border-color .3s; }
.doc-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.doc-ic { display: inline-block; width: 44px; height: 44px; margin-bottom: 4px; }
.doc-ic.site-ic { width: 36px; height: 36px; }
.doc-card h3 { font-size: 17px; margin: 14px 0 8px; }
.doc-card p { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.doc-go { font-size: 14px; font-weight: 600; color: var(--violet); }

/* ---------- faq ---------- */
.section-faq { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 22px; backdrop-filter: blur(12px); transition: border-color .3s; }
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; color: var(--violet); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ---------- final cta ---------- */
.final-cta { text-align: center; max-width: 760px; }
.final-cta h2 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 16px; }
.final-cta p { color: var(--muted); font-size: 18px; margin: 0 0 30px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: clamp(40px, 6vw, 70px) clamp(16px, 4vw, 48px) 30px; background: rgba(8,7,15,.6); overflow-x: clip; }
.footer-top { max-width: min(var(--maxw), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand img, .footer-brand .brand-name { display: inline-block; }
.footer-brand .brand-name { font-size: 19px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h4 { font-family: "Manrope"; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 0 0 14px; }
.footer-nav a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { max-width: min(var(--maxw), 100%); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: 14px; word-break: break-word; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(4,3,9,.7); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(900px, 100%); max-height: 92vh; overflow: auto; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--r-lg); position: relative; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); animation: pop .3s var(--ease); }
@keyframes pop { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.modal-close { position: absolute; top: 14px; right: 18px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(168,130,255,.08); color: var(--text); font-size: 22px; cursor: pointer; transition: background .2s; }
.modal-close:hover { background: rgba(168,130,255,.2); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-left { padding: 40px; background: linear-gradient(165deg, rgba(168,90,247,.16), rgba(255,93,162,.08)); border-right: 1px solid var(--line); }
.modal-left h3 { font-size: 26px; margin: 14px 0 16px; }
.modal-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.modal-price .cur { font-size: 22px; color: var(--muted); }
.modal-price .amount { font-family: "Unbounded"; font-size: 48px; font-weight: 800; }
.modal-price .per { font-size: 16px; color: var(--muted); }
.modal-old { font-size: 14px; color: var(--muted-2); text-decoration: line-through; margin: 0 0 20px; }
.modal-incl { margin-top: 22px; }
.modal-right { padding: 40px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input { width: 100%; font-family: inherit; font-size: 16px; color: var(--text); background: rgba(10,8,20,.6); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 14px 16px; transition: border-color .2s; }
.field input:focus { outline: none; border-color: var(--pink); }
.field-err { display: block; color: #ff6b8a; font-size: 13px; margin-top: 6px; }
.modal-note { font-size: 13.5px; color: var(--muted); margin: 0 0 20px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--pink); flex-shrink: 0; }
.check a { color: var(--violet); text-decoration: underline; }
.modal-right .btn-lg { margin-top: 18px; }
.modal-secure { text-align: center; font-size: 13px; color: var(--muted-2); margin: 14px 0 0; }
.modal-success { text-align: center; padding: 20px 0; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: rgba(168,130,255,.12); border: 1px solid var(--line-strong); display: grid; place-items: center; margin: 0 auto 18px; }
.success-mark .site-ic { width: 34px; height: 34px; }
.modal-secure { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.modal-secure .site-ic { width: 18px; height: 18px; flex-shrink: 0; }
.btn-ic.site-ic { width: 17px; height: 17px; display: inline-block; vertical-align: -3px; margin-right: 4px; }

/* Phosphor Icons (MIT) — gradient masks */
.site-ic {
  display: inline-block;
  flex-shrink: 0;
  background: var(--ic-grad, var(--grad));
  -webkit-mask-image: var(--ic-url);
  mask-image: var(--ic-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.ic-lightning { --ic-url: url('assets/icons/lightning-fill.svg'); --ic-grad: linear-gradient(135deg, #ffb86b 0%, #ff5da2 100%); }
.ic-mask { --ic-url: url('assets/icons/mask-happy-fill.svg'); --ic-grad: linear-gradient(135deg, #ff5da2 0%, #a855f7 100%); }
.ic-search { --ic-url: url('assets/icons/magnifying-glass-fill.svg'); --ic-grad: linear-gradient(135deg, #38e1ff 0%, #a855f7 100%); }
.ic-play { --ic-url: url('assets/icons/play-pause-fill.svg'); --ic-grad: linear-gradient(135deg, #4ade80 0%, #38e1ff 100%); }
.ic-sliders { --ic-url: url('assets/icons/sliders-horizontal-fill.svg'); --ic-grad: linear-gradient(135deg, #a855f7 0%, #ffb86b 100%); }
.ic-android { --ic-url: url('assets/icons/android-logo-fill.svg'); --ic-grad: linear-gradient(135deg, #4ade80 0%, #38e1ff 100%); }
.ic-mobile { --ic-url: url('assets/icons/device-mobile-fill.svg'); --ic-grad: linear-gradient(135deg, #38e1ff 0%, #a855f7 100%); }
.ic-puzzle { --ic-url: url('assets/icons/puzzle-piece-fill.svg'); --ic-grad: linear-gradient(135deg, #ff5da2 0%, #ffb86b 100%); }
.ic-browser { --ic-url: url('assets/icons/browser-fill.svg'); --ic-grad: linear-gradient(135deg, #38e1ff 0%, #ff5da2 100%); }
.ic-doc { --ic-url: url('assets/icons/file-text-fill.svg'); --ic-grad: linear-gradient(135deg, #c084fc 0%, #ff7ab8 100%); }
.ic-lock { --ic-url: url('assets/icons/lock-fill.svg'); --ic-grad: linear-gradient(135deg, #38e1ff 0%, #a855f7 100%); }
.ic-clipboard { --ic-url: url('assets/icons/clipboard-text-fill.svg'); --ic-grad: linear-gradient(135deg, #ffb86b 0%, #ff5da2 100%); }
.ic-pen { --ic-url: url('assets/icons/pen-nib-fill.svg'); --ic-grad: linear-gradient(135deg, #ff5da2 0%, #c084fc 100%); }
.ic-user { --ic-url: url('assets/icons/user-fill.svg'); --ic-grad: linear-gradient(135deg, #a855f7 0%, #ff5da2 100%); }
.ic-download { --ic-url: url('assets/icons/download-simple-fill.svg'); --ic-grad: linear-gradient(180deg, #fff 0%, #d8b4fe 100%); }
.ic-brain { --ic-url: url('assets/icons/brain-fill.svg'); --ic-grad: linear-gradient(135deg, #ff5da2 0%, #a855f7 100%); }
.ic-speaker { --ic-url: url('assets/icons/speaker-high-fill.svg'); --ic-grad: linear-gradient(135deg, #ffb86b 0%, #ff5da2 100%); }
.ic-shield { --ic-url: url('assets/icons/shield-check-fill.svg'); --ic-grad: linear-gradient(135deg, #4ade80 0%, #38e1ff 100%); }
.ic-check { --ic-url: url('assets/icons/check-circle-fill.svg'); --ic-grad: var(--grad); }
.ic-music { --ic-url: url('assets/icons/music-notes-fill.svg'); --ic-grad: linear-gradient(135deg, #ff5da2 0%, #a855f7 100%); }
.ic-music-alt { --ic-url: url('assets/icons/music-notes-fill.svg'); --ic-grad: linear-gradient(135deg, #a855f7 0%, #38e1ff 100%); }

.modal-success h3 { font-size: 24px; margin: 0 0 12px; }
.modal-success p { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
.reveal:nth-child(5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-header { gap: 10px; padding: 14px clamp(14px, 3vw, 28px); }
  .nav a { padding: 7px 10px; font-size: 14px; }
  .brand-name { font-size: 18px; }
  .section-title { font-size: clamp(28px, 4vw, 44px); }
  .hero { padding-bottom: 56px; min-height: auto; }
  .scroll-hint { display: none; }
  .hero-listen { margin-bottom: 28px; position: relative; z-index: 2; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card, .feature-card.big { grid-column: span 1; }
  .feature-card.big { grid-template-columns: auto 1fr; gap: 8px 18px; }
  .feature-card.big h3 { font-size: 22px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .model-card h3.model-h { font-size: 16px; flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .nav { display: none; } .header-actions { display: none; } .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .studio { grid-template-columns: 1fr; } .studio-preview { position: static; }
  .tiers-compare { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; } .plan.featured { transform: none; order: -1; } .plan.featured:hover { transform: translateY(-5px); }
  .model-grid, .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; } .feature-card, .feature-card.big { grid-column: auto; }
  .feature-card.big { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; } .modal-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .preview-foot .btn { margin-left: 0; width: 100%; }
  .site-header { gap: 12px; }

  /* mobile nav open */
  .site-header.menu-open { background: rgba(8,7,15,.96); backdrop-filter: blur(18px); flex-wrap: wrap; }
  .site-header.menu-open .nav { display: flex; flex-direction: column; width: 100%; order: 3; gap: 2px; padding-top: 10px; }
  .site-header.menu-open .nav a { padding: 12px 8px; }
  .site-header.menu-open .header-actions {
    display: flex; flex-direction: column; width: 100%; order: 4; gap: 10px; padding-top: 8px;
  }
  .site-header.menu-open .header-actions .btn { width: 100%; justify-content: center; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .account-code-row { grid-template-columns: 1fr; }
  .account-code-row .btn { width: 100%; height: auto; padding: 14px 16px; }
  .hero-stats { flex-wrap: wrap; gap: 18px 30px; }
  .model-grid, .doc-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 30px; }
  .footer-nav { grid-template-columns: 1fr; }
  .plan-price .amount { font-size: clamp(36px, 12vw, 52px); }
  .btn-lg { white-space: normal; text-align: center; }
  .rail-btn { display: none; }
  .persona-rail-wrap { padding-inline: 0; }
}

/* ---------- legal / docs pages ---------- */
.legal-main { max-width: min(860px, 100%); margin: 0 auto; padding: 130px clamp(16px, 4vw, 22px) 90px; overflow-wrap: anywhere; word-break: break-word; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; margin-bottom: 26px; transition: color .2s var(--ease); }
.legal-back:hover { color: var(--text); }
.legal-kicker { display: inline-block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); font-weight: 700; margin-bottom: 14px; }
.legal h1 { font-size: clamp(26px, 7vw, 46px); margin: 0 0 10px; overflow-wrap: anywhere; word-break: break-word; }
.legal .legal-meta { color: var(--muted-2); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-size: 22px; margin: 38px 0 12px; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a.inline { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.legal-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px clamp(14px, 4vw, 22px); margin: 22px 0; backdrop-filter: blur(14px); overflow-wrap: anywhere; }
.legal-foot { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 14px; }
.legal-steps { counter-reset: step; list-style: none; padding: 0; }
.legal-steps li { position: relative; padding-left: 52px; margin: 18px 0; }
.legal-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--grad); color: #140d20; font-weight: 800; font-family: "Unbounded", sans-serif; }
