:root {
  --ink: #07122A;
  --ink-2: #0C1B3D;
  --ink-3: #13254F;
  --line: rgba(148, 170, 220, .14);
  --text: #E6ECF8;
  --muted: #9AA8C7;
  --blue: #3A6FD8;
  --teal: #22D3B6;
  --paper: #F5F7FC;
  --paper-2: #FFFFFF;
  --paper-text: #0B1733;
  --paper-muted: #55627F;
  --paper-line: #E1E7F2;
  --radius: 14px;
  --wrap: 1180px;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -8px rgba(47, 123, 255, .6); }
.btn--primary:hover { background: #1f6af0; }
.btn--ghost { border-color: currentColor; color: inherit; opacity: .9; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(34, 211, 182, .18); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 18, 42, .82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line); color: var(--text);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { height: 34px; width: auto; }
.brand__sub { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8FB0EE; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); line-height: 1.6; }
.footer__brand { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.footer__brand img { height: 48px; width: auto; }
.brand__name { font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; margin: 0; }
.brand__name span { font-weight: 400; color: var(--blue); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; margin-left: auto; }
.nav__toggle span { display: block; height: 2px; background: #fff; margin: 7px 8px; border-radius: 2px; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, #16336f 0%, transparent 60%), var(--ink); color: var(--text); padding: 84px 0 56px; }
.hero__grid {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.grad { background: linear-gradient(90deg, #6AA5FF, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li { font-family: var(--mono); font-size: .78rem; color: #C9D5EE; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: rgba(255, 255, 255, .03); }

.term { background: #0A1733; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(47, 123, 255, .08); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #0C1C3F; }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3A62; }
.term__bar span { margin-left: 10px; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.term__body { padding: 8px 16px 16px; font-family: var(--mono); font-size: .8rem; }
.row { display: grid; grid-template-columns: 1.2fr 1.1fr 1fr .8fr; gap: 8px; padding: 9px 0; border-bottom: 1px dashed rgba(148, 170, 220, .1); color: #C9D5EE; }
.row.head { color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.ok { color: var(--teal); }
.term__foot { display: flex; align-items: center; gap: 8px; padding-top: 12px; color: var(--muted); font-size: .75rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 182, .6); } 100% { box-shadow: 0 0 0 10px rgba(34, 211, 182, 0); } }

.stats { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: 64px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025); }
.stats div { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: .8rem; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--paper-line); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head p:not(.eyebrow) { color: var(--paper-muted); font-size: 1.08rem; }

.cards { display: grid; gap: 18px; }
.cards--5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: #BCD0F7; transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(11, 23, 51, .3); }
.card p { color: var(--paper-muted); font-size: .95rem; margin: 0; }
.card--flat { background: var(--paper); }
.card__icon { width: 44px; height: 44px; border-radius: 11px; background: #EAF1FF; display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__copy > p:not(.eyebrow) { color: var(--paper-muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--paper-muted); }
.checks li strong { color: var(--paper-text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
#coverage .btn--ghost, #why .btn--ghost { color: var(--blue); }

.hubmap { margin: 0; background: var(--ink); border-radius: 20px; padding: 16px; box-shadow: 0 30px 60px -30px rgba(7, 18, 42, .6); }
.hubmap__lines path { stroke: #2F7BFF; stroke-width: 1.5; stroke-dasharray: 4 6; fill: none; opacity: .7; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -40; } }
.hubmap__node circle { fill: #0C1C3F; stroke: var(--teal); stroke-width: 2; }
.hubmap__node text { fill: #C9D5EE; font: 600 12px Inter, sans-serif; text-anchor: middle; }
.hubmap__node--hub circle { fill: #FFFFFF; stroke: #8DB6FF; stroke-width: 3; }
.hubmap__label { fill: #fff; font: 800 11px Inter, sans-serif; letter-spacing: .12em; text-anchor: middle; }
.hubmap__node--hub text { fill: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.hubmap__node--hub text.sub { font-weight: 500; font-size: 9px; letter-spacing: 0; fill: #D8E6FF; }

.spec { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--paper-line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.spec__item { padding: 28px; border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.spec__item:nth-child(3n) { border-right: 0; }
.spec__item:nth-last-child(-n+3) { border-bottom: 0; }
.spec__item code { font-family: var(--mono); font-size: .95rem; color: var(--blue); background: #EAF1FF; padding: 4px 10px; border-radius: 6px; }
.spec__item p { color: var(--paper-muted); font-size: .95rem; margin: 14px 0 0; }

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--paper-text); }
.audience div { padding: 24px 24px 0 0; }
.audience p { color: var(--paper-muted); font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--paper-line); }
.steps span { font-family: var(--mono); font-size: .85rem; color: var(--blue); display: block; margin-bottom: 14px; }
.steps p { color: var(--paper-muted); font-size: .95rem; margin: 0; }

/* Contact */
.contact { background: var(--ink); color: var(--text); }
.contact h2 { color: #fff; }
.contact .split__copy > p:not(.eyebrow) { color: var(--muted); }
.split--contact { align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact__list li { display: grid; gap: 2px; }
.contact__list span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact__list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--teal); }

.form { background: #0C1B3D; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; color: #C9D5EE; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; color: #fff; background: #07122A; border: 1px solid #22345F; border-radius: 10px; padding: 11px 13px; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 123, 255, .25); }
.form .invalid { border-color: #FF6B6B; }
.form__services { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__services legend { font-size: .85rem; color: #C9D5EE; font-weight: 500; margin-bottom: 8px; padding: 0; }
.form__services label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #22345F; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .85rem; }
.form__services input { width: auto; accent-color: var(--blue); }
.form__services label:has(input:checked) { border-color: var(--blue); background: rgba(47, 123, 255, .15); color: #fff; }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form__status.ok { color: var(--teal); }
.form__status.err { color: #FF8A8A; }
.form__note { margin: 0; font-size: .78rem; color: var(--muted); }
.form__note a { color: #C9D5EE; }

/* Footer */
.footer { background: #050D20; color: var(--muted); padding: 48px 0 28px; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand__name { color: #fff; margin-bottom: 10px; }
.footer__legal { max-width: 520px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: .8rem; }

/* Legal page */
.legal { max-width: 760px; padding: 72px 0 96px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--paper-muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(3) { border-right: 0; }
  .stats div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .spec__item:nth-child(3n) { border-right: 1px solid var(--paper-line); }
  .spec__item:nth-child(2n) { border-right: 0; }
  .spec__item:nth-last-child(-n+3) { border-bottom: 1px solid var(--paper-line); }
  .spec__item:nth-last-child(-n+2) { border-bottom: 0; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); padding: 16px 16px 24px; gap: 4px; border-bottom: 1px solid var(--line); }
  .nav.open .nav__links a { padding: 12px 4px; font-size: 1.05rem; color: #fff; }
  .nav.open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.open .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .section { padding: 64px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .stats div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; padding: 16px; }
  .stats div:nth-child(2n) { border-right: 0 !important; }
  .stats div:last-child { grid-column: 1 / -1; border-bottom: 0 !important; border-right: 0 !important; }
  .stats dd { font-size: 1.5rem; }
  .cards--3, .spec, .audience, .steps { grid-template-columns: 1fr; }
  .spec__item { border-right: 0 !important; border-bottom: 1px solid var(--paper-line) !important; }
  .spec__item:last-child { border-bottom: 0 !important; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .row { grid-template-columns: 1fr 1.1fr 1fr .9fr; font-size: .7rem; }
}
