:root {
  --navy: #0b132b;
  --page: #f2f1f4;
  --white: #ffffff;
  --indigo: #6662ff;
  --indigo-hover: #5c58e5;
  --indigo-deep: #4f46e5;
  --lilac: #c395fa;
  --ink: #00050f;
  --body: #101828;
  --muted: #525c69;
  --line: #e1e4ea;
  --badge-bg: #ede9fe;
  --tint: #f6f5ff;
  --shadow: 0 10px 25px rgba(10, 10, 51, 0.08);
  --radius-btn: 8px;
  --radius-card: 12px;
  --wrap: 1120px;
  --header-offset: 128px;
  --font: "Figtree", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--page);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--indigo-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
a {
  font-family: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  z-index: 40;
}

.skip:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
}

.announce {
  background: var(--navy);
  color: var(--white);
  padding-inline: 20px;
}

.announce__inner {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  padding: 12px 0;
  text-align: center;
}

.announce p {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.announce__cta {
  flex: none;
  color: var(--white);
  background: var(--indigo);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.announce__cta:hover {
  background: var(--indigo-hover);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 56px;
  width: auto;
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--body);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--indigo);
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.lang__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 2px;
  cursor: pointer;
}

.lang__btn.is-active,
.lang__btn[aria-pressed="true"] {
  color: var(--indigo);
}

.lang-note {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  margin: 0;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.nav__toggle > span:first-child,
.nav__toggle > span:first-child::before,
.nav__toggle > span:first-child::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav__toggle > span:first-child::before,
.nav__toggle > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle > span:first-child::before {
  top: -6px;
}

.nav__toggle > span:first-child::after {
  top: 6px;
}

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

#discord,
#channels,
#follow {
  scroll-margin-top: 140px;
}

.hero {
  padding: 56px 0 32px;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--indigo-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  max-width: 14ch;
}

.lede {
  margin-top: 18px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn--primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--indigo-hover);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn--secondary:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.hero__art {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.hero__art img {
  width: 100%;
  height: auto;
}

.section {
  padding: 88px 0;
}

#discord.section {
  padding-top: 12px;
}

.section--white {
  background: var(--white);
}

.section--page {
  background: var(--page);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 32px;
}

.section__head h2,
.center-copy h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
}

.section__head p,
.center-copy p {
  margin-top: 12px;
  color: var(--muted);
}

.rule {
  width: 72px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--lilac);
  margin: 0 0 28px;
}

.discord {
  display: grid;
  gap: 28px;
  padding: 32px;
  background: var(--tint);
  border: 1px solid #ddd9fb;
  border-top: 4px solid var(--indigo);
  border-radius: var(--radius-card);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--indigo-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.discord h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 36px);
}

.discord p {
  margin-top: 12px;
  max-width: 38rem;
  color: var(--muted);
}

.discord .actions {
  margin-top: 24px;
}

.discord__aside {
  display: grid;
  gap: 12px;
  align-content: end;
}

.discord__note {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--body);
  font-size: 15px;
}

.discord__note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

.card__link {
  color: var(--indigo);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.card__link:hover {
  color: var(--indigo-hover);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3f2f6;
  color: var(--muted);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.icon--discord {
  background: var(--badge-bg);
  color: var(--indigo);
}

.icon--whatsapp {
  background: #e8f6ef;
  color: #1f8a5b;
}

.icon--telegram {
  background: #e8f4fb;
  color: #2a7eae;
}

.icon--facebook {
  background: #eaf1fb;
  color: #3b6fbe;
}

.icon--youtube {
  background: #fdecec;
  color: #c24141;
}

.icon--instagram {
  background: #f7eef8;
  color: #9a4d9a;
}

.icon--tiktok {
  background: #f3f2f6;
  color: var(--ink);
}

.icon--linkedin {
  background: #eaf1fb;
  color: #3b6fbe;
}

.icon--x {
  background: #f3f2f6;
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.step span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 700;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

.close {
  text-align: center;
  padding: 28px 8px 8px;
}

.center-copy {
  max-width: 40rem;
  margin-inline: auto;
}

.center-copy .actions {
  justify-content: center;
}

.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.footer__grid {
  display: grid;
  gap: 28px;
}

.footer img {
  height: 56px;
  width: auto;
}

.footer p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 28rem;
  font-size: 15px;
}

.footer h2 {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a {
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: var(--indigo);
}

.legal {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 64px));
  }

  .cards--talk {
    grid-template-columns: 1fr 1fr;
  }

  .cards--follow {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 80px 0 40px;
  }

  .hero__grid,
  .discord {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .section {
    padding: 104px 0;
  }
}

@media (max-width: 860px) {
  .nav__toggle {
    display: grid;
    place-items: center;
  }

  .nav__panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav__panel.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__links a,
  .lang {
    min-height: 48px;
    align-items: center;
  }

  .nav__links a {
    display: flex;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .lang-note {
    position: static;
    width: auto;
  }

  .announce__inner {
    flex-direction: column;
    padding: 14px 0;
  }

  .announce p {
    width: 100%;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
