:root {
  --background: #f5f3ff;
  --surface: #ffffff;
  --accent: #6f5bff;
  --accent-deep: #5741f4;
  --soft: #e7e1ff;
  --ink: #181626;
  --muted: #5f5b70;
  --shadow: rgba(46, 28, 122, 0.18);
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--background);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.ambient--top {
  top: -260px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(111, 91, 255, 0.16) 0, rgba(231, 225, 255, 0.12) 48%, transparent 72%);
}

.ambient--bottom {
  bottom: -350px;
  left: -280px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0, rgba(231, 225, 255, 0.08) 58%, transparent 75%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 590px) minmax(460px, 560px);
  grid-template-rows: auto 1fr;
  column-gap: clamp(56px, 7vw, 108px);
  width: min(100%, 1344px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 54px 68px 42px;
}

.product-badge {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  width: max-content;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(46, 28, 122, 0.04);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.02em;
}

.product-badge__mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.hero__copy {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  gap: 22px;
  padding: 20px 0 30px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1.065;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 560px;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

.hero__lead--mobile {
  display: none;
}

.proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-points li {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--soft) 76%, transparent);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.proof-points li::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.telegram-cta {
  display: flex;
  width: min(100%, 360px);
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 24px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #6651ff 0%, #735eff 100%);
  box-shadow: 0 18px 28px -14px rgba(46, 28, 122, 0.42);
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.telegram-cta:hover {
  background: linear-gradient(135deg, var(--accent-deep) 0%, #6c55ff 100%);
  box-shadow: 0 22px 32px -14px rgba(46, 28, 122, 0.5);
  transform: translateY(-2px);
}

.telegram-cta:active {
  transform: translateY(0);
}

.telegram-cta__arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
  font-size: 17px;
  line-height: 1;
}

.handoff-note {
  margin: -5px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: -12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.legal-links a {
  text-decoration: underline;
  text-decoration-color: rgba(95, 91, 112, 0.38);
  text-underline-offset: 3px;
}

.legal-links a:hover {
  color: var(--accent-deep);
}

.hero__visual {
  position: relative;
  display: flex;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 560px;
  height: 610px;
  align-self: center;
  justify-self: center;
}

.scene {
  position: relative;
  width: 560px;
  height: 610px;
}

.scene__glow {
  position: absolute;
  top: 80px;
  left: 42px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 91, 255, 0.2) 0, rgba(231, 225, 255, 0.14) 43%, transparent 70%);
  filter: blur(14px);
}

.scene__halo {
  position: absolute;
  top: 118px;
  left: 78px;
  width: 404px;
  height: 404px;
  border: 1px solid rgba(111, 91, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(111, 91, 255, 0.05);
}

.scene__illustration {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 4px;
  width: 540px;
  height: auto;
  filter: drop-shadow(0 30px 32px rgba(46, 28, 122, 0.13));
}

.analysis-status,
.risk-callout {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  border: 1px solid rgba(111, 91, 255, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px -14px rgba(46, 28, 122, 0.24);
  backdrop-filter: blur(16px);
}

.analysis-status {
  top: 88px;
  left: 4px;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.analysis-status strong {
  color: var(--accent-deep);
  font-weight: 800;
}

.analysis-status__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65c7a3;
  box-shadow: 0 0 0 5px rgba(101, 199, 163, 0.14);
}

.risk-callout {
  right: 2px;
  bottom: 82px;
  gap: 10px;
  min-height: 64px;
  padding: 10px 14px 10px 10px;
  border-color: rgba(241, 111, 103, 0.2);
  border-radius: 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.risk-callout__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: #f16f67;
  box-shadow: 0 10px 20px -10px rgba(241, 111, 103, 0.7);
  font-size: 17px;
  font-weight: 800;
}

.risk-callout small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 13px;
}

.metrika-pixel {
  position: absolute;
  left: -9999px;
}

.metrika-pixel img {
  width: 1px;
  height: 1px;
}

@media (max-width: 1090px) and (min-width: 761px) {
  .hero {
    grid-template-columns: minmax(0, 520px) 400px;
    gap: 24px;
    padding-inline: 44px;
  }

  .hero__visual {
    width: 400px;
    height: 436px;
  }

  .scene {
    transform: scale(0.715);
    transform-origin: top left;
  }

  .hero h1 {
    font-size: 51px;
  }
}

@media (max-width: 760px) {
  .ambient--top {
    top: -160px;
    right: -180px;
    width: 520px;
    height: 520px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 310px auto;
    width: 100%;
    min-height: 100svh;
    padding: 22px 24px 28px;
  }

  .product-badge {
    grid-column: 1;
    grid-row: 1;
    height: 38px;
    padding: 8px 11px;
    font-size: 11px;
    line-height: 16px;
  }

  .product-badge__mark {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .hero__visual {
    grid-column: 1;
    grid-row: 2;
    width: 319px;
    height: 310px;
    align-self: start;
    justify-self: center;
  }

  .scene {
    transform: scale(0.57);
    transform-origin: top left;
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    gap: 14px;
    padding: 5px 0 0;
  }

  .hero h1 {
    width: 100%;
    font-size: clamp(36px, 9.75vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .hero__lead--desktop {
    display: none;
  }

  .hero__lead--mobile {
    display: block;
  }

  .hero__lead {
    max-width: 342px;
    font-size: 16px;
    line-height: 23px;
  }

  .proof-points {
    gap: 8px;
  }

  .proof-points li {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 14px;
  }

  .telegram-cta {
    width: 100%;
    max-width: 100%;
  }

  .handoff-note {
    margin-top: 0;
    font-size: 12px;
    line-height: 16px;
  }

  .legal-links {
    margin-top: -8px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .hero {
    grid-template-rows: auto 284px auto;
    padding-inline: 18px;
  }

  .hero__visual {
    width: 290px;
    height: 284px;
  }

  .scene {
    transform: scale(0.52);
  }

  .proof-points li {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scene__illustration {
    animation: quiet-float 5.5s ease-in-out infinite;
  }

  .analysis-status__pulse {
    animation: quiet-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes quiet-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes quiet-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(101, 199, 163, 0.14);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(101, 199, 163, 0.03);
  }
}
