:root {
  --bg: #050308;
  --bg-2: #0b0812;
  --panel: rgba(255, 255, 255, .045);
  --panel-strong: rgba(255, 255, 255, .075);
  --border: rgba(255, 255, 255, .08);
  --text: #f5f7fb;
  --muted: #b3b0c9;
  --primary: #a855f7;
  --primary-2: #7c3aed;
  --primary-3: #d8b4fe;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --radius: 28px;
  --radius-lg: 36px;
  --container: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(168, 85, 247, .17), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(124, 58, 237, .13), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(216, 180, 254, .08), transparent 30%),
    linear-gradient(180deg, #040309 0%, #06040a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
  opacity: .16;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, .18) 100%);
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(168, 85, 247, .35);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 92px 0;
  position: relative;
  z-index: 2;
}

.section.compact {
  padding: 72px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.section-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(18px);
  color: var(--primary-3);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: .95;
  letter-spacing: -.04em;
}

.section-subtitle {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.75;
  font-size: 1.02rem;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.soft-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), opacity .35s var(--ease);
  font-weight: 700;
  letter-spacing: -.01em;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 36px rgba(168, 85, 247, .24);
}

.btn-primary:hover {
  box-shadow: 0 20px 44px rgba(168, 85, 247, .33);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
}

.btn-wide {
  width: 100%;
}

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 1300px);
  z-index: 20;
  background: rgba(10, 8, 16, .62);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .28);
  transition: all .35s var(--ease);
}

.nav.scrolled {
  top: 10px;
  background: rgba(8, 6, 12, .8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
  padding: 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.brand-name {
  font-size: 1.12rem;
  background: linear-gradient(135deg, #fff, #d8b4fe 50%, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.noscript-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at top left, rgba(155, 92, 255, .18), transparent 35%), #06040a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.hero,
.hero-visual,
.visual-frame {
  position: relative;
}

.noscript-box {
  width: min(500px, calc(100% - 40px));
  padding: 50px;
  border-radius: 32px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px);
  text-align: center;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .45), 0 0 120px rgba(155, 92, 255, .12);
}

.noscript-box h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.noscript-box p {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.noscript-box span {
  color: #9ca3af;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  transition: all .28s var(--ease);
  font-weight: 600;
  font-size: .94rem;
  white-space: nowrap;
}

.nav-link.active,
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

/* With the logged-in nav carrying 8 links (Кабинет/Сообщество/Чат added), collapse the
   inline links into the hamburger BEFORE they overflow the fixed-width bar (was 760px —
   too late, the bar tore between ~760 and ~1180px). */
@media (max-width: 1080px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }
  .mobile-toggle {
    display: grid;
  }
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .07);
}

.mobile-toggle,
.yt-wrapper.playing .yt-cover {
  display: none;
}

.hero {
  padding: 140px 0 54px;
  min-height: 90vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  padding-right: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, .22);
  background: rgba(168, 85, 247, .09);
  color: #e9d5ff;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card p,
.hero-text,
.preview-label {
  color: var(--muted);
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: .94;
  letter-spacing: -.06em;
  max-width: 10ch;
}

.hero-title span {
  background: linear-gradient(135deg, #fff 0, #e9d5ff 38%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text {
  margin-top: 20px;
  max-width: 640px;
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.meta-pill {
  padding: 14px 16px;
  min-width: 160px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--border);
}

.meta-pill strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.meta-pill span,
.metric span {
  color: var(--muted);
  font-size: .92rem;
}

.hero-visual {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-frame {
  width: min(100%, 520px);
  transform: perspective(1200px) rotateY(-8deg) rotateX(5deg);
  transition: transform .55s var(--ease);
}

.visual-frame:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px);
}

.visual-orbit {
  position: absolute;
  inset: -28px;
  border-radius: 42px;
  background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, .18), transparent 30%), radial-gradient(circle at 70% 80%, rgba(124, 58, 237, .16), transparent 28%);
  filter: blur(20px);
  z-index: 0;
}

.preview {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 16px;
}

.preview img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 1.12 / 1;
  object-fit: cover;
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 2px 6px 0;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.preview-label {
  font-size: .9rem;
}

.stack {
  display: grid;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .028));
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, .28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, .22), rgba(124, 58, 237, .1));
  border: 1px solid rgba(168, 85, 247, .18);
  flex: 0 0 auto;
}

.card h3 {
  font-size: 1.18rem;
  margin-top: 2px;
}

.card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: .98rem;
}

.card-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  color: #dbe4ef;
  font-size: .84rem;
}

.feature-card.big {
  grid-column: span 2;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.metric strong {
  font-size: 2rem;
  letter-spacing: -.04em;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.panel {
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  border: 1px solid var(--border);
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.7;
}

.list-item i {
  color: var(--primary-3);
  margin-top: 5px;
}

.cta {
  text-align: center;
  padding: 34px;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.cta p {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.8;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .035);
}

.faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.faq-header span {
  font-weight: 700;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}

.faq-content > div {
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.75;
}

.faq-item.active .faq-content {
  max-height: 220px;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-arrow {
  transition: transform .25s var(--ease);
}

.footer {
  position: relative;
  padding: 52px 0 36px;
  z-index: 2;
}

.footer-inner {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-col {
  display: grid;
  gap: 10px;
}

.footer-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.footer-text {
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
  transition: all .25s var(--ease);
}

.footer-links a:hover {
  color: #fff;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .06);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all .3s var(--ease);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mouse-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, .14), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 1;
  mix-blend-mode: screen;
}

.snowflake {
  position: fixed;
  top: -20px;
  pointer-events: none;
  z-index: 18;
  color: #fff;
  opacity: .8;
  text-shadow: 0 0 12px rgba(255, 255, 255, .35);
  animation: snowfall linear forwards;
}

@keyframes snowfall {
  from {
    transform: translateY(0) rotate(0deg);
  }

  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 84px;
  left: 12px;
  right: 12px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(9, 7, 14, .94);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .nav-link,
.mobile-menu .btn {
  width: 100%;
  justify-content: flex-start;
}

.yt-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
}

.yt-wrapper img,
.yt-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.yt-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

.yt-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  background: rgba(0, 0, 0, .35);
}

.yt-wrapper.playing .yt-cover {
  display: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.03;
  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");
  background-size: 256px 256px;
}

#glyph-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.lang-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: #fff;
  cursor: pointer;
  transition: all .25s var(--ease);
  font-weight: 700;
  backdrop-filter: blur(18px);
}

.lang-nav-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .07);
}

.lang-nav-btn span {
  font-size: .85rem;
  letter-spacing: .04em;
}

.lang-arrow {
  font-size: .72rem;
  opacity: .75;
  transition: transform .25s var(--ease);
}

.lang-nav.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(9, 7, 14, .96);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
  display: none;
  z-index: 50;
}

.lang-nav.open .lang-dropdown {
  display: grid;
}

.lang-item {
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  transition: all .25s var(--ease);
}

.lang-item:hover,
.lang-item.active {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.lang-float {
  /* Was position:fixed at a magic `left: calc(50% + 602px)` offset — that didn't track
     the header's real right edge, so on narrower viewports the RU selector drifted right
     out of the header. Now it flows inside .nav-actions (order:2 keeps it right of the
     snow toggle) and sits at the header's right edge on every width. */
  position: relative;
  display: flex;
  align-items: center;
  z-index: 21;
  order: 2;
}

.lang-float-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .26),
    0 0 26px rgba(168, 85, 247, .10),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.lang-float-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  border-color: rgba(255, 255, 255, .14);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .30),
    0 0 30px rgba(124, 58, 237, .14),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

.lang-float-text {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.lang-float-arrow {
  font-size: .72rem;
  opacity: .72;
  transition: transform .25s var(--ease);
}

.lang-float.open .lang-float-arrow {
  transform: rotate(180deg);
}

.lang-float-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(10, 8, 16, .78);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .36),
    0 0 28px rgba(124, 58, 237, .10);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: none;
  gap: 4px;
}

.lang-float.open .lang-float-menu {
  display: grid;
}

.lang-float-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.lang-float-item:hover,
.lang-float-item.active {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  transform: translateX(1px);
}

.flag {
  width: 22px;
  height: 16px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 0 12px rgba(255, 255, 255, .08);
}

.flag-ru {
  background: linear-gradient(to bottom, #fff 0 33.333%, #1d4ed8 33.333% 66.666%, #dc2626 66.666% 100%);
}

.flag-us {
  background: repeating-linear-gradient(to bottom, #b91c1c 0 2px, #fff 2px 4px);
}

.flag-us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 43%;
  height: 54%;
  background: #1d4ed8;
}

.flag-us::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 8px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .95) 0 1px, transparent 1.25px);
  background-size: 4px 4px;
  opacity: .92;
}

@media (max-width: 980px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 128px;
    min-height: auto;
  }

  .hero-copy {
    padding-right: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-text {
    max-width: 680px;
  }

  .hero-visual {
    min-height: auto;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card.big {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .mobile-toggle {
    display: grid;
  }

  .hero-title {
    max-width: none;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .feature-card.big {
    grid-column: span 1;
    min-height: auto;
  }

  .card {
    padding: 22px;
  }

  .section {
    padding: 74px 0;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

.yt-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
}

.yt-wrapper img,
.yt-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.yt-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

.yt-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  background: rgba(0, 0, 0, .35);
}

.yt-wrapper.playing .yt-cover {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .mouse-glow {
    display: none;
  }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.03;
  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");
  background-size: 256px 256px;
}

#glyph-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* headings -> Space Grotesk (space/premium), body -> Inter */
h1,h2,h3,h4,h5,.hero-title,.section-title,.brand-name,.footer-title,.auth-h,.section-t{font-family:'Space Grotesk','Inter',sans-serif;}
