/* StreamingFR — voice & community servers for streamers.
   Визуальный язык: Vetka (crypto-rates). Тёмная/светлая тема на CSS-переменных,
   плотная iOS-типографика, крупные мягкие радиусы, пружинные кривые. 0 КБ шрифтов. */

:root[data-theme='light'] {
  --bg: #ffffff;
  --bg-elev: #f7f7f9;
  --card: #f1f1f4;
  --row-press: rgba(0, 0, 0, 0.04);
  --text: #0b0b0c;
  --muted: #8a8a90;
  --line: rgba(0, 0, 0, 0.07);
  --accent: #2f8fed;
  --accent-soft: rgba(47, 143, 237, 0.12);
  --thumb: #ffffff;
  --thumb-shadow: 0 2px 7px rgba(0, 0, 0, 0.13), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  --up: #12b76a;
  --down: #f0394b;
  --glow: rgba(47, 143, 237, 0.13);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.05);
}

:root[data-theme='dark'] {
  --bg: #0f1012;
  --bg-elev: #141518;
  --card: #1b1c1f;
  --row-press: rgba(255, 255, 255, 0.05);
  --text: #f4f4f6;
  --muted: #86868d;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #4aa3f2;
  --accent-soft: rgba(74, 163, 242, 0.14);
  --thumb: #3a3b40;
  --thumb-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  --up: #2fd07f;
  --down: #ff5d6c;
  --glow: rgba(74, 163, 242, 0.16);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui,
    'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.5;
  min-height: 100%;
}

.tnum {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* фоновое свечение под hero */
.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 55% at 50% -8%, var(--glow), transparent 70%),
    radial-gradient(50% 40% at 88% 8%, var(--accent-soft), transparent 75%);
  opacity: 0.9;
  transition: background 0.3s ease;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─────────── topbar ─────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: default;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  display: block;
  background: linear-gradient(180deg, #2d76ff, #155ef0);
  box-shadow: 0 4px 14px rgba(31, 107, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand b { font-weight: 700; }
.brand span { color: var(--muted); font-weight: 600; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { color: var(--text); background: var(--row-press); }

.iconbtn {
  height: 36px;
  min-width: 36px;
  padding: 0 9px;
  border: none;
  border-radius: 11px;
  background: var(--row-press);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, background 0.2s ease;
}
.iconbtn:hover { background: color-mix(in srgb, var(--row-press) 60%, var(--line)); }
.iconbtn:active { transform: scale(0.94); }
.iconbtn svg { width: 17px; height: 17px; }
.lang-btn { color: var(--accent); }

.btn {
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 44px;
  text-decoration: none;
  transition: transform 0.14s cubic-bezier(0.32, 1.3, 0.5, 1), filter 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.965); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px var(--glow);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost {
  background: var(--card);
  color: var(--text);
}
.btn--ghost:hover { background: color-mix(in srgb, var(--card) 80%, var(--line)); }
.btn--sm { height: 38px; font-size: 14px; padding: 0 14px; border-radius: 11px; }
.nav .btn { height: 38px; font-size: 14px; padding: 0 15px; }

/* ─────────── hero ─────────── */
.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 46px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(105deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #8b7bff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 30em;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__meta {
  display: flex;
  gap: 26px;
  margin-top: 34px;
}
.hero__meta > div b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__meta > div span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ─────────── channel tree (TeamSpeak «ветки») ─────────── */
.server {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: background 0.3s ease;
}
.server__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.server__ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #7b61ff));
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.server__ico svg { width: 18px; height: 18px; }
.server__ttl b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.server__ttl span { font-size: 12px; color: var(--muted); }
.server__ping {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.server__ping b { display: block; color: var(--up); font-size: 13.5px; font-weight: 700; }

.tree { padding: 8px 8px 12px; }
.chan {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: default;
  transition: background 0.15s ease;
}
.chan:hover { background: var(--row-press); }
.chan svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.chan .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.member {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 30px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.avatar {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.avatar.speaking {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3.6px var(--up);
  animation: talk 1.1s ease-in-out infinite;
}
@keyframes talk {
  0%, 100% { box-shadow: 0 0 0 2px var(--card), 0 0 0 3px color-mix(in srgb, var(--up) 55%, transparent); }
  50% { box-shadow: 0 0 0 2px var(--card), 0 0 0 4.5px var(--up); }
}
.member .nm { color: var(--text); font-weight: 500; }
.member .mic {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.member.muted .mic { color: var(--down); }

/* ─────────── section shell ─────────── */
section { position: relative; z-index: 1; }
.sec { padding: 56px 0; }
.sec__head { max-width: 40em; margin-bottom: 34px; }
.sec__tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.sec__head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.sec__head p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ─────────── features ─────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feat {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  transition: background 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.feat:hover { transform: translateY(-3px); }
.feat__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.feat__ico svg { width: 21px; height: 21px; }
.feat h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.feat p { font-size: 14px; color: var(--muted); letter-spacing: -0.01em; }

/* ─────────── stats band ─────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: var(--card);
  border-radius: 22px;
  padding: 30px 20px;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat span { font-size: 13px; color: var(--muted); }
.stat + .stat { position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: var(--line);
}

/* ─────────── pricing ─────────── */
.seg {
  position: relative;
  display: inline-flex;
  background: var(--card);
  border-radius: 13px;
  padding: 3px;
  margin: 0 auto 34px;
}
.seg__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 10px;
  background: var(--thumb);
  box-shadow: var(--thumb-shadow);
  transition: transform 0.34s cubic-bezier(0.32, 1.3, 0.5, 1), width 0.34s cubic-bezier(0.32, 1.3, 0.5, 1);
}
.seg__btn {
  position: relative;
  z-index: 1;
  border: none;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 18px;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.seg__btn[data-on='1'] { color: var(--text); }
.seg__save {
  font-size: 11px;
  font-weight: 700;
  color: var(--up);
  margin-left: 5px;
}
.seg-wrap { display: flex; justify-content: center; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border-radius: 22px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
  border: 1px solid transparent;
}
.plan--best {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 10px 40px var(--glow);
}
.plan__badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.plan h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.plan__desc { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.plan__price {
  margin: 18px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan__price b { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; }
.plan__price s { font-size: 15px; color: var(--muted); text-decoration: none; }
.plan__per { font-size: 14px; color: var(--muted); }
.plan__feats { list-style: none; margin: 20px 0 24px; display: grid; gap: 11px; }
.plan__feats li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.plan__feats svg { width: 17px; height: 17px; color: var(--up); flex-shrink: 0; margin-top: 1px; }
.plan .btn { width: 100%; margin-top: auto; }

/* ─────────── CTA ─────────── */
.cta {
  text-align: center;
  background: var(--card);
  border-radius: 26px;
  padding: 54px 24px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, var(--glow), transparent 70%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  position: relative;
}
.cta p { color: var(--muted); margin: 12px auto 26px; max-width: 34em; position: relative; }
.cta .hero__cta { justify-content: center; position: relative; }

/* ─────────── footer ─────────── */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 34px 0 46px;
}
.foot__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}
.foot__links a:hover { color: var(--text); }
.foot__copy { font-size: 13px; color: var(--muted); }

/* ─────────── reveal ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.in {
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* skeleton shimmer для «живого» блока пинга при загрузке */
.skel {
  background: linear-gradient(100deg, transparent 20%, var(--row-press) 50%, transparent 80%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: 6px;
  color: transparent !important;
}
@keyframes shimmer { to { background-position: -220% 0; } }

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

/* ─────────── responsive ─────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 20px; }
  .hero__meta { gap: 20px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .plan--best { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .stat:nth-child(-n+2) { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .stat + .stat::before { display: none; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .foot__in { flex-direction: column; align-items: flex-start; }
}
