:root {
  --ink: #0b0d12; --body: #3c4250; --muted: #737a89; --line: #e7e8ec;
  --bg: #ffffff; --surface: #f6f7f9; --accent: #2451ff; --accent-ink: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.68);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f4f8; --body: #b8bdc9; --muted: #7e8492; --line: #23262e;
    --bg: #0b0d12; --surface: #14161c; --accent: #5b7bff; --accent-ink: #0b0d12;
    --nav-bg: rgba(11, 13, 18, 0.68);
  }
}
@media (prefers-reduced-transparency: reduce) { :root { --nav-bg: var(--bg); } .nav { backdrop-filter: none !important; } }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font: 100%/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; font-optical-sizing: auto; background: var(--bg); color: var(--body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.nav::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: var(--line); opacity: 0; transition: opacity 240ms ease; }
.nav.is-scrolled::after { opacity: 1; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.5rem; max-width: 68rem; margin: 0 auto; }
.logo { font-weight: 650; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; font-size: 0.92rem; }
.nav-links a { color: var(--body); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* type */
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 680; color: var(--ink); text-wrap: balance; max-width: 16ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.015em; font-weight: 650; color: var(--ink); text-wrap: balance; }
h3 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.005em; font-weight: 620; color: var(--ink); }
h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.55; max-width: 38rem; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.meta { font-size: 0.9rem; color: var(--muted); }
.sub { max-width: 40rem; margin-top: 1rem; }

/* layout */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
section.alt { background: var(--surface); }
.hero { padding-top: clamp(4.5rem, 11vw, 8rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero p.lead { margin: 1.4rem 0 2.2rem; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.98rem; padding: 0.78rem 1.35rem; border-radius: 999px; text-decoration: none; transition: transform 320ms cubic-bezier(0.25, 1, 0.35, 1), box-shadow 320ms ease; }
.btn.small { font-size: 0.88rem; padding: 0.55rem 1rem; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn:active { transform: scale(0.97); transition-duration: 90ms; }
a.quiet { color: var(--accent); text-decoration: none; font-weight: 550; }
a.quiet:hover { text-decoration: underline; }
.btn-row { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }

/* stats row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stat .v { display: block; font-size: 1.8rem; font-weight: 680; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .k { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 0.3rem; max-width: 16rem; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.4rem; transition: transform 420ms cubic-bezier(0.25, 1, 0.35, 1); }
section.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.94rem; line-height: 1.55; }

/* case study */
.case { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; margin-top: 2.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.8rem; }
.case h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
.case-body p { margin-top: 0.8rem; }
.case-side { display: grid; gap: 1rem; align-content: start; border-left: 1px solid var(--line); padding-left: 2rem; }
.case-stat .v { display: block; font-size: 1.7rem; font-weight: 680; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.case-stat .k { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 0.25rem; }
@media (max-width: 48rem) { .case { grid-template-columns: 1fr; } .case-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }

ul.ticks { list-style: none; padding: 0; display: grid; gap: 0.5rem; margin-top: 1rem; font-size: 0.95rem; line-height: 1.5; }
ul.ticks li { padding-left: 1.3rem; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

/* team */
.team { margin-top: 2.4rem; }
.person { display: grid; grid-template-columns: 6rem 1fr; gap: 1.6rem; align-items: start; max-width: 50rem; }
.avatar { width: 6rem; height: 6rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; }
.person h3 { font-size: 1.3rem; }
.person p { margin-top: 0.5rem; }
@media (max-width: 36rem) { .person { grid-template-columns: 1fr; } }

/* offer */
.offer { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.8rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; margin-top: 2rem; }
section:not(.alt) .offer { background: var(--surface); }
.price { font-size: 1.5rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.price small { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); margin-top: 0.2rem; }
@media (max-width: 44rem) { .offer { grid-template-columns: 1fr; } }

/* process */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.3rem; }
.steps li::before { content: "0" counter(s); display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.9rem; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { font-size: 0.93rem; line-height: 1.5; }
.engage { margin-top: 2rem; max-width: 44rem; color: var(--muted); font-size: 0.95rem; }

/* services page */
.svc { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 2rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.svc:last-of-type { border-bottom: 1px solid var(--line); }
.svc h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.svc .meta { margin-top: 0.4rem; }
.svc ul.ticks { margin-top: 0; }
@media (max-width: 44rem) { .svc { grid-template-columns: 1fr; gap: 0.8rem; } }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.4rem; }
.tier .stage { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tier h3 { font-size: 1.3rem; letter-spacing: -0.015em; margin: 0.4rem 0 0.5rem; }
.tier p { font-size: 0.94rem; }

/* final cta */
section.final { background: var(--surface); text-align: left; }
section.final .lead { margin-top: 1rem; }

/* footer */
footer { padding: 3.5rem 0 3rem; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.foot-cols a { display: block; color: var(--body); text-decoration: none; font-size: 0.92rem; margin-bottom: 0.45rem; }
.foot-cols a:hover { color: var(--ink); }
.foot-cols a.logo { display: inline; font-size: 1.05rem; }
.copy { margin-top: 2.5rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 44rem) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 700ms cubic-bezier(0.25, 1, 0.35, 1) forwards; }
.reveal.d1 { animation-delay: 90ms; }
.reveal.d2 { animation-delay: 180ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: fadein 240ms ease forwards; transform: none; } @keyframes fadein { to { opacity: 1; } } .btn, .card { transition: none; } }

/* long-form pages (API, privacy) */
.doc { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); max-width: none; margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.2rem; margin: 2.4rem 0 0.7rem; }
.doc h3 { margin: 1.4rem 0 0.4rem; }
.doc p, .doc li { margin-bottom: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc .meta { margin-bottom: 2.2rem; }
