:root {
  color-scheme: dark;
  --base: #0d1319;
  --surface: #121d25;
  --raised: #182630;
  --text: #edf4f6;
  --muted: #a5b8c2;
  --line: #2c414d;
  --accent: #74e3c5;
  --accent-ink: #09261f;
  --warning: #f2c786;
  font-family: "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --base: #f3f7f7;
  --surface: #e7f0f0;
  --raised: #fbffff;
  --text: #142830;
  --muted: #435c67;
  --line: #b5c8ce;
  --accent: #07755e;
  --accent-ink: #fff;
  --warning: #805215;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; color: var(--text); background: var(--base); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { font: inherit; }
.wrap { width: min(100% - 3rem, 71rem); margin-inline: auto; }
.skip-link { position: absolute; left: .75rem; top: .5rem; transform: translateY(-160%); background: var(--raised); padding: .65rem 1rem; z-index: 2; }
.skip-link:focus { transform: none; }
.masthead, footer { border-bottom: 1px solid var(--line); }
.navigation, nav, .brand, .footer { display: flex; align-items: center; }
.navigation { min-height: 4.7rem; justify-content: space-between; gap: 1rem; }
nav { gap: clamp(.65rem, 2.3vw, 1.75rem); }
nav a, .brand { text-decoration: none; }
nav a:hover, .theme:hover { color: var(--accent); }
.brand { gap: .65rem; font-weight: 750; font-size: 1.35rem; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { width: 1.12rem; height: 1.12rem; border: 2px solid var(--accent); border-radius: .25rem; rotate: 45deg; position: relative; }
.brand-mark::after { content: ""; width: .32rem; height: .32rem; position: absolute; inset: 0; margin: auto; background: var(--accent); border-radius: 50%; }
.theme { border: 0; padding: .4rem .15rem; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; }
.button { display: inline-block; text-decoration: none; padding: .8rem 1.1rem; font-weight: 650; border-radius: .38rem; border: 1px solid transparent; }
.compact { padding: .48rem .7rem; white-space: nowrap; }
.outline { border-color: var(--line); }
.primary { color: var(--accent-ink); background: var(--accent); }
.primary:hover { filter: brightness(.89); }
.hero { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: clamp(3rem, 8vw, 7rem); }
.eyebrow { font: 650 .875rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .095em; color: var(--accent); margin: 0 0 1.1rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 6.5vw, 5.35rem); line-height: .99; margin-bottom: 1.4rem; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.08; margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: .55rem; }
p { line-height: 1.6; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.23rem); max-width: 34rem; margin-bottom: 1.65rem; }
.topology { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; box-shadow: 0 1.3rem 4rem #0002; }
.topology figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.topology figcaption span, .network-path small { color: var(--muted); font-size: .9rem; }
.network-path { margin: 0; list-style: none; padding: 1.3rem; }
.network-path li:not(.connection) { display: grid; align-items: center; grid-template-columns: 1.55rem minmax(0, 1fr) auto; gap: .65rem; border: 1px solid var(--line); background: var(--raised); border-radius: .5rem; padding: .7rem; }
.network-path small { display: block; margin-top: .12rem; }
.network-path code { color: var(--accent); font-size: .86rem; white-space: nowrap; }
.device-icon { width: 1.25rem; height: 1.1rem; border: 1px solid var(--accent); border-radius: .22rem; display: grid; place-content: center; color: var(--accent); }
.device-icon::before { content: ""; width: .46rem; height: .34rem; border: 1px solid currentColor; }
.ports::before { width: .58rem; height: .2rem; border-style: dotted; }
.radio::before { width: .48rem; height: .48rem; border-radius: 100%; }
.connection { position: relative; display: flex; align-items: center; padding-left: 2.2rem; height: 1.85rem; color: var(--muted); font: .8rem ui-monospace, Consolas, monospace; }
.connection::before { content: ""; position: absolute; height: 100%; left: 1.38rem; border-left: 1px dashed var(--accent); }
.section { border-top: 1px solid var(--line); padding-block: clamp(2.75rem, 6vw, 5rem); }
.section:not(.wrap) { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature-grid article, .feature-grid section, .status-panel { padding: 1.3rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--raised); }
.feature-grid p, .deploy-options p, .status-panel p, .footer p { color: var(--muted); margin-bottom: 0; }
.deploy { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.deploy-options { display: grid; gap: 1.4rem; }
.deploy-options article { border-left: 2px solid var(--line); padding-left: 1rem; }
footer { border-top: 1px solid var(--line); }
.footer { min-height: 5rem; justify-content: space-between; gap: .8rem; }
.workspace-main { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.workspace h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .7rem; }
.workspace h2 { font-size: 1.18rem; margin-bottom: .5rem; }
.status-panel { margin-bottom: 1rem; }
.status-panel .connection-state { display: flex; align-items: center; gap: .55rem; margin-bottom: .8rem; font-size: .9rem; color: var(--warning); }
.connection-state span { width: .5rem; height: .5rem; background: currentColor; border-radius: 50%; }
@media (max-width: 53rem) {
  .hero { gap: 2rem; }
  .feature-grid { gap: .7rem; }
  .feature-grid article, .feature-grid section { padding: 1rem; }
}
@media (max-width: 43rem) {
  .hero, .deploy, .feature-grid { grid-template-columns: 1fr; }
  .deploy { gap: 1rem; }
  .wide-nav { display: none; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1rem; }
}
@media (max-width: 25rem) {
  .wrap { width: calc(100% - 2rem); }
  nav { gap: .5rem; font-size: .89rem; }
  .network-path { padding: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
