:root {
  --bg: #050508;
  --bg-alt: #0a0a10;
  --ink: #0c0c14;
  --panel-solid: #0c0c14;
  --panel-2: #101018;
  --border: #1a1a24;
  --border-glow: rgba(141, 84, 255, .35);
  --text: #edeff7;
  --muted: #7c8896;
  --accent: #8d54ff;
  --accent-2: #c4b4ff;
  --accent-deep: #6d28d9;
  --accent-dim: rgba(141, 84, 255, .12);
  --red: #ff2357;
  --yellow: #f99c00;
  --green: #00bb7f;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: rgba(141, 84, 255, .3); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1f1f2c; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Noise */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Global grid backdrop (мелкая 1rem-сетка, как в оригинале) */
.grid-backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(15,15,16,.45) 1px, transparent 1px),
    linear-gradient(rgba(15,15,16,.45) 1px, transparent 1px);
  background-size: 1rem 1rem;
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}

/* Typography */
h1 {
  font-family: "Clash Display", "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; line-height: 1.08;
  letter-spacing: -.03em;
}
h2 {
  font-family: "Clash Display", "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -.02em;
}
h3 {
  font-family: "Clash Display", "Space Grotesk", sans-serif;
  font-size: 1.12rem; font-weight: 600;
}

.accent {
  background-image: linear-gradient(90deg, #8d54ff, #6d28d9);
  filter: drop-shadow(0 0 12px rgba(141, 84, 255, .35));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { position: relative; display: inline-block; padding-bottom: 18px; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-deep), transparent);
  box-shadow: 0 0 14px rgba(141, 84, 255, .5);
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Liquid buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  position: relative; transform: translateZ(0);
}
.btn-primary,
.btn-liquid {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 50%, var(--accent) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.1),
              0 4px 16px rgba(109, 40, 217, .28);
  border: 1px solid rgba(255,255,255,.15);
  will-change: transform, box-shadow;
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s cubic-bezier(.4,0,.2,1),
              border-color .22s cubic-bezier(.4,0,.2,1), filter .22s;
}
.btn-primary::before {
  content: ""; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 45%, transparent 70%);
  position: absolute; inset: 0;
}
.btn-primary:hover,
.btn-primary.btn:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.1),
              0 6px 24px rgba(109, 40, 217, .42), 0 0 32px rgba(109, 40, 217, .18);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
  filter: brightness(1.12);
}
.btn-primary:active {
  box-shadow: inset 0 2px 4px rgba(0,0,0,.2), 0 2px 8px rgba(109, 40, 217, .2);
  transform: translateY(0);
  transition-duration: 80ms;
}
.btn-ghost {
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255,255,255,.06), inset 0 1px rgba(255,255,255,.06);
}
.btn-sm { padding: 8px 18px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header (glass с градиентной нижней кромкой) ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(12,12,20,.97), rgba(5,5,8,.95));
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141,84,255,.5) 50%, transparent);
  opacity: 0; transition: opacity .4s;
}
.header.scrolled::before { opacity: 1; }
.header-inner { display: flex; align-items: center; gap: 14px; height: 68px; position: relative; }
.logo {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap;
  font-family: "Clash Display", sans-serif;
  font-weight: 700; font-size: 1.12rem; color: var(--text); text-decoration: none;
  letter-spacing: -.01em;
}
.logo-icon {
  color: var(--accent); font-size: .8rem;
  filter: drop-shadow(0 0 6px rgba(141, 84, 255, .9));
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500;
  transition: color .2s, background .2s; position: relative;
  padding: 7px 11px; border-radius: 9px; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 1px; transform: scaleX(0); transition: transform .25s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a:hover::after { transform: scaleX(1); }
.burger { display: none; background: none; border: none; cursor: pointer; margin-left: auto; padding: 6px; flex-shrink: 0; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Онлайн-каунтер ---------- */
.online-pill {
  display: none; align-items: center; gap: 6px; margin-left: 6px;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08); background: var(--panel-2);
  font-size: .78rem; color: var(--muted); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.online-pill.show { display: inline-flex; }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgba(0, 187, 127, .9);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ---------- Auth area ---------- */
.auth-area { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px 5px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(141, 84, 255, .25);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(5,5,8,.6));
  font-size: .86rem; font-weight: 600;
}
.credits-badge {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 3px 12px; font-size: .74rem;
  font-variant-numeric: tabular-nums; box-shadow: 0 2px 10px rgba(109,40,217,.35);
}
.logout-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: .8rem; font-family: inherit; padding: 4px 6px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.logout-btn:hover { color: var(--red); background: rgba(255,35,87,.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 140px 0 90px; text-align: center; overflow: hidden; z-index: 1;
}
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(90px); opacity: .5; }
.orb-1 {
  width: 460px; height: 460px; left: -140px; top: -100px;
  background: radial-gradient(circle, rgba(141, 84, 255, .4), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px; right: -120px; top: 30px;
  background: radial-gradient(circle, rgba(109, 40, 217, .35), transparent 70%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 50px) scale(1.12); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 999px;
  border: 1px solid rgba(141, 84, 255, .3);
  background: rgba(141, 84, 255, .08);
  font-size: .82rem; color: var(--accent-2); margin-bottom: 28px;
  font-weight: 500; letter-spacing: .02em;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}
.hero-sub { color: var(--muted); max-width: 660px; margin: 26px auto 0; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 56px; justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b {
  display: block; font-size: 2.1rem; font-weight: 800; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background-image: linear-gradient(180deg, #ffffff, #c4b4ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(141, 84, 255, .25));
}
.stat span { color: var(--muted); font-size: .87rem; }
.hero-glow {
  position: absolute; left: 50%; top: -220px; transform: translateX(-50%);
  width: 860px; height: 540px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(141, 84, 255, .15), transparent 70%);
  pointer-events: none;
}

/* ---------- Terminal (liquid-glass) ---------- */
.terminal-section { padding: 0 0 100px; position: relative; z-index: 1; }
.terminal {
  max-width: 780px; margin: 0 auto; border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.03) 30%,
              rgba(141,84,255,.05) 70%, rgba(255,255,255,.08) 100%);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: inset 0 1px rgba(255,255,255,.15), inset 0 -1px rgba(255,255,255,.03),
              0 0 0 .5px rgba(255,255,255,.08), 0 8px 32px rgba(0,0,0,.4),
              0 2px 8px rgba(0,0,0,.2), 0 0 40px rgba(141, 84, 255, .06);
}
.terminal:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(255,255,255,.04),
              0 0 0 .5px rgba(255,255,255,.12), 0 12px 40px rgba(0,0,0,.45),
              0 0 20px rgba(141, 84, 255, .08);
  border-color: rgba(255,255,255,.2);
}
.terminal-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(16,16,24,.7);
  border-radius: 16px 16px 0 0;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: var(--red); } .dot.yellow { background: var(--yellow); } .dot.green { background: var(--green); }
.terminal-title { margin-left: 10px; font-size: .8rem; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.terminal-body {
  padding: 24px; font-family: "JetBrains Mono", monospace;
  font-size: .84rem; line-height: 1.75; overflow-x: auto;
}
.c-red { color: var(--red); } .c-purple { color: var(--accent-2); }
.c-yellow { color: #ffe08a; } .c-blue { color: #79b8ff; } .c-gray { color: var(--muted); }

/* ---------- Code diff ---------- */
.diff-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
.diff-left { border-color: rgba(255, 35, 87, .3); }
.diff-left:hover { box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 40px rgba(255, 35, 87, .07); }
.diff-right { border-color: rgba(141, 84, 255, .25); }
.diff-right:hover { box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 40px rgba(141, 84, 255, .1); }

@media (max-width: 860px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* ---------- Feature cards (glass + glow) ---------- */
.grid { display: grid; gap: 18px; }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(5,5,8,.55));
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 24px 22px;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
  overflow: hidden;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 12px 30px -18px rgba(0,0,0,.75);
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(141, 84, 255, .12), transparent 65%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(5,5,8,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),
              0 22px 44px -22px rgba(0,0,0,.85), 0 0 34px -12px rgba(141, 84, 255, .6);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 16px;
  background: var(--accent-dim); border: 1px solid rgba(141, 84, 255, .3);
  color: var(--accent-2);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.card:hover .card-icon { transform: scale(1.12) rotate(-6deg); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 24px rgba(141,84,255,.4); }
.card p { color: var(--muted); font-size: .94rem; margin-top: 10px; }

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: var(--panel-solid);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 12px 40px -20px rgba(0,0,0,.7);
}
.compare-table { width: 100%; border-collapse: collapse; background: transparent; min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem;
}
.compare-table thead th {
  background: var(--panel-2); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.compare-table thead th.hl {
  color: #c4b4ff;
  background: linear-gradient(180deg, rgba(141, 84, 255, .15), rgba(141, 84, 255, .03));
  border-bottom: 1px solid rgba(141, 84, 255, .3);
}
.compare-table tbody tr { transition: background .2s; }
.compare-table tbody tr:hover { background: rgba(141, 84, 255, .05); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .dim { color: var(--muted); }
.compare-table .hl { color: var(--accent-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 60px; }
.step {
  padding: 26px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(5,5,8,.55));
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  position: relative; transition: transform .3s, border-color .3s, box-shadow .3s;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 12px 30px -18px rgba(0,0,0,.75);
}
.step:hover {
  border-color: rgba(141, 84, 255, .3);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 22px 44px -22px rgba(0,0,0,.85),
              0 0 34px -12px rgba(141, 84, 255, .5);
}
.step-num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-weight: 800; margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 16px rgba(109, 40, 217, .4);
}
.step p { color: var(--muted); font-size: .94rem; margin-top: 10px; }

/* ---------- Upload (vault) ---------- */
.upload-zone {
  border: 2px dashed rgba(255,255,255,.12); border-radius: 20px;
  padding: 52px 32px; text-align: center;
  background: var(--panel-solid);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.upload-zone::before, .upload-zone::after {
  content: ""; position: absolute; width: 34px; height: 34px;
  border-color: var(--accent); border-style: solid; opacity: .55;
  transition: opacity .3s;
}
.upload-zone::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; border-top-left-radius: 20px; }
.upload-zone::after { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; border-bottom-right-radius: 20px; }
.upload-zone:hover::before, .upload-zone:hover::after { opacity: 1; }
.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(141, 84, 255, .07);
  box-shadow: 0 0 0 4px rgba(141, 84, 255, .1), 0 0 50px rgba(141, 84, 255, .25);
}
.upload-icon {
  width: 68px; height: 68px; border-radius: 18px; font-size: 1.9rem;
  display: grid; place-items: center; margin: 0 auto 18px;
  background: var(--accent-dim); border: 1px solid rgba(141, 84, 255, .3);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  animation: float-y 3.2s ease-in-out infinite;
  color: var(--accent-2);
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.upload-zone h3 { margin-bottom: 8px; }
.upload-zone p { color: var(--muted); margin-bottom: 20px; }
.upload-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  color: var(--muted); font-size: .78rem; font-weight: 600;
  transition: border-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: rgba(141,84,255,.35); color: var(--text); transform: translateY(-1px); }

.strength-picker { margin-top: 40px; }
.strength-title { font-weight: 600; margin-bottom: 16px; }
.strength-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin: 0 auto; }
.strength-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 12px 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,.03); color: var(--muted); font-weight: 600;
  cursor: pointer; transition: all .22s cubic-bezier(.4,0,.2,1);
  font-family: inherit; position: relative; overflow: hidden;
}
.strength-btn .s-ico { font-size: 1.35rem; line-height: 1; filter: grayscale(.4); transition: filter .2s, transform .25s; }
.strength-btn .s-name { font-size: .95rem; color: var(--text); }
.strength-btn .s-price {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); font-variant-numeric: tabular-nums;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06);
}
.strength-btn:hover {
  color: var(--text); background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16); transform: translateY(-3px);
}
.strength-btn:hover .s-ico { filter: grayscale(0); transform: scale(1.15); }
.strength-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: rgba(255,255,255,.18); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 24px rgba(109, 40, 217, .4);
}
.strength-btn.active .s-name { color: #fff; }
.strength-btn.active .s-price {
  color: #fff; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.2);
}
.strength-btn.active .s-ico { filter: grayscale(0); }
.strength-note {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin: 20px auto 0; max-width: 640px; min-height: 20px;
  padding: 12px 18px; border-radius: 12px;
  background: rgba(141, 84, 255, .06);
  border: 1px solid rgba(141, 84, 255, .18);
  border-left: 3px solid var(--accent);
  color: var(--muted); font-size: .86rem; text-align: left;
}
.strength-note .sn-ico { font-size: 1rem; flex-shrink: 0; }
.strength-note .sn-text { color: var(--text); opacity: .85; }
.strength-note { text-align: left; }
/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(5,5,8,.5));
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 12px; overflow: hidden; transition: border-color .25s, box-shadow .25s;
}
.faq-item:hover { border-color: rgba(141, 84, 255, .25); }
.faq-item.open {
  border-color: rgba(141, 84, 255, .35);
  box-shadow: 0 0 30px -12px rgba(141, 84, 255, .4);
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 1rem; font-weight: 600; text-align: left;
  font-family: inherit; transition: color .2s;
}
.faq-q:hover { color: var(--accent-2); }
.faq-arrow { transition: transform .25s; color: var(--muted); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta-section { padding: 90px 0; }
.cta-card {
  position: relative;
  text-align: center; padding: 72px 32px; border-radius: 20px;
  border: 1px solid rgba(141, 84, 255, .3);
  background: linear-gradient(135deg, rgba(141, 84, 255, .14), rgba(109, 40, 217, .05));
  overflow: hidden;
  box-shadow: 0 0 60px rgba(141, 84, 255, .08), inset 0 1px rgba(255,255,255,.06);
}
.cta-card::before {
  content: ""; position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, transparent, rgba(141, 84, 255, .12), transparent 30%);
  animation: spin-slow 8s linear infinite; pointer-events: none;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cta-card h2, .cta-card p, .cta-card .btn { position: relative; z-index: 1; }
.cta-card p { color: var(--muted); margin: 16px 0 30px; }

/* ---------- Footer (glass с фиолетовой кромкой) ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 44px 0;
  background: linear-gradient(0deg, rgba(10,10,16,.97), rgba(12,12,20,.95));
  position: relative; z-index: 1;
}
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141,84,255,.35) 50%, transparent);
}
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: .85rem; font-weight: 400; width: 100%; }
.footer-brand .logo-icon { color: var(--accent); }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent-2); }
.footer-copy { color: var(--muted); font-size: .85rem; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(0, 0, 0, .65); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  width: min(400px, 92vw); border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.04) 30%,
              rgba(141,84,255,.06) 70%, rgba(255,255,255,.07) 100%);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1.5px solid rgba(255,255,255,.12);
  padding: 30px 28px; position: relative;
  box-shadow: inset 0 1px rgba(255,255,255,.15), 0 40px 120px rgba(0,0,0,.7),
              0 0 60px rgba(141, 84, 255, .12);
}
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.modal-tab {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  color: var(--muted); font-weight: 600; font-family: inherit; font-size: .92rem; transition: all .2s;
}
.modal-tab.active {
  background: rgba(141, 84, 255, .12); color: var(--accent-2);
  border-color: rgba(141, 84, 255, .3);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.3);
  color: var(--text); font-family: inherit; font-size: .95rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(141, 84, 255, .15); }
.auth-sub { color: var(--muted); font-size: .8rem; margin-bottom: 10px; }
.auth-error { color: var(--red); font-size: .85rem; font-weight: 600; min-height: 20px; margin-bottom: 8px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Support widget ---------- */
.support-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px rgba(109, 40, 217, .45);
  transition: all .25s;
  animation: support-pulse 2.6s ease-in-out infinite;
}
@keyframes support-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px rgba(109, 40, 217, .45), 0 0 0 0 rgba(141,84,255,.45); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px rgba(109, 40, 217, .45), 0 0 0 14px rgba(141,84,255,0); }
}
.support-btn:hover { transform: scale(1.08); }
.support-panel {
  position: fixed; right: 24px; bottom: 90px; z-index: 200;
  width: min(340px, 92vw); border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.04) 30%,
              rgba(141,84,255,.06) 70%, rgba(255,255,255,.07) 100%);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1.5px solid rgba(255,255,255,.12);
  padding: 20px;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 30px 80px rgba(0,0,0,.6);
}
.support-panel.show { opacity: 1; pointer-events: auto; transform: none; }
.support-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.support-close { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.support-hint { color: var(--muted); font-size: .8rem; margin-bottom: 12px; }
.support-panel textarea {
  width: 100%; min-height: 110px; resize: vertical;
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px; outline: none;
  background: rgba(0,0,0,.3); color: var(--text);
  font-family: inherit; font-size: .9rem; padding: 12px; margin-bottom: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.support-panel textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(141, 84, 255, .15); }
.support-error { color: var(--red); font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.support-done { color: var(--green); font-size: .85rem; font-weight: 600; margin-top: 10px; display: none; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; left: 24px; bottom: 24px; z-index: 210;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 40%,
              rgba(141,84,255,.06) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(141, 84, 255, .25);
  border-radius: 12px; padding: 12px 18px;
  font-size: .86rem; color: var(--text);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.5);
  animation: toast-in .35s cubic-bezier(.4,0,.2,1); max-width: 340px;
}
.toast b { color: var(--accent-2); }
.toast-gone { opacity: 0; transform: translateX(-16px); transition: all .4s; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Admin ---------- */
.admin-wrap { padding: 110px 0 80px; position: relative; z-index: 1; }
.admin-badge {
  padding: 5px 14px; border-radius: 999px; margin-left: auto; margin-right: 16px;
  background: rgba(141, 84, 255, .12); border: 1px solid rgba(141, 84, 255, .3);
  color: var(--accent-2); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.admin-card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(5,5,8,.55));
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 28px; margin-bottom: 24px;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 12px 30px -18px rgba(0,0,0,.75);
}
.admin-card h3 { margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-badge-cell { color: var(--accent-2); font-weight: 700; font-size: .78rem; }
.admin-tag {
  color: var(--accent-2); font-weight: 700; font-size: .72rem;
  background: var(--accent-dim); border-radius: 6px; padding: 2px 8px;
}
.admin-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.admin-form input {
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.3);
  color: var(--text); font-family: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.admin-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(141, 84, 255, .15); }
.admin-msg { color: var(--green); font-weight: 600; font-size: .85rem; }
.admin-msg.err { color: var(--red); }
.lock-note { color: var(--muted); text-align: center; padding: 120px 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.visible:nth-child(2) { transition-delay: .08s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .features-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  .nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: linear-gradient(180deg, rgba(12,12,20,.98), rgba(5,5,8,.98));
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-direction: column; align-items: stretch; padding: 16px 24px; display: none; z-index: 99;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; background: none; }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header .btn-sm { display: none; }
}
@media (max-width: 720px) {
  .features-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 64px; }
  .hero-stats { gap: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { margin: 0; }
  .toasts { left: 16px; right: 80px; bottom: 16px; }
  .user-chip { font-size: .78rem; gap: 6px; padding: 4px 6px 4px 10px; }
  .credits-badge { font-size: .68rem; padding: 2px 10px; }
}

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

/* ---------- Support chat ---------- */
.support-chat {
  min-height: 140px; max-height: 300px; overflow-y: auto;
  margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px;
  padding-right: 4px;
}
.support-empty { color: var(--muted); font-size: .8rem; text-align: center; padding: 30px 10px; }
.s-msg { display: flex; flex-direction: column; max-width: 85%; }
.s-msg-user { align-self: flex-end; align-items: flex-end; }
.s-msg-admin { align-self: flex-start; align-items: flex-start; }
.s-bubble {
  padding: 8px 12px; border-radius: 12px; font-size: .86rem; line-height: 1.45;
  word-break: break-word; white-space: pre-wrap;
}
.s-msg-user .s-bubble {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(109, 40, 217, .3);
}
.s-msg-admin .s-bubble {
  background: rgba(255,255,255,.07); color: var(--text);
  border: 1px solid rgba(255,255,255,.09);
  border-bottom-left-radius: 4px;
}
.s-time { font-size: .68rem; color: var(--muted); margin-top: 3px; }

/* ---------- Tickets (admin) ---------- */
.tickets-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  transition: all .2s;
}
.ticket-row:hover { border-color: rgba(141, 84, 255, .35); background: rgba(141, 84, 255, .06); }
.ticket-closed { opacity: .5; }
.ticket-preview { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.ticket-meta { color: var(--muted); font-size: .72rem; opacity: .8; margin-top: 4px; font-family: "JetBrains Mono", monospace; }
.ticket-arrow { color: var(--accent-2); font-weight: 600; font-size: .85rem; flex-shrink: 0; }
.modal-ticket { width: min(520px, 94vw); }
.modal-ticket .support-chat { max-height: 320px; min-height: 160px; }
.modal-ticket textarea {
  width: 100%; min-height: 80px; resize: vertical;
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px; outline: none;
  background: rgba(0,0,0,.3); color: var(--text);
  font-family: inherit; font-size: .9rem; padding: 12px; margin-bottom: 10px;
}
.modal-ticket textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(141, 84, 255, .15); }

/* ---------- Delete user (admin) ---------- */
.delete-user-btn {
  background: rgba(255, 35, 87, .1); border: 1px solid rgba(255, 35, 87, .3);
  color: var(--red); border-radius: 8px; width: 28px; height: 28px;
  cursor: pointer; font-size: .8rem; transition: all .2s;
}
.delete-user-btn:hover {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 14px rgba(255, 35, 87, .4);
}

/* ---------- Maintenance banner ---------- */
.maint-banner {
  position: sticky; top: 68px; z-index: 90;
  text-align: center; padding: 10px 20px;
  background: linear-gradient(90deg, rgba(249, 156, 0, .15), rgba(141, 84, 255, .12));
  border-top: 1px solid rgba(249, 156, 0, .25);
  border-bottom: 1px solid rgba(249, 156, 0, .25);
  color: #ffd489; font-size: .88rem; font-weight: 600;
}
/* ---------- Maintenance toggle (admin) ---------- */
.maint-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
}
.maint-toggle-label { font-weight: 600; font-size: .92rem; }
.maint-switch {
  position: relative; width: 52px; height: 28px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  cursor: pointer; transition: background .25s;
}
.maint-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--muted);
  transition: all .25s;
}
.maint-switch.on { background: rgba(249, 156, 0, .3); border-color: rgba(249, 156, 0, .4); }
.maint-switch.on::after { left: 26px; background: var(--yellow); box-shadow: 0 0 12px rgba(249, 156, 0, .6); }
.maint-state { color: var(--muted); font-size: .78rem; margin-top: 4px; }
