/* ai-agent.website — Apple-inspired landing */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --section-band: #f5f5f7;
  --surface-muted: #ebebed;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-glow: rgba(0, 113, 227, 0.35);
  --danger: #ff3b30;
  --danger-soft: rgba(255, 59, 48, 0.08);
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --max: 1068px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: ui-serif, "SF Pro Display", Georgia, "Times New Roman", "Liberation Serif", serif;
  --reveal-delay: 0s;
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.6s;
  --dur-slow: 1.15s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text);
  background-color: #eceef2;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -25%, rgba(0, 113, 227, 0.11), transparent 52%),
    radial-gradient(ellipse 90% 55% at 95% 15%, rgba(100, 210, 255, 0.08), transparent 48%),
    radial-gradient(ellipse 70% 45% at 5% 85%, rgba(88, 86, 214, 0.06), transparent 50%),
    linear-gradient(168deg, #f4f5f8 0%, #e8eaef 38%, #f0f2f6 72%, #ebecef 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

main {
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - clamp(24px, 6vw, 48px), var(--max));
  margin-inline: auto;
}

.section-surface {
  background: linear-gradient(178deg, #ffffff 0%, #f8f9fb 55%, #ffffff 100%);
}

.section-muted {
  background: linear-gradient(180deg, #e8eaef 0%, #f0f2f6 50%, #e8eaef 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(236, 238, 242, 0.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  height: auto;
  padding-block: 10px;
}

@media (min-width: 768px) {
  .header-inner {
    min-height: 52px;
    padding-block: 0;
  }
}

.logo {
  font-weight: 600;
  font-size: clamp(13px, 3.5vw, 15px);
  color: var(--text);
  letter-spacing: -0.03em;
  max-width: min(46vw, 200px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

@media (min-width: 768px) {
  .logo {
    max-width: none;
  }
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-links {
  display: none;
  gap: 28px;
  font-size: 12px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--text);
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.header-cta {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 980px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  max-width: min(62vw, 340px);
}

@media (min-width: 768px) {
  .header-actions {
    max-width: none;
    gap: 0.5rem 0.75rem;
  }
}

@media (max-width: 380px) {
  .header-lead-link {
    font-size: 11px;
  }

  .header-cta {
    padding: 7px 12px;
    font-size: 11px;
  }
}

.header-lead-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.header-lead-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  padding: 7px 11px;
  border-radius: 980px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 640px) {
  .nav-dropdown-toggle {
    font-size: 12px;
    padding: 8px 14px;
  }
}

.nav-dropdown-toggle:hover {
  border-color: rgba(0, 113, 227, 0.35);
  color: var(--accent);
}

.nav-dropdown-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22);
}

.nav-dropdown-short {
  display: inline;
}

.nav-dropdown-long {
  display: none;
}

@media (min-width: 640px) {
  .nav-dropdown-short {
    display: none;
  }

  .nav-dropdown-long {
    display: inline;
  }
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  min-width: min(92vw, 300px);
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 48px rgba(0, 20, 60, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-dropdown.is-open .nav-dropdown-toggle {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-demo-row + .nav-demo-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-demo-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.nav-demo-audio {
  display: block;
  width: 100%;
  height: 36px;
  border-radius: 980px;
}

.nav-demo-play-btn {
  width: 100%;
  height: 36px;
  border-radius: 980px;
  border: 1px solid rgba(0, 113, 227, 0.25);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s var(--ease-apple), background 0.2s var(--ease-apple), border-color 0.2s var(--ease-apple);
  -webkit-tap-highlight-color: transparent;
}

.nav-demo-play-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.4);
}

.nav-demo-icon {
  display: inline-block;
}

.nav-demo-icon--pause {
  display: none;
}

.nav-demo-play-btn.is-playing .nav-demo-icon--play {
  display: none;
}

.nav-demo-play-btn.is-playing .nav-demo-icon--pause {
  display: inline-block;
}

/* Buttons */
.btn,
.btn-demo,
.header-cta {
  -webkit-tap-highlight-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-apple),
    background 0.35s var(--ease-apple),
    filter 0.35s var(--ease-apple);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.015);
  }
}

.btn:active {
  transform: scale(0.985);
  transition-duration: 0.12s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.28);
}

.btn-telegram {
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 55%, #0a63c9 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.26);
}

.btn-telegram:hover {
  filter: brightness(1.03);
  text-decoration: none;
}

.btn-telegram:active {
  transform: scale(0.988);
}

.btn-telegram:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.28), 0 4px 16px rgba(0, 113, 227, 0.26);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 28px rgba(0, 113, 227, 0.32);
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent);
  border: 1.5px solid rgba(0, 113, 227, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (hover: hover) {
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.1);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}

@media (max-width: 599px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }
}

/* Sections */
.section {
  padding: clamp(56px, 12vw, 100px) 0;
}

.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.section-tight {
  padding: clamp(48px, 10vw, 80px) 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

.section h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.07;
  margin: 0 0 16px;
  text-wrap: balance;
}

.section-intro {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
}

/* AI dialog animation block */
.ai-dialog-wrap {
  text-align: center;
}

.ai-dialog-wrap .section-intro {
  margin-inline: auto;
}

.ai-dialog-stage {
  position: relative;
  width: min(920px, 100%);
  margin: 8px auto 0;
  min-height: clamp(220px, 36vw, 340px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(0, 113, 227, 0.14);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
  animation: ai-dialog-enter 0.7s var(--ease-apple) both;
}

.ai-dialog-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ai-dialog-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(82px, 10vw, 108px);
  height: clamp(82px, 10vw, 108px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #49b7ff 0%, #0a84ff 45%, #0058c7 100%);
  box-shadow: 0 0 0 12px rgba(0, 113, 227, 0.2), 0 0 60px rgba(0, 113, 227, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.04em;
}

@keyframes ai-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-sphere-pulse {
  0%,
  100% {
    box-shadow:
      0 20px 56px rgba(0, 113, 227, 0.38),
      0 0 0 1px rgba(255, 255, 255, 0.2) inset,
      inset 0 -14px 28px rgba(0, 40, 100, 0.35);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 24px 64px rgba(0, 113, 227, 0.46),
      0 0 0 1px rgba(255, 255, 255, 0.28) inset,
      inset 0 -14px 28px rgba(0, 40, 100, 0.3);
    filter: brightness(1.04);
  }
}

@keyframes stat-pop {
  from {
    transform: translate3d(0, 10px, 0) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

.hero {
  position: relative;
  padding: clamp(32px, 8vw, 56px) 0 clamp(56px, 12vw, 100px);
  overflow: visible;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 55% at 50% 18%, rgba(0, 113, 227, 0.1), transparent 58%),
    radial-gradient(ellipse 55% 40% at 85% 45%, rgba(100, 210, 255, 0.07), transparent 50%),
    radial-gradient(ellipse 45% 35% at 12% 62%, rgba(88, 86, 214, 0.05), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%);
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-enter {
  opacity: 0;
  animation: hero-enter var(--dur-slow) var(--ease-out) forwards;
}

.hero-enter-delay {
  animation-delay: 0.18s;
}

.hero-eyebrow {
  margin: 0 0 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 980px;
}

@keyframes hero-voice-slide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes hero-phone-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 9vw, 72px);
  text-align: center;
}

@media (min-width: 900px) {
  .hero-grid {
    gap: clamp(42px, 7vw, 76px);
    text-align: center;
  }

  .hero-voice-wrap {
    width: 140vw;
    max-width: none;
    left: 50%;
    transform: translate(-50%, -50%);
    height: clamp(130px, 16vw, 190px);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 52rem;
  margin-inline: auto;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--text);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.421;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 38rem;
  letter-spacing: -0.018em;
}

.hero-offer {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: inline-block;
  margin-bottom: 8px;
}

.hero-offer span {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.hero-voice-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  transform: translate(-50%, -50%);
  max-width: none;
  height: clamp(160px, 24vw, 240px);
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 12;
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.hero-voice-glow {
  position: absolute;
  inset: 14% 0 14%;
  background: radial-gradient(ellipse 62% 72% at 50% 50%, rgba(0, 113, 227, 0.42), transparent 72%);
  filter: blur(26px);
  opacity: 0.9;
  z-index: 0;
}

.hero-voice-scale {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  --voice-amp: 0;
  transform-origin: 50% 100%;
  transform: scaleY(calc(1 + var(--voice-amp) * 0.06));
  transition: transform 0.28s var(--ease-smooth);
}

.hero-voice-drift {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-voice-drift--back {
  opacity: 0.88;
  z-index: 1;
}

.hero-voice-drift--front {
  opacity: 1;
  z-index: 2;
}

.hero-voice-svg {
  flex-shrink: 0;
  width: 240%;
  height: 100%;
  min-height: 100px;
  display: block;
  animation: hero-voice-slide 30s linear infinite;
  will-change: transform;
}

.hero-voice-drift--front .hero-voice-svg {
  animation: hero-voice-slide 22s linear infinite reverse;
}

.hero-phone-float {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: visible;
  transform: translateZ(0);
  animation: hero-phone-breathe 14s var(--ease-apple) infinite;
}

.hero-phone-mock {
  width: min(268px, 76vw);
  padding: 11px;
  border-radius: 38px;
  background: linear-gradient(148deg, #ececee 0%, #ffffff 42%, #d8d8dc 100%);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-phone-inner {
  border-radius: 30px;
  overflow: hidden;
  background: #0a0a0a;
  padding: 3px;
}

.hero-phone-screen {
  aspect-ratio: 9 / 18.5;
  border-radius: 27px;
  background: radial-gradient(ellipse 85% 55% at 50% 44%, rgba(0, 113, 227, 0.14) 0%, rgba(230, 240, 255, 0.5) 38%, #ffffff 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 22px;
  border-radius: 999px;
  background: #101113;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  z-index: 6;
}

.hero-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(100, 210, 255, 0.22), rgba(0, 113, 227, 0.06) 35%, transparent 62%);
  pointer-events: none;
}

.hero-sphere {
  position: relative;
  z-index: 14;
  width: 5.3rem;
  height: 5.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(113, 164, 255, 0.95) 0%, rgba(0, 113, 227, 0.92) 38%, rgba(0, 69, 181, 0.92) 72%, rgba(0, 35, 119, 0.92) 100%);
  box-shadow:
    0 0 0 18px rgba(0, 113, 227, 0.18),
    0 0 56px rgba(0, 113, 227, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    inset 0 -14px 28px rgba(0, 40, 100, 0.28);
  animation: hero-sphere-pulse 5.5s var(--ease-apple) infinite;
}

.hero-sphere-shine {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.12) 28%, transparent 52%);
  pointer-events: none;
}

.hero-sphere-text {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.35);
}

.hero-sphere-text--ai {
  font-size: 1.72rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.7), 0 2px 0 rgba(0, 40, 100, 0.18);
}

.hero-sphere::before {
  content: "";
  position: absolute;
  inset: -26%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(90, 200, 250, 0.42) 0%, rgba(0, 113, 227, 0.26) 28%, transparent 62%);
  filter: blur(10px);
  opacity: 0.95;
  pointer-events: none;
}

.hero-sphere-mark {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter:
    invert(1)
    brightness(1.15)
    drop-shadow(0 0 14px rgba(90, 200, 250, 0.55))
    drop-shadow(0 0 26px rgba(0, 113, 227, 0.55));
}

.btn-demo {
  width: auto;
  min-width: 220px;
  max-width: 90vw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.28);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-apple), filter 0.35s var(--ease-apple),
    background 0.35s var(--ease-apple);
}

@media (hover: hover) {
  .btn-demo:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 10px 32px rgba(0, 113, 227, 0.28);
  }
}

.btn-demo:active {
  transform: scale(0.985);
  transition-duration: 0.12s;
}

.js-hero-demo-toggle:hover,
.js-hero-demo-toggle:active {
  transform: none;
}

.btn-demo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.28), 0 4px 16px rgba(0, 113, 227, 0.28);
}

.btn-demo[aria-pressed="true"] {
  background: linear-gradient(180deg, #5856d6, #4846b8);
  box-shadow: 0 4px 16px rgba(88, 86, 214, 0.35);
}

.btn-demo-play svg,
.btn-demo-pause svg {
  display: block;
}

.btn-demo-pause {
  display: none;
}

.btn-demo[aria-pressed="true"] .btn-demo-play {
  display: none;
}

.btn-demo[aria-pressed="true"] .btn-demo-pause {
  display: inline-flex !important;
  align-items: center;
}

.btn-demo--under {
  pointer-events: auto;
  position: relative;
  z-index: 20;
}

.btn-demo-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transform-origin: 50% 50%;
  transition: transform 0.22s var(--ease-apple);
}

.js-hero-demo-toggle.is-open .btn-demo-caret {
  transform: rotate(180deg);
}

.hero-demo-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(360px, 92vw);
  margin-top: 0;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 48px rgba(0, 20, 60, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  z-index: 30;
}

.js-hero-demo-toggle.is-open + .hero-demo-menu {
  animation: hero-demo-menu-in 0.22s var(--ease-apple) both;
}

@keyframes hero-demo-menu-in {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero-demo-item {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 12px 12px;
  border-radius: 12px;
  text-align: left;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-demo-item:hover {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

.hero-demo-item-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.hero-demo-icon--pause {
  display: none;
}

.hero-demo-item.is-playing .hero-demo-icon--play {
  display: none;
}

.hero-demo-item.is-playing .hero-demo-icon--pause {
  display: inline-block;
}

.hero-demo-item.is-playing .hero-demo-item-icon {
  background: rgba(0, 113, 227, 0.2);
}

.hero-demo-item + .hero-demo-item {
  margin-top: 6px;
}

@media (max-width: 599px) {
  .hero-voice-wrap {
    height: clamp(130px, 34vw, 180px);
    margin-bottom: -4.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter,
  .hero-enter-delay {
    animation: none;
    opacity: 1;
  }

  .hero-voice-svg {
    animation: none !important;
    transform: translate3d(-25%, 0, 0);
  }

  .hero-phone-float {
    animation: none;
  }

  .hero-sphere {
    animation: none;
  }

  .btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
    filter: none;
  }

  .btn-demo:hover {
    transform: none;
    filter: none;
  }

  .reveal.visible .cases-grid .case-card:nth-child(n) .case-stat {
    animation: none;
  }
}

/* Stats bump when section reveals */
.reveal.visible .cases-grid .case-card:nth-child(1) .case-stat {
  animation: stat-pop 1.05s var(--ease-smooth) both;
  animation-delay: 0.08s;
}

.reveal.visible .cases-grid .case-card:nth-child(2) .case-stat {
  animation: stat-pop 1.05s var(--ease-smooth) both;
  animation-delay: 0.16s;
}

.reveal.visible .cases-grid .case-card:nth-child(3) .case-stat {
  animation: stat-pop 1.05s var(--ease-smooth) both;
  animation-delay: 0.24s;
}

/* Pain — преміум-бенто, без «рожевих плям» */
.pain-section {
  position: relative;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(0, 113, 227, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 80%, rgba(100, 210, 255, 0.05), transparent 45%),
    linear-gradient(178deg, #f9fafc 0%, #eef1f6 48%, #f6f7fa 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.045);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pain-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: clamp(28px, 5vw, 40px);
}

@media (min-width: 768px) {
  .pain-head {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 28px;
  }
}

.pain-mark {
  flex-shrink: 0;
}

.pain-mark-sphere {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  background:
    radial-gradient(circle at 28% 22%, #e0f2ff 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, #1a8cff 0%, #0071e3 45%, #003d99 100%);
  box-shadow:
    0 12px 32px rgba(0, 113, 227, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.pain-mark-sphere--ai {
  font-size: 0.7rem;
  letter-spacing: -0.02em;
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
}

.pain-mark-sphere--ai {
  position: relative;
}

.pain-mark-sphere--ai::before {
  content: "";
  position: absolute;
  inset: -26%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(90, 200, 250, 0.34) 0%, rgba(0, 113, 227, 0.22) 32%, transparent 68%);
  filter: blur(10px);
  opacity: 0.95;
  pointer-events: none;
}

.pain-mark-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter:
    invert(1)
    brightness(1.15)
    drop-shadow(0 0 10px rgba(90, 200, 250, 0.55))
    drop-shadow(0 0 18px rgba(0, 113, 227, 0.55));
}

.pain-head-copy {
  flex: 1;
  min-width: 0;
}

.pain-head-copy .section-intro,
.pain-intro {
  margin-bottom: 0;
  max-width: 38rem;
}

.pain-bento {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .pain-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .pain-bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pain-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 20px 20px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.04),
    0 8px 40px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: transform 0.55s var(--ease-smooth), box-shadow 0.55s var(--ease-apple);
}

@media (min-width: 960px) {
  .pain-card--wide {
    grid-column: span 2;
  }
}

@media (hover: hover) {
  .pain-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.06),
      0 16px 48px rgba(0, 113, 227, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 1);
  }
}

.pain-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3b30;
  background: linear-gradient(160deg, rgba(255, 59, 48, 0.12), rgba(255, 59, 48, 0.04));
  border: 1px solid rgba(255, 59, 48, 0.1);
}

.pain-card-icon svg {
  width: 22px;
  height: 22px;
}

.pain-card-text {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.02em;
  padding-top: 2px;
}

.pain-footer {
  margin-top: clamp(32px, 5vw, 48px);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 40rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Features 2x2 */
.features-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-apple);
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

.feature-svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
}

/* Steps */
.steps-wrap {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
}

.steps-line {
  display: none;
}

@media (min-width: 768px) {
  .steps-line {
    display: block;
    position: absolute;
    left: 24px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(0, 113, 227, 0.2));
    border-radius: 2px;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

@media (min-width: 768px) {
  .step-item {
    grid-template-columns: 56px 1fr;
    padding-left: 8px;
  }
}

.step-item:last-child {
  border-bottom: none;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-item h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}

.step-item p {
  margin: 0;
  color: var(--text-secondary);
}

.steps-outro {
  margin-top: 32px;
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
}

/* Cases */
.cases-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 32px);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-apple);
}

@media (hover: hover) {
  .case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

.case-card:nth-child(2) {
  background: var(--surface-muted);
}

.case-stat {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.25;
}

.case-body {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}

.case-body p {
  margin: 0 0 10px;
}

.case-highlight {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 30px);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-apple);
}

@media (hover: hover) {
  .testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.45;
  font-style: italic;
  color: var(--text);
  margin: 0 0 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5856d6);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.testimonial-meta span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Comparison */
.compare-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.compare-cols {
  display: grid;
}

@media (max-width: 639px) {
  .compare-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .compare-cols {
    gap: 12px;
  }

  .compare-col {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .compare-col.human {
    background: var(--surface);
  }

  .compare-col.ai {
    border-bottom: none;
    background: rgba(0, 113, 227, 0.07);
  }
}

@media (min-width: 640px) {
  .compare-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-col {
  padding: clamp(24px, 5vw, 36px);
}

.compare-col.ai {
  background: rgba(0, 113, 227, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
  .compare-col.human {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
  }

  .compare-col.ai {
    background: rgba(0, 113, 227, 0.06);
  }
}

.compare-col h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
}

.compare-col.ai h3 {
  color: var(--accent);
}

.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-col li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 17px;
  color: var(--text-secondary);
}

.compare-col li::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 14px;
  font-weight: 700;
}

.compare-col.human li::before {
  content: "–";
  color: var(--danger);
  font-weight: 700;
}

.compare-col.ai li::before {
  content: "✓";
  color: var(--accent);
}

/* Pricing */
.pricing-card {
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 52px);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(0, 113, 227, 0.18);
}

.pricing-card h2 {
  margin-bottom: 24px;
}

.price-row {
  margin-bottom: 12px;
  font-size: 21px;
}

.price-row strong {
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-top: 4px;
}

.pricing-includes {
  text-align: left;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-includes h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

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

.pricing-includes li {
  padding-left: 24px;
  position: relative;
  font-size: 17px;
}

.pricing-includes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease-apple);
}

@media (hover: hover) {
  .faq-item:hover {
    box-shadow: var(--shadow-lg);
  }
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}

/* Final CTA */
.final-cta {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 8vw, 72px) clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.final-cta h2 {
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 19px;
  margin: 0 0 32px;
  line-height: 1.4;
}

.final-cta .lead-form {
  text-align: left;
  margin-inline: auto;
  max-width: 420px;
}

.lead-form--compact {
  max-width: 420px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin-inline: auto;
}

@media (min-width: 480px) {
  .cta-form:not(.cta-form--stacked) {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-form:not(.cta-form--stacked) input {
    flex: 1;
    min-width: 200px;
  }
}

.cta-form--stacked {
  flex-direction: column;
  align-items: stretch;
  max-width: 420px;
}

.cta-form--stacked .btn {
  width: 100%;
  justify-content: center;
}

.cta-form input {
  padding: 14px 20px;
  font-size: 17px;
  font-family: inherit;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 980px;
  background: var(--bg);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.form-feedback {
  flex-basis: 100%;
  width: 100%;
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text-secondary);
  text-align: center;
}

.form-feedback--ok {
  color: #1a7f37;
}

.form-feedback--error {
  color: #c41e1e;
}

/* Lead mini-page */
.lead-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.lead-main {
  flex: 1;
}

.lead-hero {
  padding-block: clamp(32px, 8vw, 72px);
}

.lead-hero-inner {
  max-width: 32rem;
  margin-inline: auto;
}

.lead-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.lead-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: -0.03em;
}

.lead-intro {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.45;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.lead-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.lead-form .req {
  color: var(--accent);
}

.lead-form input {
  padding: 11px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 980px;
  background: var(--bg);
}

.lead-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.lead-form-submit {
  margin-top: 8px;
}

.lead-utm-preview {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
}

.lead-utm-title {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.lead-utm-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.lead-utm-k {
  color: var(--text-secondary);
  font-size: 12px;
}

.lead-utm-empty {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.lead-utm-empty code {
  font-size: 12px;
  word-break: break-all;
}

/* Lead modal (main page) */
.final-cta-actions {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lead-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lead-modal-card {
  position: relative;
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  padding: 18px 18px 22px;
  animation: lead-modal-in 0.22s var(--ease-apple) both;
}

@keyframes lead-modal-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.lead-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 22px;
  line-height: 0;
}

.lead-modal-close:hover {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
}

.lead-eyebrow--modal {
  margin-bottom: 10px;
}

.lead-modal-subtitle {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.lead-label--req {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.lead-modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.telegram-btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  color: #fff;
}

.btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.btn-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.text-highlight {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #0071e3 0%, #5ac8fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-highlight-soft {
  display: inline-block;
  padding: 0.03em 0.22em 0.08em;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.14), rgba(0, 113, 227, 0.06));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.lead-success-screen {
  text-align: center;
  padding: 26px 12px 6px;
}

.lead-modal.is-success .lead-success-check {
  animation: lead-success-pop 0.36s var(--ease-apple) both;
}

@keyframes lead-success-pop {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.75);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.lead-success-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  box-shadow: 0 18px 46px rgba(0, 113, 227, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0));
  bottom: max(16px, env(safe-area-inset-bottom, 0));
  z-index: 1800;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-apple),
    box-shadow 0.25s var(--ease-apple),
    background 0.25s var(--ease-apple),
    filter 0.25s var(--ease-apple);
}

@media (hover: hover) {
  .to-top:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  }
}

.to-top:active {
  transform: scale(0.985);
}

.to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22), 0 10px 30px rgba(0, 0, 0, 0.12);
}

.lead-success-title {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.lead-success-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  padding-bottom: 6px;
}

.lead-form-block {
  position: relative;
}

.lead-inline-success {
  margin-top: 16px;
  text-align: center;
  padding: 22px 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lead-modal-in 0.22s var(--ease-apple) both;
}

.lead-inline-success.is-visible .lead-success-check {
  animation: lead-success-pop 0.36s var(--ease-apple) both;
}

/* Footer */
.site-footer {
  padding: 40px 0 calc(60px + env(safe-area-inset-bottom, 0));
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--text-secondary);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 1.05s var(--ease-smooth) var(--reveal-delay, 0s),
    transform 1.05s var(--ease-smooth) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: 0.01ms;
    transform: none;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.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;
}
