:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111827;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #111827;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 3rem, 80rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(55 65 81 / 0.2);
  background: rgb(17 24 39 / 0.8);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  font-size: 0.875rem;
}

.lang-button {
  border: 0;
  border-radius: 0.5rem;
  background: #1f2937;
  color: #d1d5db;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: background 0.2s ease;
}

.lang-button:hover {
  background: #374151;
}

.section-glow {
  overflow: hidden;
  position: relative;
}

.hero {
  background: linear-gradient(180deg, #111827, #1f2937);
  padding: 4rem 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  text-align: center;
}

.hero h1,
.section-heading h2,
.cta h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.hero-subtitle {
  max-width: 42rem;
  margin: 1.5rem auto 2.5rem;
  color: #d1d5db;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.primary-button,
.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.primary-button {
  display: flex;
  width: max-content;
  margin-inline: auto;
  background: #ffffff;
  color: #111827;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.primary-button:hover,
.support-button:hover,
.telegram-card:hover {
  transform: scale(1.05);
}

.live-card {
  display: grid;
  grid-template-columns: auto auto 1px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  width: max-content;
  margin: 3rem auto 0;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  background: rgb(31 41 55 / 0.5);
  color: #9ca3af;
  padding: 0.875rem 2.5rem;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.live-dot {
  display: block;
  grid-row: 1 / 3;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #8b5cf6;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-label,
.live-users {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.live-label {
  grid-column: 2;
  grid-row: 1 / 3;
}

.live-users {
  grid-column: 4;
  line-height: 1;
}

.live-number {
  grid-column: 4;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.divider {
  grid-column: 3;
  grid-row: 1 / 3;
  width: 1px;
  height: 1.75rem;
  background: #4b5563;
}

.orb {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: rgb(167 139 250 / 0.1);
  filter: blur(64px);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.orb-one {
  left: 25%;
  top: 8rem;
}

.orb-two {
  right: 25%;
  bottom: 8rem;
  animation-delay: 2s;
}

.orb-three {
  left: 25%;
  top: 4rem;
  width: 20rem;
  height: 20rem;
  opacity: 0.5;
}

.orb-four {
  right: 25%;
  bottom: 4rem;
  width: 20rem;
  height: 20rem;
  opacity: 0.5;
  animation-delay: 1s;
}

.orb-five {
  left: 16.666667%;
  top: 50%;
  width: 15rem;
  height: 15rem;
  opacity: 0.35;
  animation-delay: 3s;
}

.orb-six {
  right: 16.666667%;
  bottom: 33.333333%;
  width: 15rem;
  height: 15rem;
  opacity: 0.35;
  animation-delay: 2s;
}

.services,
.pricing,
.cta {
  background: #111827;
  padding: 4rem 0;
}

.services {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.services .container {
  max-width: 72rem;
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 2rem;
}

.section-heading h2,
.cta h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
}

.section-heading p,
.cta p {
  margin: 1rem 0 0;
  color: #9ca3af;
  font-size: 1.125rem;
}

.section-heading.compact p,
.service-card p,
.support-card p {
  color: #d1d5db;
}

.service-grid,
.price-grid,
.cta-grid {
  display: grid;
  gap: 1rem;
}

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

.service-card {
  border: 1px solid #374151;
  border-radius: 0.75rem;
  background: #1f2937;
  padding: 1.5rem;
  transition: border 0.2s ease;
}

.service-card:hover {
  border-color: #8b5cf6;
}

.service-card .icon {
  display: inline-flex;
  vertical-align: middle;
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.service-card h3 {
  display: inline-block;
  margin: 0;
  font-size: 1.125rem;
  vertical-align: middle;
}

.service-card p {
  margin: 0.75rem 0 1rem;
  font-size: 0.875rem;
}

.service-card a {
  color: #a78bfa;
  font-size: 0.875rem;
  font-weight: 500;
}

.service-card a:hover,
.footer a:hover {
  color: #c4b5fd;
}

.price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  border: 1px solid #374151;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgb(31 41 55 / 0.4), rgb(17 24 39 / 0.4));
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(4px);
  transition:
    border 0.3s ease,
    box-shadow 0.3s ease;
}

.price-card:hover {
  border-color: #4b5563;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2);
}

.price-card.featured {
  border: 2px solid #8b5cf6;
  overflow: visible;
}

.price-card h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.price {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.price.small {
  font-size: 2.6rem;
}

.price.violet,
.note {
  color: #a78bfa;
}

.note {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.875rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.old-price {
  color: #6b7280;
  font-size: 1.125rem;
  text-decoration: line-through;
}

.discount {
  align-self: center;
  border-radius: 999px;
  background: rgb(124 58 237 / 0.2);
  color: #a78bfa;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
}

.tokens {
  margin-top: auto;
  border: 1px solid rgb(75 85 99 / 0.5);
  border-radius: 0.75rem;
  background: rgb(55 65 81 / 0.3);
  padding: 1rem;
}

.tokens.highlight {
  border-color: rgb(139 92 246 / 0.3);
  background: rgb(139 92 246 / 0.1);
}

.tokens strong {
  display: block;
  font-size: 1.5rem;
}

.tokens span,
.pricing-footnote,
.legal {
  color: #9ca3af;
  font-size: 0.75rem;
}

.pricing-footnote {
  max-width: 48rem;
  margin: 3rem auto 0;
  text-align: center;
  line-height: 1.625;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgb(139 92 246 / 0.05);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cta {
  position: relative;
  overflow: hidden;
}

.cta::before {
  top: 5rem;
  left: 2.5rem;
  width: 8rem;
  height: 8rem;
}

.cta::after {
  right: 2.5rem;
  bottom: 5rem;
  width: 10rem;
  height: 10rem;
  animation-delay: 1s;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  text-align: center;
}

.users-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
}

.users-pill strong {
  color: #ffffff;
}

.avatar {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #111827;
  border-radius: 999px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.a1 {
  background: #8b5cf6;
}

.a2 {
  background: #a78bfa;
  margin-left: -0.8rem;
  animation-delay: 0.5s;
}

.a3 {
  background: #7c3aed;
  margin-left: -0.8rem;
  animation-delay: 1s;
}

.cta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.telegram-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  color: #ffffff;
  padding: 1rem 1.5rem;
  text-align: left;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.telegram-card > span:first-child {
  font-size: 1.25rem;
}

.telegram-card strong,
.telegram-card small {
  display: block;
}

.telegram-card strong {
  font-size: 0.875rem;
}

.telegram-card small {
  color: rgb(237 233 254 / 0.95);
  font-size: 0.75rem;
}

.violet-card {
  background: #7c3aed;
}

.violet-card:hover,
.support-button:hover {
  background: #6d28d9;
  box-shadow: 0 20px 25px -5px rgb(139 92 246 / 0.25);
}

.gray-card {
  background: #374151;
}

.gray-card:hover {
  background: #4b5563;
  box-shadow: 0 20px 25px -5px rgb(107 114 128 / 0.25);
}

.support-card {
  max-width: 42rem;
  margin: 0 auto;
  border: 1px solid rgb(55 65 81 / 0.5);
  border-radius: 1rem;
  background: rgb(31 41 55 / 0.3);
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.support-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-align: left;
}

.support-title > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.75rem;
  background: rgb(124 58 237 / 0.2);
  font-size: 1.5rem;
}

.support-title h3,
.support-title p {
  margin: 0;
}

.support-title h3 {
  font-size: 1.125rem;
}

.support-title p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.support-card > p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.support-button {
  gap: 0.5rem;
  background: #7c3aed;
  padding: 0.75rem 1.5rem;
}

.footer {
  border-top: 1px solid #374151;
  background: #111827;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
}

.footer a {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal p {
  margin: 0.25rem 0;
}

.legal-page-main {
  min-height: calc(100vh - 4rem);
  background:
    radial-gradient(circle at 20% 0%, rgb(124 58 237 / 0.18), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgb(37 99 235 / 0.14), transparent 24rem),
    #111827;
  padding: 3rem 0 5rem;
}

.legal-page-shell {
  max-width: 64rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 2rem;
  color: #a78bfa;
  font-size: 0.875rem;
  font-weight: 600;
}

.back-link:hover {
  color: #c4b5fd;
}

.legal-page-heading {
  margin-bottom: 1.5rem;
}

.legal-page-heading p {
  margin: 0 0 0.5rem;
  color: #a78bfa;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-page-heading h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.legal-document {
  border: 1px solid rgb(55 65 81 / 0.8);
  border-radius: 1rem;
  background: rgb(31 41 55 / 0.72);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.24);
  padding: clamp(1rem, 4vw, 2rem);
}

.legal-document pre {
  margin: 0;
  color: #e5e7eb;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@keyframes ping {
  75%,
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .container {
    width: min(100% - 4rem, 80rem);
  }

  .hero {
    padding: 5rem 0;
  }

  .primary-button {
    padding: 1rem 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 3rem, 80rem);
  }

  .pricing,
  .cta {
    padding-block: 3rem;
  }

  .service-grid,
  .price-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .live-card {
    column-gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .live-number {
    font-size: 1.25rem;
  }

  .price-card {
    min-height: 18rem;
  }

  .footer-links {
    flex-direction: column;
  }
}
