:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;

  --bg-deep: #0c0d0f;
  --bg-page: #111214;
  --bg-surface: #1a1b1e;
  --bg-surface-alt: #202225;
  --bg-raised: #2b2d31;
  --bg-input: #1e1f22;
  --border-subtle: #2e3035;
  --border-strong: #3f4147;

  --header-primary: #f2f3f5;
  --text-normal: #dbdee1;
  --text-muted: #949ba4;
  --text-faint: #6d6f78;

  --brand: #5865f2;
  --brand-hover: #4752c4;
  --brand-soft: #5865f224;
  --brand-glow: #5865f255;
  --success: #23a55a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  background: var(--bg-page);
  color: var(--text-normal);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 18, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--header-primary); }
.brand__logo { border-radius: 8px; }
.brand__name { font-size: 1.05rem; letter-spacing: 0.01em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--header-primary); }
.site-nav__cta {
  color: var(--header-primary) !important;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.site-nav__cta:hover { background: var(--bg-hover, #35373c); border-color: var(--brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px; height: 36px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bar { width: 16px; height: 2px; background: var(--text-normal); margin-inline: auto; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--header-primary); border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* Hero */
.hero { padding-block: 4.5rem 5rem; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--header-primary);
  letter-spacing: -0.01em;
}
.hero__lede {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }
.hero__note { margin-top: 1rem; font-size: 0.85rem; color: var(--text-faint); }

/* App mockup */
.app-mock {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.app-mock::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(closest-side, var(--brand-glow), transparent 70%);
  z-index: -1;
  filter: blur(10px);
}
.app-mock__top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--r { background: #f23f43; }
.dot--y { background: #f0b132; }
.dot--g { background: #23a55a; }
.app-mock__url { margin-left: 0.6rem; font-size: 0.72rem; color: var(--text-faint); }

.app-mock__body {
  display: grid;
  grid-template-columns: 44px 108px minmax(0, 1fr) 118px;
  min-height: 320px;
}
.app-mock__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  background: var(--bg-deep);
  border-right: 1px solid var(--border-subtle);
}
.rail-item {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-raised);
}
.rail-item--active { background: var(--brand); border-radius: 30%; }
.rail-item--add { display: flex; align-items: center; justify-content: center; color: var(--success); font-size: 0.9rem; font-weight: 700; }

.app-mock__channels { padding: 12px 10px; background: var(--bg-surface); border-right: 1px solid var(--border-subtle); }
.mock-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 6px; }
.mock-label--voice { margin-top: 12px; }
.channel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 6px;
  margin-bottom: 3px;
}
.channel--active { background: var(--bg-raised); color: var(--header-primary); }
.channel--voice.channel--active { color: var(--success); }

.app-mock__chat { padding: 14px 12px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #8891ff); flex-shrink: 0; }
.avatar--sm { width: 20px; height: 20px; }
.avatar--lg { width: 56px; height: 56px; }
.msg__body { display: flex; flex-direction: column; gap: 5px; padding-top: 2px; flex: 1; }
.msg__line { height: 7px; border-radius: 4px; background: var(--bg-raised); width: 78%; }
.msg__line--name { width: 32%; background: var(--border-strong); }
.msg__line--short { width: 45%; }

.app-mock__voice { padding: 12px 10px; background: var(--bg-surface-alt); display: flex; flex-direction: column; gap: 10px; }
.voice-person { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.voice-name { width: 34px; height: 6px; border-radius: 4px; background: var(--bg-raised); }
.voice-ring {
  position: absolute;
  inset: -4px;
  border-radius: 30%;
  border: 2px solid var(--success);
  opacity: 0.7;
}
.voice-panel__person--speaking .voice-ring { animation: pulse-ring 1.6s ease-out infinite; }
.voice-person .avatar { transition: background 0.5s ease, box-shadow 0.5s ease; }
.voice-person .avatar.is-speaking {
  background: linear-gradient(135deg, var(--success), #34d399);
  box-shadow: 0 0 0 3px var(--success), 0 0 12px rgba(35, 165, 90, 0.55);
}
.voice-controls { margin-top: auto; display: flex; justify-content: center; gap: 8px; }
.voice-control {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--text-muted);
}
.voice-control--signal { color: var(--success); }

@keyframes pulse-ring {
  0% { transform: scale(0.92); opacity: 0.75; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Servers in Russia */
.locale { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.locale__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.locale__copy .section-lede { margin-top: 1rem; max-width: 44ch; }
.locale__visual { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.signal-diagram { display: flex; align-items: center; width: 100%; max-width: 400px; }
.signal-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--brand);
}
.signal-node__badge {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--brand);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 999px;
}
.signal-line {
  position: relative;
  flex: 1;
  height: 2px;
  margin-inline: 14px;
  background: var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
}
.signal-line span {
  position: absolute;
  top: 50%; left: -10px;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand-glow);
  opacity: 0;
  animation: signal-travel 2.4s linear infinite;
}
.signal-line span:nth-child(1) { animation-delay: 0s; }
.signal-line span:nth-child(2) { animation-delay: 0.8s; }
.signal-line span:nth-child(3) { animation-delay: 1.6s; }
@keyframes signal-travel {
  0% { left: -10px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.signal-diagram__caption { font-size: 0.8rem; color: var(--text-faint); }

/* Sections */
section { padding-block: 5.5rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--header-primary); letter-spacing: -0.01em; }
.section-lede { margin-top: 0.8rem; color: var(--text-muted); font-size: 1.05rem; max-width: 56ch; }

/* Features */
.feature-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.02rem; color: var(--header-primary); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Voice deep dive */
.voice-deep { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.voice-deep__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.voice-deep__copy p { color: var(--text-muted); margin-top: 1rem; max-width: 50ch; }
.check-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--text-normal); font-size: 0.95rem; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.35rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 4px var(--brand);
}

.voice-panel {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.voice-panel__person { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.voice-ring--lg { border-width: 3px; inset: -8px; }
.waveform { display: flex; align-items: flex-end; gap: 4px; height: 32px; }
.waveform span { width: 4px; border-radius: 3px; background: var(--brand); animation: wave 1.1s ease-in-out infinite; }
.waveform span:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 55%; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 85%; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 40%; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 95%; animation-delay: 0.6s; }
.waveform span:nth-child(8) { height: 60%; animation-delay: 0.7s; }
.waveform span:nth-child(9) { height: 35%; animation-delay: 0.8s; }
.waveform span:nth-child(10) { height: 75%; animation-delay: 0.9s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; }
}
.voice-panel__row { display: flex; gap: 0.9rem; }

/* Download */
.download__inner { text-align: center; }
.download__inner .section-lede { margin-inline: auto; }
.download__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

/* FAQ */
.faq-list { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.2rem; align-items: start; }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--header-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--text-faint);
  font-size: 1.2rem;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 0.8rem; color: var(--text-muted); font-size: 0.94rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-subtle); padding-block: 2.5rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.site-footer__nav { display: flex; gap: 1.4rem; font-size: 0.88rem; color: var(--text-muted); margin-left: auto; }
.site-footer__nav a:hover { color: var(--header-primary); }
.site-footer__legal { width: 100%; font-size: 0.8rem; color: var(--text-faint); }
.site-footer__legal a:hover { color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero__inner, .voice-deep__inner, .locale__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.5rem 1.5rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--border-subtle); }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav__cta { margin-top: 0.75rem; text-align: center; }
  .nav-toggle { display: flex; }
  .app-mock__body { grid-template-columns: 40px 0px minmax(0, 1fr) 0px; }
  .app-mock__channels, .app-mock__voice { display: none; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .hero { padding-block: 3rem 3.5rem; }
  section { padding-block: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .voice-ring, .waveform span, .signal-line span, .voice-person .avatar, .btn { animation: none !important; transition: none !important; }
}
