/* Netwing marketing — precision NOC instrument */

:root {
  --canvas: #070b12;
  --canvas-elevated: #0c121c;
  --surface: #111827;
  --surface-2: #161e2e;
  --line: #1e293b;
  --line-strong: #334155;
  --ink: #f8fafc;
  --ink-secondary: #cbd5e1;
  --ink-muted: #94a3b8;
  --ink-faint: #6b7c93; /* ≥4.5:1 on --canvas */
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-ink: #042f1e;
  --emerald-dim: rgba(16, 185, 129, 0.14);
  --emerald-glow: rgba(16, 185, 129, 0.22);
  --code-surface: #080c14;
  --danger: #f87171;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --font-mono: var(--mono);
  --max: 1140px;
  --r: 12px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
  color: var(--ink-secondary);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 36% at 100% 18%, rgba(16, 185, 129, 0.05), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 60%, rgba(56, 189, 248, 0.03), transparent 55%),
    var(--canvas);
}
body::before {
  content: none;
}
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}
.site-header { z-index: 100; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--emerald);
  color: var(--emerald-ink);
  font-weight: 600;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(7, 11, 18, 0.72);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 18, 0.92);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--header-h);
  gap: 16px;
  column-gap: 24px;
}

.site-header .nav-inner.container-wide {
  width: min(1640px, 100% - 32px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  grid-column: 1;
  justify-self: start;
  min-width: 44px;
  min-height: 44px;
}
.site-brand-img {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  grid-column: 2;
  justify-self: center;
  gap: 26px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 10px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active {
  color: var(--ink);
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--emerald);
  box-shadow: none;
}
.nav-link-demo { color: var(--emerald); }
.nav-link-demo.is-active::after { display: none; }

.nav-actions {
  display: flex;
  align-items: center;
  grid-column: 3;
  justify-self: end;
  gap: 10px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
@media (max-width: 959px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 90;
    padding: 8px 20px 20px;
    background: rgba(7, 11, 18, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--ink-secondary);
  }
  .nav-link:last-child { border-bottom: 0; }
  .nav-link.is-active::after {
    bottom: 10px;
    left: 4px;
    right: auto;
    width: 28px;
  }
  body.nav-open { overflow: hidden; }
}

/* ——— Buttons ——— */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease, color 0.15s ease;
}
.btn-primary {
  height: 44px;
  padding: 0 16px;
  background: var(--emerald);
  color: var(--emerald-ink);
  font-size: 0.8125rem;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover {
  background: var(--emerald-bright);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35);
}
.btn-secondary {
  height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid rgba(248, 250, 252, 0.28);
  font-size: 0.8125rem;
  font-weight: 600;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(248, 250, 252, 0.45);
}
.btn-ghost {
  height: 44px;
  padding: 0 12px;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--ink); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 0.9375rem; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 0.75rem; }
.btn-secondary:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: visible;
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, var(--canvas) 100%),
    radial-gradient(ellipse 70% 55% at 50% 0%, var(--emerald-glow), transparent 70%);
  pointer-events: none;
}
.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 8% 10% auto;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.18), transparent 70%);
  filter: blur(28px);
  animation: atmospherePulse 7s ease-in-out infinite;
}
@keyframes atmospherePulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  /* Wider than page --max so the product stage reads larger */
  width: min(100% - 32px, 1360px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.hero-brand-mark {
  display: block;
  height: clamp(88px, 14vw, 140px);
  width: auto;
  max-width: min(88vw, 520px);
  margin: 0 auto 24px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 36px rgba(16, 185, 125, 0.28));
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 680px;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero-heading {
  width: 100%;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.hero-lede {
  margin-top: 14px;
  width: 100%;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-muted);
  text-align: center;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.hero-stage {
  width: 100%;
  min-width: 0;
}

.hero-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  background: var(--canvas-elevated);
  border: 1px solid var(--line);
  border-radius: 10px;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
}
.hero-tabs::-webkit-scrollbar { display: none; }
.hero-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 0.18s ease, color 0.18s ease;
}
.hero-tab:hover { color: var(--ink); }
.hero-tab.is-active {
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-bright);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.28) inset;
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta > a {
    width: 100%;
  }

  .hero-tabs {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 4px;
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-tab {
    flex: initial;
    min-width: 0;
    min-height: 44px;
    padding: 10px 6px;
    font-size: 0.75rem;
    scroll-snap-align: none;
    grid-column: span 2;
  }
  /* 5 hero tabs: 3 on top, 2 centered below */
  .hero-stage .hero-tab:nth-child(4) { grid-column: 2 / span 2; }
  .hero-stage .hero-tab:nth-child(5) { grid-column: 4 / span 2; }

  .device-hero-tabs,
  .fleet-hero-tabs,
  .tools-hero-tabs {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .device-hero-tabs .hero-tab,
  .fleet-hero-tabs .hero-tab,
  .tools-hero-tabs .hero-tab {
    grid-column: auto;
  }

  .stage-toolbar,
  .device-stage-tabs-wrap {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .hero-tabs {
    width: max-content;
    justify-content: center;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.hero-frame {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, #0e1520, #080c14);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 20px 48px -28px rgba(0,0,0,0.85);
}

.hero-chrome {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.chrome-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-muted);
}
.chrome-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrome-url svg { color: var(--emerald); flex-shrink: 0; }

.chrome-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chrome-link:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
}

.hero-viewport { background: #03070d; }
.hero-shot {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: opacity 0.22s var(--ease);
}

@media (max-width: 640px) {
  .hero-chrome {
    grid-template-columns: 1fr;
  }
  .chrome-link { display: none; }
  .hero-inner {
    gap: 28px;
    width: min(100% - 24px, 1360px);
    max-width: 100%;
    min-width: 0;
  }
}

/* ——— Section rails ——— */
.section-rail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-rail-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section-rail-label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ——— Vendor strip ——— */
.vendor-strip {
  padding: 28px 0 56px;
  border-bottom: 1px solid var(--line);
}
.vendor-strip-label {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding-right: 12px;
}

.vendor-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 92px;
  flex: 0 0 92px;
  opacity: 0.82;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.vendor-tile:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.vendor-tile-icon {
  width: 56px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}
.vendor-tile-icon img {
  width: auto;
  height: 32px;
  max-width: 48px;
  max-height: 32px;
  object-fit: contain;
  object-position: center;
  filter: none;
  transition: transform 0.2s ease;
}
.vendor-tile:hover .vendor-tile-icon img {
  transform: scale(1.05);
}
.vendor-tile-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.vendor-tile:hover .vendor-tile-name {
  color: var(--ink);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .hero-atmosphere::after,
  .hero-frame::after,
  .panel-label::before,
  .footer-status-dot,
  .code-cursor {
    animation: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ——— Device Insights Section (Switch vs Access Point), Fleet Operations & Tools Discovery ——— */
.container-wide {
  width: min(1640px, 100% - 48px);
}

.device-insights-section,
.fleet-insights-section,
.tools-insights-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.025) 0%, transparent 60%);
}
.fleet-insights-section {
  background:
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(16, 185, 129, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.02) 0%, transparent 60%);
}
.tools-insights-section {
  background:
    radial-gradient(ellipse 50% 40% at 100% 40%, rgba(56, 189, 248, 0.04), transparent 60%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.02) 0%, transparent 60%);
}

.device-insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .device-insights-grid {
    grid-template-columns: 480px 1fr;
    gap: 36px;
    align-items: start;
  }
  .device-insights-grid-reversed {
    grid-template-columns: 1fr 480px;
  }
}

@media (min-width: 1200px) {
  .device-insights-grid {
    grid-template-columns: 540px 1fr;
    gap: 44px;
    align-items: start;
  }
  .device-insights-grid-reversed {
    grid-template-columns: 1fr 540px;
  }
}

@media (min-width: 1440px) {
  .device-insights-grid {
    grid-template-columns: 580px 1fr;
    gap: 48px;
    align-items: start;
  }
  .device-insights-grid-reversed {
    grid-template-columns: 1fr 580px;
  }
}

@media (max-width: 991px) {
  /* Image first, copy underneath */
  .device-insights-grid > .device-insights-stage {
    order: 1;
  }
  .device-insights-grid > .device-insights-meta {
    order: 2;
  }
}

/* Left column meta */
.device-insights-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insights-readmore {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.insights-readmore-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald);
  background: transparent;
  border: 0;
}
.insights-readmore-toggle::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -0.15em;
}
.insights-readmore.is-open .insights-readmore-toggle::after {
  transform: rotate(-135deg);
  margin-top: 0.2em;
}
.insights-readmore-toggle:hover {
  color: var(--emerald-bright);
}

@media (max-width: 991px) {
  .insights-readmore-toggle {
    display: inline-flex;
  }
  .insights-readmore:not(.is-open) .insights-readmore-body {
    display: none;
  }
}

/* Meta sits beside stage tabs — nudge down to align with the screenshot */
@media (min-width: 992px) {
  #device-insights .device-insights-meta,
  #fleet-insights .device-insights-meta,
  #tools-insights .device-insights-meta {
    padding-top: 56px;
  }
}

.device-kicker {
  display: flex;
  align-items: center;
}

.device-insights-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

/* Device toggle capsule positioned above the image stage */
.stage-toolbar,
.device-stage-tabs-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.stage-toolbar .hero-tabs,
.device-stage-tabs-wrap .hero-tabs {
  margin: 0;
}
.device-tabs-wrap {
  display: flex;
  margin-top: 2px;
  margin-bottom: 4px;
}

.device-hero-tabs,
.fleet-hero-tabs,
.tools-hero-tabs {
  margin: 0 !important;
  width: fit-content !important;
}

/* Subsystem Panel */
.device-subsystem-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.device-subsystem-panel[hidden] {
  display: none !important;
}

/* Clean Telemetry List (Single line per subsystem) */
.telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.telemetry-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.telemetry-item:hover {
  background: rgba(16, 185, 129, 0.05);
}

.telemetry-dot {
  display: none;
}

.telemetry-name {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.telemetry-desc {
  color: var(--ink-muted);
  min-width: 0;
}

/* Right Column Stage */
.device-insights-stage {
  min-width: 0;
  width: 100%;
}

/* ——— Ops toolkit matrix (dense instrument panel) ——— */
.more-tools-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.tools-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.tools-layout-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 40rem;
}

.tools-layout-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tools-layout-intro .device-insights-title {
  margin: 0;
}

.tools-layout-intro p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.tools-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  align-items: start;
}
@media (min-width: 720px) {
  .tools-matrix {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.tools-row {
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 55%),
    var(--canvas-elevated);
  overflow: hidden;
  min-width: 0;
}

.tools-row-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  text-align: left;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tools-row-trigger:hover {
  background: rgba(16, 185, 129, 0.04);
}
.tools-row.is-open {
  border-color: rgba(16, 185, 129, 0.35);
}
.tools-row.is-open .tools-row-trigger {
  background: rgba(16, 185, 129, 0.06);
}

.tools-row-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}

.tools-row-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-muted);
  border-bottom: 1.5px solid var(--ink-muted);
  transform: rotate(45deg);
  justify-self: end;
  transition: transform 0.2s var(--ease);
  opacity: 0.7;
}
.tools-row.is-open .tools-row-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

.tools-row-panel {
  padding: 0 16px 14px 16px;
  border-top: 1px solid var(--line);
}
.tools-row-panel[hidden] {
  display: none;
}
.tools-row-panel p {
  margin: 0;
  padding-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ——— Deployment & Self-Hosted Infrastructure ——— */
.deployment-section {
  position: relative;
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(16, 185, 129, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.02), transparent 40%);
}
.deployment-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 36px;
  max-width: 920px;
  margin-inline: auto;
  min-width: 0;
}
.deployment-intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.deployment-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
}
.deployment-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.deployment-lede {
  margin: 0;
  max-width: 38em;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.deployment-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
}
@media (min-width: 800px) {
  .deployment-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
.deployment-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.02);
}
.deployment-step-num {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--emerald);
  line-height: 1.6;
}
.deployment-step strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.deployment-step span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.deployment-terminal {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--code-surface);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 28px 64px -36px rgba(0, 0, 0, 0.9);
}
.deployment-terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.deployment-terminal-dots {
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle 3px at 5px 50%, #f87171 98%, transparent),
    radial-gradient(circle 3px at 17px 50%, #fbbf24 98%, transparent),
    radial-gradient(circle 3px at 29px 50%, #34d399 98%, transparent);
  opacity: 0.85;
}
.deployment-terminal-name {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.deployment-terminal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.deployment-mode-tab {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.deployment-mode-tab:hover {
  color: var(--ink);
}
.deployment-mode-tab.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}
.deployment-copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.deployment-copy-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.deployment-copy-btn.is-copied {
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
}
.code-output {
  display: block;
  color: #94a3b8;
}
.deployment-terminal-body {
  margin: 0;
  padding: 22px 20px 24px;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 2.1vw, 0.875rem);
  line-height: 1.75;
  color: var(--ink);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.deployment-terminal-body code {
  display: block;
  min-width: max-content;
  white-space: pre;
}
.code-comment {
  color: var(--ink-muted);
}
.code-ok {
  display: block;
  color: var(--emerald-bright);
}
.code-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--emerald);
  animation: cursorBlink 1.05s steps(1) infinite;
}
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.deployment-guarantees {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
@media (min-width: 720px) {
  .deployment-guarantees {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .deployment-guarantees {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.deployment-guarantees li {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .deployment-guarantees li:nth-child(-n + 2) {
    border-top: 0;
  }
  .deployment-guarantees li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}
@media (min-width: 960px) {
  .deployment-guarantees li {
    border-top: 0;
    border-right: 1px solid var(--line);
  }
  .deployment-guarantees li:last-child {
    border-right: 0;
  }
}
.deployment-guarantees li:first-child {
  border-top: 0;
}
.deployment-guarantees strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 4px;
}
.deployment-guarantees span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.deployment-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
@media (max-width: 640px) {
  .deployment-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .deployment-cta > a {
    width: 100%;
  }
}

/* ——— Features ——— */
.feature {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.feature-alt {
  background: linear-gradient(180deg, rgba(16,185,125,0.03), transparent 40%);
}

.feature-intro {
  max-width: 38rem;
  margin-bottom: 40px;
}
.feature-intro.centered {
  text-align: center;
  margin-inline: auto;
}
.feature-intro h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.feature-intro p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.0625rem;
  max-width: 42em;
}
.feature-intro.centered p { margin-inline: auto; }

.feature-split {
  display: grid;
  gap: 20px;
}
@media (min-width: 880px) {
  .feature-split { grid-template-columns: 1fr 1fr; }
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--canvas-elevated);
  overflow: hidden;
}
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--emerald-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.panel-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: livePulse 2s ease-out infinite;
}
.panel-shot {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  background: #03070d;
  transition: opacity 0.18s ease;
}
.panel-caption {
  padding: 18px 18px 20px;
  border-top: 1px solid var(--line);
}
.panel-caption h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.panel-caption p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.theme-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.theme-btn {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.theme-btn.is-active {
  background: var(--surface-2);
  color: var(--ink);
}

.panel-metrics {
  justify-content: space-between;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, var(--emerald-dim), transparent 55%),
    var(--canvas-elevated);
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
  flex: 1;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 20px;
  background: var(--canvas-elevated);
}
.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Faceplate */
.faceplate {
  padding: 16px;
  background:
    linear-gradient(180deg, #121a26, #0a1018);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faceplate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-muted);
}
.faceplate-modes { display: flex; gap: 4px; }
.mode-btn {
  padding: 5px 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--ink-muted);
  border: 1px solid transparent;
}
.mode-btn.is-active {
  color: var(--emerald);
  border-color: rgba(16,185,125,0.35);
  background: var(--emerald-dim);
}
.ports-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}
.port {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: #0a1018;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.port:hover { border-color: var(--ink-muted); }
.port.is-up .port-led { background: var(--emerald); box-shadow: 0 0 8px var(--emerald-glow); }
.port.is-down .port-led { background: #475569; }
.port.is-selected {
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px rgba(16,185,125,0.35);
}
.port-led {
  width: 6px; height: 6px; border-radius: 50%;
  background: #475569;
}
.port-num {
  font-family: var(--mono);
  font-size: 0.5625rem;
  color: var(--ink-muted);
}
.port-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
}
.hud-port {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
.hud-meta {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--emerald);
  min-width: 0;
}

/* Diff */
.diff-editor {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  background: #05080e;
}
.diff-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-muted);
}
.diff-delta { color: var(--emerald); }
.diff-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--ink-secondary);
  flex: 1;
}
.diff-ctx { color: var(--ink-muted); }
.diff-del { color: #fca5a5; background: rgba(248,113,113,0.08); display: block; }
.diff-add { color: #6ee7b7; background: rgba(16,185,125,0.08); display: block; }

/* ——— Impact ——— */
.impact {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.impact-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 880px) {
  .impact-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }
  .impact-quote { grid-row: span 2; }
}

.impact-quote,
.impact-stat,
.impact-drivers {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  background: var(--canvas-elevated);
}
.impact-quote {
  background:
    linear-gradient(160deg, rgba(16,185,125,0.16), rgba(16,185,125,0.02) 45%, #0c121c);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.impact-quote p {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 500;
}
.impact-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}
.impact-quote footer span {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.impact-stat-value,
.impact-drivers .impact-stat-value {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 10px;
}
.impact-stat-emerald .impact-stat-value { color: var(--emerald); }
.impact-stat-label {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.impact-drivers {
  grid-column: 1 / -1;
  background: var(--surface);
}

/* ——— Security ——— */
.security {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.security-list {
  display: grid;
  gap: 14px;
}
@media (min-width: 800px) {
  .security-list { grid-template-columns: 1fr 1fr; }
}
.security-list li {
  display: flex;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--canvas-elevated);
}
.security-list svg {
  flex-shrink: 0;
  color: var(--emerald);
  margin-top: 2px;
}
.security-list h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.security-list p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ——— Final CTA ——— */
.final-cta {
  padding: 96px 0 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(16,185,125,0.12), transparent 60%);
}
.final-cta-inner h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.final-cta .hero-cta { margin-top: 28px; }
.final-cta-mark {
  margin-top: 56px;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.28);
  user-select: none;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: #05080e;
}
.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}
.footer-brand p {
  margin-top: 14px;
  max-width: 28ch;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
  animation: livePulse 2.2s ease-out infinite;
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 80px);
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ——— Reveal motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal-delay { transition-delay: 0.12s; }
.hero .reveal { opacity: 1; transform: none; filter: none; }
.hero .reveal {
  animation: heroIn 0.9s var(--ease) both;
}
.hero .reveal-delay { animation-delay: 0.14s; }

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
