/* ---------- Design system ---------- */
:root {
  --navy: #0B1B33;
  --navy-2: #13294B;
  --ink: #0B1B33;
  --text: #425466;
  --muted: #6B7C93;
  --line: #E3E8EE;
  --tint: #F6F9FC;
  --white: #fff;
  --blue: #0A85FF;
  --indigo: #5B6CFF;
  --cyan: #22D3EE;
  --coral: #FF7A59;
  --amber: #FFB547;
  --green: #12B886;
  --grad: linear-gradient(100deg, var(--blue), var(--indigo) 55%, var(--cyan));
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 30px 60px -12px rgba(50, 50, 93, .25), 0 18px 36px -18px rgba(0, 0, 0, .3);
  --shadow-sm: 0 2px 5px -1px rgba(50, 50, 93, .25), 0 1px 3px -1px rgba(0, 0, 0, .3);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
.h1 { color: var(--ink); font-size: clamp(40px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.h2 { color: var(--ink); font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; max-width: 760px; }
.h2--light { color: var(--white); }
.h3 { color: var(--ink); font-size: 24px; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
.h4 { color: var(--ink); font-size: 17px; line-height: 1.35; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text); max-width: 540px; }
.sub { font-size: 18px; line-height: 1.6; max-width: 620px; margin-top: 16px; }
.sub--light { color: #ADBDCC; }
.t1 { font-size: 16px; }
.t2 { font-size: 15px; line-height: 1.55; }
.t3 { font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--indigo); margin-bottom: 14px; }
.eyebrow--light { color: var(--ink); }
.eyebrow--cyan { color: var(--cyan); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: background .2s, color .2s, opacity .2s, transform .2s; }
.btn--pill { padding: 10px 18px; border-radius: 999px; }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); }
.btn--light { background: rgba(255, 255, 255, .22); color: var(--white); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, .34); }
.btn--ghost { color: var(--ink); padding-left: 6px; }
.btn--ghost:hover { opacity: .7; }
.arr { display: inline-block; font-size: 18px; line-height: 1; transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.nav.is-stuck { position: fixed; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; gap: 36px; height: 72px; }
.logo { color: var(--ink); flex: none; }
.logo svg { width: 93px; height: 30px; }
.nav__links { display: flex; gap: 30px; font-weight: 500; font-size: 15px; color: var(--ink); }
.nav__links a:hover { opacity: .65; }
.nav__cta { margin-left: auto; background: var(--navy); }
.nav__cta:hover { background: var(--navy-2); }
.nav__burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav__burger span + span { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; }
.hero__bg { position: absolute; inset: -40% 0 auto -10%; height: 900px; transform: skewY(-12deg); transform-origin: 0 0;
  background:
    radial-gradient(40% 60% at 15% 50%, #7FD8FF 0%, transparent 70%),
    radial-gradient(35% 55% at 45% 30%, #8E7BFF 0%, transparent 70%),
    radial-gradient(35% 60% at 70% 60%, #FF9E7A 0%, transparent 70%),
    radial-gradient(30% 50% at 92% 35%, #FFC56E 0%, transparent 70%),
    linear-gradient(100deg, #5BC8FF, #7B6CFF 45%, #FF8A6B 75%, #FFC56E);
  background-size: 200% 200%; animation: flow 18s ease-in-out infinite alternate; opacity: .95; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, .0) 100%); }
@keyframes flow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__copy .h1 { color: var(--ink); mix-blend-mode: normal; }
.hero__copy .lead { margin-top: 24px; color: var(--navy-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* dashboard mock */
.dash { position: relative; height: 470px; }
.dash__card { position: absolute; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.dash__main { top: 20px; left: 0; right: 40px; }
.dash__head { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-weight: 600; }
.dash__big { color: var(--ink); font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.dash__chart { width: 100%; height: 130px; margin-top: 14px; }
.dash__line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tag { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.tag--up { color: #0B7A5A; background: #D5F5E8; }
.dash__rpm { left: -20px; bottom: 10px; width: 210px; }
.dash__mid { color: var(--ink); font-size: 24px; font-weight: 700; margin: 2px 0 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--grad); }
.bars i:nth-child(1) { height: 38%; } .bars i:nth-child(2) { height: 46%; } .bars i:nth-child(3) { height: 44%; }
.bars i:nth-child(4) { height: 60%; } .bars i:nth-child(5) { height: 68%; } .bars i:nth-child(6) { height: 82%; } .bars i:nth-child(7) { height: 100%; }
.dash__geo { right: 0; bottom: 0; width: 280px; }
.geo { margin-top: 10px; display: grid; gap: 9px; }
.geo li { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.geo em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.geo__bar { height: 6px; border-radius: 3px; background: var(--grad); }
.g1 { width: 100%; } .g2 { width: 82%; } .g3 { width: 64%; } .g4 { width: 41%; }

/* ---------- Stats ---------- */
.stats { padding: 20px 0 80px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-left: 1px solid var(--line); padding-left: 18px; position: relative; }
.stat::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 26px; background: var(--indigo); }
.stat__n { color: var(--ink); font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; transition: box-shadow .25s, transform .25s; }
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pillar__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; margin-bottom: 22px; }
.pillar__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar .t1 { margin-top: 12px; }
.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #E6EBFF; }
.checks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 4px; border-left: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(-45deg); }

.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.brand { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.brand:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.brand__dot { display: block; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 18px; }
.d1 { background: linear-gradient(135deg, #0A85FF, #22D3EE); }
.d2 { background: linear-gradient(135deg, #FF7A59, #FFB547); }
.d3 { background: linear-gradient(135deg, #12B886, #22D3EE); }
.d4 { background: linear-gradient(135deg, #5B6CFF, #A78BFA); }
.d5 { background: linear-gradient(135deg, #FFB547, #FF7A59); }
.d6 { background: linear-gradient(135deg, #A78BFA, #FF7A9C); }
.brand .t2 { margin-top: 6px; }
.meta { margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 500; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.steps { display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-size: 15px; font-weight: 700; color: var(--indigo); padding-top: 1px; }
.step .t2 { margin-top: 4px; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.case { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.case__n { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.case:nth-child(1) .case__n { color: var(--indigo); }
.case:nth-child(2) .case__n { color: var(--blue); }
.case:nth-child(3) .case__n { color: var(--coral); }
.case .t1 { margin-top: 16px; }

/* ---------- Trust (dark) ---------- */
.trust { position: relative; background: var(--navy); color: #ADBDCC; padding: 120px 0; overflow: hidden; }
.trust__bg { position: absolute; inset: 0; background: radial-gradient(50% 70% at 90% 0%, rgba(91, 108, 255, .35), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(34, 211, 238, .18), transparent 70%); }
.trust .wrap { position: relative; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 56px 0 40px; }
.tcard { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 24px; }
.tcard .h4 { color: var(--white); }
.tcard .t2 { margin-top: 8px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; font-weight: 700; margin-bottom: 18px; }
.a1 { background: linear-gradient(135deg, #0A85FF, #5B6CFF); }
.a2 { background: linear-gradient(135deg, #FF7A59, #FFB547); }
.a3 { background: linear-gradient(135deg, #12B886, #22D3EE); }
.a4 { background: linear-gradient(135deg, #5B6CFF, #A78BFA); }
.person .t3 { margin-top: 2px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.info { margin-top: 36px; display: grid; gap: 18px; }
.info dt { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info dd { color: var(--ink); font-weight: 500; }
.info a { color: var(--indigo); }
.form { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 15px; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(91, 108, 255, .18); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--indigo); }

/* ---------- Footer ---------- */
.foot { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.logo--foot { display: inline-block; margin-bottom: 14px; }
.foot__h { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.foot__grid a:not(.logo) { display: block; font-size: 14px; color: var(--muted); padding: 4px 0; }
.foot__grid a:not(.logo):hover { color: var(--ink); }
.foot__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Legal pages ---------- */
.page-hero { position: relative; padding: 140px 0 60px; background: var(--tint); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -60% -10% auto; height: 420px; transform: skewY(-8deg); background: var(--grad); opacity: .12; }
.page-hero .wrap { position: relative; }
.page-hero .sub { margin-top: 12px; }
.legal { padding: 64px 0 110px; }
.legal .wrap { max-width: 780px; }
.legal h2 { color: var(--ink); font-size: 22px; letter-spacing: -.01em; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--indigo); }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); width: 38%; font-weight: 600; }
.nav--solid { position: sticky; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* ---------- Segments & FAQ ---------- */
h1.eyebrow { font-size: 15px; line-height: 1.6; letter-spacing: 0; }
.segments li { padding: 18px 0; border-top: 1px solid var(--line); }
.segments li:last-child { border-bottom: 1px solid var(--line); }
.segments p { margin-top: 4px; }
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq__list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; position: relative; padding-right: 40px; color: var(--ink); font-weight: 600; font-size: 17px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 4px; top: -3px; font-size: 24px; font-weight: 400; color: var(--indigo); transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { margin-top: 10px; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 160px 0 100px; background: var(--tint); }
.notfound .sub { margin: 16px auto 32px; }
.notfound .h2 { margin: 0 auto; }

@media (max-width: 980px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open { position: fixed; background: var(--white); box-shadow: 0 1px 0 var(--line); }
  .nav.is-open .nav__in { flex-wrap: wrap; height: auto; padding-top: 18px; padding-bottom: 20px; }
  .nav.is-open .nav__links { display: grid; gap: 14px; order: 3; width: 100%; font-size: 17px; }
  .nav.is-open .nav__cta { display: inline-flex; order: 4; margin-left: 0; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { padding: 120px 0 70px; }
  .hero__in { grid-template-columns: 1fr; }
  .dash { height: 430px; max-width: 520px; }
  .stats__grid, .trust__grid, .team { grid-template-columns: repeat(2, 1fr); }
  .brands, .cases { grid-template-columns: 1fr 1fr; }
  .pillars, .split, .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .trust { padding: 90px 0; }
  .dash { height: auto; display: grid; gap: 14px; }
  .dash__card { position: static; width: auto; }
  .dash__rpm, .dash__geo { width: auto; }
  .brands, .cases, .team, .trust__grid { grid-template-columns: 1fr; }
  .stats__grid { gap: 24px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
  .pillar { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dash__line { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
