/* ========== Variables ========== */
:root {
  --bg: #ffffff;
  --soft: #f5f8ff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #5b6577;
  --blue: #4f6bff;
  --blue-dark: #3a52e0;
  --teal: #14b8a6;
  --line: #e5eaf5;
  --grad: linear-gradient(120deg, #4f6bff 0%, #7c5cff 50%, #14b8a6 110%);
  --radius: 20px;
  --shadow: 0 18px 50px rgba(79, 107, 255, 0.14);
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad--light { background: linear-gradient(120deg, #9db0ff, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }
.label { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.label--light { color: #aebcff; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 24px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.2); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font: 700 .95rem 'Plus Jakarta Sans', sans-serif;
  border: 1.5px solid transparent; border-radius: 14px; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(79,107,255,.5); outline-offset: 3px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(79,107,255,.35); }
.btn--primary:hover { box-shadow: 0 14px 32px rgba(79,107,255,.5); }
.btn--soft { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--soft:hover { border-color: var(--blue); color: var(--blue); }
.btn--white { background: #fff; color: var(--blue-dark); }

/* ========== Header ========== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15,23,42,.04); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo img { height: 45px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a { font-weight: 600; font-size: .93rem; color: var(--muted); padding: 8px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.active { color: var(--blue); background: rgba(79,107,255,.1); }
.header__cta { padding: 10px 22px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========== Hero ========== */
.hero { padding: 84px 0 100px; background:
  radial-gradient(700px 400px at 85% 10%, rgba(124,92,255,.16), transparent 70%),
  radial-gradient(600px 400px at 5% 90%, rgba(20,184,166,.13), transparent 70%),
  var(--soft); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); margin-bottom: 22px; }
.hero__lead { font-size: 1.18rem; color: var(--muted); max-width: 530px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Dashboard visual */
.dash { position: relative; padding: 20px 0 56px; }
.dash__card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.dash__card--main { padding: 24px; }
.dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dash__tag { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--soft); padding: 4px 12px; border-radius: 999px; }
.dash__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.dash__chart { width: 100%; height: auto; }
.dash__line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.dash__steps span { background: var(--soft); border-radius: 10px; text-align: center; padding: 8px 4px; }
.dash__steps .dash__sale { background: rgba(20,184,166,.14); color: #0d8f81; }
.dash__card--float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; animation: float 6s ease-in-out infinite; }
.dash__card--float strong { display: block; font-size: .92rem; line-height: 1.2; }
.dash__card--float small { color: var(--muted); font-size: .76rem; }
.dash__card--a { right: -16px; bottom: -22px; }
.dash__card--b { left: -28px; top: 96px; animation-delay: -3s; }
.dash__ico { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.dash__ico--b { background: var(--grad); }
.dash__ico--t { background: linear-gradient(135deg, #14b8a6, #5eead4); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ========== Sections ========== */
.section { padding: 100px 0; }
.section--ink { background: radial-gradient(700px 400px at 90% 0%, rgba(124,92,255,.25), transparent 70%), var(--ink); color: #fff; }
.section--blue { background: linear-gradient(135deg, #3a52e0 0%, #6a4fe8 55%, #0f9d8f 120%); color: #fff; }
.section--soft { background: var(--soft); }
.section__head { max-width: 740px; margin-bottom: 56px; }
.section__head h2, .contact h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.section--ink .section__lead { color: #a9b4cc; }

/* ========== Services ========== */
.svcs { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 22px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(79,107,255,.4); }
.svc__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.svc__n { width: 44px; height: 44px; border-radius: 14px; background: rgba(79,107,255,.1); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.svc__badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.2); padding: 5px 12px; border-radius: 999px; }
.svc h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: .96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.svc--hot { grid-column: span 2; background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow); }
.svc--hot .svc__n { background: rgba(255,255,255,.22); color: #fff; }
.svc--hot p { color: rgba(255,255,255,.9); max-width: 560px; }
.svc--hot .chips li { background: rgba(255,255,255,.2); color: #fff; }

/* ========== Funnel ========== */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: f; }
.funnel__stage { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(8px); transition: transform .3s, background .3s; }
.funnel__stage:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.funnel__stage:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-size: .85rem; z-index: 2; }
.funnel__stage span { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9db0ff; margin-bottom: 14px; }
.funnel__stage h3 { font-size: 1.5rem; margin-bottom: 8px; }
.funnel__stage p { color: #b3bdd3; font-size: .95rem; }
.funnel__stage--4 { background: var(--grad); border: 0; }
.funnel__stage--4 span, .funnel__stage--4 p { color: rgba(255,255,255,.9); }

/* ========== Affiliate flow ========== */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; margin-bottom: 40px; }
.flow__node { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.flow__node span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(79,107,255,.1); color: var(--blue); font-size: .8rem; font-weight: 800; }
.flow__node h3 { font-size: 1.3rem; margin: 12px 0 6px; }
.flow__node p { font-size: .92rem; color: var(--muted); line-height: 1.55; }
.flow__node--hot { background: var(--grad); border: 0; color: #fff; }
.flow__node--hot span { background: rgba(255,255,255,.22); color: #fff; }
.flow__node--hot p { color: rgba(255,255,255,.9); }
.flow__arrow { align-self: center; font-size: 1.6rem; font-weight: 700; color: var(--blue); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo__card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 38px; display: flex; flex-direction: column; align-items: flex-start; box-shadow: var(--shadow-sm); }
.duo__card--blue { background: var(--ink); color: #fff; border: 0; }
.duo__card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.duo__card ul { margin-bottom: 28px; flex: 1; }
.duo__card li { padding: 9px 0 9px 30px; position: relative; color: var(--muted); }
.duo__card--blue li { color: #c3cce0; }
.duo__card li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(20,184,166,.18); color: #0d8f81; font-size: .72rem; font-weight: 800; display: grid; place-items: center; top: 13px; }
.note { margin-top: 26px; font-size: .88rem; color: var(--muted); }

/* ========== Contact ========== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__copy > p { margin: 20px 0 28px; color: rgba(255,255,255,.85); font-size: 1.08rem; }
.contact__list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.25); }
.contact__list strong { display: inline-block; min-width: 72px; color: #c9d3ff; font-weight: 600; }
.contact__list a { text-decoration: underline; text-underline-offset: 3px; }
.form { background: #fff; color: var(--ink); border-radius: 26px; box-shadow: 0 30px 70px rgba(10,15,60,.35); padding: 36px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { font: 500 1rem 'Plus Jakarta Sans', sans-serif; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); width: 100%; transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); background: #fff; outline: none; }
.form textarea { resize: vertical; }
.form .btn { box-shadow: 0 10px 24px rgba(79,107,255,.35); }
.form__note { font-size: .83rem; color: var(--muted); }
.form__note--error { color: #d1122e; font-weight: 600; }

/* ========== Footer ========== */
.footer { background: var(--ink); color: #9aa6bf; padding-top: 60px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 38px; }
.footer__brand .logo { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 14px; margin-bottom: 14px; }
.footer__brand p { max-width: 330px; font-size: .95rem; }
.footer__links { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.footer__links a { text-transform: capitalize; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #223049; padding: 20px 0; font-size: .85rem; }

/* ========== Back to top ========== */
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(79,107,255,.4); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .25s; z-index: 40; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }

/* ========== Reveal ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ========== Responsive ========== */
@media (max-width: 1000px) {
  .hero__inner, .contact, .duo { grid-template-columns: 1fr; }
  .dash { max-width: 520px; margin: 0 auto; width: 100%; }
  .dash__card--a { right: 0; } .dash__card--b { left: 0; }
  .svcs { grid-template-columns: repeat(2, 1fr); }
  .funnel { grid-template-columns: repeat(2, 1fr); }
  .funnel__stage:nth-child(2)::after { display: none; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(15,23,42,.08); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 70px; }
  .svcs, .funnel { grid-template-columns: 1fr; }
  .svc--hot { grid-column: span 1; }
  .funnel__stage::after { display: none !important; }
  .dash__card--float { display: none; }
  .duo__card, .form { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dash__card--float { animation: none; }
  .dash__line { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========== Form spam trap ========== */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ========== Form privacy line ========== */
.form-privacy { font-size: .8rem; color: var(--muted); margin: 0; }
.form-privacy a { text-decoration: underline; text-underline-offset: 2px; }

/* ========== Legal pages ========== */
.legal { padding: 64px 0 90px; background: var(--soft); }
.legal__inner { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 48px; box-shadow: var(--shadow-sm); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 8px; }
.legal__updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal li { padding: 2px 0; }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .legal { padding: 40px 0 60px; } .legal__inner { padding: 28px 22px; } }
