:root {
  --bg: #07090d;
  --bg-soft: #0a0d12;
  --panel: rgba(14, 18, 25, .78);
  --panel-solid: #0d1118;
  --panel-2: #111722;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.14);
  --text: #f5f7fb;
  --muted: #9aa4b2;
  --muted-2: #6f7b8b;
  --accent: #73b9ff;
  --accent-2: #b8dcff;
  --good: #73d6a5;
  --warn: #f4c071;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 80px rgba(0,0,0,.28);
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 560px at 82% -8%, rgba(64, 137, 214, .14), transparent 62%),
    radial-gradient(720px 440px at -10% 20%, rgba(85, 133, 181, .08), transparent 58%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 76%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, input, select { font: inherit; }
button { color: inherit; }
::selection { background: rgba(115,185,255,.28); }

.shell { width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 1000; background: #fff; color: #05070a; padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.035em; font-size: 18px; }
.brand-mark { width: 26px; height: 26px; display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 3px; }
.brand-mark i { display: block; border-radius: 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.brand-mark i:nth-child(1) { height: 9px; opacity: .5; }
.brand-mark i:nth-child(2) { height: 17px; opacity: .75; }
.brand-mark i:nth-child(3) { height: 24px; }
.brand span span { color: var(--accent); }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a { color: #a8b1be; font-size: 13px; font-weight: 650; padding: 10px 12px; border-radius: 10px; transition: color .18s ease, background .18s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.05); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 16px rgba(115,214,165,.7); }
.menu-button { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }

.hero { padding: 72px 0; min-height: 640px; display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); align-items: center; gap: clamp(42px, 7vw, 92px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #a8cbed; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 820; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); opacity: .75; }
.hero h1, .page-hero h1 { margin: 18px 0 0; max-width: 820px; font-size: clamp(54px, 7.2vw, 104px); line-height: .92; letter-spacing: -.072em; font-weight: 820; }
.hero h1 { font-size: clamp(50px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 span { display: block; color: #9ca6b3; }
.hero-copy { max-width: 650px; margin: 26px 0 0; color: #a6b0bd; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.67; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; font-weight: 780; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #f3f6fa; color: #07090d; border-color: #f3f6fa; }
.button-secondary { background: rgba(255,255,255,.035); color: #e9eef5; }
.button-secondary:hover { border-color: rgba(115,185,255,.35); background: rgba(115,185,255,.07); }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted-2); font-size: 11px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #4f5a67; }

.lab-panel { position: relative; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, rgba(17,23,34,.92), rgba(9,12,17,.96)); box-shadow: var(--shadow); }
.lab-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 1px rgba(255,255,255,.025); border-radius: inherit; }
.lab-topbar { min-height: 50px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); color: #8894a4; font-size: 10px; font-weight: 760; letter-spacing: .1em; }
.lab-health { display: inline-flex; align-items: center; gap: 7px; color: #aeb8c4; }
.topology-wrap { position: relative; padding: 26px 18px 14px; min-height: 385px; overflow: hidden; }
.topology-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(77,153,229,.09), transparent 56%); pointer-events: none; }
.topology { position: relative; width: 100%; height: 330px; }
.topology .link { stroke: #2a3a4e; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.topology .link.active { stroke: #5d9ed8; stroke-width: 1.8; filter: drop-shadow(0 0 4px rgba(115,185,255,.28)); }
.topology .node { fill: #0d141e; stroke: #40566d; stroke-width: 1.25; }
.topology .node.edge { stroke: #6aaddf; fill: #0c1722; }
.topology .label { fill: #dbe4ed; font-size: 9px; font-weight: 750; text-anchor: middle; }
.topology .sub { fill: #697789; font-size: 7.5px; font-weight: 600; text-anchor: middle; }
.topology .packet { fill: #9bcdff; }
.lab-strip { padding: 13px 16px 16px; display: flex; gap: 7px; flex-wrap: wrap; }
.lab-chip { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #8f9baa; padding: 7px 9px; border-radius: 999px; font-size: 10px; font-weight: 650; }

.section { padding: 76px 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,.045); }
.section-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.58fr); gap: 40px; align-items: end; margin-bottom: 34px; }
.section h2, .page-section h2 { margin: 11px 0 0; max-width: 760px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.052em; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); }
.stat strong { display: block; margin-bottom: 8px; font-size: 25px; letter-spacing: -.045em; }
.stat span { color: #7f8a99; font-size: 12px; line-height: 1.45; }

.featured-project { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, rgba(17,23,33,.82), rgba(10,13,18,.94)); }
.project-copy { padding: clamp(26px, 4vw, 46px); }
.project-index { color: var(--accent); font-size: 11px; letter-spacing: .14em; font-weight: 800; }
.project-copy h3 { margin: 14px 0 10px; font-size: clamp(30px,4vw,49px); line-height: 1.05; letter-spacing: -.045em; }
.project-copy p { max-width: 680px; color: #99a5b5; line-height: 1.7; font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 26px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 7px 9px; color: #a6b1bf; font-size: 10px; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 780; color: #dfe8f2; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(3px); }
.project-visual { min-height: 400px; border-left: 1px solid var(--line); position: relative; background: #080b10; display: grid; place-items: center; padding: 26px; }
.project-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle, black, transparent 78%); }
.mini-cli { position: relative; width: min(100%, 440px); border: 1px solid #1a2635; border-radius: 15px; overflow: hidden; background: rgba(7,10,14,.96); box-shadow: 0 26px 70px rgba(0,0,0,.26); }
.cli-head { padding: 11px 13px; border-bottom: 1px solid #172231; color: #657388; font-size: 9px; letter-spacing: .1em; }
.mini-cli pre { margin: 0; padding: 18px; overflow: auto; color: #8290a2; font: 11px/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mini-cli .cmd { color: #c7e2ff; }
.mini-cli .ok { color: var(--good); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { min-height: 260px; padding: 22px; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.018); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
a.card:hover { transform: translateY(-4px); border-color: rgba(115,185,255,.3); background: rgba(115,185,255,.035); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-kicker { color: #718096; font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.card-state { font-size: 9px; letter-spacing: .08em; font-weight: 800; color: #8fa0b2; border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; }
.card-state.live { color: #a6e3c2; border-color: rgba(115,214,165,.25); background: rgba(115,214,165,.05); }
.card h3 { margin: 38px 0 9px; font-size: 22px; letter-spacing: -.035em; }
.card p { margin: 0; color: #8793a4; font-size: 13px; line-height: 1.65; }
.card-bottom { margin-top: auto; padding-top: 26px; color: #bac5d1; font-size: 12px; font-weight: 720; }
.card.muted { opacity: .72; }

.split { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(40px,7vw,96px); align-items: start; }
.split-copy p { color: #929dac; line-height: 1.75; font-size: 14px; }
.focus-list { display: grid; gap: 9px; }
.focus-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 16px 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.018); }
.focus-num { color: #586575; font-size: 10px; font-weight: 800; }
.focus-main strong { display: block; font-size: 13px; }
.focus-main span { display: block; color: #727e8e; font-size: 11px; margin-top: 3px; }
.focus-arrow { color: #5f6d7d; }

.cta { padding: 92px 0 100px; }
.cta-box { position: relative; overflow: hidden; text-align: center; padding: clamp(46px,7vw,78px) 24px; border: 1px solid rgba(115,185,255,.16); border-radius: 26px; background: radial-gradient(600px 250px at 50% 0, rgba(70,143,215,.13), transparent 70%), #0b0f15; }
.cta-box h2 { margin: 0 auto; max-width: 820px; font-size: clamp(38px,5.8vw,68px); letter-spacing: -.058em; line-height: 1.01; }
.cta-box p { max-width: 570px; margin: 18px auto 0; color: #8d98a7; line-height: 1.7; font-size: 14px; }
.cta-box .hero-actions { justify-content: center; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #657180; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-links a:hover { color: #aeb8c4; }

.page-hero { padding: 84px 0 58px; }
.page-hero h1 { font-size: clamp(52px,7vw,92px); }
.page-hero p { max-width: 720px; margin: 24px 0 0; color: #98a4b4; font-size: 17px; line-height: 1.72; }
.page-section { padding: 58px 0 92px; }
.project-list { display: grid; gap: 14px; }
.project-item { display: grid; grid-template-columns: 90px minmax(0,1fr) 200px; gap: 22px; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); }
.project-item .project-index { padding-top: 5px; }
.project-item h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.035em; }
.project-item p { margin: 0; color: #8591a2; line-height: 1.65; font-size: 13px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.note-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.note-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); }
.note-card small { color: #6f7d8e; font-size: 10px; letter-spacing: .1em; font-weight: 800; }
.note-card h3 { margin: 28px 0 8px; font-size: 21px; letter-spacing: -.03em; }
.note-card p { margin: 0; color: #8490a0; line-height: 1.65; font-size: 13px; }

.profile-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.7fr); gap: 50px; align-items: start; }
.profile-copy p { color: #929dad; line-height: 1.78; font-size: 15px; }
.profile-panel { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.018); padding: 22px; }
.profile-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.055); font-size: 12px; }
.profile-row:last-child { border-bottom: 0; }
.profile-row span { color: #677486; }
.profile-row strong { font-weight: 660; color: #c8d0da; }

.tool-shell { display: grid; grid-template-columns: minmax(0,.74fr) minmax(0,1.26fr); gap: 14px; align-items: start; }
.tool-panel { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.018); padding: 22px; }
.tool-panel h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.tool-panel p { color: #7d899a; font-size: 12px; line-height: 1.6; }
.field { margin-top: 18px; }
.field label { display: block; margin-bottom: 7px; color: #9aa6b5; font-size: 11px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 92px; gap: 8px; }
.input { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 11px; background: #080b10; color: #eef3f8; padding: 0 12px; outline: none; }
.input:focus { border-color: rgba(115,185,255,.5); box-shadow: 0 0 0 3px rgba(115,185,255,.07); }
.tool-button { margin-top: 12px; width: 100%; min-height: 46px; border: 0; border-radius: 11px; background: #eff4f9; color: #07090c; font-weight: 820; cursor: pointer; }
.result-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 18px; }
.result { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #090d12; }
.result span { display: block; color: #687689; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.result strong { display: block; margin-top: 7px; color: #dbe3ec; font: 700 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-word; }
.result.wide { grid-column: 1 / -1; }
.error { display: none; margin-top: 12px; color: #f0a9a9; font-size: 12px; }
.binary { margin-top: 16px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #080b10; color: #8997a8; overflow-x: auto; font: 11px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }

/* Content is visible immediately, including when JavaScript is unavailable. */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .topology .packet { display: none; }
  .button:hover, a.card:hover, .text-link:hover span { transform: none; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 64px; }
  .hero-grid, .featured-project, .split, .profile-grid, .tool-shell { grid-template-columns: 1fr; }
  .hero-grid { gap: 52px; }
  .project-visual { border-left: 0; border-top: 1px solid var(--line); min-height: 340px; }
  .section-head { grid-template-columns: 1fr; gap: 15px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .project-item { grid-template-columns: 64px 1fr; }
  .project-stack { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: 10px; }
  .primary-nav { width: 100%; flex-wrap: wrap; padding-bottom: 10px; }
  .navigation-ready .menu-button { display: inline-grid; place-items: center; cursor: pointer; }
  .navigation-ready .primary-nav { position: absolute; width: auto; left: 14px; right: 14px; top: 70px; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-solid); box-shadow: var(--shadow); }
  .navigation-ready .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px; }
  .hero { padding: 54px 0 60px; }
  .hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .section { padding: 68px 0; }
  .section h2, .page-section h2 { font-size: 38px; }
  .topology-wrap { min-height: 330px; padding-inline: 8px; }
  .topology { height: 285px; }
  .card-grid, .note-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .project-item { grid-template-columns: 1fr; }
  .project-stack { grid-column: auto; }
  .project-item .project-index { padding: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .result-grid { grid-template-columns: 1fr; }
  .result.wide { grid-column: auto; }
}

.lab-objective { margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(115,185,255,.12); border-radius: 11px; background: rgba(115,185,255,.025); color: #8d99a8; font-size: 12px; line-height: 1.6; }
.lab-objective span { color: #c8e3ff; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin-right: 8px; }

/* Quiet surfaces, crisp typography and restrained motion. */
.toolkit-section { padding-top: 24px; }
.tool-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: clamp(26px, 4vw, 52px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(120deg, #101722, #0b0f15); }
.tool-feature h2 { font-size: clamp(32px, 4vw, 48px); }
.tool-feature-copy p { max-width: 390px; margin: 20px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.subnet-preview { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #080d14; }
.preview-label { color: #9baabd; font: 10px ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.preview-address { margin: 28px 0; color: #e2eaf4; font: 500 clamp(20px, 2.5vw, 32px) ui-monospace, Consolas, monospace; letter-spacing: -.05em; }
.preview-address > span { color: var(--accent); }
.address-track { display: flex; gap: 4px; height: 32px; margin-bottom: 26px; }
.address-track i { flex: 1; border-radius: 3px; background: #5d9bd5; }
.address-track i:nth-child(n+13) { background: #223044; }
.preview-results { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.preview-results span { display: block; color: #8898ab; font-size: 11px; margin-bottom: 8px; }
.preview-results strong { font: 12px ui-monospace, Consolas, monospace; color: #d4dfed; }
.motion-panel { transition: filter 150ms ease-out; }
.motion-panel.is-moving { filter: blur(.7px); }
@keyframes enter-surface { from { opacity: .65; transform: translateY(14px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hover-settle { 0% { filter: blur(0); } 35% { filter: blur(.65px); } 100% { filter: blur(0); } }
.motion-enter { animation: enter-surface 440ms cubic-bezier(.2,.7,.2,1) backwards; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover, a.card:hover { animation: hover-settle 220ms ease-out; }
  .tool-feature:hover .text-link span { transform: translate(3px, -3px); }
  .tool-feature:hover { border-color: #354b62; }
}
@media (max-width: 900px) {
  .tool-feature { gap: 28px; }
}
@media (max-width: 720px) {
  .tool-feature { grid-template-columns: 1fr; }
  .subnet-preview { padding: 22px; }
  .toolkit-section { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-panel.is-moving { filter: none; }
  .motion-enter { animation: none; }
}
