:root {
  --bg: #f8fbff;
  --bg-soft: #eef4ff;
  --bg-tint: #f4efff;
  --card: #ffffff;
  --ink: #111827;
  --muted: #5d6a84;
  --line: #dbe4f6;
  --accent: #6b4eff;
  --accent-ink: #ffffff;
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-card: 0 16px 36px rgba(17, 24, 39, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(107, 78, 255, 0.14), transparent 60%),
    radial-gradient(700px 300px at 12% 8%, rgba(82, 157, 255, 0.16), transparent 60%),
    linear-gradient(170deg, #ffffff 0%, #f2f7ff 50%, #f8fbff 100%);
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid rgba(219, 228, 246, 0.85);
}

.header-inner,
.main-wrap,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand span {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a.is-active,
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-dropdown {
  position: relative;
}

.lang-btn,
.lang-option {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn:focus-visible,
.lang-option:focus-visible,
.btn:focus-visible,
.slider-btn:focus-visible,
.review-dot:focus-visible,
.faq-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  list-style: none;
  margin: 0;
  padding: 8px;
  width: 188px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  display: none;
  z-index: 80;
}

.lang-dropdown.is-open .lang-menu {
  display: block;
}

.lang-menu li + li {
  margin-top: 6px;
}

.lang-option {
  width: 100%;
  border-radius: 10px;
  text-align: left;
}

.lang-option.is-selected,
.lang-option:hover {
  border-color: rgba(107, 78, 255, 0.24);
  background: rgba(107, 78, 255, 0.09);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 22px rgba(107, 78, 255, 0.26);
}

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

.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

main {
  padding: 34px 0 72px;
}

.main-wrap {
  display: grid;
  gap: 26px;
}

.hero,
.section,
.page-card,
.cta-band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hero {
  padding: 36px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: start;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 4vw, 54px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 20px;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tags {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(107, 78, 255, 0.22);
  background: rgba(107, 78, 255, 0.08);
  color: #4f39cc;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-proof {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, #ffffff 0%, #f4f8ff 62%, #f4efff 100%);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.visual-chart {
  border: 1px solid rgba(107, 78, 255, 0.16);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.grid-line {
  stroke: rgba(93, 106, 132, 0.18);
  stroke-width: 1;
}

.curve-area {
  fill: url(#areaFill);
}

.curve-line {
  fill: none;
  stroke: url(#curveStroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 880;
  stroke-dashoffset: 880;
  animation: drawCurve 2.4s ease forwards;
}

.curve-dot {
  fill: #6b4eff;
  animation: pulseDot 2.2s ease-in-out infinite;
}

.visual-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.mini-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.section,
.page-card,
.cta-band {
  padding: 32px;
}

.section-soft {
  background: linear-gradient(168deg, #ffffff 0%, #f4f8ff 100%);
}

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

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 14px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.step-card,
.benefit-card,
.test-card {
  position: relative;
  overflow: hidden;
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(107, 78, 255, 0.1);
  border: 1px solid rgba(107, 78, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  stroke: #5a43df;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  background: rgba(107, 78, 255, 0.1);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 700;
}

.test-card.active {
  border-color: rgba(107, 78, 255, 0.35);
}

.slider-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}

.reviews-track {
  position: relative;
  min-height: 188px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: #fff;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.review-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.review-quote {
  margin: 0;
  font-size: 18px;
}

.review-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.review-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.review-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #c7d2eb;
  cursor: pointer;
}

.review-dot.is-active {
  background: var(--accent);
}

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.faq-answer {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
}

.cta-band {
  display: grid;
  gap: 10px;
  text-align: center;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  margin-bottom: 20px;
}

.page-sub {
  margin-top: 10px;
  color: var(--muted);
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 26px 0;
  align-items: end;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a,
.footer-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--ink);
}

@keyframes drawCurve {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-bottom: 4px;
  }

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

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

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

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner,
  .main-wrap,
  .footer-inner {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero,
  .section,
  .page-card,
  .cta-band {
    padding: 22px;
  }

  .slider-shell {
    grid-template-columns: 1fr;
  }

  .slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .reviews-track {
    min-height: 220px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
