:root {
  color-scheme: light;
  --navy: #081b2d;
  --navy-soft: #102c43;
  --ink: #142c3d;
  --muted: #667b88;
  --faint: #93a4ad;
  --line: #dce6e8;
  --paper: #f7faf8;
  --white: #fff;
  --mint: #9cf4c9;
  --green: #127a55;
  --blue: #2f7cfa;
  --radius: 18px;
  --wide: 1160px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); font: 15px/1.65 'Manrope', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(47,124,250,.38); outline-offset: 3px; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 10; padding: 9px 14px; transform: translateY(-150%); border-radius: 8px; background: white; color: var(--navy); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 76px; padding: 0 max(28px, calc((100vw - var(--wide)) / 2)); border-bottom: 1px solid rgba(220,230,232,.8); background: rgba(247,250,248,.92); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 23px; font-weight: 800; letter-spacing: -.075em; }
.brand-logo { display: block; width: 30px; height: 30px; border: 1px solid #e5edf1; border-radius: 8px; background: #fff; object-fit: cover; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 38px); margin-left: auto; margin-right: 34px; }
.main-nav a, .header-cta { color: #506573; text-decoration: none; font-size: 12px; font-weight: 700; transition: color .18s ease; }
.main-nav a:hover { color: var(--blue); }
.header-cta { display: inline-flex; align-items: center; gap: 11px; padding: 10px 15px; border-radius: 8px; background: var(--navy); color: white; }
.header-cta:hover { background: #153c58; }

.section-wrap { width: min(var(--wide), calc(100% - 56px)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); align-items: center; gap: 44px; min-height: 555px; padding-top: 62px; padding-bottom: 65px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: #437963; font: 700 10px/1.4 'DM Mono', monospace; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 20px; height: 1px; background: #43a277; }
.hero h1 { max-width: 620px; margin: 0; color: var(--navy); font-size: clamp(44px, 6.2vw, 75px); font-weight: 700; letter-spacing: -.075em; line-height: 1.01; }
.hero h1 span { color: #2c9a70; }
.hero-text { max-width: 580px; margin: 22px 0 0; color: #5d707b; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { background: var(--navy); color: white; box-shadow: 0 7px 18px rgba(8,27,45,.13); }
.button-primary:hover { background: #153c58; }
.text-link { color: #365a50; font-size: 12px; font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--blue); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 31px; color: #6e7f87; font-size: 10px; font-weight: 700; }
.check-icon { display: inline-grid; width: 16px; height: 16px; place-items: center; margin-right: 5px; border-radius: 50%; background: #e1f7ec; color: #18855e; font-size: 10px; font-style: normal; }

.hero-visual { position: relative; display: grid; min-height: 400px; place-items: center; overflow: hidden; border: 1px solid #dfeae5; border-radius: 22px; background: radial-gradient(circle at 50% 48%, #edf9f2 0, #f4faf5 39%, #f8fbf8 70%); }
.visual-orbit { position: absolute; width: 310px; height: 310px; border: 1px dashed #b9d4c7; border-radius: 50%; }
.orbit-two { width: 215px; height: 215px; border-style: solid; border-color: rgba(185,212,199,.55); }
.visual-center { position: absolute; z-index: 2; display: flex; width: 106px; height: 106px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #b5e6cc; border-radius: 28px; background: white; box-shadow: 0 16px 38px rgba(26,105,71,.12); color: #42735e; transform: rotate(-4deg); }
.center-glyph { color: #198860; font-size: 39px; font-weight: 800; letter-spacing: -.11em; line-height: 1; }
.visual-center small { font: 500 7px/1.3 'DM Mono', monospace; letter-spacing: .14em; text-align: center; }
.node { position: absolute; z-index: 3; display: flex; min-width: 91px; flex-direction: column; align-items: center; gap: 8px; color: #667b74; font: 500 8px 'DM Mono', monospace; letter-spacing: .08em; }
.node-icon { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid #d3e6dc; border-radius: 14px; background: white; box-shadow: 0 8px 20px rgba(19,70,49,.08); color: #18845d; font-size: 21px; }
.node-origin { top: 34px; left: 50%; transform: translateX(-50%); }
.node-a { top: 50%; left: 26px; transform: translateY(-50%); }
.node-b { right: 25px; bottom: 42px; }
.node-c { top: 48%; right: 18px; transform: translateY(-50%); }
.browser-icon { display: flex; align-content: flex-start; gap: 3px; width: 47px; height: 37px; padding: 7px 6px; border: 1px solid #cfe2d8; border-radius: 9px; background: white; box-shadow: 0 8px 20px rgba(19,70,49,.07); }
.browser-icon i { width: 4px; height: 4px; border-radius: 50%; background: #9bcbb2; }
.orbit-dot { position: absolute; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: #36b47d; box-shadow: 0 0 0 5px rgba(54,180,125,.12); }
.dot-one { top: 25%; right: 30%; }
.dot-two { bottom: 25%; left: 33%; }
.visual-caption { position: absolute; right: 12px; bottom: 13px; left: 12px; color: #8b9b93; font-size: 9px; text-align: center; }

.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); width: min(var(--wide), calc(100% - 56px)); margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-facts > div { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 20px; border-right: 1px solid var(--line); }
.quick-facts > div:first-child { padding-left: 0; }
.quick-facts > div:last-child { border-right: 0; }
.quick-facts strong { color: #26976e; font: 500 10px 'DM Mono', monospace; }
.quick-facts span { color: #536a76; font-size: 10px; font-weight: 700; }

.section-block { padding-top: 105px; padding-bottom: 100px; }
.section-heading { max-width: 620px; margin-bottom: 38px; }
.section-heading h2, .stats-heading h2, .install-copy h2, .limits-card h2 { margin: 0; color: var(--navy); font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.065em; line-height: 1.1; }
.section-heading h2 span { color: #288a66; }
.section-heading > p:last-child { max-width: 525px; margin: 17px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-card { position: relative; min-height: 225px; padding: 24px 20px 21px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.step-number { position: absolute; top: 22px; right: 20px; color: #a3b3ac; font: 500 10px 'DM Mono', monospace; }
.flow-icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 19px; border-radius: 13px; background: #ecf8f1; color: #238a64; font-size: 20px; }
.icon-cache { background: #edf3ff; color: #3d6fc5; }
.icon-peers { background: #f3efff; color: #785dc2; }
.icon-fallback { background: #fff5e9; color: #bd7a29; }
.flow-card h3 { margin: 0; color: #1a3544; font-size: 14px; letter-spacing: -.025em; }
.flow-card p { margin: 9px 0 0; color: #778790; font-size: 11px; line-height: 1.8; }

.stats-section { padding: 74px 0 68px; background: #0b2031; color: white; }
.stats-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.stats-heading .eyebrow { color: #83d5ac; }
.stats-heading h2 { color: white; font-size: clamp(27px, 3.3vw, 38px); }
.stats-heading p:last-child { margin: 9px 0 0; color: #a5b6bd; font-size: 11px; }
.connection-pill { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(172,207,191,.2); border-radius: 999px; background: rgba(255,255,255,.04); color: #bdcec7; font-size: 10px; font-weight: 700; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #d1a658; box-shadow: 0 0 0 4px rgba(209,166,88,.12); }
.connection-pill[data-state="connected"] .connection-dot { background: #63d99e; box-shadow: 0 0 0 4px rgba(99,217,158,.14); }
.connection-pill[data-state="error"] .connection-dot { background: #e56f75; box-shadow: 0 0 0 4px rgba(229,111,117,.14); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { min-height: 144px; padding: 19px; border: 1px solid rgba(184,211,199,.14); border-radius: 13px; background: rgba(255,255,255,.045); }
.stat-label { display: block; color: #b4c4c8; font-size: 10px; font-weight: 700; }
.stat-card strong { display: block; margin-top: 16px; color: white; font: 600 34px/1 'Manrope', sans-serif; letter-spacing: -.06em; }
.stat-card small { display: block; margin-top: 10px; color: #81979e; font-size: 9px; }
.stats-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 17px; }
.stats-note { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; }
.note-icon { display: grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; border: 1px solid #6a9a82; border-radius: 50%; color: #9ce3bb; font: 600 10px Georgia, serif; }
.stats-note p { margin: 0; color: #8fa4aa; font-size: 9px; line-height: 1.75; }
.stats-note strong { color: #c5d7d0; }
.button-outline { flex: 0 0 auto; border-color: rgba(198,221,211,.26); background: transparent; color: #d0e0d9; }
.button-outline:hover { background: rgba(255,255,255,.07); }

.install-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); align-items: center; gap: clamp(35px, 7vw, 86px); padding-top: 106px; padding-bottom: 105px; }
.install-copy h2 { font-size: clamp(37px, 4vw, 50px); }
.install-copy > p:not(.eyebrow) { max-width: 460px; margin: 17px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.install-steps { display: grid; gap: 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.install-steps li { display: flex; align-items: flex-start; gap: 13px; }
.install-steps li > span { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border: 1px solid #cde6d9; border-radius: 50%; color: #25855f; font: 500 10px 'DM Mono', monospace; }
.install-steps strong, .install-steps small { display: block; }
.install-steps strong { color: #294453; font-size: 11px; }
.install-steps small { margin-top: 3px; color: #82919a; font-size: 9px; line-height: 1.7; }
code { font-family: 'DM Mono', monospace; }
.install-steps code, .limits-copy code { color: #277551; font-size: .95em; }
.code-card { padding: 22px; border: 1px solid #d9e5e0; border-radius: 17px; background: #fff; box-shadow: 0 18px 48px rgba(25,59,43,.08); }
.site-id-label { display: block; margin-bottom: 7px; color: #3f5864; font-size: 10px; font-weight: 800; }
.site-id-field { display: flex; align-items: center; border: 1px solid #cbdcd4; border-radius: 9px; background: #fbfdfb; }
.site-id-field:focus-within { border-color: #32966a; box-shadow: 0 0 0 3px rgba(50,150,106,.1); }
.site-id-field input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 0; border-radius: inherit; outline: 0; background: transparent; color: #183648; font: 500 12px 'DM Mono', monospace; }
.field-check { padding: 0 12px; color: #278b62; font-weight: 800; }
.site-id-field.invalid { border-color: #d77676; }
.site-id-field.invalid .field-check { color: #c65555; }
.field-help { display: block; min-height: 16px; margin: 5px 0 15px; color: #88979d; font-size: 9px; }
.code-window { overflow: hidden; border-radius: 10px; background: #081a29; }
.code-window-head { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 13px; border-bottom: 1px solid rgba(197,220,209,.1); }
.code-window-head > span { display: flex; gap: 5px; }
.code-window-head i { width: 7px; height: 7px; border-radius: 50%; background: #f18177; }
.code-window-head i:nth-child(2) { background: #e6bf64; }
.code-window-head i:nth-child(3) { background: #5bc995; }
.code-window-head small { color: #769096; font: 500 8px 'DM Mono', monospace; letter-spacing: .1em; }
.code-window pre { margin: 0; padding: 17px 15px 19px; overflow: auto; color: #d3e8e1; font: 10px/1.8 'DM Mono', monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-window code { color: inherit; }
.code-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.code-actions .button { min-height: 40px; font-size: 10px; }
.copy-status { color: #72857e; font-size: 9px; }

.limits-section { padding-bottom: 85px; }
.limits-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; padding: clamp(26px, 4vw, 44px); border: 1px solid #dce8e1; border-radius: 18px; background: linear-gradient(120deg,#eef8f1,#f6faf7 67%,#f1f8f3); }
.limits-card .eyebrow { margin-bottom: 12px; }
.limits-card h2 { max-width: 340px; font-size: clamp(26px, 3vw, 35px); }
.limits-copy p { margin: 0 0 11px; color: #61766e; font-size: 10px; line-height: 1.9; }
.limits-copy a { display: inline-flex; align-items: center; gap: 8px; margin-top: 3px; color: #247b58; font-size: 10px; font-weight: 800; text-decoration: none; }
.limits-copy a:hover { color: #145638; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; padding: 17px max(28px, calc((100vw - var(--wide)) / 2)); border-top: 1px solid var(--line); background: #fff; }
.footer-brand { font-size: 18px; }
.footer-brand .brand-logo { width: 25px; height: 25px; border-radius: 7px; }
.site-footer p, .site-footer > a:last-child { margin: 0; color: #86959b; font-size: 9px; }
.site-footer > a:last-child { color: #47715d; font-weight: 800; text-decoration: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(310px, .82fr); gap: 25px; min-height: 510px; }
  .hero-visual { min-height: 350px; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .install-section { grid-template-columns: minmax(0, .85fr) minmax(350px, 1.15fr); gap: 32px; }
}
@media (max-width: 680px) {
  .site-header { height: auto; min-height: 66px; flex-wrap: wrap; padding: 10px 20px 8px; }
  .main-nav { display: flex; order: 3; justify-content: center; width: 100%; gap: 23px; margin: 5px 0 1px; }
  .main-nav a { font-size: 10px; }
  .header-cta { margin-left: auto; }
  .section-wrap, .quick-facts { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding-top: 58px; padding-bottom: 48px; }
  .hero h1 { max-width: 560px; font-size: clamp(43px, 12vw, 64px); }
  .hero-visual { min-height: 330px; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .quick-facts > div { min-height: 60px; padding-inline: 11px; }
  .quick-facts > div:first-child { padding-left: 11px; }
  .quick-facts > div:nth-child(2) { border-right: 0; }
  .quick-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-block { padding-top: 75px; padding-bottom: 72px; }
  .stats-section { padding: 58px 0 52px; }
  .stats-heading { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { min-height: 128px; padding: 16px; }
  .stat-card strong { font-size: 30px; }
  .stats-bottom { align-items: flex-start; flex-direction: column; }
  .install-section { grid-template-columns: 1fr; gap: 34px; padding-top: 75px; padding-bottom: 74px; }
  .code-card { padding: 17px; }
  .limits-section { padding-bottom: 60px; }
  .limits-card { grid-template-columns: 1fr; gap: 21px; }
  .site-footer { flex-wrap: wrap; padding: 18px; }
  .site-footer p { order: 3; width: 100%; }
}
@media (max-width: 420px) {
  .site-header { padding-inline: 14px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 9px; }
  .brand { font-size: 21px; }
  .header-cta { padding: 9px 11px; font-size: 10px; }
  .section-wrap, .quick-facts { width: calc(100% - 28px); }
  .hero { padding-top: 43px; }
  .hero-notes { gap: 11px; }
  .hero-visual { min-height: 290px; }
  .visual-orbit { width: 260px; height: 260px; }
  .orbit-two { width: 180px; height: 180px; }
  .node-a { left: 10px; }
  .node-c { right: 8px; }
  .node-b { right: 12px; }
  .flow-grid { gap: 9px; }
  .flow-card { min-height: 220px; padding: 18px 14px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-label { min-height: 30px; }
  .code-window pre { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
