/* Общая дизайн-система и стили публичных страниц xads.world. */
:root {
  --bg: #050a13;
  --bg-soft: #0a1421;
  --surface: rgba(35, 126, 167, 0.055);
  --surface-hover: rgba(35, 150, 185, 0.09);
  --border: rgba(103, 177, 211, 0.13);
  --border-strong: rgba(75, 193, 222, 0.24);
  --text: #f1f7fa;
  --text-soft: #9aabb5;
  --text-muted: #657681;
  --blue: #2f82f6;
  --blue-light: #38bdf8;
  --teal: #18c8ba;
  --green: #20d39a;
  --red: #f06479;
  --header-height: 73px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(
      circle at 8% -5%,
      rgba(15, 190, 194, 0.1),
      transparent 32rem
    ),
    radial-gradient(
      circle at 88% -10%,
      rgba(47, 130, 246, 0.1),
      transparent 30rem
    ),
    var(--bg);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1 0 auto;
}

.home-main {
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 40px, 1024px);
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 40px, 1160px);
}

.container--narrow {
  width: min(100% - 40px, 780px);
}

.section {
  position: relative;
  padding: 104px 0 0;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.22;
}

.page-glow--one {
  display: none;
}

.page-glow--two {
  right: -25rem;
  top: 55%;
  width: 48rem;
  height: 48rem;
  background: radial-gradient(
    circle,
    rgba(47, 130, 246, 0.24),
    transparent 68%
  );
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 10, 19, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  overflow: hidden;
  border-radius: 9px;
  color: #fff;
  background: transparent;
  box-shadow: 0 8px 26px rgba(23, 166, 207, 0.24);
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__mark svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.3;
}

.brand__name,
.gradient-text {
  background: linear-gradient(100deg, #65c8ff 5%, #2f93f5 58%, #27d0ad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  margin-left: auto;
}

.desktop-nav a,
.footer__links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.footer__links a:hover {
  color: #fff;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shared-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.shared-header .brand__mark img,
.shared-footer .brand__mark img {
  width: 100%;
  height: 100%;
}
.desktop-nav a.is-current {
  color: #fff;
}
.shared-header .desktop-nav {
  gap: clamp(12px, 1.6vw, 27px);
}
.shared-header .desktop-nav a {
  font-size: 12px;
  white-space: nowrap;
}
.header-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  color: #dce5fb;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.header-user span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd9ae;
  box-shadow: 0 0 12px rgba(61, 217, 174, 0.7);
}
.header-logout {
  margin: 0;
}
.header-logout .button {
  white-space: nowrap;
}
.mobile-nav form {
  display: grid;
  width: 100%;
}
.mobile-user {
  color: #64dfbd !important;
  font-weight: 700 !important;
}
.shared-footer {
  margin-top: auto;
}
.auth-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.auth-page > main {
  flex: 1 0 auto;
}

.lang-switcher {
  display: flex;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.lang-switcher button {
  min-width: 30px;
  padding: 5px 6px;
  border: 0;
  border-radius: 6px;
  color: var(--text-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.lang-switcher button:hover {
  color: var(--text);
}

.lang-switcher button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button svg {
  width: 17px;
  height: 17px;
}

.button--small {
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 13px;
}

.button--primary {
  color: #fff;
  background: linear-gradient(110deg, #237bf1, #2e9cf2);
  box-shadow:
    0 12px 35px rgba(27, 132, 226, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.2);
}

.button--primary:hover {
  box-shadow:
    0 15px 42px rgba(23, 158, 220, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.25);
}

.button--ghost,
.button--secondary {
  color: var(--text-soft);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
}

.button--ghost:hover,
.button--secondary:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.075);
}

.button--text {
  color: var(--text-soft);
  background: transparent;
}

.button--text:hover {
  color: #fff;
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 4px 0;
  background: var(--text-soft);
  transition: 200ms ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero {
  isolation: isolate;
  padding-top: 84px;
}

.hero::before {
  position: absolute;
  z-index: 0;
  top: -96px;
  left: 50%;
  width: 170vw;
  height: 510px;
  transform: translateX(-50%);
  background:
    radial-gradient(
      ellipse 46% 86% at 52% 4%,
      rgba(47, 130, 246, 0.2) 0%,
      rgba(47, 130, 246, 0.09) 42%,
      rgba(47, 130, 246, 0.025) 67%,
      transparent 86%
    ),
    radial-gradient(
      ellipse 40% 78% at 31% 7%,
      rgba(24, 200, 186, 0.12) 0%,
      rgba(24, 200, 186, 0.05) 45%,
      rgba(24, 200, 186, 0.015) 68%,
      transparent 88%
    );
  filter: blur(24px);
  content: "";
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.08);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(43px, 5.2vw, 67px);
  line-height: 1.07;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero h1 span {
  display: block;
}

@media (min-width: 700px) {
  .hero h1 span:first-child {
    white-space: nowrap;
  }
}

.hero h1 .gradient-text {
  padding-bottom: 6px;
}

.hero__lead {
  max-width: 675px;
  margin: 23px auto 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

.hero__actions,
.cta__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.glass {
  border: 1px solid var(--border);
  background:
    linear-gradient(
      145deg,
      rgba(21, 119, 153, 0.07),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(6, 14, 26, 0.76);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.025),
    0 24px 80px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass--hover {
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}

.glass--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(
      145deg,
      rgba(25, 150, 177, 0.1),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(6, 14, 26, 0.82);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    0 28px 70px rgba(0, 0, 0, 0.22);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 11px;
  margin-top: 58px;
  padding: 16px;
  border-radius: 18px;
}

.stat-card {
  min-width: 0;
  min-height: 102px;
  padding: 15px 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.stat-card__label {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.stat-card__change {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
}

.stat-card__change--up,
.text-green {
  color: var(--green) !important;
}

.stat-card__change--down {
  color: var(--red);
}

.status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
}

.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.stat-card__spark {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 11px;
  margin-top: 6px;
}

.stat-card__spark i {
  width: 3px;
  border-radius: 1px;
  background: rgba(79, 140, 255, 0.6);
}

.stat-card__spark i:nth-child(1) {
  height: 4px;
}
.stat-card__spark i:nth-child(2) {
  height: 7px;
}
.stat-card__spark i:nth-child(3) {
  height: 5px;
}
.stat-card__spark i:nth-child(4) {
  height: 9px;
}
.stat-card__spark i:nth-child(5) {
  height: 11px;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 49px;
  text-align: center;
}

.section-heading__kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-heading h2,
.cta h2 {
  color: #fff;
  font-size: clamp(31px, 4vw, 42px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-heading p,
.cta p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.audience-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 27px;
  border-radius: 17px;
}

.audience-card h3,
.feature-card h3,
.step-card h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.audience-card p,
.feature-card p,
.step-card p {
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.icon-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 47px;
  height: 47px;
  border-radius: 12px;
  color: var(--accent, var(--blue));
  background: color-mix(in srgb, var(--accent, var(--blue)) 11%, transparent);
  transition: background 220ms ease;
}

.icon-box svg {
  width: 21px;
  height: 21px;
}

.icon-box--blue {
  color: var(--blue-light);
  background: rgba(79, 140, 255, 0.1);
}

.icon-box--teal {
  color: var(--teal);
  background: rgba(24, 200, 186, 0.1);
}

.icon-box--green {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.feature-card {
  position: relative;
  min-height: 230px;
  padding: 27px 24px 24px;
  overflow: hidden;
  border-radius: 16px;
}

.feature-card__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}

.feature-card .icon-box {
  margin-bottom: 21px;
}

.feature-card:hover .icon-box {
  background: color-mix(in srgb, var(--accent) 19%, transparent);
}

.billing-switcher {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: -18px auto 34px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  scrollbar-width: none;
}

.billing-switcher::-webkit-scrollbar {
  display: none;
}

.billing-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--text-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.billing-switcher button:hover {
  color: var(--text);
}

.billing-switcher button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.billing-switcher small {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  max-width: 980px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px 20px 19px;
  overflow: hidden;
  border-radius: 17px;
}

.pricing-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4f8cff, #22d3ee);
  content: "";
  opacity: 0.8;
}

.pricing-card:nth-child(2)::before {
  background: linear-gradient(90deg, #22d3ee, #34d399);
}

.pricing-card:nth-child(3)::before {
  background: linear-gradient(90deg, #2f82f6, #18c8ba);
}

.pricing-card--popular {
  border-color: rgba(39, 176, 211, 0.48);
  background:
    linear-gradient(
      155deg,
      rgba(47, 130, 246, 0.11),
      rgba(24, 200, 186, 0.055)
    ),
    rgba(6, 14, 26, 0.88);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 24px 70px rgba(21, 141, 190, 0.15);
}

.pricing-card__badge {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 5px 8px;
  border-radius: 99px;
  color: #71e2db;
  background: rgba(24, 200, 186, 0.14);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card__head {
  min-height: 48px;
}

.pricing-card__head h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.pricing-card__head p {
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 13px;
}

.pricing-card__price strong {
  color: #fff;
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -0.055em;
}

.pricing-card__price span {
  color: var(--text-muted);
  font-size: 12px;
}

.pricing-card__trial,
.pricing-card__saving {
  min-height: 22px;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.pricing-card__saving {
  color: var(--green);
}

.pricing-card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 11px 0 16px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  list-style: none;
}

.pricing-card li {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 6px 8px;
  border: 1px solid rgba(84, 168, 201, 0.075);
  border-radius: 8px;
  color: var(--text-soft);
  background: rgba(18, 103, 138, 0.055);
  font-size: 12.5px;
  line-height: 1.35;
}

.pricing-card li i {
  flex: none;
  margin-right: 3px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
}

.pricing-card li strong {
  color: #e4e7ec;
  font-weight: 700;
}

.pricing-card li.is-muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.012);
}

.pricing-card li.is-muted i {
  color: #596172;
}

.pricing-card__button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.pricing-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}

.steps__line {
  position: absolute;
  z-index: 0;
  top: 54px;
  left: 16.67%;
  right: 16.67%;
  border-top: 1px dashed rgba(79, 140, 255, 0.35);
}

.step-card {
  position: relative;
  z-index: 1;
  padding: 27px 24px 28px;
  border-radius: 16px;
  text-align: center;
}

.step-card__number {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin: 0 auto 19px;
  border: 1px solid rgba(79, 140, 255, 0.44);
  border-radius: 50%;
  color: var(--blue-light);
  background: #07121f;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 0 25px rgba(79, 140, 255, 0.08);
}

.faq {
  padding: 8px 27px;
  border-radius: 18px;
}

.faq__item + .faq__item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq__item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 70px;
  padding: 18px 3px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 15px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}

.faq__item button svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  transition: transform 250ms ease;
}

.faq__item.is-open button svg {
  transform: rotate(180deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows 280ms ease,
    padding 280ms ease;
}

.faq__answer p {
  min-height: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
  padding-bottom: 22px;
}

.cta-section {
  padding-bottom: 100px;
}

.cta {
  position: relative;
  padding: 59px 36px;
  overflow: hidden;
  border-radius: 20px;
  text-align: center;
}

.cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(24, 200, 186, 0.14),
      transparent 33%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(47, 130, 246, 0.16),
      transparent 35%
    );
  pointer-events: none;
}

.cta__content {
  position: relative;
}

.cta p {
  color: var(--text-soft);
}

.cta__actions {
  margin-top: 28px;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(3, 8, 15, 0.45);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 106px;
  gap: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer__brand .brand__mark {
  width: 28px;
  height: 28px;
}

.footer__brand .brand__name {
  font-size: 17px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 11px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.footer__links a {
  font-size: 11px;
}

.desktop-nav a.is-current,
.mobile-nav a.is-current {
  color: #fff;
}

.legal-body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(24, 200, 186, 0.08),
      transparent 31rem
    ),
    radial-gradient(
      circle at 83% 0%,
      rgba(47, 130, 246, 0.09),
      transparent 34rem
    ),
    var(--bg);
}

.legal-page {
  position: relative;
  flex: 1 0 auto;
  min-height: 0;
  overflow: clip;
}

.legal-document__action {
  display: flex;
  margin: -4px 0 22px;
}

.legal-document__action .button {
  min-width: min(100%, 17rem);
}

.legal-document--result {
  min-height: 22rem;
}

.legal-permissions {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.legal-permissions article {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid rgba(56, 189, 248, 0.13);
  border-radius: 9px;
  background: rgba(21, 100, 135, 0.055);
}

.legal-permissions code {
  color: #80d8ee;
  font-family: "Inter", sans-serif;
  font-size: 11px;
}

.legal-permissions p {
  margin: 0;
}

.legal-glow {
  position: absolute;
  top: -20rem;
  left: 50%;
  width: 120rem;
  height: 56rem;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(37, 139, 217, 0.13),
    rgba(24, 200, 186, 0.035) 43%,
    transparent 72%
  );
  filter: blur(24px);
  pointer-events: none;
}

.legal-layout {
  position: relative;
  display: block;
  padding-top: 68px;
  padding-bottom: 100px;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 21px;
  border-radius: 16px;
}

.legal-toc > span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc a {
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.legal-toc a:hover {
  color: #fff;
  background: rgba(30, 151, 184, 0.08);
}

.legal-document {
  width: min(100%, 940px);
  min-width: 0;
  margin-inline: auto;
  padding: 0;
}

.legal-document__header {
  margin-bottom: 30px;
  padding: 7px 5px 10px;
}

.legal-document__header h1 {
  color: #fff;
  font-size: clamp(37px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.legal-document__header p {
  margin-top: 13px;
  color: var(--text-muted);
  font-size: 13px;
}

.legal-document section {
  margin-bottom: 22px;
  padding: 28px 30px;
  border: 1px solid rgba(103, 177, 211, 0.13);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(22, 118, 151, 0.055),
      rgba(255, 255, 255, 0.01)
    ),
    rgba(7, 16, 29, 0.82);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.025),
    0 16px 45px rgba(0, 0, 0, 0.1);
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.legal-document section:last-child {
  margin-bottom: 0;
}

.legal-document section h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  color: #eef8fb;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.legal-document section h2 span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  color: var(--blue-light);
  background: rgba(35, 130, 177, 0.07);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.legal-document section p,
.legal-document section li {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.legal-document section p + p,
.legal-document section .legal-scopes + p {
  margin-top: 16px;
}

.legal-document section a {
  color: var(--blue-light);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.35);
  text-underline-offset: 3px;
}

.legal-document section ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-document section li {
  position: relative;
  padding-left: 20px;
}

.legal-document section li::before {
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(24, 200, 186, 0.07);
  content: "";
}

.legal-document section strong {
  color: #dbe8ed;
  font-weight: 650;
}

.legal-callout {
  margin-top: 20px;
  padding: 17px 19px;
  border: 1px solid rgba(24, 200, 186, 0.17);
  border-radius: 12px;
  color: #b7d5d7;
  background: linear-gradient(
    135deg,
    rgba(24, 200, 186, 0.075),
    rgba(47, 130, 246, 0.035)
  );
  font-size: 13px;
  line-height: 1.7;
}

.legal-callout--warning {
  border-color: rgba(56, 189, 248, 0.18);
  color: var(--text-soft);
  background: rgba(30, 116, 163, 0.065);
  font-size: 11px;
  letter-spacing: 0.025em;
}

.legal-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.legal-scopes code {
  padding: 7px 9px;
  border: 1px solid rgba(56, 189, 248, 0.13);
  border-radius: 7px;
  color: #80d8ee;
  background: rgba(21, 100, 135, 0.08);
  font-family: "Inter", sans-serif;
  font-size: 10px;
}

.legal-footer {
  position: relative;
}

[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 13, 0.84);
  backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  width: min(100%, 430px);
  padding: 38px;
  border-radius: 20px;
  transform: translateY(14px) scale(0.98);
  transition: transform 240ms ease;
}

.modal.is-open .modal__panel {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.modal__close:hover {
  color: #fff;
}

.modal__close svg {
  width: 16px;
  height: 16px;
}

.modal__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 10px 30px rgba(23, 166, 207, 0.25);
}

.modal__icon svg {
  width: 22px;
  height: 22px;
}

.modal h2 {
  max-width: 330px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.modal__panel > p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.signup-form {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
}

.signup-form label {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.signup-form input {
  width: 100%;
  height: 47px;
  padding: 0 15px;
  outline: none;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.signup-form input::placeholder {
  color: #525866;
}

.signup-form input:focus {
  border-color: rgba(79, 140, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.1);
}

.signup-form.is-invalid input {
  border-color: rgba(251, 113, 133, 0.65);
}

.form-error {
  display: none;
  margin: 6px 0 0;
  color: var(--red);
  font-size: 10px;
}

.signup-form.is-invalid .form-error {
  display: block;
}

.signup-form .button {
  width: 100%;
  margin-top: 16px;
}

.form-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
}

.form-success {
  display: none;
  padding: 20px 0 5px;
  text-align: center;
}

.modal__panel.is-success .signup-form,
.modal__panel.is-success > .modal__icon,
.modal__panel.is-success > h2,
.modal__panel.is-success > p {
  display: none;
}

.modal__panel.is-success .form-success {
  display: block;
}

.form-success__check {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  font-size: 25px;
}

.form-success h3 {
  font-size: 22px;
}

.form-success p {
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.audience-grid .reveal:nth-child(2),
.features-grid .reveal:nth-child(2),
.steps .reveal:nth-child(3) {
  transition-delay: 80ms;
}

.audience-grid .reveal:nth-child(3),
.features-grid .reveal:nth-child(3),
.steps .reveal:nth-child(4) {
  transition-delay: 160ms;
}

.features-grid .reveal:nth-child(4) {
  transition-delay: 240ms;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.08);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
}

@media (max-width: 1030px) {
  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav a {
    font-size: 13px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    min-height: 210px;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 66px;
  }

  .desktop-nav,
  .login-button {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    background: rgba(5, 10, 19, 0.98);
    opacity: 0;
    transition:
      max-height 280ms ease,
      padding 280ms ease,
      opacity 200ms ease,
      border-color 200ms ease;
  }

  .mobile-nav.is-open {
    max-height: 440px;
    padding: 13px 20px 20px;
    border-color: var(--border);
    opacity: 1;
  }

  .mobile-nav a {
    padding: 12px 8px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
  }

  .mobile-nav .button {
    margin-top: 6px;
  }

  .stats-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    align-items: center;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .legal-toc {
    position: relative;
    top: auto;
  }

  .legal-toc nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .legal-toc a {
    border: 1px solid rgba(103, 177, 211, 0.08);
  }
}

@media (max-width: 680px) {
  .container,
  .container--wide,
  .container--narrow {
    width: min(100% - 30px, 1160px);
  }

  .section {
    padding-top: 78px;
  }

  .hero {
    padding-top: 65px;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__mark {
    width: 31px;
    height: 31px;
  }

  .header__actions {
    gap: 8px;
  }

  .lang-switcher button {
    min-width: 27px;
    padding-inline: 4px;
  }

  .eyebrow {
    margin-bottom: 24px;
    padding: 7px 12px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(37px, 11vw, 51px);
    line-height: 1.08;
  }

  .hero__lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero__actions,
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-inline: auto;
    margin-top: 27px;
  }

  .stats-panel {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 43px;
    padding: 11px;
  }

  .stat-card--optional {
    display: none;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2,
  .cta h2 {
    font-size: 30px;
  }

  .section-heading p,
  .cta p {
    margin-top: 11px;
    font-size: 14px;
  }

  .audience-card {
    padding: 22px;
  }

  .features-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .billing-switcher {
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 27px;
  }

  .billing-switcher button {
    flex: 1 0 auto;
  }

  .pricing-card {
    padding: 25px 22px 22px;
  }

  .pricing-card__head {
    min-height: 0;
  }

  .pricing-card li {
    font-size: 13px;
  }

  .feature-card {
    min-height: 0;
    padding: 24px 22px;
  }

  .steps__line {
    display: none;
  }

  .step-card {
    padding: 23px;
  }

  .faq {
    padding: 5px 19px;
  }

  .faq__item button {
    min-height: 66px;
    font-size: 13px;
  }

  .cta-section {
    padding-bottom: 78px;
  }

  .cta {
    padding: 44px 21px;
  }

  .footer__inner,
  .footer__brand {
    flex-direction: column;
  }

  .footer__inner {
    align-items: flex-start;
    padding-block: 32px;
  }

  .footer__brand {
    align-items: flex-start;
    gap: 13px;
  }

  .footer__links {
    justify-content: flex-start;
    gap: 16px 20px;
  }

  .modal__panel {
    padding: 32px 24px 26px;
  }

  .legal-layout {
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 70px;
  }

  .legal-toc {
    padding: 17px;
  }

  .legal-toc a {
    font-size: 10px;
  }

  .legal-document {
    padding: 0;
  }

  .legal-document__header {
    margin-bottom: 22px;
    padding: 4px 3px 8px;
  }

  .legal-document__header h1 {
    font-size: 34px;
  }

  .legal-document section {
    margin-bottom: 14px;
    padding: 23px 20px;
    border-radius: 14px;
  }

  .legal-document section h2 {
    align-items: flex-start;
    font-size: 17px;
  }

  .legal-document section p,
  .legal-document section li {
    font-size: 13px;
    line-height: 1.75;
  }

  .legal-permissions article {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
