:root {
  --bg-0: #04101f;
  --bg-1: #0a1d37;
  --bg-2: #11274a;
  --panel: rgba(7, 18, 38, 0.76);
  --panel-strong: rgba(8, 18, 37, 0.92);
  --line: rgba(121, 181, 255, 0.18);
  --line-strong: rgba(121, 181, 255, 0.34);
  --text-0: #f4fbff;
  --text-1: #c1d5f7;
  --text-2: #86a7d6;
  --accent: #59d5ff;
  --accent-2: #6b7cff;
  --success: #42e4a2;
  --warning: #ffba66;
  --danger: #ff6c7d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text-0);
  background:
    radial-gradient(circle at top right, rgba(89, 213, 255, 0.16), transparent 22%),
    radial-gradient(circle at left 20%, rgba(107, 124, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(4, 16, 31, 0.96), rgba(2, 10, 22, 0.98)),
    url("./assets/network-bg.png") center/cover fixed no-repeat;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 16, 31, 0.12), rgba(4, 16, 31, 0.66)),
    linear-gradient(90deg, rgba(4, 16, 31, 0.72), rgba(4, 16, 31, 0.14));
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 92%);
}

.topbar,
.section,
.footer {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  margin-top: 20px;
  position: sticky;
  top: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 24px;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(8, 20, 41, 0.9), rgba(7, 18, 36, 0.8));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(24, 92, 202, 0.28);
}

.brand-logo.small {
  width: 44px;
  height: 44px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--text-2);
}

.brand-lockup strong,
.footer-brand strong {
  display: block;
  margin-top: 4px;
  font-size: 1.28rem;
  font-family: "Space Grotesk", sans-serif;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-1);
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-0);
}

.topbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-0);
  padding: 0;
  margin-left: auto;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  margin: 0 auto;
}

.menu-toggle span + span {
  margin-top: 7px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #04101f;
  background: linear-gradient(135deg, var(--accent), #8de6ff);
  box-shadow: 0 16px 34px rgba(89, 213, 255, 0.22);
}

.button.ghost {
  color: var(--text-0);
  border-color: rgba(121, 181, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.button.large {
  min-height: 56px;
  padding: 0 28px;
}

.button.full {
  width: 100%;
}

.panel,
.proof-card,
.session-card,
.highlight-strip article,
.node-summary,
.download-card {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(8, 20, 41, 0.84), rgba(7, 18, 36, 0.82));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section {
  padding-top: 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 30px;
  align-items: center;
  padding-top: 34px;
}

.hero-copy h1,
.section-heading h2,
.auth-copy h2 {
  margin: 12px 0 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  max-width: 10ch;
}

.hero-lead,
.section-heading p,
.auth-copy p,
.footer-brand p {
  color: var(--text-1);
  line-height: 1.75;
}

.hero-lead {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.proof-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.proof-card span,
.session-card span,
.mini-stat span,
.node-summary span,
.download-card p,
.plan-kicker,
.dashboard-meta article span,
.account-list span,
.setting-row span {
  color: var(--text-2);
}

.proof-card strong,
.hero-panel h2,
.orb-state,
.session-card strong,
.section-heading h2,
.feature-card h3,
.node-card h3,
.pricing-card h3,
.download-card h3,
.auth-copy h2,
.dashboard-head h3,
.side-card h3 {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.proof-card strong {
  margin-top: 10px;
  font-size: 1.24rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px;
  min-height: 680px;
}

.hero-panel-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 24, 0.16), rgba(4, 12, 24, 0.76)),
    url("./assets/hero-bg.png") center/cover no-repeat;
  opacity: 0.88;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel-head,
.dashboard-head,
.side-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-panel-head h2,
.dashboard-head h3 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
}

.state-pill,
.recommend-badge,
.node-status,
.node-action,
.dashboard-connect,
.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: var(--radius-pill);
}

.state-pill {
  padding: 0 14px;
  border: 1px solid rgba(121, 181, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-1);
}

.state-pill.success {
  color: var(--success);
  border-color: rgba(66, 228, 162, 0.28);
  background: rgba(66, 228, 162, 0.08);
}

.state-pill.warning {
  color: var(--warning);
  border-color: rgba(255, 186, 102, 0.28);
  background: rgba(255, 186, 102, 0.08);
}

.state-pill.neutral {
  color: var(--text-1);
}

.connect-shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
}

.connect-orb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.connect-orb:hover,
.dashboard-connect:hover {
  transform: translateY(-2px);
}

.orb-rings,
.orb-rings.secondary,
.orb-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.orb-rings {
  border: 1px solid rgba(89, 213, 255, 0.24);
  box-shadow:
    inset 0 0 32px rgba(89, 213, 255, 0.1),
    0 0 44px rgba(89, 213, 255, 0.12);
}

.orb-rings::before,
.orb-rings::after,
.orb-rings.secondary::before,
.orb-rings.secondary::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(121, 181, 255, 0.16);
}

.orb-rings::before {
  inset: 18px;
}

.orb-rings::after {
  inset: 38px;
}

.orb-rings.secondary::before {
  inset: 58px;
}

.orb-rings.secondary::after {
  inset: 80px;
}

.orb-core {
  inset: 62px;
  display: grid;
  place-items: center;
  gap: 6px;
  background:
    radial-gradient(circle at 30% 24%, rgba(137, 197, 255, 0.26), transparent 36%),
    radial-gradient(circle at 72% 78%, rgba(66, 228, 162, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(17, 39, 74, 0.98), rgba(5, 16, 31, 0.98));
  border: 1px solid rgba(121, 181, 255, 0.18);
  box-shadow:
    inset 0 0 42px rgba(89, 213, 255, 0.08),
    0 26px 64px rgba(0, 0, 0, 0.34);
}

.orb-state {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1;
}

.orb-hint {
  color: var(--text-1);
  font-size: 1rem;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.mini-stat,
.feature-card,
.pricing-card,
.side-card,
.node-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(6, 16, 31, 0.72);
  border: 1px solid rgba(121, 181, 255, 0.1);
}

.mini-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.session-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.session-card strong {
  font-size: 1.18rem;
  margin-top: 8px;
}

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.highlight-strip article {
  padding: 16px 18px;
  border-radius: 22px;
}

.highlight-strip strong {
  display: block;
  font-size: 1rem;
}

.highlight-strip span {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.94rem;
}

.section-block {
  padding-top: 108px;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p {
  margin-top: 18px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.node-summary {
  min-width: 230px;
  padding: 18px 20px;
  border-radius: 22px;
}

.node-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-family: "Space Grotesk", sans-serif;
}

.node-summary small {
  display: block;
  margin-top: 6px;
  color: var(--text-2);
}

.feature-grid,
.pricing-grid,
.download-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.pricing-card,
.download-card,
.node-card,
.side-card {
  height: 100%;
}

.feature-card h3 {
  margin: 18px 0 0;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--text-1);
  line-height: 1.72;
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(89, 213, 255, 0.12), rgba(107, 124, 255, 0.1));
  border: 1px solid rgba(121, 181, 255, 0.16);
}

.icon-box svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.node-card {
  display: grid;
  gap: 14px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.node-card:hover,
.pricing-card:hover,
.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.node-card.selected {
  border-color: rgba(89, 213, 255, 0.46);
  box-shadow: 0 22px 54px rgba(26, 108, 245, 0.22);
  background:
    linear-gradient(135deg, rgba(89, 213, 255, 0.12), rgba(107, 124, 255, 0.08)),
    rgba(6, 16, 31, 0.74);
}

.node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.node-card h3,
.pricing-card h3,
.download-card h3 {
  margin: 0;
}

.node-card p,
.pricing-card p {
  margin: 0;
  color: var(--text-1);
  line-height: 1.72;
}

.node-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.node-meta div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.node-meta span,
.account-list div span,
.dashboard-node button span {
  display: block;
  color: var(--text-2);
  font-size: 0.84rem;
}

.node-meta strong,
.account-list div strong,
.dashboard-node button strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
}

.node-status {
  padding: 0 12px;
  font-size: 0.84rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.node-status.recommended {
  color: var(--accent);
  background: rgba(89, 213, 255, 0.08);
}

.node-status.normal {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.06);
}

.node-status.busy {
  color: var(--warning);
  background: rgba(255, 186, 102, 0.08);
}

.node-status.offline {
  color: var(--danger);
  background: rgba(255, 108, 125, 0.08);
}

.node-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.node-action {
  padding: 0 16px;
  border: 1px solid rgba(121, 181, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-0);
  cursor: pointer;
}

.node-action.primary {
  color: #04101f;
  background: linear-gradient(135deg, var(--accent), #8de6ff);
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pricing-card ul {
  margin: 22px 0 24px;
  padding-left: 18px;
  color: var(--text-1);
  line-height: 1.92;
}

.pricing-card.featured {
  border-color: rgba(89, 213, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(12, 32, 62, 0.94), rgba(7, 18, 36, 0.9)),
    rgba(7, 18, 36, 0.9);
  box-shadow: 0 24px 68px rgba(25, 113, 255, 0.22);
}

.pricing-card.featured::before {
  content: "";
  position: absolute;
  inset: -30% 35% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 213, 255, 0.22), transparent 65%);
}

.recommend-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0 12px;
  font-size: 0.82rem;
  color: #04101f;
  background: linear-gradient(135deg, #9be8ff, var(--accent));
}

.recommend-badge.subtle {
  color: var(--accent);
  background: rgba(89, 213, 255, 0.1);
}

.pricing-card h3 {
  margin-top: 16px;
  font-size: 2.5rem;
}

.pricing-card h3 span {
  font-size: 1rem;
  color: var(--text-2);
}

.download-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.download-card {
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.download-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  color: #04101f;
  background: linear-gradient(135deg, #8de6ff, var(--accent));
  box-shadow: 0 14px 28px rgba(89, 213, 255, 0.18);
}

.download-card p {
  min-height: 66px;
  line-height: 1.72;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.auth-points {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.auth-points article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(121, 181, 255, 0.08);
}

.auth-points strong {
  display: block;
  font-size: 1rem;
}

.auth-points span {
  display: block;
  margin-top: 8px;
  color: var(--text-1);
  line-height: 1.7;
}

.auth-panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(121, 181, 255, 0.1);
}

.auth-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab {
  min-height: 42px;
  border-radius: var(--radius-pill);
  border: 0;
  color: var(--text-1);
  background: transparent;
  cursor: pointer;
}

.auth-tab.active {
  color: #04101f;
  background: linear-gradient(135deg, var(--accent), #8de6ff);
}

.auth-form {
  display: none;
  gap: 14px;
  margin-top: 20px;
}

.auth-form.active {
  display: grid;
}

.auth-form label,
.auth-inline {
  display: grid;
  gap: 8px;
}

.auth-form input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(121, 181, 255, 0.14);
  border-radius: 14px;
  outline: none;
}

.auth-form input:focus,
select:focus {
  border-color: rgba(89, 213, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(89, 213, 255, 0.08);
}

.auth-inline {
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--text-2);
  font-size: 0.92rem;
}

.auth-inline a {
  color: var(--accent);
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-2);
}

.form-status.error {
  color: var(--danger);
}

.form-status.success {
  color: var(--success);
}

.form-status.pending {
  color: var(--warning);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  margin-top: 32px;
}

.dashboard-main,
.side-card {
  border-radius: var(--radius-xl);
}

.dashboard-main {
  padding: 26px;
}

.dashboard-center {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 26px;
  margin-top: 26px;
}

.dashboard-orb-wrap {
  display: grid;
  place-items: center;
  align-content: start;
  gap: 16px;
  text-align: center;
}

.dashboard-connect {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(121, 181, 255, 0.18);
  color: var(--text-0);
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 24%, rgba(137, 197, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(14, 37, 74, 0.98), rgba(4, 14, 29, 0.98));
  box-shadow:
    inset 0 0 34px rgba(89, 213, 255, 0.08),
    0 24px 52px rgba(0, 0, 0, 0.3);
}

.dashboard-orb-wrap p {
  margin: 0;
  color: var(--text-1);
}

.dashboard-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-meta article,
.account-list div,
.dashboard-node button {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(121, 181, 255, 0.08);
}

.dashboard-meta article strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.dashboard-side {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.account-list,
.settings-list,
.dashboard-node-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-node button {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-node button.active {
  border-color: rgba(89, 213, 255, 0.34);
  background: rgba(89, 213, 255, 0.08);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(121, 181, 255, 0.08);
}

.setting-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.setting-row strong {
  display: block;
  margin-bottom: 4px;
}

.setting-select {
  align-items: flex-start;
}

.toggle {
  width: 62px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.toggle span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9f7ff;
  transform: translateX(0);
  transition: transform 160ms ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.toggle.active {
  background: linear-gradient(90deg, rgba(89, 213, 255, 0.9), rgba(107, 124, 255, 0.94));
  box-shadow: 0 0 26px rgba(89, 213, 255, 0.2);
}

.toggle.active span {
  transform: translateX(26px);
}

.footer {
  padding: 96px 0 42px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 24px;
  color: var(--text-1);
}

.footer-copy {
  margin: 22px 0 0;
  color: var(--text-2);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--text-0);
  border: 1px solid rgba(121, 181, 255, 0.18);
  background: rgba(5, 15, 30, 0.92);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-connection="connecting"] .orb-rings {
  animation: spin 3.2s linear infinite;
}

body[data-connection="connecting"] .orb-rings.secondary {
  animation: spin-reverse 2.3s linear infinite;
}

body[data-connection="connecting"] .orb-core,
body[data-connection="connecting"] .dashboard-connect {
  box-shadow:
    inset 0 0 44px rgba(89, 213, 255, 0.16),
    0 0 0 8px rgba(89, 213, 255, 0.06),
    0 26px 64px rgba(0, 0, 0, 0.34);
}

body[data-connection="connected"] .orb-core,
body[data-connection="connected"] .dashboard-connect {
  background:
    radial-gradient(circle at 30% 24%, rgba(137, 197, 255, 0.18), transparent 34%),
    radial-gradient(circle at 72% 78%, rgba(66, 228, 162, 0.34), transparent 26%),
    linear-gradient(180deg, rgba(11, 42, 70, 0.98), rgba(4, 14, 29, 0.98));
  box-shadow:
    inset 0 0 48px rgba(66, 228, 162, 0.16),
    0 0 34px rgba(66, 228, 162, 0.16),
    0 26px 64px rgba(0, 0, 0, 0.34);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@media (max-width: 1199px) {
  .section,
  .topbar,
  .footer {
    width: min(980px, calc(100% - 32px));
  }

  .hero,
  .auth-shell,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .connect-shell,
  .dashboard-center {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 899px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
  }

  .topbar-actions {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 6px;
  }

  body.menu-open .topbar-actions {
    display: flex;
  }

  .nav-links,
  .topbar-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    padding: 8px 0;
  }

  .highlight-strip,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: grid;
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .section,
  .topbar,
  .footer {
    width: min(100%, calc(100% - 20px));
  }

  .topbar {
    top: 10px;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 20px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .hero {
    padding-top: 22px;
    gap: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }

  .hero-panel,
  .auth-shell,
  .dashboard-main,
  .side-card {
    padding: 18px;
    border-radius: 24px;
  }

  .proof-grid,
  .session-grid,
  .feature-grid,
  .node-grid,
  .download-grid,
  .dashboard-meta {
    grid-template-columns: 1fr;
  }

  .connect-orb {
    max-width: 320px;
    margin: 0 auto;
  }

  .orb-core {
    inset: 52px;
  }

  .dashboard-connect {
    width: min(220px, 62vw);
    height: min(220px, 62vw);
  }

  .auth-panel {
    padding: 16px;
  }

  .auth-inline,
  .setting-row,
  .setting-select {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .button,
  .button.large {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-brand {
    align-items: center;
  }
}
