/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #18181B;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== DESIGN TOKENS ===== */
:root {
  --clr-bg:        #FFFFFF;
  --clr-bg-alt:    #F9F9F8;
  --clr-bg-dark:   #18181B;
  --clr-accent:    #4F46E5;
  --clr-accent-hv: #4338CA;
  --clr-accent-lt: #EEF2FF;
  --clr-text:      #18181B;
  --clr-muted:     #71717A;
  --clr-border:    #E4E4E7;
  --clr-success:   #10B981;
  --clr-error:     #EF4444;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06);
  --shadow-md:     0 2px 12px rgba(0,0,0,.07);
  --shadow-accent: 0 4px 12px rgba(79,70,229,.25);
  --container:     1200px;
  --px-desktop:    48px;
  --px-mobile:     16px;
  --section-py:    96px;
  --section-py-sm: 56px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: calc(var(--container) + var(--px-desktop) * 2);
  margin: 0 auto;
  padding: 0 var(--px-desktop);
}
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--clr-bg-alt); }
.section--dark { background: var(--clr-bg-dark); color: #fff; }
.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  text-align: center;
}
.section--dark .section-title { color: #fff; }
.section-lead {
  font-size: 18px;
  color: var(--clr-muted);
  line-height: 1.6;
  text-align: center;
  max-width: 720px;
  margin: -32px auto 48px;
}
.section--dark .section-lead { color: rgba(255,255,255,.65); }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease-out, transform .3s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in--delay { transition-delay: .12s; }
.stagger-1 { transition-delay: .0s; }
.stagger-2 { transition-delay: .08s; }
.stagger-3 { transition-delay: .16s; }
.stagger-4 { transition-delay: .24s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .3; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}
.pulse-ring { animation: pulse-ring 2.4s ease-out infinite; transform-origin: 240px 180px; }
@keyframes orbit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -28; }
}
@keyframes glow-shift {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .5; }
  50% { transform: scale(1.08) translate(8px, -6px); opacity: .8; }
}
@keyframes ping-travel {
  0% { opacity: 0; transform: scale(.5); }
  15% { opacity: 1; }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translate(0,-14px) scale(.7); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 12px 24px;
  transition: background .15s, color .15s, box-shadow .15s, border-color .15s, transform .15s;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border: none;
}
.btn-primary:hover { background: var(--clr-accent-hv); box-shadow: var(--shadow-accent); }
.btn-primary:active { background: #3730A3; transform: translateY(1px); }
.btn-primary:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 2px; }
.btn-secondary {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}
.btn-secondary:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.btn-ghost {
  background: transparent;
  color: var(--clr-accent);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-ghost .arrow { display: inline-block; transition: transform .15s; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-submit {
  min-width: 200px;
  justify-content: center;
  position: relative;
}
.btn-spinner {
  display: none;
  animation: spin .8s linear infinite;
}
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-spinner { display: flex; position: absolute; }
.btn-submit.success {
  background: var(--clr-success);
  pointer-events: none;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.scrolled {
  border-color: var(--clr-border);
  box-shadow: 0 1px 0 var(--clr-border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--clr-text);
  flex-shrink: 0;
}
.header__logo:hover { color: var(--clr-accent); }
.header__nav {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color .15s;
}
.nav-link:hover { color: var(--clr-text); }
.header__cta { margin-left: auto; }
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99;
  padding: 32px var(--px-mobile);
  flex-direction: column;
  gap: 8px;
}
.mobile-overlay.open { display: flex; }
.mobile-nav-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--clr-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-border);
}
.mobile-cta { margin-top: 24px; width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__accent-line {
  font-size: 22px;
  font-weight: 600;
  color: var(--clr-accent);
  line-height: 1.4;
  margin-bottom: 20px;
}
.hero__note {
  font-size: 15px;
  color: var(--clr-muted);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero__sub {
  font-size: 19px;
  color: var(--clr-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--clr-muted);
}
.hero__social-proof svg { flex-shrink: 0; }
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.hero__svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(79,70,229,.12));
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(12px);
  animation: glow-shift 6s ease-in-out infinite;
}
.hero__glow--one {
  width: 180px;
  height: 180px;
  left: 14%;
  top: 14%;
  background: radial-gradient(circle, rgba(79,70,229,.28) 0%, rgba(79,70,229,0) 75%);
}
.hero__glow--two {
  width: 210px;
  height: 210px;
  right: 8%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(34,211,238,.2) 0%, rgba(34,211,238,0) 72%);
  animation-delay: 1.4s;
}
.hero__link {
  opacity: .85;
  animation: dash-flow 2.2s linear infinite;
}
.node--outer { animation: orbit-float 4.2s ease-in-out infinite; transform-origin: center; }
.node--1 { animation-delay: .1s; }
.node--2 { animation-delay: .35s; }
.node--3 { animation-delay: .6s; }
.node--4 { animation-delay: .8s; }
.node--5 { animation-delay: 1s; }
.node--6 { animation-delay: 1.2s; }
.node--7 { animation-delay: 1.45s; }
.data-ping {
  transform-origin: center;
  animation: ping-travel 2.4s ease-in-out infinite;
}
.data-ping--delay { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .hero__link,
  .node--outer,
  .data-ping,
  .hero__glow,
  .pulse-ring { animation: none !important; }
}

/* ===== PROBLEM ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 44px;
  height: 44px;
  background: #FEF2F2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card__icon--accent { background: var(--clr-accent-lt); }
.card__text { font-size: 15px; color: var(--clr-muted); line-height: 1.55; }

/* ===== HOW IT WORKS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-accent-lt);
  color: var(--clr-accent);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.step__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step__text { font-size: 15px; color: var(--clr-muted); }
.step__connector {
  flex: 0 0 auto;
  width: 60px;
  height: 2px;
  background: var(--clr-border);
  margin-top: 27px;
  position: relative;
}
.step__connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--clr-border);
}

/* ===== PROCESS (4 steps) ===== */
.steps--four .step__number { width: 48px; height: 48px; font-size: 18px; }
.steps--four .step__connector { width: 40px; }
.cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cycle-item {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
}
.cycle-item__title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
}
.cycle-item__text {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.product-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s, transform .2s;
}
.product-card:nth-child(4) { grid-column: 2 / 4; }
.product-card:nth-child(5) { grid-column: 4 / 6; }
.product-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: translateY(-2px); }
.product-card__img-wrap { overflow: hidden; aspect-ratio: 16/9; flex-shrink: 0; }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-card__img { transform: scale(1.03); }
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 24px 24px;
}
.product-card__title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.product-card__tagline { font-size: 14px; font-weight: 500; color: var(--clr-accent); margin-bottom: 10px; }
.product-card__desc { font-size: 14px; color: var(--clr-muted); margin-bottom: 14px; line-height: 1.5; flex: 1; }
.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-muted);
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: 4px 10px;
}
.product-card__footnote {
  font-size: 12px;
  color: var(--clr-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  font-style: italic;
}
.product-card__link { font-size: 14px; font-weight: 600; margin-top: auto; }

/* ===== COMPARISON ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--clr-border); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: middle;
}
.compare-table thead th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-muted);
  background: var(--clr-bg-alt);
  white-space: nowrap;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .row-alt td { background: var(--clr-bg-alt); }
.compare-table .col-accent {
  background: var(--clr-accent-lt);
  border-top: 2px solid var(--clr-accent);
}
.compare-table thead .col-accent {
  color: var(--clr-accent);
  background: var(--clr-accent-lt);
}
.compare-table tbody .col-accent strong { color: var(--clr-accent); }

/* ===== CONTACT FORM ===== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__text .section-title { text-align: left; margin-bottom: 16px; }
.contact__text .section-lead { text-align: left; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; }
.contact__sub { font-size: 16px; color: var(--clr-muted); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 500; color: var(--clr-text); }
.required { color: var(--clr-error); }
.form-input {
  padding: 12px 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--clr-text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
  min-height: 44px;
}
.form-input::placeholder { color: #A1A1AA; }
.form-input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-input.error { border-color: var(--clr-error); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.form-textarea { min-height: 120px; }
.form-error { font-size: 13px; color: var(--clr-error); display: none; }
.form-error.visible { display: block; }
.form-actions { display: flex; }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #F0FDF9;
  border: 1px solid #6EE7B7;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: #065F46;
}
.form-error-global {
  padding: 14px 18px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  font-size: 15px;
  color: #991B1B;
}

/* ===== FAQ ===== */
.faq__inner { max-width: 720px; margin: 0 auto; }
.faq__inner .section-title { text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--clr-border);
}
.faq-item:first-child { border-top: 1px solid var(--clr-border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--clr-text);
  text-align: left;
  transition: color .15s;
}
.faq-question:hover { color: var(--clr-accent); }
.faq-icon {
  flex-shrink: 0;
  color: var(--clr-muted);
  transition: transform .25s ease;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-answer p {
  font-size: 15px;
  color: var(--clr-muted);
  line-height: 1.65;
  padding-bottom: 20px;
}

/* ===== FINAL CTA ===== */
.final-cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.final-cta__title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.final-cta__sub {
  font-size: 17px;
  color: var(--clr-muted);
  margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--clr-bg-dark);
  color: rgba(255,255,255,.6);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
}
.footer__logo:hover { color: #fff; }
.footer__tagline { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.5; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer__link:hover { color: rgba(255,255,255,.85); }
.footer__contacts { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__copy { font-size: 13px; }
.footer__legal { display: flex; align-items: center; gap: 12px; }
.footer__sep { color: rgba(255,255,255,.2); }
.footer__link-sm {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  transition: color .15s;
}
.footer__link-sm:hover { color: rgba(255,255,255,.65); }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1023px) {
  :root {
    --section-py: 72px;
  }
  .container { padding: 0 32px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: 44px; }
  .hero__visual { max-width: 360px; margin: 0 auto; }
  .cards-grid { grid-template-columns: 1fr; }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card,
  .product-card:nth-child(4),
  .product-card:nth-child(5) {
    grid-column: auto;
  }
  .cycle-grid { grid-template-columns: repeat(2, 1fr); }
  .steps--four .step__connector { width: 28px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Mobile L */
@media (max-width: 767px) {
  :root {
    --section-py: var(--section-py-sm);
  }
  .container { padding: 0 var(--px-mobile); }
  .header__nav, .header__cta { display: none; }
  .header__burger { display: flex; }
  .header__inner { gap: 0; }
  .section-title { font-size: 28px; margin-bottom: 32px; }
  .hero__title { font-size: 36px; }
  .hero__sub { font-size: 16px; }
  .hero__cta-group { flex-direction: column; align-items: stretch; }
  .hero__cta-group .btn { justify-content: center; }
  .steps { flex-direction: column; align-items: stretch; }
  .step { align-items: flex-start; text-align: left; flex-direction: row; padding: 0; gap: 20px; }
  .step__number { margin-bottom: 0; flex-shrink: 0; }
  .step__connector { width: 2px; height: 32px; margin: 4px 0 4px 27px; }
  .step__connector::after { right: -4px; top: auto; bottom: -6px; border: 5px solid transparent; border-top-color: var(--clr-border); border-left-color: transparent; }
  .hero__accent-line { font-size: 18px; }
  .section-lead { font-size: 16px; margin-top: -24px; margin-bottom: 32px; }
  .cycle-grid { grid-template-columns: 1fr; gap: 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card,
  .product-card:nth-child(4),
  .product-card:nth-child(5) { grid-column: auto; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .final-cta__title { font-size: 28px; }
  .contact__text .section-title { font-size: 28px; }
  .compare-table { min-width: 560px; }
}

/* Mobile S */
@media (max-width: 479px) {
  .hero__title { font-size: 30px; }
  .cycle-item { padding: 18px; }
}
