/* NextLevel — премиальный тёмный SaaS UI */

:root {
  --bg: #050608;
  --bg-2: #0a0c10;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, 0.2);
  --success: #34d399;
  --danger: #fb7185;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.theme-nl {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover {
  color: #67e8f9;
}

.hidden {
  display: none !important;
}

code {
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* --- Ambient background --- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: float 22s ease-in-out infinite;
}
.ambient__blob--1 {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, transparent 70%);
  top: -15%;
  left: -10%;
}
.ambient__blob--2 {
  width: min(60vw, 440px);
  height: min(60vw, 440px);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28) 0%, transparent 70%);
  top: 20%;
  right: -15%;
  animation-delay: -8s;
}
.ambient__blob--3 {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, transparent 70%);
  bottom: -5%;
  left: 25%;
  animation-delay: -14s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, 3%) scale(1.03);
  }
  66% {
    transform: translate(-2%, 1%) scale(0.98);
  }
}

/* --- Header --- */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
}

.top__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.logo {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}
.logo__level {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #050608;
  background: linear-gradient(145deg, #5ee9ff 0%, var(--accent) 38%, var(--violet) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(5, 6, 8, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 28px rgba(34, 211, 238, 0.35);
  flex-shrink: 0;
}
.logo__mark--sm {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 0.78rem;
}

.top__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a {
  color: var(--muted);
  padding: 0.35rem 0;
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.top__cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease-out);
}
.nav-toggle::before {
  top: 16px;
}
.nav-toggle::after {
  bottom: 16px;
}
body.nav-open .nav-toggle::before {
  transform: translateY(5px) rotate(45deg);
}
body.nav-open .nav-toggle::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem;
    flex-direction: column;
    background: rgba(5, 6, 8, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
  }
  body.nav-open .nav {
    display: flex;
  }
  .top__inner {
    flex-wrap: wrap;
  }
  .top__actions {
    margin-left: auto;
  }
  .nav {
    order: 10;
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s, background 0.2s;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.btn--primary:hover {
  box-shadow: 0 16px 50px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}
.btn--outline {
  background: transparent;
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--accent);
}
.btn--outline:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.btn--lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}
.btn--block {
  width: 100%;
}

/* Glass */
.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
}
.hero__title-gradient {
  display: block;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 40%, var(--violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 520px;
}
.trust__item {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
.trust__item strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.35rem;
}
.trust__item span {
  font-size: 0.9rem;
  color: #a9b7cf;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

@media (max-width: 520px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mock dashboard */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mock {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(15, 18, 26, 0.95) 0%, rgba(8, 10, 14, 0.98) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: mock-in 1s var(--ease-out) both;
}

@keyframes mock-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.mock__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}
.mock__chrome span:nth-child(1) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fb7185;
}
.mock__chrome span:nth-child(2) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
}
.mock__chrome span:nth-child(3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
}
.mock__url {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--muted-2);
  font-family: ui-monospace, monospace;
}

.mock__body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 220px;
}

.mock__sidebar {
  border-right: 1px solid var(--border);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.2);
}

.mock__nav {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
}
.mock__nav.active {
  background: linear-gradient(90deg, var(--accent-dim), var(--violet-dim));
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.mock__nav.short {
  width: 60%;
}

.mock__main {
  padding: 1rem;
}

.mock__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mock__kpi {
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.mock__label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock__num {
  font-weight: 800;
  font-size: 1rem;
}
.mock__num--ok {
  color: var(--success);
}

.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.mock__bar {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, 0.2));
  opacity: 0.85;
  animation: bar 2.4s var(--ease-out) infinite alternate;
}

.mock__bar:nth-child(odd) {
  animation-delay: -0.4s;
}

@keyframes bar {
  from {
    filter: brightness(0.85);
  }
  to {
    filter: brightness(1.1);
  }
}

.mock__table {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mock__line {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
}
.mock__line--dim {
  opacity: 0.6;
}
.mock__line.short {
  width: 55%;
}

.mock__glow {
  position: absolute;
  inset: auto 10% -20%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.2) 0%, transparent 65%);
  filter: blur(24px);
  pointer-events: none;
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
  max-width: 1280px;
  margin: 0 auto;
}

.section--dim {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section__head--left {
  text-align: left;
  margin-left: 0;
}

.section__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section__title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section__lead {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* Telegram block */
.tg-split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.tg-panel {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.tg-panel__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tg-features {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tg-features li {
  margin-bottom: 0.85rem;
}

.tg-features li:last-child {
  margin-bottom: 0;
}

.tg-features strong {
  color: var(--text);
  font-weight: 700;
}

.tg-pay {
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.1), rgba(15, 18, 26, 0.95));
  position: sticky;
  top: 1rem;
}

.tg-pay__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.tg-pay__lead {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}

.tg-pay__note {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.tg-pay .btn + .btn {
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .tg-split {
    grid-template-columns: 1fr;
  }

  .tg-pay {
    position: static;
  }
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

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

.bento__item {
  padding: 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), border-color 0.2s;
}

.bento__item:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.25);
}

.bento__item--wide {
  grid-column: span 2;
}

.bento__item--tall {
  grid-row: span 1;
  grid-column: span 1;
}

@media (max-width: 900px) {
  .bento__item--wide {
    grid-column: span 1;
  }
  .bento__item--tall {
    grid-row: span 1;
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .bento__item--wide,
  .bento__item--tall {
    grid-column: span 1;
  }
}

.bento__icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.bento__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.bento__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.bento__shine {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.08), transparent 45%);
  pointer-events: none;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.steps__item {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}

.steps__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin-bottom: 0.75rem;
}

.steps__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.steps__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

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

.compare-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.compare-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.compare-card--muted {
  background: rgba(251, 113, 133, 0.06);
  border-color: rgba(251, 113, 133, 0.2);
}

.compare-card--accent {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.1), rgba(167, 139, 250, 0.08));
  border-color: rgba(34, 211, 238, 0.25);
}

.compare-grid--triple {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  gap: 1rem;
  align-items: stretch;
}

.compare-card__sub {
  margin: -0.35rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted-2);
  line-height: 1.45;
}

.compare-card--middle {
  background: linear-gradient(160deg, rgba(91, 140, 255, 0.12), rgba(15, 18, 26, 0.92));
  border-color: rgba(91, 140, 255, 0.28);
}

.compare-card--good {
  background: rgba(52, 211, 153, 0.07);
  border-color: rgba(52, 211, 153, 0.25);
}

.compare-list--tight {
  padding-left: 1rem;
  list-style: disc;
}

.compare-list--tight li {
  margin-bottom: 0.65rem;
}

.compare-list--tight li strong {
  color: var(--text);
  font-weight: 700;
}

.compare-list--plain {
  list-style: disc;
  padding-left: 1rem;
  margin: 0;
}

.compare-list--plain li {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .compare-grid--triple {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* Calc */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
}

.calc {
  padding: 1.5rem 1.75rem;
}

.calc__label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.calc input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin-bottom: 1.25rem;
}

.calc__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calc__stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.calc__muted {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing--wide {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1200px;
  gap: 1rem;
}

@media (max-width: 1100px) {
  .pricing--wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing--wide {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .pricing--wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

.price-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), border-color 0.2s, box-shadow 0.25s;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.price-card--featured {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.12), rgba(15, 18, 26, 0.95));
  box-shadow: 0 24px 60px rgba(34, 211, 238, 0.12);
  position: relative;
}

.price-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--violet));
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.price-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.price-card__price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}

.price-card__price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.price-card__note {
  font-size: 0.85rem;
  color: var(--muted-2);
  margin: 0 0 1.25rem;
}

.price-card__list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
  font-size: 0.85rem;
}

.price-card--compact {
  padding-top: 2.25rem;
  text-align: center;
}

.price-card--compact .price-card__badge {
  top: 0.75rem;
  right: 0.75rem;
}

.price-card__volume {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

.price-card__volume-label {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin: 0.15rem 0 1rem;
}

.price-card--compact .price-card__price {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.price-card__per {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.pricing-help {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pricing-help__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.pricing-help__text {
  flex: 1;
  min-width: 200px;
}

.pricing-help__title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.pricing-help__sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing-help .btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .pricing-help {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-help .btn {
    width: 100%;
  }
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  padding: 0;
  overflow: hidden;
}

.faq__item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 400;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* CTA */
.cta {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.cta__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  border-radius: 24px;
}

.cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.cta__lead {
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 46ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Legal */
.legal {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.legal-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.legal-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.legal-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.legal-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-list li {
  margin-bottom: 0.45rem;
}

.legal-list li strong {
  color: var(--text);
  font-weight: 700;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1rem, 4vw, 2rem) 3rem;
  position: relative;
  z-index: 1;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}

.footer__muted {
  font-weight: 500;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.footer__copy {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* App / auth */
body.is-app .top {
  position: relative;
}

.top--app .top__inner {
  max-width: 1200px;
}

.auth-wrap {
  min-height: calc(100vh - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.75rem;
}

.auth-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.auth-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.field {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.field input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.field input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 4rem;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-pill {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
}

.stat-pill .num {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-pill .lbl {
  color: var(--muted);
  font-size: 0.85rem;
}

.panel {
  padding: 1.35rem 1.5rem;
}

.panel h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

table.data th {
  color: var(--muted-2);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.err {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.cab-email {
  color: var(--muted);
  margin: -0.75rem 0 1.25rem;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.activate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.field-inline {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

.field-inline:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
}

.admin-gen {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 1rem;
  align-items: end;
  margin-top: 0.75rem;
}

@media (max-width: 700px) {
  .admin-gen {
    grid-template-columns: 1fr;
  }
}

.admin-gen .field select,
.admin-gen .field input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
}

.admin-gen-output {
  margin-top: 1rem;
}

.key-block {
  display: block;
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.btn--xs {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

/* --- Services (landing) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

/* --- Cabinet (app shell) --- */
.cab-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.cab-sidebar {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-right: 1px solid var(--border);
  align-self: stretch;
}

.cab-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text) !important;
}

.cab-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.5rem;
}

.cab-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background 0.15s var(--ease-out), color 0.15s;
}

.cab-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.cab-nav a.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.cab-sidebar__meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.cab-balance-pill {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cab-mini {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
}

.cab-mini code {
  font-size: 0.78rem;
}

.cab-logout {
  color: var(--muted-2) !important;
  font-size: 0.85rem;
}

.cab-main {
  padding: 1rem 1.25rem 2.5rem;
  max-width: 1080px;
  width: 100%;
}

.cab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.cab-top__label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.cab-top__email {
  margin: 0.15rem 0 0;
  font-weight: 600;
  font-size: 1rem;
}

.cab-panels .page-title {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.cab-subtitle {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.cab-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.cab-balance-huge {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.cab-balance-huge__unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.cab-ref-big code {
  font-size: 1.1rem;
  padding: 0.5rem 0.75rem;
}

@media (max-width: 900px) {
  .cab-layout {
    grid-template-columns: 1fr;
  }

  .cab-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .cab-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0;
  }

  .cab-sidebar__meta {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
}
