:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-soft: #0f1a2d;
  --card: rgba(24, 36, 56, 0.76);
  --card-solid: #182438;
  --text: #f7fafc;
  --muted: #9babc0;
  --subtle: #cad6e5;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.32);
  --accent: #3ddc84;
  --accent-strong: #21b968;
  --accent-soft: rgba(61, 220, 132, 0.12);
  --blue: #54c8f4;
  --blue-soft: rgba(84, 200, 244, 0.12);
  --violet: #b59cff;
  --amber: #f5c451;
  --shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shell: 1180px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #eaf0f8;
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --text: #0f172a;
  --muted: #58677d;
  --subtle: #334155;
  --line: rgba(71, 85, 105, 0.16);
  --line-strong: rgba(71, 85, 105, 0.28);
  --accent: #119b54;
  --accent-strong: #0b7e43;
  --accent-soft: rgba(17, 155, 84, 0.1);
  --blue: #087ca8;
  --blue-soft: rgba(8, 124, 168, 0.1);
  --violet: #7454d6;
  --amber: #b47710;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
code {
  padding: 0.12em 0.4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  color: var(--subtle);
}
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #04130a;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 16% -2%, rgba(61, 220, 132, 0.15), transparent 70%),
    radial-gradient(ellipse 46% 36% at 92% 9%, rgba(84, 200, 244, 0.13), transparent 70%),
    radial-gradient(ellipse 45% 38% at 55% 88%, rgba(181, 156, 255, 0.08), transparent 70%);
}
.page-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.54), transparent 72%);
}

.site-header {
  width: min(calc(100% - 48px), var(--shell));
  height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 15px; letter-spacing: 0.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 22px rgba(61, 220, 132, 0.05);
}
.brand-mark svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; }
.brand-mark .fill { fill: currentColor; stroke: none; }
.brand-mark.small { width: 36px; height: 36px; border-radius: 11px; }
.brand-mark.small svg { width: 22px; height: 22px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; font-weight: 600; }
.site-nav a { transition: color 160ms ease; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.hero {
  min-height: 660px;
  padding: 74px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: 70px;
}
.hero-copy,
.network-card,
.connect-panel > *,
.split-panel > * { min-width: 0; }
.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245,196,81,0.1); }
.status-pill[data-state="online"] { color: var(--accent); border-color: rgba(61,220,132,0.3); background: var(--accent-soft); }
.status-pill[data-state="online"] .status-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(61,220,132,0.12); animation: pulse 2.4s infinite; }
.status-pill[data-state="offline"] { color: var(--amber); }
.status-pill[data-state="offline"] .status-dot { background: var(--amber); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.19em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 65px); line-height: 1.1; letter-spacing: -0.045em; font-weight: 750; }
.hero h1 span { color: var(--accent); }
.hero-lead { width: 100%; max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: #04160b; background: var(--accent); box-shadow: 0 9px 26px rgba(33, 185, 104, 0.22); }
.button-primary:hover { background: #4cf295; }
.button-secondary { color: var(--text); border-color: var(--line-strong); background: var(--card); }
.button-secondary:hover { border-color: var(--muted); background: var(--card-solid); }
.hero-facts { display: flex; gap: 32px; margin: 37px 0 0; }
.hero-facts div { display: flex; flex-direction: column; gap: 2px; }
.hero-facts dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-facts dd { margin: 0; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }

.network-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(30, 45, 67, 0.84), rgba(14, 24, 41, 0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(18px);
}
:root[data-theme="light"] .network-card { background: linear-gradient(155deg, rgba(255,255,255,0.96), rgba(231,239,249,0.9)); }
.network-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(61,220,132,0.1), transparent 42%),
    radial-gradient(circle at 90% 5%, rgba(84,200,244,0.1), transparent 35%);
}
.network-card-head { position: relative; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.2em; }
.secure-label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(61,220,132,0.25); border-radius: 999px; background: var(--accent-soft); color: var(--accent); letter-spacing: 0.1em; }
.secure-label svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.network-map { position: relative; height: 410px; margin-top: 8px; }
.network-map::before {
  content: "";
  position: absolute;
  inset: 25px 12px;
  opacity: 0.44;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}
.device-node, .portal-node {
  position: absolute;
  z-index: 2;
  min-width: 104px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: color-mix(in srgb, var(--card-solid) 86%, transparent);
  box-shadow: 0 8px 24px rgba(2,6,23,0.18);
  backdrop-filter: blur(12px);
}
.device-node span, .portal-node span { display: block; font-size: 11px; font-weight: 700; }
.device-node small, .portal-node small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.node-a { left: 2%; top: 16%; }
.node-b { right: 1%; top: 10%; }
.node-c { left: 7%; bottom: 13%; }
.portal-node { right: 2%; bottom: 11%; }
.portal-node::before { content: ""; position: absolute; width: 7px; height: 7px; right: 10px; top: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.network-map::after {
  content: "";
  position: absolute;
  left: 24%;
  top: 30%;
  width: 48%;
  height: 36%;
  border: 1px solid rgba(61,220,132,0.17);
  border-radius: 50%;
  transform: rotate(-13deg);
  box-shadow: 0 0 0 34px rgba(61,220,132,0.025), 0 0 0 70px rgba(61,220,132,0.015);
}
.broker-node {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 48%;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(61,220,132,0.35);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,220,132,0.13), rgba(15,26,45,0.86) 68%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 44px rgba(61,220,132,0.1), inset 0 0 26px rgba(61,220,132,0.05);
}
:root[data-theme="light"] .broker-node { background: radial-gradient(circle, rgba(17,155,84,0.12), rgba(255,255,255,0.94) 68%); }
.broker-node svg { width: 26px; height: 26px; margin-bottom: 3px; fill: none; stroke: var(--accent); stroke-width: 1.55; stroke-linecap: round; }
.broker-node strong { font-size: 11px; }
.broker-node small { color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.broker-rings { position: absolute; inset: -20px; border: 1px dashed rgba(61,220,132,0.15); border-radius: 50%; animation: rotate 34s linear infinite; }
.broker-rings::before { content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }
@keyframes rotate { to { transform: rotate(360deg); } }
.network-legend { position: relative; display: flex; align-items: center; gap: 18px; padding: 15px 3px 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.network-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 5px; height: 5px; border-radius: 50%; }
.green { background: var(--accent); }
.blue { background: var(--blue); }
.violet { background: var(--violet); }

.section { padding-top: 36px; padding-bottom: 84px; }
.section-heading { max-width: 680px; margin-bottom: 29px; }
.section h2, .connect-panel h2, .split-panel h2, .cta-panel h2 { margin: 0; font-size: clamp(29px, 3.7vw, 42px); line-height: 1.18; letter-spacing: -0.035em; }
.section-heading .eyebrow { margin-bottom: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.feature-card {
  min-height: 238px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 8px 32px rgba(2,6,23,0.1);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: color-mix(in srgb, var(--card) 88%, var(--text) 3%); }
.feature-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 26px; border: 1px solid currentColor; border-radius: 11px; opacity: 0.95; }
.feature-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon.green { color: var(--accent); background: var(--accent-soft); border-color: rgba(61,220,132,0.25); }
.feature-icon.blue { color: var(--blue); background: var(--blue-soft); border-color: rgba(84,200,244,0.25); }
.feature-icon.violet { color: var(--violet); background: rgba(181,156,255,0.1); border-color: rgba(181,156,255,0.25); }
.feature-icon.amber { color: var(--amber); background: rgba(245,196,81,0.1); border-color: rgba(245,196,81,0.25); }
.feature-card h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.connect-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 54px;
  padding: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 15%, rgba(84,200,244,0.09), transparent 34%),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}
.connect-copy > p:not(.eyebrow) { max-width: 420px; margin: 18px 0 23px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 700; }
.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(4px); }
.connection-table { overflow: hidden; align-self: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(7, 14, 26, 0.2); }
.connection-table > div { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 13px 17px; border-bottom: 1px solid var(--line); font-size: 12px; }
.connection-table > div:last-child { border-bottom: 0; }
.connection-table span { color: var(--muted); }
.connection-table strong { font-weight: 600; color: var(--subtle); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.connect-note { margin: 13px 4px 0; color: var(--muted); font-size: 11px; }

.split-panel { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 70px; padding: 28px 0 8px; }
.section-copy { max-width: 430px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.safety-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.safety-list li { min-height: 142px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.safety-list li > span { display: block; margin-bottom: 14px; color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.safety-list strong { font-size: 13px; }
.safety-list p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px;
  border: 1px solid rgba(61,220,132,0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 50%, rgba(61,220,132,0.13), transparent 38%),
    var(--card);
  box-shadow: 0 20px 60px rgba(2,6,23,0.16);
}
.cta-panel p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.cta-actions { display: flex; flex-shrink: 0; gap: 10px; }

.site-footer { padding: 36px 0 40px; display: grid; grid-template-columns: 1fr auto; gap: 22px 30px; align-items: center; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand > span:last-child { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 12px; }
.footer-brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--text); }
.footer-meta { grid-column: 1 / -1; margin: 5px 0 0; color: var(--muted); font-size: 10px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 46px; }
  .hero-copy { max-width: 760px; }
  .network-card { max-width: 660px; width: 100%; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { min-height: 210px; }
  .split-panel { grid-template-columns: 1fr; gap: 36px; }
  .connect-panel { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .shell, .site-header { width: min(calc(100% - 30px), var(--shell)); }
  .site-header { height: 77px; gap: 12px; }
  .site-nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .hero { min-height: auto; padding: 38px 0 64px; }
  .hero h1 { font-size: clamp(36px, 11vw, 51px); }
  .hero-lead { font-size: 14px; }
  .hero-facts { gap: 24px; }
  .network-card { padding: 16px; border-radius: 21px; }
  .network-map { height: 350px; }
  .node-a { left: 0; top: 10%; }
  .node-b { right: 0; top: 16%; }
  .node-c { left: 1%; bottom: 10%; }
  .portal-node { right: 0; bottom: 8%; }
  .broker-node { width: 128px; height: 128px; }
  .network-legend { flex-wrap: wrap; gap: 9px 14px; }
  .section { padding-bottom: 60px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-icon { margin-bottom: 18px; }
  .connect-panel, .cta-panel { padding: 23px; }
  .connection-table > div { grid-template-columns: 92px 1fr; gap: 10px; padding: 11px 13px; }
  .connection-table strong { font-size: 10px; }
  .safety-list { grid-template-columns: 1fr; }
  .safety-list li { min-height: auto; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 30px; }
  .footer-links { justify-content: flex-start; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
