:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #16161a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ededef;
  --muted: #a1a1aa;
  --dim: #8b8b94;
  --ok: #3ecf8e;
  --bad: #f2555a;
  --trap: #e8a33d;
  --max: 1160px;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--text); margin: 0; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0; }
.dim { color: var(--dim); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 11, .8); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: var(--bg); background: var(--text); padding: 7px 14px; border-radius: 999px; font-weight: 500; }
.nav-links .nav-cta:hover { color: var(--bg); background: #fff; }
.nav-toggle { display: none; font: 500 14px var(--sans); color: var(--text); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; color: var(--bg); }
.btn-ghost { color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .04); }
.btn-lg { padding: 15px 28px; font-size: 18px; }

/* Hero */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -280px; width: 1100px; height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, .07), transparent); pointer-events: none; }
.hero h1 { position: relative; font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -.04em; }
.hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 36px; }
.lead { font-size: 19px; line-height: 1.55; max-width: 54ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.byline { display: flex; align-items: center; gap: 12px; margin-top: 40px; font-size: 14px; }
.byline strong { color: var(--text); font-weight: 500; }
.avatar { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Dashboard */
.dash { position: relative; margin: 64px 0 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.dash-bar { display: flex; align-items: center; gap: 24px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dash-host { font-family: var(--mono); color: var(--text); }
.dash-tabs { display: flex; gap: 4px; color: var(--dim); }
.dash-tabs span { padding: 4px 10px; border-radius: 6px; }
.dash-tabs .on { color: var(--text); background: rgba(255, 255, 255, .06); }
.dash-status { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--text); }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dash-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; }
.dash-services { list-style: none; margin: 0; padding: 14px 0; border-right: 1px solid var(--line); font-size: 13px; }
.dash-services li { display: flex; flex-direction: column; padding: 8px 18px; }
.dash-services span { font-family: var(--mono); color: var(--text); }
.dash-services em { font-style: normal; color: var(--dim); font-size: 12px; }
.dash-chart { padding: 20px 24px 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.chart-title { font-size: 13px; color: var(--dim); }
.chart-value { font-size: 30px; font-weight: 600; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.chart-value span { font-size: 14px; font-weight: 400; color: var(--dim); letter-spacing: 0; margin-left: 6px; }
.chart-delta { font-family: var(--mono); font-size: 13px; color: var(--ok); border: 1px solid rgba(62, 207, 142, .3); padding: 3px 8px; border-radius: 6px; }
.dash-chart svg { display: block; width: 100%; height: 180px; overflow: visible; }
.grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fix-line { stroke: var(--line-2); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.trace { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.fix-label { color: var(--text); }
.dash-events { list-style: none; margin: 0; padding: 16px 18px; border-left: 1px solid var(--line); font-size: 13px; display: grid; gap: 12px; align-content: start; }
.dash-events li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.dash-events time { font-family: var(--mono); color: var(--dim); font-size: 12px; }
.dash-events span { color: var(--muted); }
.dash-events .bad { color: var(--bad); }
.dash-events .good { color: var(--ok); }
.dash figcaption { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

.js .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.16, 1, .3, 1) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.stack { margin-top: 40px; text-align: center; font-size: 14px; color: var(--dim); letter-spacing: .01em; }

/* Sections */
.section { padding: 120px 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.section-intro { margin-bottom: 64px; }
.section-intro h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
.section-intro p { margin-top: 18px; font-size: 18px; max-width: 56ch; }

/* Services */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:last-child { padding-bottom: 0; }
.feature-text > p { margin-top: 10px; font-size: 17px; }
.feature-text ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-text li { position: relative; padding-left: 22px; font-size: 15px; }
.feature-text li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 1px; background: var(--dim); }
.invoice { margin-top: 24px; font-size: 13px; color: var(--dim); }
.invoice span { display: block; margin-top: 2px; color: var(--text); font-family: var(--mono); font-size: 13px; }
.feature-visual { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 24px; min-height: 240px; display: flex; align-items: center; }

.term { margin: 0; width: 100%; font: 13px/1.85 var(--mono); color: var(--muted); white-space: pre; overflow-x: auto; }
.term .p { color: var(--dim); }
.term .m { color: var(--muted); }
.term .g { color: var(--ok); }
.term .r { color: var(--bad); }

.codes { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 4px; }
.codes li { display: grid; grid-template-columns: 52px 150px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.codes li:last-child { background: rgba(62, 207, 142, .06); }
.codes b { font-family: var(--mono); font-weight: 500; }
.codes .c5 { color: var(--bad); }
.codes .c2 { color: var(--ok); }
.codes span { color: var(--text); }
.codes em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--dim); }

.crawl { width: 100%; }
.crawl-title { font-size: 13px; color: var(--dim); margin-bottom: 20px; }
.crawl-row { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 14px; font-size: 13px; color: var(--text); }
.bar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; gap: 2px; }
.bar i { width: var(--w); }
.b-ok { background: var(--text); }
.b-trap { background: var(--trap); }
.b-err { background: var(--bad); }
.crawl-key { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12px; }
.crawl-key span { display: inline-flex; align-items: center; gap: 6px; }
.crawl-key span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.k-ok::before { background: var(--text); }
.k-trap::before { background: var(--trap); }
.k-err::before { background: var(--bad); }

/* Work */
.case-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.case-lead h3 { font-size: 26px; margin-bottom: 16px; letter-spacing: -.025em; }
.case-lead p + p { margin-top: 12px; }
.case-lead strong { color: var(--text); font-weight: 500; }
.case-lead .term { padding: 22px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.meta { font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.case { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; }
.case h3 { font-size: 18px; margin-bottom: 12px; }
.case > p:not(.meta):not(.result) { font-size: 15px; }
.result { margin-top: auto; padding-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--text); }

/* Pricing */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 20px; border-top: 1px solid var(--line-2); }
.steps li::before { content: "Step " counter(s); display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 15px; }
.billing { margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.billing div { background: var(--surface); padding: 26px 28px; }
.billing dt { color: var(--text); font-weight: 500; margin-bottom: 6px; }
.billing dd { margin: 0; font-size: 15px; }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.split .section-intro { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; color: var(--text); font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; max-width: 64ch; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--text); font-weight: 500; }
.facts dd { margin: 0; }

/* Contact */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; bottom: -320px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, .06), transparent); pointer-events: none; }
.contact h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.04em; line-height: 1; }
.contact > .wrap > p { max-width: 52ch; margin: 22px auto 0; font-size: 18px; }
.contact .actions { justify-content: center; margin-top: 36px; }
.contact-other { display: flex; justify-content: center; gap: 28px; margin-top: 28px; font-size: 14px; }
.contact-other a { color: var(--muted); }
.contact-other a:hover { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--dim); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--dim); text-decoration: none; }
.foot nav a:hover { color: var(--text); }

/* Legal pages */
.doc { max-width: 720px; padding: 72px 0 112px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.035em; margin-bottom: 10px; }
.doc .updated { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.doc h2 { font-size: 20px; letter-spacing: -.015em; margin: 44px 0 10px; }
.doc p + p { margin-top: 12px; }
.doc strong { color: var(--text); font-weight: 500; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .trace { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 1000px) {
  .dash-body { grid-template-columns: minmax(0, 1fr); }
  .dash-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-events { border-left: 0; border-top: 1px solid var(--line); }
  .feature, .case-lead, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cases, .billing { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 40px, var(--max)); }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .nav-links .nav-cta { text-align: center; margin-top: 8px; padding: 12px; }
  .hero { padding: 64px 0 56px; }
  .lead { font-size: 17px; }
  .dash-tabs { display: none; }
  .dash-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-chart { padding: 18px 16px 14px; }
  .section { padding: 80px 0; }
  .section-intro { margin-bottom: 40px; }
  .feature { padding: 40px 0; }
  .feature-visual { padding: 18px; min-height: 0; }
  .codes li { grid-template-columns: 44px minmax(0, 1fr); }
  .codes em { grid-column: 2; }
  .case-lead { padding: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .btn-lg { font-size: 16px; padding: 14px 22px; }
}
