/* Eryon — Private Network */

:root {
  --bg: #07070a;
  --bg-elevated: #0c0c11;
  --surface: #111118;
  --surface-2: #16161f;
  --text: #f0f0f5;
  --text-secondary: #a3a3b2;
  --text-muted: #6e6e7d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent: #8b6cff;
  --accent-soft: rgba(139, 108, 255, 0.12);
  --accent-glow: rgba(139, 108, 255, 0.35);

  --node: #4f8cff;
  --node-soft: rgba(79, 140, 255, 0.14);
  --node-glow: rgba(79, 140, 255, 0.4);

  --relay: #8b6cff;
  --relay-soft: rgba(139, 108, 255, 0.14);
  --relay-glow: rgba(139, 108, 255, 0.4);

  --protocol: #2ec4b6;
  --protocol-soft: rgba(46, 196, 182, 0.14);
  --protocol-glow: rgba(46, 196, 182, 0.4);

  --internet: #8a8a99;
  --internet-soft: rgba(138, 138, 153, 0.12);

  --ok: #5dde9a;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --container: 1120px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(139, 108, 255, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.logo-mark {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent-glow));
  transition: color 0.2s var(--ease), filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.brand:hover .logo-mark,
.brand:focus-visible .logo-mark {
  color: #9d84ff;
  filter: drop-shadow(0 0 14px var(--accent-glow));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1.1rem;
  width: min(100% - 0rem, var(--container));
  margin-inline: auto;
}

.mobile-nav a {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.mobile-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.mobile-nav .btn {
  margin-top: 0.5rem;
  justify-content: center;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .header-actions {
    margin-left: 0;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--accent);
  color: #0b0616;
  box-shadow: 0 0 0 0 transparent;
}

.btn-primary:hover {
  background: #9d84ff;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(139, 108, 255, 0.45);
  background: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 7.5rem) 0 clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 50% 55% at 50% 30%, rgba(139, 108, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 35% 40% at 70% 50%, rgba(46, 196, 182, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  max-width: 40rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin-bottom: 0.55rem;
}

.hero-dot {
  color: var(--accent);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 560;
  letter-spacing: -0.025em;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head h2,
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* ═══════════════════════════════════════════
   Network visualization (HTML + CSS only)
   ═══════════════════════════════════════════ */

.net-viz {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(17, 17, 24, 0.9), rgba(12, 12, 17, 0.95)),
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(139, 108, 255, 0.06), transparent 70%);
  overflow: hidden;
}

.net-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
}

.net-stage--core {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
  max-width: 420px;
}

/* Component nodes */

.net-comp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease),
    background 0.25s var(--ease);
}

.net-comp--sm {
  padding: 0.65rem 0.85rem;
  width: 100%;
  max-width: none;
}

.net-comp__dot {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.net-comp--sm .net-comp__dot {
  top: 0.7rem;
  right: 0.7rem;
}

.net-comp__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-right: 1rem;
}

.net-comp__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.net-comp--internet {
  color: var(--internet);
  border-color: rgba(138, 138, 153, 0.28);
  background: linear-gradient(180deg, #15151c, #111116);
}

.net-comp--internet:hover,
.net-comp--internet:focus-visible {
  border-color: rgba(168, 168, 180, 0.55);
  box-shadow: 0 0 22px rgba(138, 138, 153, 0.18);
  transform: translateY(-2px);
}

.net-comp--exit {
  color: var(--accent);
  border-color: rgba(139, 108, 255, 0.4);
  background: linear-gradient(180deg, rgba(139, 108, 255, 0.1), var(--surface));
}

.net-comp--exit:hover,
.net-comp--exit:focus-visible {
  border-color: rgba(139, 108, 255, 0.75);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-2px);
}

.net-comp--node {
  color: var(--node);
  border-color: rgba(79, 140, 255, 0.4);
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.1), var(--surface));
}

.net-comp--node:hover,
.net-comp--node:focus-visible {
  border-color: rgba(79, 140, 255, 0.8);
  box-shadow: 0 0 24px var(--node-glow);
  transform: translateY(-2px);
}

.net-comp--relay {
  color: var(--relay);
  border-color: rgba(139, 108, 255, 0.4);
  background: linear-gradient(180deg, rgba(139, 108, 255, 0.1), var(--surface));
}

.net-comp--relay:hover,
.net-comp--relay:focus-visible {
  border-color: rgba(139, 108, 255, 0.8);
  box-shadow: 0 0 24px var(--relay-glow);
  transform: translateY(-2px);
}

.net-comp--protocol {
  color: var(--protocol);
  border-color: rgba(46, 196, 182, 0.42);
  background: linear-gradient(180deg, rgba(46, 196, 182, 0.1), var(--surface));
}

.net-comp--protocol:hover,
.net-comp--protocol:focus-visible {
  border-color: rgba(46, 196, 182, 0.8);
  box-shadow: 0 0 28px var(--protocol-glow);
  transform: translateY(-2px);
}

/* Mesh (Eryon Network) */

.net-mesh {
  width: 100%;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(139, 108, 255, 0.28);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(160deg, rgba(139, 108, 255, 0.08), transparent 45%),
    rgba(10, 10, 16, 0.85);
  box-shadow: inset 0 0 40px rgba(139, 108, 255, 0.04);
}

.net-mesh__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.net-mesh__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.net-mesh__badge {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(139, 108, 255, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
  white-space: nowrap;
}

.net-mesh__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.net-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-width: 0;
}

/* Connectors (CSS lines + pulse) */

.net-connector {
  position: relative;
  flex: 0 0 36px;
  align-self: center;
  height: 2px;
  min-width: 20px;
}

.net-connector--pair {
  flex: none;
  width: 100%;
  min-width: 0;
  height: 2px;
}

.net-connector__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(139, 108, 255, 0.45),
    rgba(255, 255, 255, 0.08)
  );
  border-radius: 2px;
}

.net-connector__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #c4b5ff;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse-flow 2.8s linear infinite;
  opacity: 0.9;
}

.net-connector--pair .net-connector__pulse {
  background: #8eb6ff;
  box-shadow: 0 0 10px var(--node-glow);
  animation-duration: 2.2s;
}

.net-pair:nth-child(2) .net-connector__pulse {
  animation-delay: -1.1s;
}

@keyframes pulse-flow {
  0% {
    left: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}

/* Architecture legends */

.arch-legends {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.arch-legend {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.arch-legend:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.arch-legend h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.arch-legend p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.arch-legend__swatch {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.arch-legend__swatch--node {
  background: var(--node);
  color: var(--node);
}

.arch-legend__swatch--relay {
  background: var(--relay);
  color: var(--relay);
}

.arch-legend__swatch--exit {
  background: var(--accent);
  color: var(--accent);
}

.arch-legend__swatch--protocol {
  background: var(--protocol);
  color: var(--protocol);
}

/* Security */

.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.card {
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(139, 108, 255, 0.35);
  box-shadow: 0 0 28px rgba(139, 108, 255, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.9rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  position: relative;
  background: var(--surface-2);
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.card-icon--auth::before {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

.card-icon--auth::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.card-icon--encrypt::before {
  width: 14px;
  height: 10px;
  border: 1.5px solid var(--node);
  border-radius: 3px;
}

.card-icon--encrypt::after {
  top: 7px;
  bottom: auto;
  width: 6px;
  height: 5px;
  border: 1.5px solid var(--node);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.card-icon--route::before {
  width: 14px;
  height: 1.5px;
  background: var(--protocol);
  box-shadow: 0 -4px 0 var(--protocol), 0 4px 0 var(--protocol);
  opacity: 0.9;
}

.card-icon--route::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--protocol);
  box-shadow: 0 0 8px var(--protocol-glow);
  transform: translateX(6px);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Terminal */

.terminal {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: #0a0a10;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.terminal__bar > span:nth-child(-n + 3) {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2a35;
}

.terminal__bar > span:nth-child(1) { background: #ff5f57; opacity: 0.75; }
.terminal__bar > span:nth-child(2) { background: #febc2e; opacity: 0.75; }
.terminal__bar > span:nth-child(3) { background: #28c840; opacity: 0.75; }

.terminal__title {
  margin-left: 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.terminal__body {
  padding: 1.15rem 1.15rem 1.35rem;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.78rem, 2.4vw, 0.9rem);
  line-height: 1.7;
  color: var(--text-secondary);
  -webkit-overflow-scrolling: touch;
}

.terminal__body code {
  font-family: inherit;
  white-space: pre;
}

.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-ok { color: var(--ok); }
.t-key { color: var(--text-muted); }
.t-val { color: var(--node); }
.t-online { color: var(--protocol); }

/* CTA */

.cta {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 50% 100%, rgba(139, 108, 255, 0.12), transparent 70%);
}

.cta-inner {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.cta .hero-actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* ═══════════════════════════════════════════
   Responsive — desktop → tablet → mobile
   ═══════════════════════════════════════════ */

@media (min-width: 640px) {
  .arch-legends {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 768px) {
  .net-viz {
    padding: 1.5rem 1.35rem;
  }

  .net-connector {
    flex-basis: 44px;
  }

  .net-pair {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .net-viz {
    gap: 0.15rem;
    padding: 1.75rem 1.5rem;
  }

  .net-connector {
    flex-basis: 52px;
  }

  .net-comp {
    padding: 1rem 1.15rem;
  }

  .net-comp__label {
    font-size: 0.98rem;
  }
}

/* Mobile / narrow: vertical topology */
@media (max-width: 899px) {
  .net-viz {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.1rem;
  }

  .net-stage {
    width: 100%;
  }

  .net-stage > .net-comp {
    width: 100%;
  }

  .net-stage--core {
    max-width: none;
  }

  .net-connector:not(.net-connector--pair) {
    flex: none;
    width: 2px;
    height: 32px;
    min-width: 2px;
    align-self: center;
  }

  .net-connector:not(.net-connector--pair) .net-connector__line {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(139, 108, 255, 0.45),
      rgba(255, 255, 255, 0.08)
    );
  }

  .net-connector:not(.net-connector--pair) .net-connector__pulse {
    left: 50%;
    margin-left: -3.5px;
    margin-top: 0;
    animation-name: pulse-flow-vertical;
  }

  @keyframes pulse-flow-vertical {
    0% {
      top: 0;
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    88% {
      opacity: 1;
    }
    100% {
      top: calc(100% - 7px);
      opacity: 0;
    }
  }
}

@media (max-width: 390px) {
  .header-actions .btn-ghost {
    display: none;
  }

  .net-pair {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  }

  .net-comp__label {
    font-size: 0.84rem;
  }

  .net-comp__hint {
    font-size: 0.68rem;
  }

  .net-mesh__badge {
    font-size: 0.62rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .net-viz {
    padding: 0.85rem;
  }

  .net-mesh {
    padding: 0.65rem;
  }

  .net-comp,
  .net-comp--sm {
    padding: 0.55rem 0.65rem;
  }

  .net-comp__dot {
    width: 6px;
    height: 6px;
    top: 0.55rem;
    right: 0.55rem;
  }

  .arch-legend {
    padding: 0.85rem;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .net-connector__pulse {
    display: none;
  }

  .net-comp:hover,
  .net-comp:focus-visible,
  .card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
