:root {
  color-scheme: dark;
  --bg: #050814;
  --bg-soft: #0a1022;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f7f8ff;
  --muted: #aab4d4;
  --muted-2: #7883a3;
  --blue: #41a6ff;
  --violet: #8b5cf6;
  --purple: #c084fc;
  --green: #35d399;
  --pink: #ff4d8d;
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(65, 166, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 80% 5%, rgba(139, 92, 246, 0.32), transparent 34rem),
    radial-gradient(circle at 70% 45%, rgba(255, 77, 141, 0.12), transparent 24rem),
    var(--bg);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(9, 14, 30, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 12px 34px rgba(65, 166, 255, 0.28);
  color: white;
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a,
.mobile-nav a,
.legal-link {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.legal-link:hover {
  color: var(--text);
}

.header-cta {
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  top: 86px;
  right: 16px;
  left: 16px;
  z-index: 45;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(9, 14, 30, 0.94);
  backdrop-filter: blur(22px);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 56px;
  padding-top: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b8d9ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  content: "";
  box-shadow: 0 0 28px var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy p,
.section-heading p,
.analytics-copy p,
.final-cta p,
.site-footer p {
  color: var(--muted);
  font-size: 18px;
}

.hero-copy > p {
  max-width: 660px;
  margin-bottom: 30px;
  font-size: 21px;
}

.hero-actions,
.final-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 46px rgba(65, 166, 255, 0.28);
}

.button.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 38px;
}

.hero-metrics div,
.dashboard-card,
.price-card,
.feature-grid article,
.steps-grid article,
.payment-grid article,
.review-grid article,
.faq-list details {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-metrics div {
  padding: 18px;
  border-radius: 20px;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics span {
  color: var(--muted-2);
  font-size: 13px;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}

.phone-stage::before {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, rgba(65, 166, 255, 0.48), rgba(139, 92, 246, 0.34), rgba(255, 77, 141, 0.22), rgba(65, 166, 255, 0.48));
  filter: blur(34px);
  opacity: 0.66;
  content: "";
}

.phone-mockup {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  min-height: 610px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 46px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    #0a1022;
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.52), inset 0 0 0 9px rgba(0, 0, 0, 0.28);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
}

.phone-top > span {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.phone-top strong,
.phone-top small,
.chat-bubble span {
  display: block;
}

.phone-top small {
  color: var(--green);
}

.chat-bubble {
  width: fit-content;
  max-width: 86%;
  margin-top: 22px;
  padding: 16px;
  border-radius: 22px;
  font-weight: 600;
}

.chat-bubble.user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
}

.chat-bubble.bot strong {
  display: block;
  margin-bottom: 10px;
}

.mini-dashboard {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-dashboard span,
.dashboard-card span,
.dashboard-card small {
  color: var(--muted);
}

.mini-dashboard strong,
.dashboard-card strong {
  display: block;
  font-size: 28px;
}

.sparkline {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 56px;
}

.sparkline i {
  width: 9px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--blue), var(--purple));
}

.sparkline i:nth-child(1) { height: 28px; }
.sparkline i:nth-child(2) { height: 44px; }
.sparkline i:nth-child(3) { height: 36px; }
.sparkline i:nth-child(4) { height: 54px; }
.sparkline i:nth-child(5) { height: 42px; }

.section-heading {
  max-width: 740px;
  margin-bottom: 36px;
}

.section:not(.hero) > .section-heading,
.analytics .analytics-copy {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section:not(.hero) > .section-heading .eyebrow,
.analytics .analytics-copy .eyebrow {
  margin-right: auto;
  margin-left: auto;
}

.section:not(.hero) > .section-heading p,
.analytics .analytics-copy p {
  margin-right: auto;
  margin-left: auto;
}

.steps-grid,
.feature-grid,
.pricing-grid,
.payment-grid,
.review-grid {
  display: grid;
  gap: 18px;
}

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

.steps-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.steps-grid article,
.feature-grid article,
.payment-grid article,
.review-grid article {
  border-radius: var(--radius);
  padding: 24px;
}

.steps-grid b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(65, 166, 255, 0.15);
  color: #b8d9ff;
}

.steps-grid p,
.price-card p,
.review-grid p,
.faq-list p {
  color: var(--muted);
}

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

.feature-grid span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 24px;
}

.feature-grid h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.analytics {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  align-items: center;
  gap: 42px;
}

.dashboard {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.dashboard-card {
  min-height: 160px;
  border-radius: var(--radius);
  padding: 22px;
}

.dashboard-card.wide {
  grid-column: span 2;
}

.dashboard-card p {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 700;
}

.chart-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  align-items: center;
  gap: 18px;
}

.donut-chart {
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: conic-gradient(var(--blue) 0 58%, var(--violet) 58% 78%, var(--green) 78% 92%, rgba(255,255,255,0.14) 92% 100%);
  position: relative;
}

.donut-chart::after {
  position: absolute;
  inset: 34px;
  border-radius: 999px;
  background: #0b1226;
  content: "";
}

.chart-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.chart-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.chart-card i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.chart-card .blue { background: var(--blue); }
.chart-card .purple { background: var(--violet); }
.chart-card .green { background: var(--green); }

.bars-card {
  display: grid;
  gap: 18px;
}

.bars-card div {
  display: grid;
  gap: 8px;
}

.bars-card span {
  font-size: 13px;
}

.bars-card b {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bars-card b::after {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  content: "";
}

.progress {
  height: 12px;
  margin: 18px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(137, 186, 255, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
}

.price-card.popular {
  border-color: rgba(139, 92, 246, 0.52);
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.24), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
}

.badge {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffe4a8;
  font-size: 13px;
  font-weight: 800;
}

.price {
  margin: 20px 0;
  font-size: 40px;
  font-weight: 800;
}

.price span {
  color: var(--muted);
  font-size: 16px;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
}

.price-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.price-card .button {
  margin-top: auto;
  width: 100%;
}

.testing-note {
  max-width: 840px;
  margin: 24px auto 0;
  color: var(--muted);
  text-align: center;
}

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

.payment-grid article {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
}

.payment-grid span {
  font-size: 16px;
}

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

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: 18px;
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
}

.final-cta {
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 25% 20%, rgba(65, 166, 255, 0.34), transparent 24rem),
    radial-gradient(circle at 75% 30%, rgba(139, 92, 246, 0.32), transparent 22rem),
    rgba(255, 255, 255, 0.075);
  box-shadow: var(--shadow);
  text-align: center;
}

.final-cta p {
  max-width: 620px;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 48px auto 0;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  color: var(--muted);
}

.site-footer > div {
  max-width: 440px;
}

.site-footer nav {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.commercial-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.1fr) minmax(280px, 1fr);
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.commercial-footer .footer-summary {
  max-width: 340px;
}

.footer-requisites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  gap: 12px 20px;
}

.footer-requisites div {
  min-width: 0;
}

.footer-requisites dt {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-requisites dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.commercial-footer nav {
  display: grid;
  justify-content: stretch;
  gap: 8px;
}

.commercial-footer .legal-link {
  line-height: 1.35;
}

.legal-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 15, 0.72);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 29, 58, 0.98), rgba(7, 12, 28, 0.98));
  box-shadow: var(--shadow);
}

.legal-panel {
  width: min(100%, 760px);
}

.modal-content {
  padding: 30px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.selected-plan,
.success-message {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

select {
  appearance: none;
  cursor: pointer;
}

input[readonly] {
  color: #d8e7ff;
  background: rgba(255, 255, 255, 0.055);
}

input:focus,
select:focus {
  border-color: rgba(65, 166, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(65, 166, 255, 0.12);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #ffb4c8;
  font-weight: 700;
}

.legal-body {
  color: var(--muted);
}

.legal-body h3 {
  margin-top: 24px;
  color: var(--text);
}

.legal-body ul {
  padding-left: 20px;
}

.legal-note {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

@media (max-width: 1060px) {
  .hero,
  .analytics {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .phone-stage {
    min-height: auto;
  }

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

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

  .price-card.popular {
    order: -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
    justify-self: end;
  }

  .section {
    width: min(calc(100% - 24px), var(--max));
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    gap: 34px;
  }

  .hero-copy > p,
  .hero-copy p,
  .section-heading p,
  .analytics-copy p,
  .final-cta p {
    font-size: 16px;
  }

  .hero-metrics,
  .steps-grid,
  .steps-grid.five,
  .feature-grid,
  .payment-grid,
  .review-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-card.wide {
    grid-column: auto;
  }

  .phone-mockup {
    min-height: 560px;
    border-radius: 38px;
  }

  .chart-card {
    grid-template-columns: 1fr;
  }

  .donut-chart {
    margin: 0 auto;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }

  .commercial-footer {
    grid-template-columns: 1fr;
  }

  .commercial-footer nav {
    justify-content: stretch;
  }
}

@media (max-width: 440px) {
  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .price,
  .dashboard-card strong {
    font-size: 32px;
  }
}

/* Premium AI SaaS redesign layer */
:root {
  --bg: #030611;
  --bg-soft: #080d1d;
  --panel: rgba(255, 255, 255, 0.072);
  --panel-strong: rgba(255, 255, 255, 0.118);
  --border: rgba(255, 255, 255, 0.13);
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #fbfcff;
  --muted: #a8b1cc;
  --muted-2: #77809c;
  --blue: #35a7ff;
  --violet: #7c3dff;
  --purple: #b86cff;
  --cyan: #52f0ff;
  --green: #4ee7a6;
  --pink: #ff5fa2;
  --shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
  --radius: 28px;
  --max: 1200px;
}

* {
  letter-spacing: 0;
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(70, 122, 255, 0.32), transparent 34rem),
    radial-gradient(circle at 5% 18%, rgba(82, 240, 255, 0.15), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(184, 108, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 74% 52%, rgba(255, 95, 162, 0.11), transparent 28rem),
    linear-gradient(180deg, #030611 0%, #070a16 42%, #030611 100%);
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}

body::before {
  opacity: 0.52;
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 88px 88px;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.045) 49%, transparent 56% 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 32rem);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.site-header {
  top: 18px;
  width: min(calc(100% - 40px), 1160px);
  margin-top: 18px;
  padding: 10px 12px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 10, 24, 0.58);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  font-weight: 760;
}

.brand-mark {
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent),
    linear-gradient(135deg, var(--cyan), var(--violet) 62%, var(--pink));
  box-shadow: 0 0 44px rgba(53, 167, 255, 0.34);
}

.desktop-nav {
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.desktop-nav a {
  padding: 9px 12px;
  border-radius: 999px;
}

.desktop-nav a:hover {
  background: rgba(255, 255, 255, 0.075);
}

.header-cta,
.button {
  position: relative;
  overflow: hidden;
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(53, 167, 255, 0.18), rgba(124, 61, 255, 0.18));
}

.button {
  min-height: 54px;
  border-radius: 999px;
}

.button::after,
.header-cta::after {
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  content: "";
  transition: transform 0.65s ease;
}

.button:hover::after,
.header-cta:hover::after {
  transform: translateX(120%);
}

.button.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(135deg, #37b7ff, #7c3dff 58%, #d15cff);
  box-shadow: 0 18px 60px rgba(92, 102, 255, 0.38);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section {
  padding: 118px 0;
}

.hero {
  min-height: calc(100vh - 96px);
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.82fr);
  gap: 72px;
  padding-top: 76px;
}

.hero::before {
  position: absolute;
  inset: 130px auto auto 50%;
  width: min(840px, 80vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
}

.hero-copy {
  position: relative;
}

.eyebrow {
  margin-bottom: 18px;
  color: #c9dcff;
  font-size: 12px;
  font-weight: 760;
  text-transform: none;
  letter-spacing: 0;
}

.eyebrow::before {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 50%, var(--cyan) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(53, 167, 255, 0.28), rgba(124, 61, 255, 0.28));
}

h1 {
  max-width: 900px;
  font-size: clamp(58px, 8.2vw, 112px);
  font-weight: 820;
  line-height: 0.88;
  background: linear-gradient(180deg, #ffffff 0%, #dce6ff 46%, #8da1d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  max-width: 860px;
  font-size: clamp(38px, 5.7vw, 76px);
  font-weight: 800;
  line-height: 0.95;
}

h3 {
  font-weight: 740;
}

.hero-copy > p {
  max-width: 620px;
  color: #b7c2df;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  margin-top: 34px;
}

.hero-metrics {
  max-width: 680px;
  margin-top: 56px;
}

.hero-metrics div,
.dashboard-card,
.price-card,
.feature-grid article,
.steps-grid article,
.payment-grid article,
.review-grid article,
.faq-list details {
  border-color: var(--hairline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-metrics div {
  position: relative;
  padding: 20px;
}

.hero-metrics strong {
  font-size: 18px;
}

.phone-stage {
  perspective: 1200px;
}

.phone-stage::before {
  width: 520px;
  height: 520px;
  background:
    radial-gradient(circle, rgba(82, 240, 255, 0.25), transparent 34%),
    conic-gradient(from 170deg, rgba(53, 167, 255, 0.52), rgba(124, 61, 255, 0.44), rgba(255, 95, 162, 0.28), rgba(53, 167, 255, 0.52));
  filter: blur(48px);
}

.phone-mockup {
  width: min(390px, 100%);
  min-height: 650px;
  transform: rotateY(-10deg) rotateX(5deg);
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
    linear-gradient(180deg, #111937, #070b19);
  box-shadow:
    0 54px 150px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 10px rgba(0, 0, 0, 0.34);
  animation: deviceFloat 7s ease-in-out infinite;
}

.phone-mockup::before {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 92px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  content: "";
}

.phone-top {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.082);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chat-bubble {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.chat-bubble.user {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--blue), var(--violet));
}

.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.095);
}

.mini-dashboard {
  background:
    linear-gradient(135deg, rgba(82, 240, 255, 0.12), rgba(124, 61, 255, 0.12)),
    rgba(255, 255, 255, 0.07);
}

.sparkline i {
  animation: barPulse 2.8s ease-in-out infinite;
}

.sparkline i:nth-child(2) { animation-delay: 0.14s; }
.sparkline i:nth-child(3) { animation-delay: 0.28s; }
.sparkline i:nth-child(4) { animation-delay: 0.42s; }
.sparkline i:nth-child(5) { animation-delay: 0.56s; }

.section-heading {
  margin-bottom: 52px;
}

.access,
.how,
.features,
.payments,
.reviews,
.faq,
.pricing {
  position: relative;
}

.steps-grid,
.feature-grid,
.pricing-grid,
.payment-grid,
.review-grid {
  gap: 22px;
}

.steps-grid article,
.feature-grid article,
.payment-grid article,
.review-grid article,
.faq-list details,
.dashboard-card,
.price-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, background 0.35s ease;
}

.steps-grid article::before,
.feature-grid article::before,
.dashboard-card::before,
.price-card::before {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 20% 0%, rgba(82, 240, 255, 0.15), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(184, 108, 255, 0.16), transparent 28%);
  content: "";
  transition: opacity 0.35s ease;
}

.steps-grid article:hover,
.feature-grid article:hover,
.dashboard-card:hover,
.price-card:hover,
.payment-grid article:hover,
.review-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(171, 200, 255, 0.24);
}

.steps-grid article:hover::before,
.feature-grid article:hover::before,
.dashboard-card:hover::before,
.price-card:hover::before {
  opacity: 1;
}

.steps-grid article > *,
.feature-grid article > *,
.dashboard-card > *,
.price-card > * {
  position: relative;
  z-index: 1;
}

.steps-grid b {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(82, 240, 255, 0.16), rgba(124, 61, 255, 0.16));
  color: #d8e6ff;
}

.feature-grid article {
  min-height: 168px;
}

.feature-grid span {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
}

.analytics {
  gap: 62px;
}

.dashboard {
  position: relative;
  gap: 18px;
}

.dashboard::before {
  position: absolute;
  inset: 6% -8% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(53, 167, 255, 0.16);
  filter: blur(42px);
  content: "";
}

.dashboard-card {
  min-height: 178px;
  padding: 24px;
  border-radius: 30px;
}

.dashboard-card.wide {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(53, 167, 255, 0.16), rgba(124, 61, 255, 0.12)),
    rgba(255, 255, 255, 0.06);
}

.dashboard-card strong {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.dashboard-card p {
  font-size: 17px;
  line-height: 1.45;
}

.donut-chart {
  box-shadow: 0 0 42px rgba(53, 167, 255, 0.18);
  animation: slowSpin 18s linear infinite;
}

.bars-card b::after,
.progress i {
  box-shadow: 0 0 22px rgba(53, 167, 255, 0.28);
}

.price-card {
  padding: 34px;
  border-radius: 34px;
}

.price-card::after {
  display: block;
  order: -1;
  width: fit-content;
  min-height: 33px;
  margin-bottom: 18px;
  content: "";
}

.price-card.popular {
  border-color: rgba(122, 154, 255, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 240, 255, 0.15), transparent 26%),
    linear-gradient(180deg, rgba(124, 61, 255, 0.22), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.08);
}

.price-card.popular:hover {
  transform: translateY(-6px);
}

.badge {
  min-height: 33px;
  margin-bottom: 18px;
  color: #fff3bd;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(255, 255, 255, 0.06));
}

.price-card.popular::after {
  display: none;
}

.price {
  margin-top: 0;
  font-size: 48px;
  line-height: 1;
}

.pricing-launch-note {
  display: flex;
  width: fit-content;
  max-width: min(100%, 620px);
  margin: 34px auto 28px;
  padding: 14px 18px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 209, 102, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.22),
    0 0 42px rgba(255, 209, 102, 0.08);
  color: var(--text);
}

.pricing-launch-note strong {
  font-size: 14px;
  font-weight: 850;
}

.pricing-launch-note span {
  color: var(--muted);
  font-size: 14px;
}

.price-card::after {
  display: none;
}

.price-block {
  display: grid;
  min-height: 154px;
  margin: 20px 0 24px;
  align-content: start;
  gap: 8px;
}

@media (min-width: 1061px) {
  .price-card > p {
    min-height: 76px;
  }
}

.old-price {
  width: fit-content;
  color: rgba(199, 210, 234, 0.54);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 116, 142, 0.62);
}

.price-block .price {
  margin: 0;
  color: var(--text);
  font-size: clamp(44px, 4.1vw, 56px);
  letter-spacing: 0;
}

.price-block .price span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 16px;
}

.price-note {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.08);
  color: #ffe7ad;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.price-card.popular .price-note {
  border-color: rgba(82, 240, 255, 0.18);
  background: rgba(82, 240, 255, 0.08);
  color: #d8fbff;
}

@media (max-width: 760px) {
  .pricing-launch-note {
    width: 100%;
    border-radius: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .price-block {
    min-height: auto;
  }

  .price-block .price {
    font-size: 44px;
  }
}

.testing-note {
  margin-top: 34px;
}

.payment-grid article {
  min-height: 112px;
  border-radius: 26px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  list-style: none;
}

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

.faq-list summary::after {
  float: right;
  color: var(--muted-2);
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.final-cta {
  min-height: 430px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 24% 28%, rgba(82, 240, 255, 0.22), transparent 24rem),
    radial-gradient(circle at 72% 25%, rgba(124, 61, 255, 0.30), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
}

.modal-panel {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 20% 0%, rgba(53, 167, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, rgba(18, 27, 58, 0.98), rgba(5, 8, 20, 0.98));
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: rotateY(-7deg) rotateX(4deg) translateY(-14px);
  }
}

@keyframes barPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleY(0.9);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.08);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .phone-mockup {
    transform: none;
  }

  .phone-mockup,
  .phone-mockup:hover {
    animation: deviceFloat 7s ease-in-out infinite;
  }

  .price-card.popular,
  .price-card.popular:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(calc(100% - 24px), var(--max));
    border-radius: 24px;
  }

  .section {
    padding: 78px 0;
  }

  h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  h2 {
    font-size: clamp(34px, 11vw, 54px);
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .phone-mockup {
    min-height: 580px;
  }

  .dashboard-card {
    min-height: 150px;
  }
}

@media (max-width: 440px) {
  .phone-mockup {
    min-height: 540px;
  }

  .price-card,
  .dashboard-card,
  .steps-grid article,
  .feature-grid article {
    border-radius: 24px;
  }
}

/* Focused premium landing redesign */
:root {
  --max: 1280px;
  --bg: #02040d;
  --surface: rgba(9, 14, 31, 0.72);
  --surface-2: rgba(255, 255, 255, 0.07);
  --telegram-bg: #0f1728;
  --telegram-panel: #172033;
  --telegram-user: #2aabee;
  --telegram-bot: #202a3d;
}

.section {
  width: min(calc(100% - 48px), var(--max));
}

.site-header {
  width: min(calc(100% - 48px), 1220px);
}

.hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.86fr);
  min-height: auto;
  padding-top: 112px;
  padding-bottom: 74px;
  gap: 76px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero-robot {
  position: absolute;
  z-index: 0;
  top: 60px;
  left: max(-120px, -6vw);
  width: clamp(240px, 28vw, 410px);
  opacity: 0.32;
  filter: drop-shadow(0 36px 90px rgba(65, 166, 255, 0.24));
  pointer-events: none;
  transform: rotate(-6deg);
}

.hero-badge {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #d8e7ff;
}

.hero-badge::before {
  width: 8px;
  height: 8px;
  border: 0;
  background: #31d0ff;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-copy > p {
  max-width: 690px;
  color: #bec8e4;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.55;
}

.hero-metrics {
  max-width: 720px;
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics div {
  min-height: 68px;
  padding: 16px 17px;
  border-radius: 20px;
}

.hero-metrics span {
  display: none;
}

.phone-stage {
  min-height: 680px;
  align-self: center;
}

.phone-stage::before {
  width: 640px;
  height: 520px;
  opacity: 0.76;
  background:
    radial-gradient(circle at 32% 20%, rgba(49, 208, 255, 0.22), transparent 30%),
    radial-gradient(circle at 72% 32%, rgba(124, 61, 255, 0.34), transparent 34%),
    radial-gradient(circle at 52% 75%, rgba(255, 95, 162, 0.18), transparent 28%);
}

.phone-mockup {
  width: min(430px, 100%);
  min-height: 665px;
  padding: 14px;
  transform: rotateY(-7deg) rotateX(4deg);
  border-radius: 44px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    #080c18;
  box-shadow:
    0 58px 160px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 9px rgba(0, 0, 0, 0.46);
}

.phone-mockup::after {
  position: absolute;
  inset: 58px 14px 14px;
  z-index: -1;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(42, 171, 238, 0.22), transparent 32%),
    linear-gradient(180deg, #111b2f, #0d1424);
  content: "";
}

.phone-top {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding: 14px;
  border-radius: 28px 28px 18px 18px;
  background: rgba(25, 36, 58, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.telegram-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #2aabee, #7c3dff);
}

.phone-top small {
  color: #5ee7a8;
  font-size: 12px;
}

.chat-date {
  width: fit-content;
  margin: 18px auto 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #93a1bd;
  font-size: 12px;
  font-weight: 700;
}

.chat-bubble {
  position: relative;
  max-width: 78%;
  margin-top: 12px;
  padding: 13px 15px 16px;
  border-radius: 18px;
  color: #f8fbff;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.chat-bubble.user {
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, #2aabee, #1877f2);
}

.chat-bubble.user::after {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 11px;
  height: 13px;
  background: #1877f2;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  content: "";
}

.chat-bubble.bot {
  margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 5px;
  background: rgba(32, 42, 61, 0.96);
}

.chat-bubble.bot::after {
  position: absolute;
  left: -4px;
  bottom: 0;
  width: 11px;
  height: 13px;
  background: #202a3d;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  content: "";
}

.mini-dashboard {
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(42, 171, 238, 0.18), rgba(124, 61, 255, 0.14)),
    rgba(20, 29, 48, 0.94);
}

.mini-dashboard small {
  display: block;
  margin-top: 6px;
  color: #97a6c4;
  font-weight: 700;
}

.trust-strip {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 72px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
  color: #e8edff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  font-weight: 760;
}

.result-grid,
.trust-proof-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-grid article,
.trust-proof-grid article,
.testing-panel {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(82, 240, 255, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
}

.result-grid article:hover,
.trust-proof-grid article:hover,
.testing-panel:hover {
  transform: translateY(-8px);
  border-color: rgba(171, 200, 255, 0.24);
}

.result-grid span,
.trust-proof-grid span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 24px;
}

.result-grid h3,
.trust-proof-grid h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.12;
}

.result-grid p,
.trust-proof-grid p,
.testing-panel p {
  margin: 0;
  color: var(--muted);
}

.trust-proof-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.trust-proof-grid article {
  min-height: 240px;
}

.testing-panel {
  width: min(100%, 760px);
  min-height: 0;
  margin: 0 auto;
  text-align: center;
}

.testing-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
}

.access {
  padding-top: 76px;
}

.access-timeline {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.access-timeline::before {
  display: none;
  content: none;
}

.access-timeline article {
  min-height: 168px;
}

.premium-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
}

.premium-grid .feature-large {
  grid-column: span 2;
  min-height: 260px;
}

.premium-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.premium-grid article p {
  margin-bottom: 0;
  color: var(--muted);
}

.premium-grid .feature-large h3 {
  max-width: 420px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
}

.premium-grid .feature-large p {
  max-width: 440px;
  font-size: 17px;
}

.analytics {
  grid-template-columns: minmax(0, 0.68fr) minmax(560px, 1fr);
}

.dashboard {
  grid-template-columns: 1fr 0.9fr 0.9fr;
}

.dashboard-card.wide {
  grid-column: span 2;
}

.chart-card {
  grid-row: span 2;
  grid-template-columns: 1fr;
  place-items: center;
}

.bars-card {
  grid-column: span 2;
}

.goal-card {
  background:
    radial-gradient(circle at 15% 0%, rgba(78, 231, 166, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
}

.pricing-grid {
  gap: 24px;
}

.price-card.popular {
  border-color: rgba(82, 240, 255, 0.36);
  box-shadow:
    0 34px 110px rgba(69, 88, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.badge {
  text-transform: none;
}

@media (max-width: 1120px) {
  .hero,
  .analytics {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 640px;
  }

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

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

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

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

  .chart-card {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .section,
  .trust-strip,
  .site-header {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 44px;
    gap: 38px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-metrics,
  .trust-strip,
  .result-grid,
  .trust-proof-grid,
  .access-timeline,
  .premium-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .premium-grid .feature-large,
  .dashboard-card.wide,
  .bars-card {
    grid-column: auto;
  }

  .access-timeline::before {
    display: none;
    content: none;
  }

  .phone-stage {
    min-height: auto;
  }

  .phone-mockup {
    min-height: 600px;
    transform: none;
  }

  .trust-strip {
    padding-bottom: 48px;
  }
}

@media (max-width: 440px) {
  .phone-mockup {
    min-height: 570px;
    padding: 12px;
  }

  .chat-bubble {
    max-width: 84%;
  }
}

/* Product polish layer: richer Telegram path, problem cards and animated analytics */
.phone-mockup {
  min-height: 760px;
}

.chat-bubble.short {
  max-width: 64%;
}

.insight-message {
  max-width: 88%;
}

.forecast-message {
  max-width: 82%;
  margin-top: 10px;
}

.success-message {
  display: grid;
  gap: 6px;
}

.success-message span {
  color: var(--muted);
  font-weight: 600;
}

.payment-content form {
  margin-top: 18px;
}

.payment-content .button {
  width: 100%;
}

.telegram-analytics-card {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(42, 171, 238, 0.18), rgba(124, 61, 255, 0.14)),
    rgba(20, 29, 48, 0.94);
}

.telegram-analytics-card span,
.telegram-analytics-card small,
.telegram-goal-card span {
  color: #97a6c4;
}

.telegram-analytics-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.telegram-goal-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 14px 4px 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(20, 29, 48, 0.94);
}

.telegram-goal-card strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.telegram-goal-card b {
  color: #5ee7a8;
  font-size: 22px;
}

.telegram-goal-card .progress {
  grid-column: 1 / -1;
  margin: 0;
}

.problems {
  padding-top: 92px;
}

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

.problem-grid article {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--hairline);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 95, 162, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
}

.problem-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(171, 200, 255, 0.24);
}

.problem-grid article::after {
  position: absolute;
  inset: auto 26px 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(82, 240, 255, 0.42), rgba(124, 61, 255, 0.18), transparent);
  content: "";
}

.problem-grid h3 {
  max-width: 560px;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.05;
}

.problem-grid p {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
}

.problem-grid div {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(78, 231, 166, 0.08);
}

.problem-grid strong {
  color: #bfffe3;
}

.problem-grid span {
  color: #dbe5ff;
}

.access-timeline h3 {
  margin-bottom: 0;
  font-size: 18px;
}

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

.premium-grid .feature-large {
  grid-column: span 2;
}

.premium-grid article:nth-child(7),
.premium-grid article:nth-child(8) {
  min-height: 170px;
}

.dashboard {
  grid-template-columns: 1fr 0.9fr 0.9fr;
}

.dashboard-card.wide,
.bars-card {
  grid-column: span 2;
}

.chart-card {
  grid-row: span 2;
  grid-template-columns: 1fr;
  place-items: center;
}

.donut-chart {
  background: conic-gradient(var(--blue) 0 38%, var(--violet) 38% 55%, var(--green) 55% 67%, var(--pink) 67% 78%, rgba(255,255,255,0.14) 78% 100%);
  transform: rotate(-90deg) scale(0.88);
  animation: donutReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, slowSpin 18s linear infinite 1.6s;
}

.donut-chart::after {
  z-index: 1;
}

.bars-card b::after,
.progress i {
  transform: scaleX(0);
  transform-origin: left center;
  animation: growBar 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.bars-card div:nth-child(2) b::after { animation-delay: 0.12s; }
.bars-card div:nth-child(3) b::after { animation-delay: 0.24s; }
.bars-card div:nth-child(4) b::after { animation-delay: 0.36s; }
.progress i { animation-delay: 0.18s; }

@keyframes donutReveal {
  from {
    opacity: 0.2;
    transform: rotate(-90deg) scale(0.72);
  }
  to {
    opacity: 1;
    transform: rotate(-90deg) scale(1);
  }
}

@keyframes growBar {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1120px) {
  .problem-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-card.wide,
  .bars-card,
  .premium-grid .feature-large {
    grid-column: auto;
  }

  .chart-card {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .phone-mockup {
    min-height: 720px;
  }

  .premium-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid article {
    min-height: auto;
  }
}

@media (max-width: 440px) {
  .phone-mockup {
    min-height: 710px;
  }

  .telegram-analytics-card,
  .telegram-goal-card {
    margin-right: 0;
    margin-left: 0;
  }
}

/* Final conversion polish: contained hero chat, sequential messages and premium access timeline */
.phone-stage {
  min-height: 620px;
}

.phone-mockup {
  height: 650px;
  min-height: 0;
  overflow: hidden;
  padding: 8px 14px 14px;
}

.phone-mockup::after {
  inset: 54px 14px 14px;
}

.phone-mockup::before {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 4;
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: #050812;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  content: "";
  transform: translateX(-50%);
}

.phone-top {
  margin-top: 24px;
  padding: 10px 12px;
  border-radius: 24px 24px 16px 16px;
}

.telegram-avatar {
  width: 36px;
  height: 36px;
}

.chat-date {
  margin: 9px auto 6px;
  padding: 4px 9px;
  font-size: 11px;
}

.chat-bubble {
  margin-top: 7px;
  padding: 8px 10px 9px;
  font-size: 11.8px;
  line-height: 1.28;
}

.chat-bubble strong,
.chat-bubble span {
  display: block;
}

.telegram-analytics-card {
  gap: 10px;
  margin: 8px 2px;
  padding: 10px 11px;
  border-radius: 18px;
}

.telegram-analytics-card strong {
  margin-top: 2px;
  font-size: 19px;
}

.telegram-analytics-card span,
.telegram-analytics-card small,
.telegram-goal-card span {
  font-size: 10.8px;
}

.sparkline {
  height: 32px;
  gap: 4px;
}

.sparkline i {
  width: 7px;
}

.sparkline i:nth-child(1) { height: 18px; }
.sparkline i:nth-child(2) { height: 30px; }
.sparkline i:nth-child(3) { height: 24px; }
.sparkline i:nth-child(4) { height: 36px; }
.sparkline i:nth-child(5) { height: 28px; }

.insight-message {
  max-width: 88%;
}

.telegram-goal-card {
  gap: 8px;
  margin: 8px 2px 0;
  padding: 9px 11px;
  border-radius: 18px;
}

.telegram-goal-card strong {
  font-size: 12.5px;
}

.telegram-goal-card b {
  font-size: 17px;
}

.forecast-message {
  max-width: 80%;
}

.chat-step {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: chatStepIn 0.58s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  will-change: transform, opacity;
}

.step-1 { animation-delay: 0.25s; }
.step-2 { animation-delay: 0.95s; }
.step-3 { animation-delay: 1.7s; }
.step-4 { animation-delay: 2.45s; }
.step-5 { animation-delay: 3.18s; }
.step-6 { animation-delay: 3.86s; }

@keyframes chatStepIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.problem-grid {
  align-items: stretch;
}

.problem-grid article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 330px;
  padding: 30px;
}

.problem-grid article > * {
  position: relative;
  z-index: 1;
}

.problem-grid article::after {
  z-index: 0;
  bottom: 18px;
}

.problem-grid h3,
.problem-grid p {
  margin: 0;
}

.problem-grid div {
  margin-top: auto;
  margin-bottom: 12px;
}

.access-timeline {
  gap: 18px;
  padding: 8px 0;
}

.access-timeline::before {
  display: none;
}

.access-timeline article {
  min-height: 230px;
  padding: 26px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(82, 240, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.24);
}

.access-timeline article:nth-child(2) {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 209, 102, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
}

.access-timeline article:nth-child(3) {
  background:
    radial-gradient(circle at 20% 0%, rgba(94, 231, 168, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
}

.access-timeline b {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 20px;
  box-shadow:
    0 0 0 8px rgba(5, 8, 20, 0.62),
    0 18px 42px rgba(65, 166, 255, 0.18);
  font-size: 25px;
}

.access-timeline p {
  margin: 10px 0 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .chat-step {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 1120px) {
  .phone-stage {
    min-height: 620px;
  }

  .phone-mockup {
    height: 670px;
  }
}

@media (max-width: 760px) {
  .phone-mockup {
    height: 640px;
    min-height: 0;
    transform: none;
  }

  .chat-bubble {
    font-size: 12px;
  }

  .telegram-analytics-card strong {
    font-size: 19px;
  }

  .problem-grid article {
    min-height: 0;
  }

  .access-timeline {
    gap: 16px;
  }

  .access-timeline::before {
    display: none;
    content: none;
  }

  .access-timeline article {
    min-height: 0;
    padding: 22px;
  }

  .access-timeline b {
    position: relative;
    top: auto;
    left: auto;
    width: 48px;
    height: 48px;
    margin: 0 0 18px;
    border-radius: 17px;
  }
}

@media (max-width: 440px) {
  .phone-mockup {
    height: 610px;
    padding: 10px 12px 14px;
  }

  .phone-top {
    margin-top: 24px;
  }

  .chat-bubble {
    max-width: 86%;
    padding: 9px 10px 10px;
    font-size: 11.5px;
  }

  .telegram-analytics-card,
  .telegram-goal-card {
    padding: 10px;
  }

  .telegram-analytics-card strong {
    font-size: 18px;
  }

  .sparkline {
    height: 30px;
  }
}

/* Hero visual fix: robot beside iPhone and Telegram chat contained in one screen */
.hero {
  overflow: visible;
}

.phone-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 660px;
  isolation: isolate;
}

.phone-stage .hero-robot {
  position: absolute;
  z-index: 4;
  right: auto;
  bottom: 18px;
  left: clamp(-128px, -8vw, -72px);
  top: auto;
  width: auto;
  height: clamp(470px, 78%, 585px);
  opacity: 0.96;
  filter:
    drop-shadow(0 34px 70px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 28px rgba(65, 166, 255, 0.24));
  pointer-events: none;
  transform: rotate(-2deg);
}

.phone-mockup {
  position: relative;
  z-index: 3;
  width: min(392px, 100%);
  height: 650px;
  padding: 13px;
  overflow: visible;
  border-radius: 48px;
  transform: rotateY(-5deg) rotateX(3deg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.035)),
    #070b15;
  box-shadow:
    0 54px 145px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 8px rgba(0, 0, 0, 0.54);
}

.phone-mockup::before {
  top: 24px;
  z-index: 8;
  width: 84px;
  height: 21px;
}

.phone-mockup::after {
  display: none;
}

.phone-screen {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow: hidden;
  border-radius: 35px;
  background:
    radial-gradient(circle at 20% 8%, rgba(42, 171, 238, 0.18), transparent 34%),
    linear-gradient(180deg, #111b2f, #0d1424);
}

.phone-screen::after {
  display: none;
}

.phone-screen .phone-top {
  height: 60px;
  margin: 0;
  padding: 19px 12px 8px;
  border-radius: 35px 35px 15px 15px;
  background: rgba(24, 34, 54, 0.94);
}

.phone-screen .telegram-avatar {
  width: 31px;
  height: 31px;
  font-size: 11px;
}

.phone-screen .phone-top strong {
  font-size: 12.5px;
}

.phone-screen .phone-top small {
  font-size: 10.5px;
}

.chat-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: calc(100% - 60px);
  padding: 5px 9px 9px;
  overflow: hidden;
}

.chat-flow .chat-date {
  flex: 0 0 auto;
  margin: 0 auto 1px;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.2;
}

.chat-flow .chat-bubble {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 6px 8px;
  font-size: 10.2px;
  line-height: 1.18;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.chat-flow .chat-bubble.user {
  align-self: flex-end;
  max-width: 76%;
}

.chat-flow .chat-bubble.bot {
  align-self: flex-start;
  max-width: 82%;
}

.chat-flow .chat-bubble strong,
.chat-flow .chat-bubble span {
  display: block;
}

.chat-flow .telegram-analytics-card {
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin: 0 0 0 2px;
  padding: 7px 8px;
  border-radius: 14px;
}

.chat-flow .telegram-analytics-card strong {
  margin-top: 1px;
  font-size: 15.5px;
}

.chat-flow .telegram-analytics-card span,
.chat-flow .telegram-analytics-card small,
.chat-flow .telegram-goal-card span {
  font-size: 9.3px;
  line-height: 1.2;
}

.chat-flow .sparkline {
  height: 23px;
  gap: 3px;
}

.chat-flow .sparkline i {
  width: 5px;
}

.chat-flow .sparkline i:nth-child(1) { height: 13px; }
.chat-flow .sparkline i:nth-child(2) { height: 21px; }
.chat-flow .sparkline i:nth-child(3) { height: 17px; }
.chat-flow .sparkline i:nth-child(4) { height: 25px; }
.chat-flow .sparkline i:nth-child(5) { height: 19px; }

.chat-flow .insight-message {
  max-width: 84%;
}

.chat-flow .telegram-goal-card {
  flex: 0 0 auto;
  gap: 5px;
  margin: 0 0 0 2px;
  padding: 7px 8px;
  border-radius: 14px;
}

.chat-flow .telegram-goal-card strong {
  margin-top: 2px;
  font-size: 10.8px;
}

.chat-flow .telegram-goal-card b {
  font-size: 14px;
}

.chat-flow .telegram-goal-card .progress {
  height: 5px;
}

.chat-flow .forecast-message {
  max-width: 76%;
}

.chat-step {
  transform: translateY(5px);
}

@keyframes chatStepIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .phone-stage {
    min-height: 650px;
  }

  .phone-mockup {
    height: 640px;
  }

  .phone-stage .hero-robot {
    left: clamp(-82px, -6vw, -44px);
    bottom: 22px;
    height: clamp(390px, 68%, 505px);
  }
}

@media (max-width: 760px) {
  .phone-stage {
    min-height: auto;
    padding-bottom: 36px;
  }

  .phone-mockup {
    width: min(360px, 100%);
    height: 620px;
    transform: none;
  }

  .phone-stage .hero-robot {
    left: auto;
    right: max(8px, calc(50% - 182px));
    bottom: 8px;
    height: 190px;
    opacity: 0.88;
  }
}

@media (max-width: 440px) {
  .phone-mockup {
    width: min(334px, 100%);
    height: 590px;
    padding: 11px;
  }

  .phone-screen .phone-top {
    height: 61px;
    padding-top: 20px;
  }

  .chat-flow {
    height: calc(100% - 61px);
    gap: 4px;
    padding: 5px 8px 9px;
  }

  .chat-flow .chat-bubble {
    padding: 6px 8px;
    font-size: 10px;
  }

  .chat-flow .telegram-analytics-card,
  .chat-flow .telegram-goal-card {
    padding: 7px 8px;
  }

  .chat-flow .telegram-analytics-card strong {
    font-size: 15px;
  }

  .phone-stage .hero-robot {
    display: none;
  }
}

/* Stable robot layer: whole-image mascot, no artificial overlays */
.robot {
  display: block;
  user-select: none;
  pointer-events: none;
  filter:
    drop-shadow(0 30px 70px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 22px rgba(78, 180, 255, 0.18));
  animation:
    robotFloat 7.2s ease-in-out infinite,
    robotBreath 5.2s ease-in-out infinite;
  will-change: transform, scale;
}

.phone-stage .hero-robot.robot {
  position: absolute;
  z-index: 4;
  left: clamp(-118px, -7.4vw, -70px);
  bottom: 20px;
  width: auto;
  height: clamp(430px, 70%, 540px);
  opacity: 0.96;
}

@keyframes robotFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes robotBreath {
  0%, 100% {
    scale: 1;
  }
  50% {
    scale: 1.012;
  }
}

@media (prefers-reduced-motion: reduce) {
  .robot {
    animation: none;
  }
}

@media (max-width: 1120px) {
  .phone-stage .hero-robot.robot {
    left: clamp(-76px, -5vw, -42px);
    height: clamp(360px, 62%, 470px);
  }
}

@media (max-width: 760px) {
  .phone-stage .hero-robot.robot {
    left: auto;
    right: max(10px, calc(50% - 178px));
    bottom: 8px;
    height: 170px;
    opacity: 0.9;
  }
}

@media (max-width: 440px) {
  .phone-stage .hero-robot.robot {
    display: block;
    right: max(10px, calc(50% - 166px));
    height: 138px;
  }
}

/* Composition pass: centered SaaS sections, analytics dashboard, access cards */

.problems .problem-grid article:nth-child(2),
.result-30 .result-grid article:nth-child(1),
.features .premium-grid article:nth-child(4),
.trust-proof .trust-proof-grid article:nth-child(1),
.pricing .price-card.popular {
  box-shadow:
    0 28px 100px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(82, 240, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.pricing .price-card.popular p,
.pricing .price-card.popular ul {
  max-width: none;
}

.premium-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.premium-grid .feature-large {
  grid-column: span 2;
}

.premium-grid article:nth-last-child(2),
.premium-grid article:last-child {
  grid-column: span 2;
}

.analytics {
  display: block;
}

.analytics .analytics-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.analytics .analytics-copy p {
  margin-right: auto;
  margin-left: auto;
}

.analytics .dashboard {
  max-width: 1180px;
  margin: 46px auto 0;
}

.dashboard {
  grid-template-columns: 1.15fr 0.95fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.dashboard-card {
  min-height: 180px;
  border-radius: 26px;
}

.dashboard-total {
  grid-column: span 2;
}

.chart-card {
  grid-row: span 2;
  min-height: 378px;
}

.bars-card,
.line-card {
  grid-column: span 2;
}

.insight-card,
.candle-card,
.goal-progress-card {
  min-height: 180px;
}

.line-card {
  display: grid;
  align-content: space-between;
}

.line-chart {
  position: relative;
  height: 96px;
  margin-top: 22px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 100% 24px, 20% 100%;
  overflow: hidden;
}

.line-chart::before {
  position: absolute;
  inset: 18px 12px 22px;
  clip-path: polygon(0 72%, 18% 52%, 35% 63%, 53% 31%, 72% 42%, 100% 12%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(82, 240, 255, 0.28), rgba(124, 61, 255, 0.04));
  content: "";
}

.line-chart::after {
  position: absolute;
  inset: 18px 12px 22px;
  clip-path: polygon(0 66%, 18% 46%, 35% 57%, 53% 25%, 72% 36%, 100% 6%, 100% 13%, 72% 43%, 53% 32%, 35% 64%, 18% 53%, 0 73%);
  background: linear-gradient(90deg, var(--blue), var(--violet));
  filter: drop-shadow(0 0 12px rgba(82, 240, 255, 0.32));
  content: "";
}

.line-chart i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a8ecff;
  box-shadow: 0 0 14px rgba(82, 240, 255, 0.65);
}

.line-chart i:nth-child(1) { left: 9%; top: 62%; }
.line-chart i:nth-child(2) { left: 24%; top: 45%; }
.line-chart i:nth-child(3) { left: 39%; top: 55%; }
.line-chart i:nth-child(4) { left: 56%; top: 27%; }
.line-chart i:nth-child(5) { left: 73%; top: 36%; }
.line-chart i:nth-child(6) { left: 89%; top: 12%; }

.candle-card {
  display: grid;
  align-content: space-between;
}

.candles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  height: 105px;
  margin-top: 18px;
}

.candles i {
  position: relative;
  display: block;
  width: 14px;
  height: var(--body, 44px);
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(82, 240, 255, 0.9), rgba(124, 61, 255, 0.76));
  box-shadow: 0 0 18px rgba(82, 240, 255, 0.2);
}

.candles i::before {
  position: absolute;
  top: calc(var(--wick-top, -18px));
  bottom: calc(var(--wick-bottom, -18px));
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: rgba(220, 234, 255, 0.58);
  content: "";
  transform: translateX(-50%);
}

.candles i.down {
  background: linear-gradient(180deg, rgba(255, 95, 162, 0.9), rgba(124, 61, 255, 0.7));
}

.candles i:nth-child(1) { --body: 42px; --wick-top: -22px; --wick-bottom: -14px; }
.candles i:nth-child(2) { --body: 58px; --wick-top: -16px; --wick-bottom: -20px; }
.candles i:nth-child(3) { --body: 74px; --wick-top: -20px; --wick-bottom: -12px; }
.candles i:nth-child(4) { --body: 52px; --wick-top: -26px; --wick-bottom: -16px; }
.candles i:nth-child(5) { --body: 64px; --wick-top: -15px; --wick-bottom: -24px; }

.goal-progress-card {
  display: grid;
  align-content: space-between;
}

.goal-progress-card .progress {
  margin-top: 18px;
}

.goal-progress-card small {
  color: var(--muted);
}

.access-timeline {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.access-timeline article {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 250px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (max-width: 1120px) {
  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .chart-card,
  .dashboard-total,
  .bars-card,
  .line-card {
    grid-column: span 2;
  }

  .problems .problem-grid article:nth-child(2),
  .features .premium-grid article:nth-child(2) {
    padding-right: var(--card-pad);
  }

  .access-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .premium-grid,
  .dashboard,
  .access-timeline {
    grid-template-columns: 1fr;
  }

  .premium-grid .feature-large,
  .premium-grid article:nth-last-child(2),
  .premium-grid article:last-child,
  .chart-card,
  .dashboard-total,
  .bars-card,
  .line-card {
    grid-column: auto;
  }

  .access-timeline {
    gap: 16px;
  }

  .access-timeline article {
    min-height: auto;
  }
}

/* Checkout and payment success pages */
.checkout-shell {
  min-height: 100vh;
}

.checkout-section,
.success-section {
  padding-top: 132px;
  padding-bottom: 90px;
}

.checkout-heading h1,
.success-card h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.checkout-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 21px);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 24px;
  align-items: start;
}

.checkout-plan-card,
.checkout-form,
.success-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(82, 240, 255, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.checkout-plan-card {
  padding: 34px;
}

.checkout-plan-card h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 54px);
}

.checkout-plan-card p {
  color: var(--muted);
}

.checkout-plan-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.checkout-plan-card li {
  position: relative;
  padding-left: 24px;
}

.checkout-plan-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.checkout-form {
  display: grid;
  gap: 16px;
  padding: 30px;
}

.payment-methods {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.mini-heading {
  max-width: none;
  margin: 0 0 6px;
  text-align: center;
}

.mini-heading h2 {
  margin: 0;
  font-size: 24px;
}

.payment-method {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  cursor: pointer;
}

.payment-method input {
  width: auto;
  min-height: auto;
  accent-color: var(--blue);
}

.payment-method span {
  font-weight: 800;
}

.checkout-note {
  margin: 2px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.payment-trust {
  padding: 18px;
  border: 1px solid rgba(53, 211, 153, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(53, 211, 153, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.045);
}

.payment-trust strong {
  color: #d9fff0;
  font-size: 16px;
}

.payment-trust p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.payment-trust ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
}

.payment-trust li {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(53, 211, 153, 0.09);
  color: #c8fbea;
  font-size: 13px;
  font-weight: 800;
}

.checkout-consents {
  display: grid;
  gap: 12px;
}

.consent-checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.consent-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.consent-checkbox a {
  color: #bfe9ff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(191, 233, 255, 0.34);
  text-underline-offset: 3px;
}

.checkout-main-consent {
  margin-top: -2px;
}

.checkout-form .button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: saturate(0.45);
  transform: none;
}

.legal-page-shell {
  min-height: 100vh;
}

.legal-document-section {
  width: min(calc(100% - 32px), 900px);
  margin: 0 auto;
  padding-top: clamp(56px, 8vw, 92px);
}

.breadcrumbs {
  display: flex;
  margin: 0 0 22px;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.28);
  content: "/";
}

.breadcrumbs a:hover {
  color: var(--text);
}

.document-toc {
  margin: 28px 0 36px;
  padding: 20px;
  border: 1px solid rgba(82, 240, 255, 0.14);
  border-radius: 22px;
  background: rgba(82, 240, 255, 0.045);
}

.document-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
}

.document-toc ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding-left: 22px;
  gap: 7px 24px;
}

.document-toc a {
  color: var(--muted);
  font-size: 14px;
}

.document-toc a:hover {
  color: #bfe9ff;
}

.legal-document-card section {
  scroll-margin-top: 110px;
}

.legal-document-card {
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: clamp(24px, 5vw, 54px);
  background:
    radial-gradient(circle at 16% 0%, rgba(65, 166, 255, 0.15), transparent 22rem),
    radial-gradient(circle at 86% 12%, rgba(139, 92, 246, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
}

.legal-document-card h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-document-card h2 {
  margin: 34px 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0;
}

.legal-document-card p,
.legal-document-card li {
  color: var(--muted);
}

.legal-document-card p {
  margin: 10px 0;
}

.legal-document-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-document-card .document-lead {
  max-width: 760px;
  color: #dfe8ff;
  font-size: 18px;
}

.document-actions {
  display: flex;
  margin-bottom: 28px;
}

.document-requisites,
.document-warning {
  margin-top: 28px;
  padding: 18px;
  border-radius: 20px;
}

.document-requisites {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
}

.document-warning {
  border: 1px solid rgba(255, 209, 102, 0.2);
  background: rgba(255, 209, 102, 0.075);
  color: #ffe6a6;
  font-weight: 700;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0;
  gap: 14px;
}

.contacts-list div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.contacts-list dt {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contacts-list dd {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 700;
}

.contact-form-shell {
  display: grid;
  margin-top: 30px;
  padding: 22px;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-form-shell textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  outline: none;
}

.contact-form-shell textarea:focus {
  border-color: rgba(65, 166, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(65, 166, 255, 0.12);
}

.contact-form-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

.contact-form-shell .button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: saturate(0.45);
}

/* Isolated FinBrain analytics panel */
#analytics.analytics-panel {
  display: block;
}

.analytics-panel__heading {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.analytics-panel__heading .eyebrow {
  margin-right: auto;
  margin-left: auto;
}

.analytics-panel__heading h2 {
  margin: 16px 0 14px;
}

.analytics-panel__heading p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}

.analytics-dashboard {
  display: grid;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.analytics-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.analytics-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 0%, rgba(82, 240, 255, 0.09), transparent 40%);
  content: "";
}

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

.analytics-card:hover {
  border-color: rgba(126, 211, 255, 0.24);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.4),
    0 0 38px rgba(73, 139, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.analytics-card--wide {
  grid-column: span 2;
}

.analytics-card__label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.analytics-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.analytics-card__amount {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
}

.analytics-card__delta {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(53, 211, 153, 0.2);
  border-radius: 999px;
  background: rgba(53, 211, 153, 0.1);
  color: #a6f4d5;
  font-size: 12px;
  font-weight: 800;
}

.analytics-candlestick-chart {
  position: relative;
  height: 238px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(4, 8, 20, 0.45);
}

.analytics-chart-grid {
  position: absolute;
  inset: 16px 68px 32px 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 25%, 14.285% 100%;
}

.analytics-candles {
  position: absolute;
  inset: 16px 68px 0 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.analytics-candle-column {
  position: relative;
  min-width: 0;
}

.analytics-candle-column b {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  color: rgba(204, 216, 242, 0.68);
  font-size: 11px;
  text-align: center;
}

.analytics-candle {
  position: absolute;
  bottom: calc(32px + var(--bottom));
  left: 50%;
  width: 18px;
  height: var(--wick);
  opacity: 0;
  transform: translateX(-50%) scaleY(0.2);
  transform-origin: center bottom;
  animation: analyticsCandleIn 0.65s ease forwards;
}

.analytics-candle::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.analytics-candle span {
  position: absolute;
  top: var(--body-top);
  left: 3px;
  width: 12px;
  height: var(--body-height);
  border: 1px solid currentColor;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 14px color-mix(in srgb, currentColor 28%, transparent);
}

.analytics-candle.is-green {
  color: #35d399;
}

.analytics-candle.is-red {
  color: #ff5f89;
}

.analytics-candle-column:nth-child(2) .analytics-candle { animation-delay: 0.07s; }
.analytics-candle-column:nth-child(3) .analytics-candle { animation-delay: 0.14s; }
.analytics-candle-column:nth-child(4) .analytics-candle { animation-delay: 0.21s; }
.analytics-candle-column:nth-child(5) .analytics-candle { animation-delay: 0.28s; }
.analytics-candle-column:nth-child(6) .analytics-candle { animation-delay: 0.35s; }
.analytics-candle-column:nth-child(7) .analytics-candle { animation-delay: 0.42s; }

.analytics-trend-line {
  position: absolute;
  inset: 16px 68px 32px 8px;
  z-index: 3;
  pointer-events: none;
}

.analytics-trend-line i {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #55c8ff, #9b74ff);
  box-shadow: 0 0 10px rgba(85, 200, 255, 0.35);
  transform: rotate(var(--r));
  transform-origin: left center;
}

.analytics-chart-scale {
  position: absolute;
  top: 14px;
  right: 10px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(204, 216, 242, 0.58);
  font-size: 10px;
  text-align: right;
}

.analytics-insight-card {
  display: flex;
  flex-direction: column;
}

.analytics-insight-card h3 {
  margin: 18px 0 8px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
}

.analytics-insight-card__value {
  margin: 8px 0 14px;
  color: #ff9aba;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
}

.analytics-insight-card__value small {
  color: var(--muted);
  font-size: 14px;
}

.analytics-insight-card > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.analytics-mini-metrics {
  display: grid;
  margin-top: auto;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.analytics-mini-metrics div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.analytics-mini-metrics span {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
}

.analytics-mini-metrics strong {
  display: block;
  margin-top: 4px;
  color: #dce9ff;
  font-size: 14px;
}

.analytics-categories-card__content {
  display: grid;
  margin-top: 24px;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 20px;
}

.analytics-donut {
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#41a6ff 0 38%, #8b5cf6 38% 59%, #35d399 59% 73%, rgba(255, 255, 255, 0.12) 73% 100%);
  box-shadow: 0 0 30px rgba(65, 166, 255, 0.12);
}

.analytics-donut::after {
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: #0a0f1c;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.04);
  content: "";
}

.analytics-donut span {
  z-index: 1;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.analytics-categories-card ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.analytics-categories-card li {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.analytics-categories-card li i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.analytics-categories-card li .is-blue { background: #41a6ff; }
.analytics-categories-card li .is-violet { background: #8b5cf6; }
.analytics-categories-card li .is-green { background: #35d399; }
.analytics-categories-card li strong { color: var(--text); }

.analytics-goal-card h3 {
  margin: 24px 0 4px;
  font-size: 30px;
}

.analytics-goal-card p {
  margin: 0;
  color: var(--muted);
}

.analytics-progress {
  height: 12px;
  margin: 28px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.analytics-progress i {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35d399, #41a6ff, #8b5cf6);
  box-shadow: 0 0 20px rgba(65, 166, 255, 0.36);
  transform: scaleX(0);
  transform-origin: left;
  animation: analyticsProgressIn 1s 0.2s ease forwards;
}

.analytics-goal-card__percent {
  color: #9eefff;
  font-size: 20px;
}

.analytics-forecast-card > p {
  margin: 24px 0 4px;
  color: var(--muted);
}

.analytics-forecast-card > strong {
  display: block;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
}

.analytics-forecast-card > small {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
}

.analytics-mini-bars {
  display: grid;
  height: 84px;
  margin-top: 24px;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 10px;
}

.analytics-mini-bars i {
  display: block;
  height: var(--height);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #55c8ff, #7258f4);
  box-shadow: 0 0 16px rgba(85, 200, 255, 0.16);
  transform: scaleY(0);
  transform-origin: bottom;
  animation: analyticsBarIn 0.65s ease forwards;
}

.analytics-mini-bars i:nth-child(2) { animation-delay: 0.08s; }
.analytics-mini-bars i:nth-child(3) { animation-delay: 0.16s; }
.analytics-mini-bars i:nth-child(4) { animation-delay: 0.24s; }

@keyframes analyticsCandleIn {
  to { opacity: 1; transform: translateX(-50%) scaleY(1); }
}

@keyframes analyticsProgressIn {
  to { transform: scaleX(1); }
}

@keyframes analyticsBarIn {
  to { transform: scaleY(1); }
}

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

  .analytics-card--wide,
  .analytics-insight-card,
  .analytics-forecast-card {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .analytics-panel__heading {
    margin-bottom: 30px;
  }

  .analytics-dashboard {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .analytics-card,
  .analytics-card--wide,
  .analytics-insight-card,
  .analytics-forecast-card {
    grid-column: auto;
  }

  .analytics-card {
    border-radius: 24px;
    padding: 22px;
  }

  .analytics-card__topline {
    flex-direction: column;
  }

  .analytics-candlestick-chart {
    height: 220px;
    margin-right: -4px;
    margin-left: -4px;
  }

  .analytics-mini-metrics {
    grid-template-columns: 1fr;
  }

  .analytics-categories-card__content {
    grid-template-columns: 104px 1fr;
    gap: 14px;
  }

  .analytics-donut {
    width: 104px;
    height: 104px;
  }

  .analytics-donut::after {
    inset: 22px;
  }
}

@media (max-width: 420px) {
  .analytics-chart-grid,
  .analytics-trend-line {
    right: 58px;
  }

  .analytics-candles {
    right: 58px;
  }

  .analytics-categories-card__content {
    grid-template-columns: 1fr;
  }

  .analytics-donut {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-candle,
  .analytics-progress i,
  .analytics-mini-bars i {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

@media (max-width: 620px) {
  .footer-requisites,
  .contacts-list,
  .document-toc ol {
    grid-template-columns: 1fr;
  }
}

.success-section {
  display: grid;
  min-height: calc(100vh - 120px);
  place-items: center;
}

.success-card {
  width: min(100%, 760px);
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
}

.success-card p {
  max-width: 520px;
  margin: 18px auto 28px;
  color: var(--muted);
  font-size: 20px;
}

.success-icon {
  display: inline-grid;
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 24px;
  background: rgba(94, 231, 168, 0.12);
  box-shadow: 0 0 44px rgba(94, 231, 168, 0.16);
  font-size: 34px;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .checkout-section,
  .success-section {
    padding-top: 96px;
    padding-bottom: 56px;
  }

  .checkout-plan-card,
  .checkout-form,
  .success-card {
    border-radius: 26px;
    padding: 22px;
  }
}

/* Official FinBrain legal documents */
.legal-page {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(76, 116, 255, 0.14), transparent 32%),
    radial-gradient(circle at 88% 26%, rgba(157, 82, 255, 0.1), transparent 28%),
    #080d18;
  color: #f7f9ff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.legal-page a {
  color: inherit;
}

.legal-shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 56px) 0;
}

.legal-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 28, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.legal-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  place-items: center;
  background: linear-gradient(135deg, #3f7cff, #9a5cff);
  box-shadow: 0 0 24px rgba(89, 111, 255, 0.32);
  font-size: 12px;
  font-weight: 800;
}

.legal-brand strong {
  font-size: 18px;
}

.legal-home-link {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #dce6ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 78px 0 72px;
}

.legal-document {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 64px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035));
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.legal-document__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: start;
  gap: 32px;
}

.legal-kicker {
  margin: 0 0 15px;
  color: #8eb8ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-document h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
}

.legal-meta {
  margin: 20px 0 0;
  color: #aebbd4;
  font-size: 15px;
  line-height: 1.65;
}

.legal-approval {
  display: grid;
  padding: 22px;
  border: 1px solid rgba(119, 170, 255, 0.18);
  border-radius: 18px;
  background: rgba(65, 105, 225, 0.08);
  gap: 5px;
  color: #cbd6ed;
  font-size: 13px;
  line-height: 1.45;
}

.legal-approval strong {
  margin-bottom: 7px;
  color: #fff;
  font-size: 12px;
}

.legal-lead {
  max-width: 780px;
  margin: 32px 0 0;
  color: #c5d0e5;
  font-size: 18px;
  line-height: 1.7;
}

.legal-actions {
  display: flex;
  margin: 28px 0 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-button {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: #f5f7ff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.legal-button--primary {
  border-color: rgba(114, 143, 255, 0.45);
  background: linear-gradient(135deg, #356fff, #8858f4);
  box-shadow: 0 14px 32px rgba(61, 94, 255, 0.24);
}

.legal-toc {
  margin: 0 0 44px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(4, 9, 20, 0.38);
}

.legal-toc h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.legal-toc ol {
  display: grid;
  margin: 0;
  padding-left: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 30px;
}

.legal-toc a {
  color: #aebbd4;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.legal-content {
  display: grid;
  gap: 0;
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  scroll-margin-top: 110px;
}

.legal-section h2,
.legal-requisites h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: #bec9dd;
  font-size: 16px;
  line-height: 1.75;
}

.legal-section p {
  margin: 0 0 13px;
}

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

.legal-section ul {
  display: grid;
  margin: 0;
  padding-left: 22px;
  gap: 9px;
}

.legal-section strong {
  color: #f7f9ff;
}

.legal-requisites {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid rgba(88, 207, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(54, 117, 255, 0.1), rgba(127, 79, 255, 0.07));
}

.legal-requisites dl {
  display: grid;
  margin: 22px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.legal-requisites dl div {
  min-width: 0;
}

.legal-requisites dt {
  margin-bottom: 4px;
  color: #8492ad;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-requisites dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #f7f9ff;
  line-height: 1.5;
}

.legal-footer {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 36px;
}

.legal-footer > div {
  display: grid;
  gap: 7px;
  color: #93a1ba;
  font-size: 13px;
}

.legal-footer > div strong {
  color: #fff;
  font-size: 16px;
}

.legal-footer nav {
  display: flex;
  align-content: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.legal-footer nav a {
  color: #aebbd4;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .legal-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .legal-header {
    top: 8px;
  }

  .legal-main {
    padding-top: 46px;
  }

  .legal-document__top,
  .legal-footer {
    grid-template-columns: 1fr;
  }

  .legal-document__top {
    gap: 24px;
  }

  .legal-toc ol,
  .legal-requisites dl {
    grid-template-columns: 1fr;
  }

  .legal-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .legal-document {
    border-radius: 22px;
    padding: 22px 18px;
  }

  .legal-brand strong {
    display: none;
  }

  .legal-home-link {
    padding: 9px 11px;
  }

  .legal-actions {
    display: grid;
  }

  .legal-button {
    width: 100%;
    text-align: center;
  }
}

@media print {
  @page {
    size: A4;
    margin: 20mm;
  }

  .legal-page {
    background: #fff;
    color: #000;
    font-family: Georgia, "Times New Roman", serif;
  }

  .legal-shell {
    width: auto;
    padding: 0;
  }

  .legal-header,
  .legal-actions,
  .legal-footer {
    display: none;
  }

  .legal-main {
    max-width: none;
    padding: 0;
  }

  .legal-document {
    overflow: visible;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .legal-document__top {
    display: block;
  }

  .legal-document h1 {
    max-width: none;
    color: #000;
    font-size: 20pt;
    text-align: center;
  }

  .legal-kicker {
    display: none;
  }

  .legal-meta {
    color: #000;
    text-align: center;
  }

  .legal-approval {
    width: 82mm;
    margin: 15mm 0 10mm auto;
    border: 0;
    padding: 0;
    background: none;
    color: #000;
  }

  .legal-approval strong,
  .legal-lead,
  .legal-toc a,
  .legal-section h2,
  .legal-requisites h2,
  .legal-section p,
  .legal-section li,
  .legal-requisites dd,
  .legal-requisites a {
    color: #000;
  }

  .legal-lead,
  .legal-section p,
  .legal-section li {
    font-size: 11pt;
    line-height: 1.45;
  }

  .legal-toc,
  .legal-requisites {
    border: 1px solid #bbb;
    background: none;
  }

  .legal-section {
    border-color: #ccc;
    break-inside: avoid-page;
  }
}
