:root {
  color-scheme: dark;

  --md-ref-typeface-brand: 'Manrope', 'Segoe UI', sans-serif;
  --md-ref-typeface-plain: 'Inter', 'Segoe UI', sans-serif;
  --md-sys-color-background: #0d0d12;
  --md-sys-color-surface: rgba(20, 19, 28, 0.78);
  --md-sys-color-surface-container: rgba(255, 255, 255, 0.055);
  --md-sys-color-surface-container-high: rgba(255, 255, 255, 0.085);
  --md-sys-color-on-surface: #f4efff;
  --md-sys-color-on-surface-variant: #b9b1c7;
  --md-sys-color-primary: #2aabee;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-secondary: #9b5cff;
  --md-sys-color-tertiary: #00d3ff;
  --md-sys-color-outline-variant: rgba(255, 255, 255, 0.1);
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 22px;
  --topbar-bg: rgba(12, 12, 17, 0.72);
  --panel-glow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --primary-shadow: rgba(42, 171, 238, 0.34);
  --button-gradient: linear-gradient(135deg, #2aabee, #229ed9);
}

body.theme-warm,
body.theme-cool {
  --md-sys-color-primary: #2aabee;
  --md-sys-color-secondary: #9b5cff;
  --md-sys-color-tertiary: #00d3ff;
  --button-gradient: linear-gradient(135deg, #2aabee, #229ed9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-ref-typeface-plain);
  background:
    radial-gradient(
      760px 420px at 50% 18%,
      rgba(155, 92, 255, 0.32),
      transparent 72%
    ),
    radial-gradient(
      620px 360px at 72% 18%,
      rgba(42, 171, 238, 0.18),
      transparent 70%
    ),
    radial-gradient(
      560px 320px at 25% 34%,
      rgba(117, 60, 210, 0.22),
      transparent 72%
    ),
    linear-gradient(180deg, #111018 0%, #0b0b10 58%, #0f0e15 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    radial-gradient(
      900px 520px at 50% -8%,
      rgba(255, 255, 255, 0.055),
      transparent 72%
    );
}

body.page-is-ready .hero__copy,
body.page-is-ready .hero__panel {
  transform: none;
  opacity: 1;
}

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.topbar.is-scrolled {
  background: rgba(12, 12, 17, 0.9);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--md-ref-typeface-brand);
  font-weight: 800;
  color: #fff;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(155, 92, 255, 0.34);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.topbar__nav > a:hover {
  color: var(--md-sys-color-on-surface);
}

.locale-switcher {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.locale-switcher__link {
  padding: 7px 10px;
  border-radius: 999px;
}

.locale-switcher__link.is-active {
  color: #0e1118;
  background: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--md-sys-color-on-primary);
  background: var(--button-gradient);
  box-shadow: 0 14px 34px var(--primary-shadow);
}

.button--secondary,
.button--ghost {
  color: var(--md-sys-color-on-surface);
  background: rgba(255, 255, 255, 0.08);
}

.button__icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #229ed9;
  background: #fff;
  font-size: 9px;
}

.telegram-icon svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: #229ed9;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: min(88dvh, 820px);
  display: flex;
  align-items: center;
  padding: clamp(54px, 7vw, 92px) 0 clamp(38px, 5vw, 70px);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(24px);
}

.hero::before {
  width: 54vw;
  height: 54vw;
  max-width: 760px;
  max-height: 760px;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(155, 92, 255, 0.22),
    transparent 68%
  );
}

.hero::after {
  width: 38vw;
  height: 24vw;
  right: -12%;
  top: 24%;
  background: radial-gradient(
    circle,
    rgba(42, 171, 238, 0.16),
    transparent 66%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__copy,
.hero__panel {
  opacity: 0.96;
  transform: translateY(8px);
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.hero__copy {
  text-align: center;
  justify-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #88dcff;
  background: rgba(42, 171, 238, 0.13);
  border: 1px solid rgba(42, 171, 238, 0.2);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.section-title,
.legal-title {
  margin: 0;
  font-family: var(--md-ref-typeface-brand);
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.98;
}

.hero p {
  margin: 18px auto 0;
  max-width: 46ch;
  color: var(--md-sys-color-on-surface-variant);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero__perks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero__perks li {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--md-sys-color-on-surface-variant);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
}

.hero__panel {
  position: relative;
  padding: clamp(12px, 1.8vw, 18px);
  border-radius: var(--md-sys-shape-corner-large);
  background:
    linear-gradient(155deg, rgba(28, 27, 38, 0.88), rgba(17, 16, 24, 0.78)),
    radial-gradient(
      circle at 84% 8%,
      rgba(42, 171, 238, 0.18),
      transparent 56%
    ),
    radial-gradient(circle at 20% 90%, rgba(155, 92, 255, 0.2), transparent 54%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--panel-glow);
}

.hero__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  background: rgba(42, 171, 238, 0.08);
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.08), rgba(8, 8, 12, 0.34)),
    radial-gradient(
      circle at 82% 18%,
      rgba(155, 92, 255, 0.18),
      transparent 58%
    );
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.transcript-demo {
  position: relative;
  z-index: 1;
  width: min(92%, 420px);
  margin: -56px 0 0 auto;
  padding: 18px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: rgba(18, 17, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.transcript-demo__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.transcript-demo__top strong,
.panel-card strong {
  display: block;
  font-family: var(--md-ref-typeface-brand);
  font-size: 16px;
}

.transcript-demo__top span,
.panel-card span {
  display: block;
  margin-top: 4px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
}

.transcript-demo__mic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 38%, #fff 0 8%, transparent 9%),
    linear-gradient(135deg, #2aabee, #9b5cff);
}

.transcript-demo__body {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--md-sys-shape-corner-small);
  background: rgba(7, 7, 12, 0.46);
}

.transcript-demo__body p {
  margin: 0;
  color: #ddd7e8;
  line-height: 1.6;
}

.transcript-demo__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.transcript-demo__meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #cff2ff;
  background: rgba(42, 171, 238, 0.12);
}

.panel-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.panel-card {
  padding: 13px 14px;
  border-radius: var(--md-sys-shape-corner-small);
  background: rgba(255, 255, 255, 0.045);
}

.section {
  padding: clamp(26px, 4vw, 48px) 0;
}

.section--compact {
  padding-top: 0;
}

.section--muted {
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}

.section-kicker {
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 850;
}

.section-description,
.final-cta p {
  margin: 8px 0 0;
  max-width: 58ch;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.62;
}

.steps-grid,
.trust-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-card,
.plan-card {
  position: relative;
  min-height: 100%;
  padding: 18px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.info-card--quiet {
  background: transparent;
}

.info-card h3 {
  margin: 0 0 8px;
  font-family: var(--md-ref-typeface-brand);
  font-size: 18px;
}

.info-card p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.56;
}

.value-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.value-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  padding: 12px 14px;
  border-radius: var(--md-sys-shape-corner-small);
  color: #e9e3f4;
  background: rgba(255, 255, 255, 0.055);
}

.plan-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 92% 0,
    rgba(42, 171, 238, 0.17),
    transparent 54%
  );
}

.plan-card[data-accent='sunrise']::before {
  background: radial-gradient(
    circle at 92% 0,
    rgba(155, 92, 255, 0.18),
    transparent 54%
  );
}

.plan-card[data-accent='mist']::before {
  background: radial-gradient(
    circle at 92% 0,
    rgba(255, 255, 255, 0.12),
    transparent 54%
  );
}

.plan-card > * {
  position: relative;
  z-index: 1;
}

.plan-card__eyebrow {
  margin-bottom: 10px;
  color: #88dcff;
  font-size: 12px;
  font-weight: 800;
}

.plan-card__title {
  margin: 0 0 10px;
  font-family: var(--md-ref-typeface-brand);
  font-size: 23px;
}

.plan-card__price {
  margin: 0 0 6px;
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(34px, 4.5vw, 46px);
  line-height: 0.96;
}

.plan-card__period,
.plan-card__meta {
  color: var(--md-sys-color-on-surface-variant);
}

.plan-card__summary {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.plan-card__summary li {
  padding: 10px 12px;
  border-radius: var(--md-sys-shape-corner-small);
  background: rgba(255, 255, 255, 0.055);
}

.plan-card__cta {
  margin-top: auto;
  padding-top: 16px;
}

.faq-list {
  display: grid;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.faq-item__question {
  margin: 0 0 8px;
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(18px, 2vw, 22px);
}

.faq-item__answer {
  margin: 0;
  max-width: 68ch;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.62;
}

.final-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: var(--md-sys-shape-corner-large);
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(42, 171, 238, 0.16),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.footer {
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.footer__block {
  padding: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
  line-height: 1.45;
}

.footer__block h3 {
  margin: 0 0 10px;
  color: #ddd6ec;
  font-family: var(--md-ref-typeface-brand);
  font-size: 13px;
}

.footer__block p {
  margin: 0 0 6px;
}

.footer__block strong {
  color: #dcd6e9;
}

.footer__docs strong {
  display: block;
  margin-top: 6px;
}

.footer__docs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.footer__docs a {
  color: #88dcff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__note {
  margin-top: 14px;
  color: rgba(185, 177, 199, 0.78);
  font-size: 12px;
}

.legal-page {
  padding-top: 24px;
}

.legal-back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--md-sys-color-primary);
  font-weight: 700;
}

.legal-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.96;
}

.legal-subtitle {
  margin: 14px 0 10px;
  max-width: 58ch;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.64;
}

.legal-updated {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
}

.legal-sections {
  display: grid;
  gap: 12px;
}

.legal-section-item,
.legal-contact-row {
  border-radius: var(--md-sys-shape-corner-medium);
  background: rgba(255, 255, 255, 0.055);
}

.legal-section-item {
  padding: 16px;
}

.legal-section-item h2 {
  margin: 0 0 10px;
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(22px, 3vw, 30px);
}

.legal-section-item p {
  margin: 0 0 10px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.62;
}

.legal-section-item p:last-child {
  margin-bottom: 0;
}

.legal-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.legal-contact-row {
  padding: 14px;
}

.legal-contact-row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--md-sys-color-primary);
  font-size: 12px;
  font-weight: 700;
}

.legal-contact-row span {
  color: var(--md-sys-color-on-surface);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero__inner,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .trust-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 620px;
    justify-self: center;
  }

  .transcript-demo {
    width: auto;
    margin: 12px 0 0;
  }

  .final-cta__inner,
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar__nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer__grid,
  .legal-contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .hero p,
  .section-description,
  .faq-item__answer {
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .topbar .button {
    width: auto;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .button {
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .button:hover {
    transform: none;
  }
}
