:root {
  --bg: #000000;
  --surface: #0B0E14;
  --line: #1D2330;
  --line-strong: #2C3444;
  --text: #F3F5F9;
  --muted: #8C95A6;
  --blue: #3D6BFF;
  --blue-hi: #7096FF;
  --blue-deep: #0E1A3D;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 12px; }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 5.6vw, 64px); letter-spacing: -0.045em; font-weight: 600; }
h2 { font-size: clamp(28px, 3.2vw, 38px); }
h3 { font-size: 18px; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 32em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 8px;
  font: 500 15px/1 var(--font); text-decoration: none; border: 1px solid var(--line-strong); color: var(--text); background: transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s; }
.btn:hover { border-color: var(--muted); color: #fff; background: var(--surface); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #2F5BEA; border-color: #2F5BEA; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 18px/1 var(--font); letter-spacing: -0.03em; }
.logo:hover { color: #fff; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--text); }
.nav .btn { background: var(--blue); border-color: var(--blue); color: #fff; }
.nav .btn:hover { background: #2F5BEA; }
.menu { display: none; font: 500 14px var(--font); background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 14px; color: var(--text); cursor: pointer; }
@media (max-width: 760px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #000; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 4px 24px 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 16px; }
}

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
section.flush { padding-top: 0; border-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.section-head h2 { margin: 0; max-width: 16em; }
.section-head p { color: var(--muted); margin: 0; max-width: 26em; }
.section-head .more { white-space: nowrap; font-size: 15px; }
@media (max-width: 760px) { .section-head { display: block; } .section-head p { margin-top: 12px; } .section-head .more { display: inline-block; margin-top: 12px; } }

/* Hero */
.hero { padding: 96px 0 104px; border-top: 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(61,107,255,.22), transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero .note { margin-top: 24px; font-size: 14px; color: var(--muted); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 64px 0 72px; } }

/* Estimator card */
.ticket { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 28px; position: relative;
  box-shadow: 0 30px 80px -40px rgba(61,107,255,.45); }
.ticket::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-hi), transparent); }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.ticket-head h2 { font-size: 17px; margin: 0; letter-spacing: -0.01em; }
.ticket-head span { font-size: 13px; color: var(--muted); }
.field { margin-bottom: 20px; }
.field label, .field .label { display: flex; justify-content: space-between; font-weight: 500; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.field output { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--blue); height: 24px; margin: 0; }
select, input[type=number], input[type=text], input[type=email], textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text); background: #000; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; }
select:focus, input:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(61,107,255,.25); }
::placeholder { color: #5D6575; }
.result { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.big { font: 600 clamp(32px, 4vw, 40px)/1.1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.mark { color: #fff; }
.result p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.result p strong { color: var(--text); font-weight: 600; }
.ticket .more { display: inline-block; margin-top: 20px; font-size: 14px; }

/* Service row on home */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.grid4 > * { padding: 28px 24px 32px; border-left: 1px solid var(--line); }
.grid4 > *:first-child { border-left: 0; }
.grid4 h3 { margin-bottom: 8px; }
.grid4 p { color: var(--muted); font-size: 15px; margin: 0; }
.grid4 .len { display: block; color: var(--blue-hi); font-size: 13px; margin-bottom: 16px; }
@media (max-width: 920px) { .grid4 { grid-template-columns: 1fr 1fr; } .grid4 > *:nth-child(3) { border-left: 0; } .grid4 > *:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } .grid4 > * { border-left: 0; } .grid4 > *:nth-child(n+2) { border-top: 1px solid var(--line); } }

/* Department list */
.dept { width: 100%; border-collapse: collapse; }
.dept th, .dept td { text-align: left; vertical-align: top; padding: 20px 0; border-top: 1px solid var(--line); }
.dept tr:last-child th, .dept tr:last-child td { border-bottom: 1px solid var(--line); }
.dept th { width: 32%; padding-right: 32px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.dept td { color: var(--muted); }
.dept td ul { margin: 0; padding-left: 1.1em; }
.dept td li + li { margin-top: 4px; }
@media (max-width: 680px) { .dept th, .dept td { display: block; width: 100%; padding: 0; border: 0 !important; } .dept th { padding-top: 20px; border-top: 1px solid var(--line) !important; margin-bottom: 6px; } .dept td { padding-bottom: 20px; } }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 20px; border-top: 1px solid var(--line-strong); position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--blue-hi); }
.steps li h3::before { content: counter(s) "  "; color: var(--blue-hi); white-space: pre; font-variant-numeric: tabular-nums; }
.steps .len { display: block; font-size: 13px; color: var(--muted); margin: -2px 0 10px; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Two-column text blocks */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 16px 0 16px 32px; border-top: 1px solid var(--line); position: relative; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 7px; border-left: 2px solid var(--blue-hi); border-bottom: 2px solid var(--blue-hi); transform: rotate(-45deg); }
.checks strong { display: block; font-weight: 500; }
.checks span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* Closing band */
.band { background: var(--blue-deep); border-top: 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band h2 { margin: 0 0 10px; max-width: 16em; }
.band p { color: #A9B6D6; max-width: 34em; margin: 0; }
.band .actions { margin-top: 0; }
.band .btn:not(.primary) { border-color: #3A4A78; }
.band .btn:not(.primary):hover { background: rgba(255,255,255,.06); }

/* Page header for inner pages */
.page-head { padding: 88px 0 56px; }
.page-head h1 { font-size: clamp(36px, 4.8vw, 54px); max-width: 15em; }

/* Services */
.service { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; padding: 44px 0; border-top: 1px solid var(--line); }
.service .len { color: var(--blue-hi); font-size: 14px; margin-top: -2px; }
.service > div:first-child p:last-child { color: var(--muted); }
.service h3 { font-size: 26px; letter-spacing: -0.03em; }
.service h4 { font-size: 13px; font-weight: 500; margin: 0 0 8px; color: var(--muted); }
.service h4 + ul { margin-bottom: 24px; }
.service ul { margin: 0; padding-left: 1.1em; }
.service li + li { margin-top: 6px; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 8px; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; padding: 20px 40px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--blue-hi); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 42em; color: var(--muted); padding-bottom: 8px; }

/* Full estimator */
.est { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.est-title { font-weight: 500; margin-bottom: 8px; }
.est-note { font-size: 14px; color: var(--muted); margin-top: 20px; }
.tier-row { display: grid; grid-template-columns: 1fr 112px; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.tier-row strong { display: block; font-weight: 500; }
.tier-row span { color: var(--muted); font-size: 14px; }
.tier-row .price { color: var(--blue-hi); }
.est .ticket { position: sticky; top: 88px; }
.est dl { margin: 24px 0 0; }
.est dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.est dt { color: var(--muted); }
.est dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.est .btn { width: 100%; margin-top: 24px; }
@media (max-width: 860px) { .est { grid-template-columns: 1fr; } .est .ticket { position: static; } }

/* Prose pages */
.prose { max-width: 42em; padding: 88px 0 104px; }
.prose h1 { font-size: clamp(34px, 4.6vw, 48px); }
.prose h2 { font-size: 22px; margin-top: 1.8em; }
.prose p, .prose li { color: #C3C9D4; }
.prose .meta { color: var(--muted); }
.prose ul { padding-left: 1.2em; }

/* Contact form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 500; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.form .field { margin-bottom: 20px; }
.form .hint { font-weight: 400; color: #5D6575; }
.form-status { grid-column: 1 / -1; margin: 0 0 16px; font-weight: 500; color: var(--blue-hi); }
.form-status:empty { display: none; }
.aside h2 { font-size: 20px; letter-spacing: -0.02em; }
.aside h2 + p { color: var(--muted); }
.aside h2:not(:first-child) { margin-top: 40px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .aside { margin-top: 24px; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-grid > div { max-width: 26em; }
.foot-name { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; margin-bottom: 10px; }
.foot nav { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 40px; align-content: start; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.fine { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: #5D6575; }
@media (max-width: 560px) { .foot nav { grid-template-columns: repeat(2, auto); } }

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .lede { font-size: 17px; }
  .ticket { padding: 24px 20px; }
  .page-head { padding: 56px 0 40px; }
}

/* Industry tools page */
.section-head > div h2 + p { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--muted); text-decoration: none; font-size: 14px; transition: border-color .15s, color .15s, background-color .15s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.panel { border-top: 1px solid var(--line); padding: 40px 0; scroll-margin-top: 80px; }
.panel h2 { font-size: 28px; margin-bottom: 8px; }
.panel .start { color: var(--muted); margin-bottom: 24px; max-width: 46em; }
.panel .start strong { color: var(--text); font-weight: 500; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tools li { background: var(--bg); padding: 22px 24px; }
.tool-name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.tool-name a { color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.tool-name a:hover { color: var(--blue-hi); text-decoration: underline; }
.tag { font-size: 12px; color: var(--blue-hi); border: 1px solid #23315C; background: var(--blue-deep); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tools p { margin: 0; color: var(--muted); font-size: 15px; }
.tools li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.panel.general { border-top: 1px solid var(--line-strong); }
.empty { color: var(--muted); padding: 32px 0; border-top: 1px solid var(--line); margin: 0; }
.fine-print { font-size: 13px; color: #5D6575; margin-top: 32px; max-width: 52em; }
.js-tools .panels .panel { display: none; }
.js-tools .panels .panel.on { display: block; }
@media (max-width: 720px) { .tools { grid-template-columns: 1fr; } .tools li:last-child:nth-child(odd) { grid-column: auto; } .panel h2 { font-size: 24px; } }
