:root,
[data-theme="dark"] {
  --void: #05060b;
  --ink: #08090f;
  --text: #f3f5fb;
  --mute: #9aa3b8;
  --dim: #6d758a;
  --violet: #7a68ff;
  --violet-2: #9b8cff;
  --ok: #3ee07a;
  --warn: #f0b44a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(10, 12, 18, 0.62);
  --card: #10121a;
  --panel: #0c0e15;
  --nav-bg: rgba(12, 14, 22, 0.65);
  --theme-switch-bg: rgba(255, 255, 255, 0.06);
  --theme-pill-bg: rgba(255, 255, 255, 0.16);
  --theme-pill-color: #ffffff;
  --theme-inactive-color: rgba(255, 255, 255, 0.45);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 80px;
  --s-10: 96px;
  --s-11: 128px;

  --t-micro: 11px;
  --t-caption: 12.5px;
  --t-small: 14px;
  --t-body: 16px;
  --t-lead: 18px;
  --t-h3: 22px;
  --t-h2: clamp(34px, 4.4vw, 56px);
  --t-h1: clamp(48px, 6.6vw, 84px);

  --font-ui: "Plus Jakarta Sans", sans-serif;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --void: #f4f5fa;
  --ink: #ffffff;
  --text: #0e111a;
  --mute: #545b6d;
  --dim: #7a8296;
  --violet: #5c47ff;
  --violet-2: #6f5cff;
  --ok: #16a34a;
  --warn: #d97706;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --glass: rgba(255, 255, 255, 0.78);
  --card: #ffffff;
  --panel: #eaedf6;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --theme-switch-bg: rgba(0, 0, 0, 0.06);
  --theme-pill-bg: rgba(0, 0, 0, 0.10);
  --theme-pill-color: #0e111a;
  --theme-inactive-color: rgba(14, 17, 26, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 400ms cubic-bezier(1, 0.0, 0.4, 1), color 400ms cubic-bezier(1, 0.0, 0.4, 1);
}

body {
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

p {
  margin: 0;
}

::selection {
  background: var(--violet);
  color: #fff;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 580px at 50% 22%, rgba(110, 90, 240, 0.22), transparent 70%),
    radial-gradient(600px 360px at 50% 10%, rgba(255, 255, 255, 0.05), transparent 60%);
  z-index: 0;
}

.shell,
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--violet-2);
}

.fine {
  color: var(--dim);
  font-size: var(--t-caption);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: #0b0c10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.ico {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  height: auto;
  pointer-events: none;
  background: none;
  padding: 0 16px;
}

.nav-inner {
  height: 50px;
  max-width: 1040px;
  margin-inline: auto;
  padding: 4px 8px 4px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 99em;
  background: rgba(12, 14, 22, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 1.8px 3px 0px -2px rgba(255, 255, 255, 0.70),
    inset -2px -2px 0px -2px rgba(255, 255, 255, 0.60),
    inset -3px -8px 1px -6px rgba(255, 255, 255, 0.35),
    inset -0.3px -1px 4px 0px rgba(0, 0, 0, 0.30),
    inset -1.5px 2.5px 0px -2px rgba(0, 0, 0, 0.35),
    inset 0px 3px 4px -2px rgba(0, 0, 0, 0.30),
    inset 2px -6.5px 1px -4px rgba(0, 0, 0, 0.20),
    0px 2px 8px 0px rgba(0, 0, 0, 0.35),
    0px 14px 36px 0px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  transition: background-color 400ms cubic-bezier(1, 0.0, 0.4, 1), box-shadow 400ms cubic-bezier(1, 0.0, 0.4, 1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.brand-mark {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-word {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 14px;
  color: #fff;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 4px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 99em;
}

.nav-pill-indicator {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  width: 0;
  border-radius: 99em;
  background-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 2px 1px 0px -1px rgba(255, 255, 255, 0.90),
    inset -1.5px -1px 0px -1px rgba(255, 255, 255, 0.75),
    inset -2px -6px 1px -5px rgba(255, 255, 255, 0.50),
    inset -1px 2px 3px -1px rgba(0, 0, 0, 0.30),
    inset 0px -4px 1px -2px rgba(0, 0, 0, 0.20),
    0px 3px 10px 0px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform-origin: center;
  transition:
    transform 380ms cubic-bezier(1, 0.0, 0.35, 1),
    width 380ms cubic-bezier(1, 0.0, 0.35, 1),
    opacity 220ms ease;
}

.nav-pill-indicator.sliding {
  animation: navIndicatorStretch 380ms ease;
}

@keyframes navIndicatorStretch {
  0% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.12, 0.94);
  }

  100% {
    transform: scale(1, 1);
  }
}

.nav-links a {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99em;
  text-decoration: none;
  transition: color 200ms ease, transform 200ms cubic-bezier(0.5, 0, 0, 1);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover {
  transform: scale(1.04);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================================
   iOS Glass Theme Switcher
   ============================================================================ */
.theme-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  padding: 3px;
  border-radius: 99em;
  background-color: var(--theme-switch-bg);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.20),
    0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 400ms cubic-bezier(1, 0.0, 0.4, 1), border-color 400ms ease;
}

.theme-pill {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 22px;
  border-radius: 99em;
  background-color: var(--theme-pill-bg);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.30),
    inset 1.8px 1px 0px -1px rgba(255, 255, 255, 0.90),
    inset -1.2px -1px 0px -1px rgba(255, 255, 255, 0.70),
    inset -1px 2px 3px -1px rgba(0, 0, 0, 0.25),
    0px 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
  transform-origin: center;
  transition:
    transform 380ms cubic-bezier(1, 0.0, 0.35, 1),
    background-color 400ms cubic-bezier(1, 0.0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0.0, 0.4, 1);
}

[data-theme="light"] .theme-pill {
  transform: translateX(25px);
}

[data-theme="dark"] .theme-pill {
  transform: translateX(0);
}

.theme-pill.sliding {
  animation: themePillSquish 380ms ease;
}

@keyframes themePillSquish {
  0% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.18, 0.90);
  }

  100% {
    transform: scale(1, 1);
  }
}

.theme-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--theme-inactive-color);
  border-radius: 99em;
  cursor: pointer;
  transition: color 240ms ease, transform 200ms cubic-bezier(0.5, 0, 0, 1);
}

.theme-btn:hover {
  color: var(--theme-pill-color);
}

.theme-btn:hover .theme-icon {
  transform: scale(1.18);
}

.theme-btn.active {
  color: var(--theme-pill-color);
}

.theme-icon {
  display: block;
  width: 13px;
  height: 13px;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), color 240ms ease, filter 240ms ease;
}

[data-theme="light"] .theme-btn[data-theme-val="light"] .theme-icon {
  color: #f59e0b;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

[data-theme="dark"] .theme-btn[data-theme-val="dark"] .theme-icon {
  color: #60a5fa;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.6));
}

/* ============================================================================
   Light Mode Theme Styling Overrides
   ============================================================================ */
[data-theme="light"] .nav-inner {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 1.8px 3px 0px -2px rgba(255, 255, 255, 1),
    inset -2px -2px 0px -2px rgba(0, 0, 0, 0.06),
    0px 4px 18px rgba(0, 0, 0, 0.07),
    0px 14px 36px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .brand-word,
[data-theme="light"] .brand-mark {
  color: #0e111a;
}

[data-theme="light"] .brand {
  border-right-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-links {
  border-right-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-links a {
  color: rgba(14, 17, 26, 0.65);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: #0e111a;
}

[data-theme="light"] .nav-pill-indicator {
  background-color: rgba(0, 0, 0, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 1.5px 1px 0px -1px rgba(255, 255, 255, 1),
    inset -1px -1px 0px -1px rgba(0, 0, 0, 0.06),
    0px 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav .pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(14, 17, 26, 0.85);
}

[data-theme="light"] .nav-btn-code {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0e111a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.90), 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-btn-code:hover {
  background: rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.18);
  color: #0e111a;
}

[data-theme="light"] .page-glow {
  background:
    radial-gradient(900px 580px at 50% 22%, rgba(120, 100, 255, 0.12), transparent 70%),
    radial-gradient(600px 360px at 50% 10%, rgba(255, 255, 255, 0.8), transparent 60%);
}

[data-theme="light"] .badge {
  background: rgba(92, 71, 255, 0.08);
  border-color: rgba(92, 71, 255, 0.25);
  color: var(--violet);
  box-shadow: 0 0 16px rgba(92, 71, 255, 0.10);
}

[data-theme="light"] .hero h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-lead {
  text-shadow: none;
}

[data-theme="light"] .btn-pri {
  background: #0e111a;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-pri:hover {
  background: #232733;
}

[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.10);
  color: #0e111a;
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card,
[data-theme="light"] .feat-card,
[data-theme="light"] .price,
[data-theme="light"] .quote,
[data-theme="light"] .box,
[data-theme="light"] .diff-col {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .price.featured {
  border-color: var(--violet);
  box-shadow: 0 8px 32px rgba(92, 71, 255, 0.12);
}

[data-theme="light"] .btn-secondary-os {
  background: rgba(0, 0, 0, 0.05);
  color: #0e111a;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.90), 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-secondary-os:hover {
  background: rgba(0, 0, 0, 0.09);
  color: #000000;
}

[data-theme="light"] .btn-glow {
  background: #0e111a;
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.20);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-glow:hover {
  background: #232733;
  color: #ffffff;
}

[data-theme="light"] .explore-sub-link {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #545b6d;
}

[data-theme="light"] .explore-sub-link:hover {
  background: rgba(92, 71, 255, 0.10);
  color: #5c47ff;
}

/* Light Theme Nexa App Glass Adaptation */
[data-theme="light"] .desk,
[data-theme="light"] .nx {
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.28),
    0 15px 35px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

[data-theme="light"] .mini-nx-window {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mini-nx-titlebar {
  background: rgba(240, 243, 250, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mini-nx-title {
  color: rgba(14, 17, 26, 0.70);
}

[data-theme="light"] .mini-nx-sidebar {
  background: rgba(246, 248, 253, 0.85);
  border-right-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mini-tree-item.on {
  background: rgba(0, 0, 0, 0.06);
  color: #0e111a;
}

[data-theme="light"] .mini-nx-editor {
  background: rgba(255, 255, 255, 0.70);
  color: #0e111a;
}

[data-theme="light"] .mini-nx-terminal {
  background: #0d0f17;
  color: #fff;
}

[data-theme="light"] .mini-agent-card {
  background: rgba(246, 248, 253, 0.90);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mini-agent-card.active {
  background: #ffffff;
  border-color: rgba(92, 71, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .agent-head b {
  color: #0e111a;
}

[data-theme="light"] .mini-split-left {
  background: rgba(255, 255, 255, 0.80);
  border-right-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mini-split-right {
  background: rgba(246, 248, 253, 0.85);
}

.nav .pill {
  height: 30px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav .pill .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
}

.nav-btn-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.16s ease;
  text-decoration: none;
}

.nav-btn-code:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.nav-burger {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 15px;
  height: 1.5px;
  margin: 4px auto;
  background: #fff;
}

.mobile-sheet[hidden] {
  display: none !important;
}

.mobile-sheet {
  display: none;
  position: relative;
  z-index: 49;
  margin: 0 20px;
  padding: 10px 16px 12px;
  border-radius: 16px;
  background: rgba(8, 9, 14, 0.94);
  border: 1px solid var(--line);
}

.mobile-sheet:not([hidden]) {
  display: grid;
  gap: 2px;
}

.mobile-sheet a {
  padding: 9px 4px;
  font-size: 14px;
  color: var(--mute);
}

.world {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  min-height: 680px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.4) 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.4) 86%, transparent 100%);
}

#globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#globe canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 0 40px;
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 104, 255, 0.45);
  color: var(--violet-2);
  font-size: 13px;
  font-weight: 600;
  background: rgba(122, 104, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(122, 104, 255, 0.18);
}

.hero h1 {
  font-size: var(--t-h1);
  font-weight: 800;
  margin: 22px 0 20px;
  text-align: center;
  text-shadow: 0 4px 32px rgba(5, 6, 11, 0.9), 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero h1 .violet {
  background: linear-gradient(90deg, #6f5bff 0%, #8d7cff 55%, #b0a4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

/* ---------- liquid hero ---------- */
.liquid-hero {
  position: relative;
  display: inline-block;
  line-height: 1.1;
}

.liquid-hero-text {
  display: inline-block;
}

.liquid-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  pointer-events: auto;
  cursor: grab;
}

.liquid-hero-canvas:active {
  cursor: grabbing;
}

.liquid-hero.live .liquid-hero-text {
  opacity: 0;
}

.hero-lead {
  color: var(--mute);
  font-size: var(--t-lead);
  line-height: 1.55;
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  text-shadow: 0 2px 18px rgba(5, 6, 11, 0.95);
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  width: 100%;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.btn-glow {
  position: relative;
  background: #ffffff;
  color: #05060b;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.28), 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 8px 20px;
  height: 52px;
  border-radius: 99em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.45), 0 12px 28px rgba(0, 0, 0, 0.55);
  background: #ffffff;
  color: #000000;
}

.btn-secondary-os {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 8px 20px;
  height: 52px;
  border-radius: 99em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-os:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.ico-os {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-os-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-os-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-os-sub {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 500;
}

.hero-explore-sub {
  display: flex;
  justify-content: center;
}

.explore-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 99em;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  transition: all 0.2s ease;
}

.explore-sub-link:hover {
  color: #ffffff;
  background: rgba(122, 104, 255, 0.14);
  border-color: rgba(122, 104, 255, 0.35);
  box-shadow: 0 0 20px rgba(122, 104, 255, 0.25);
  transform: translateY(-1px);
}

.nx-demo-btn {
  background: linear-gradient(135deg, rgba(122, 104, 255, 0.25), rgba(0, 212, 255, 0.20)) !important;
  border: 1px solid rgba(0, 212, 255, 0.40) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
  transition: all 0.2s ease;
}

.nx-demo-btn:hover {
  background: linear-gradient(135deg, rgba(122, 104, 255, 0.4), rgba(0, 212, 255, 0.35)) !important;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
  transform: translateY(-1px);
}

.nx-demo-btn .sparkle {
  color: #00d4ff;
}

/* Motion-Graphic Dark Obsidian Demo Cursor */
.nx-demo-cursor-dark {
  position: absolute;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-6px, -4px) perspective(900px) rotateX(8deg) rotateY(-10deg) rotateZ(-4deg);
  transition: opacity 0.35s ease;
  will-change: transform, left, top;
}

.cursor-dark-body {
  position: relative;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.2));
  transform-style: preserve-3d;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-dark-body.clicking {
  transform: scale3d(0.82, 0.82, 0.82) translateZ(-8px);
}

.cursor-dark-svg {
  width: 36px;
  height: 36px;
  overflow: visible;
}

.cursor-dark-glow {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(122, 104, 255, 0.2) 50%, transparent 75%);
  filter: blur(6px);
  z-index: -1;
}

.cursor-ripple {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  opacity: 0;
}

.cursor-ripple.clicking {
  animation: cursorRipple 0.45s ease-out forwards;
}

@keyframes cursorRipple {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

.cursor-tag-dark {
  position: absolute;
  top: 28px;
  left: 26px;
  background: rgba(10, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

/* Embedded Site Canvas & Transformation Scanline */
.nx-site-canvas {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #05060b;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-site-canvas.upgraded {
  background: radial-gradient(circle at 50% 10%, rgba(122, 104, 255, 0.18), #05060b 70%);
  box-shadow: inset 0 0 30px rgba(0, 212, 255, 0.15);
}

.nx-canvas-scanline {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00d4ff, #7a68ff, #00d4ff, transparent);
  box-shadow: 0 0 20px #00d4ff, 0 0 40px #7a68ff;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

.nx-canvas-scanline.scanning {
  opacity: 1;
  animation: scanlineSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scanlineSweep {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.nx-upgrade-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(122, 104, 255, 0.25), rgba(0, 212, 255, 0.2));
  border: 1px solid rgba(0, 212, 255, 0.4);
  font-size: 10px;
  color: #ffffff;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-upgrade-banner[hidden] {
  display: none !important;
}

.nx-upgrade-banner .pulse-star {
  color: #00d4ff;
  font-size: 12px;
  animation: spinSlow 4s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.nx-upgrade-banner .banner-badge {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: #3ee07a;
  color: #000;
  font-weight: 800;
  font-size: 9px;
}

.nx-site-canvas.upgraded .embed-h1 {
  background: linear-gradient(135deg, #ffffff 0%, #a594ff 50%, #00d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(122, 104, 255, 0.3));
}

.nx-site-canvas.upgraded .embed-btn.mac {
  border-color: rgba(122, 104, 255, 0.5);
  box-shadow: 0 0 16px rgba(122, 104, 255, 0.25);
  background: linear-gradient(180deg, #222538 0%, #151724 100%);
}

.nx-site-canvas.upgraded .embed-btn.win {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
  background: linear-gradient(180deg, #182535 0%, #0d1520 100%);
}

.explore-play-ico {
  font-size: 10px;
  color: var(--violet-2);
}

.explore-arrow {
  transition: transform 0.2s ease;
}

.explore-sub-link:hover .explore-arrow {
  transform: translateY(2px);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 13px;
  text-shadow: 0 2px 12px rgba(5, 6, 11, 0.9);
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.trust-ico {
  width: 15px;
  height: 15px;
  color: var(--ok);
  flex-shrink: 0;
}

.orbit {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform, opacity;
  letter-spacing: -0.01em;
}

.orbit.c-orange {
  color: #ff9b44;
  text-shadow: 0 0 14px rgba(255, 155, 68, 0.45), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.orbit.c-violet {
  color: #a594ff;
  text-shadow: 0 0 14px rgba(165, 148, 255, 0.45), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.orbit.c-blue {
  color: #68a8ff;
  text-shadow: 0 0 14px rgba(104, 168, 255, 0.45), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.orbit.c-soft {
  color: #d0e0ff;
  text-shadow: 0 0 14px rgba(208, 224, 255, 0.45), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.product-stage {
  position: relative;
  z-index: 2;
  height: 130vh;
  margin-top: 8px;
}

.product-sticky {
  position: sticky;
  top: 72px;
  height: calc(100svh - 80px);
  display: grid;
  place-items: center;
  perspective: 1800px;
  transform-style: preserve-3d;
  width: min(1440px, calc(100% - 24px));
  margin-inline: auto;
  padding: 0 0 12px;
}

.product-frame {
  width: min(100%, calc((100svh - 92px) * 16 / 9));
  transform-style: preserve-3d;
  transform-origin: center 18%;
  will-change: transform;
}

.nx,
.nx-body,
.nx-stage,
.nx-low {
  transform-style: preserve-3d;
}

.nx-rail,
.nx-ed,
.nx-chat,
.nx-br {
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.desk {
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(14, 17, 26, 0.75) 0%, rgba(8, 10, 16, 0.70) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.nx {
  --nx-bg: rgba(10, 12, 18, 0.72);
  --nx-panel: rgba(14, 17, 26, 0.65);
  --nx-lift: rgba(22, 26, 38, 0.70);
  --nx-line: rgba(255, 255, 255, 0.09);
  --nx-text: #e8eaef;
  --nx-mute: #8b90a0;
  --nx-dim: #5c6170;
  --nx-ok: #3ee07a;
  --nx-bad: #f87171;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(14, 17, 26, 0.78) 0%, rgba(8, 10, 16, 0.72) 100%);
  color: var(--nx-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.60), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  aspect-ratio: 16 / 9;
  position: relative;
}

/* Hide all default white scrollbars inside the app workspace */
.nx,
.nx *,
.nx-desk,
.nx-rail,
.nx-scroll,
.nx-site-canvas,
.nx-threads-list {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.nx::-webkit-scrollbar,
.nx *::-webkit-scrollbar,
.nx-desk::-webkit-scrollbar,
.nx-rail::-webkit-scrollbar,
.nx-scroll::-webkit-scrollbar,
.nx-site-canvas::-webkit-scrollbar,
.nx-threads-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.nx b {
  font-weight: 600;
}

/* ============================================================================
   Top Bar (Header Controls)
   ============================================================================ */
/* ============================================================================
   Top Bar (Header Controls Matching User Reference Screenshot)
   ============================================================================ */
.nx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 10px;
  background: rgba(10, 12, 18, 0.60);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  position: relative;
  z-index: 20;
}

.nx-tl {
  display: flex;
  align-items: center;
}

.nx-top-capsule-left {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9px;
  padding: 3px 5px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nx-logo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 5px;
  transition: background 0.15s ease;
}

.nx-logo-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nx-app-logo {
  width: 15px;
  height: 15px;
  color: #ffffff;
}

.nx-cap-div {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
}

.nx-icon-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.60);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.nx-icon-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.nx-icon-btn.nx-rail-toggle.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.nx-icon-btn svg {
  width: 13px;
  height: 13px;
}

.nx-icon-btn.nav-arrow svg {
  width: 11px;
  height: 11px;
}

.nx-code-dropdown-btn {
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nx-code-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.nx-code-dropdown-btn .code-tag-ico {
  width: 12px;
  height: 12px;
}

.nx-code-dropdown-btn .down-arr-ico {
  width: 9px;
  height: 9px;
  opacity: 0.7;
}

/* Floating Capsule Navbar (Center-Right in Screenshot) */
.nx-tm {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2.5px 3px;
  border-radius: 999px;
  background: rgba(8, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nx-nav-tab {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-nav-tab svg {
  width: 12px;
  height: 12px;
  opacity: 0.85;
}

.nx-nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nx-nav-tab.on {
  background: #202430;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Right Actions Group */
.nx-tr {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.nx-organize-wrapper {
  position: relative;
}

.nx-organize-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nx-organize-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.nx-organize-btn .grid-ico {
  width: 11px;
  height: 11px;
}

.nx-organize-btn .down-arr-ico {
  width: 9px;
  height: 9px;
  opacity: 0.7;
}

.nx-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 250px;
  background: rgba(12, 14, 21, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nx-dropdown-menu[hidden] {
  display: none !important;
}

.nx-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nx-menu-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.nx-menu-item:hover {
  background: rgba(122, 104, 255, 0.18);
  color: #ffffff;
}

.nx-menu-item.on {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
}

.nx-menu-item.reset {
  color: #3ee07a;
  font-weight: 600;
}

.nx-menu-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* Window Controls (Top Right) */
.nx-win-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
}

.nx-win-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nx-win-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.nx-win-btn.win-close:hover {
  background: #e06c75;
  color: #ffffff;
}

/* ============================================================================
   Workspace Grid Container
   ============================================================================ */
.nx-desk {
  display: grid;
  grid-template-columns: 210px minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1.35fr);
  gap: 8px;
  padding: 8px;
  flex: 1;
  min-height: 0;
  background: transparent;
  overflow: hidden;
  transition: grid-template-columns 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-desk.rail-hidden {
  grid-template-columns: 0px minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1.35fr);
}

.nx-desk.layout-2-col {
  grid-template-columns: 210px 1fr 1.25fr;
}

.nx-desk.layout-1-col {
  grid-template-columns: 210px 1fr;
}

.nx-desk .closed {
  display: none !important;
}

/* ============================================================================
   Left Rail (Sidebar)
   ============================================================================ */
.nx-rail {
  background: rgba(10, 13, 20, 0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow-y: auto;
  user-select: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nx-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.nx-tab-btn {
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nx-tab-btn.on {
  background: #181b24;
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.14);
}

.nx-rail-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.40);
  padding: 0 4px;
}

.nx-add-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.70);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.nx-add-btn:hover {
  color: #ffffff;
}

.nx-modes {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mode-pill {
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.mode-pill.on {
  background: #1c1f2b;
  color: #ffffff;
}

.nx-machine-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
}

.mach-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ee07a;
  box-shadow: 0 0 6px #3ee07a;
}

.nx-new-pill {
  margin-left: auto;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.nx-cap {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.40);
  margin: 4px 0 0 4px;
}

.nx-proj-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nx-proj-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  padding: 4px 4px 2px;
}

.proj-badge {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.proj-badge.fiwn {
  background: #ff9b44;
  color: #000;
}

.proj-badge.elios {
  background: #68a8ff;
  color: #000;
}

.proj-badge.nexa {
  background: #a594ff;
  color: #000;
}

.proj-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-act {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  cursor: pointer;
  padding: 0 2px;
}

.nx-threads-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nx-thread-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.70);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nx-thread-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.nx-thread-item.on {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.th-ico {
  font-size: 12px;
}

.th-ico.sun {
  color: #ff9b44;
}

.th-ico.moon {
  color: #c5c9d4;
}

.th-ico.star {
  color: #facc15;
}

.th-ico.earth {
  color: #38bdf8;
}

.th-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.40);
}

.th-pill.done {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(62, 224, 122, 0.15);
  color: #3ee07a;
  font-size: 9.5px;
  font-weight: 600;
}

.th-pill.time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.40);
}

.nx-rail-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.50);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rail-foot-ico {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* ============================================================================
   Middle Window Panes (Pane 1 & Pane 2)
   ============================================================================ */
.nx-pane {
  background: rgba(12, 15, 24, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nx-ph {
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 17, 26, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
}

.pane-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.wk-badge {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.50);
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wk-bar {
  display: inline-block;
  width: 32px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.wk-bar i {
  display: block;
  height: 100%;
  background: #e8b86d;
}

.pane-actions-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pane-recap-btn {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.pane-recap-btn svg {
  width: 11px;
  height: 11px;
}

.pane-ctrl-btn {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.40);
  font-size: 11px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pane-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.pane-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.nx-scroll {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.nx-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
  width: 0;
  height: 0;
}

.nx-scroll h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 4px;
}

.nx-ol {
  padding-left: 16px;
  margin: 4px 0 10px;
}

.nx-ba {
  color: rgba(255, 255, 255, 0.70);
  font-size: 11.5px;
  margin: 4px 0;
}

.nx-tool-bar {
  display: flex;
  gap: 6px;
  margin: 10px 0 8px;
}

.nx-tool-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.nx-tool-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
}

.nx-exec-card {
  border-radius: 10px;
  background: rgba(14, 17, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.nx-exec-card.compact {
  padding: 8px 12px;
}

.exec-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
}

.exec-badge.ok {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2.5px 6px;
  border-radius: 4px;
  background: rgba(62, 224, 122, 0.15);
  color: #3ee07a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

.exec-badge.ok svg {
  width: 11px;
  height: 11px;
}

.exec-time {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.40);
}

.exec-steps-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.60);
  font-size: 10.5px;
  cursor: pointer;
}

.exec-review-btn {
  margin-left: auto;
  height: 24px;
  padding: 0 13px;
  border-radius: 6px;
  background: #f4f4f6;
  border: none;
  color: #121316;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
}

.exec-review-btn:hover {
  background: #ffffff;
  transform: translateY(-0.5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.diff-add {
  color: #3ee07a;
  font-weight: 600;
  font-size: 11px;
}

.diff-del {
  color: #f87171;
  font-weight: 600;
  font-size: 11px;
}

.exec-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.exec-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.exec-meta {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.40);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exec-links button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.70);
  font-size: 10.5px;
  cursor: pointer;
  margin-left: 6px;
}

.nx-user-prompt-card {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px 12px;
  margin: 8px 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.45;
}

.nx-user-prompt-card p {
  margin: 0;
}

.nx-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 6px 0;
}

.nx-link-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 8px 0;
}

.nx-inline-link {
  color: #68a8ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ext-ico {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
}

.nx-input-container {
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 13, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nx-input-box {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 8px 0 12px;
  border-radius: 10px;
  background: rgba(6, 8, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.nx-prompt-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 12px;
}

.nx-send-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nx-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
}

.dock-pill {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.70);
}

/* Provider & Model Trigger */
.dock-model-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dock-model-trigger {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dock-model-trigger:hover,
.dock-model-trigger.active {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}

.provider-badge {
  font-size: 12px;
  line-height: 1;
}

.provider-badge.sun-ico {
  color: #ff9b44;
}

.provider-badge.grok-ico {
  color: #3ee07a;
}

.provider-badge.codex-ico {
  color: #ffffff;
}

.model-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
}

.chevron {
  font-size: 9.5px;
  opacity: 0.6;
}

/* Floating Provider Selection Modal (Matching Screenshot) */
.nx-provider-modal {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: rgba(18, 20, 28, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 100;
  user-select: none;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-provider-modal[hidden] {
  display: none !important;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.provider-modal-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  padding: 2px 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.provider-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s ease;
}

.provider-item:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.provider-item.on {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 600;
}

.provider-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.p-ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.p-ico.claude {
  color: #ff9b44;
}

.p-ico.codex {
  color: #ffffff;
}

.p-ico.grok {
  color: #3ee07a;
}

.p-ico.kimi {
  color: #a78bfa;
}

.p-ico.local {
  color: #94a3b8;
}

.p-name {
  flex: 1;
}

.p-check {
  display: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.provider-item.on .p-check {
  display: block;
}

.p-status {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.40);
  margin-left: auto;
}

.dock-ring-progress {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.20);
  border-top-color: #ff9b44;
  display: inline-block;
}

.dock-ring-progress.live {
  border-top-color: #3ee07a;
  animation: ringSpin 2s linear infinite;
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

.dock-icons-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dock-ico {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.60);
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ============================================================================
   Right Window Pane (Live Browser Preview)
   ============================================================================ */
.nx-right {
  background: rgba(12, 15, 24, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nx-bh {
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 17, 26, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
}

.browser-head-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.browser-head-ico {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.browser-tabs-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nx-btab {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(22, 25, 34, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.btab-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.40);
  font-size: 9.5px;
  cursor: pointer;
  padding: 0;
}

.btab-add {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: rgba(255, 255, 255, 0.60);
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nx-bbar {
  height: 36px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 17, 26, 0.45);
}

.bbar-nav-controls {
  display: flex;
  gap: 3px;
}

.bbar-btn {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.60);
  font-size: 11px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nx-omnibox {
  flex: 1;
  height: 26px;
  border-radius: 7px;
  background: rgba(6, 8, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  font-size: 11px;
}

.b-type-pill {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 600;
}

.b-lock-ico {
  font-size: 9.5px;
  opacity: 0.6;
}

.b-url-text {
  color: rgba(255, 255, 255, 0.90);
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
}

.b-omni-tools {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.b-omni-btn {
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.40);
  font-size: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bbar-open-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.bbar-open-btn svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
}

/* Embedded Site Canvas (Pure live preview - clicks disabled for user) */
.nx-site-canvas {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #05060b;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  pointer-events: none !important;
  user-select: none !important;
}

.nx-site-canvas::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
  width: 0;
  height: 0;
}

/* ============================================================================
   Voice Agent Showcase Canvas (Basic Wireframe & Upgraded High-Fidelity UI)
   ============================================================================ */
/* 1. Basic Wireframe State (Before Swarm Upgrade) */
.va-state-basic {
  background: #0a0c12;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono, monospace);
  color: rgba(255, 255, 255, 0.7);
}

.va-basic-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  font-size: 10px;
}

.va-basic-nav {
  display: flex;
  gap: 10px;
}

.va-basic-link.active {
  color: #7a68ff;
  font-weight: bold;
}

.va-basic-tag {
  font-size: 9px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.va-basic-body {
  text-align: center;
}

.va-basic-h1 {
  font-size: 14px;
  color: #ffffff;
  margin: 6px 0 3px;
  font-weight: bold;
}

.va-basic-sub {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
}

.va-basic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: left;
}

.va-basic-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.va-basic-card.active {
  border-color: rgba(122, 104, 255, 0.6);
  background: rgba(122, 104, 255, 0.06);
}

.va-basic-badge {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.5);
}

.va-basic-title {
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
}

.va-basic-desc {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.35;
}

/* 2. Upgraded High-Fidelity State (Matching User Screenshot Exactly) */
.va-state-upgraded {
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 16px 14px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-sans, "DM Sans", -apple-system, sans-serif);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.va-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f3f0ff;
  padding-bottom: 10px;
}

.va-nav-item {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
}

.va-nav-item.active {
  background: #5b21b6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.3);
  font-weight: 600;
}

.va-nav-ico {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}

.va-hero-head {
  text-align: center;
  margin: 6px 0 10px;
}

.va-hero-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
}

.va-hero-sub {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
}

.va-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: stretch;
}

.va-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  text-align: left;
}

.va-card.active {
  border: 1.5px solid #a855f7;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.12);
}

.va-card-badge-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
  color: #374151;
}

.va-pill-ico {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.va-card-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.va-wave-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5px;
  flex-shrink: 0;
}

.va-wave-box.pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.va-wave-box.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.va-wave-box.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.wave-bar {
  width: 2px;
  border-radius: 1px;
  background: #ffffff;
  display: inline-block;
}

.wave-bar.b1 { height: 5px; }
.wave-bar.b2 { height: 12px; }
.wave-bar.b3 { height: 8px; }
.wave-bar.b4 { height: 6px; }

.va-card.active .wave-bar {
  animation: soundWavePulse 0.7s ease-in-out infinite alternate;
}

.va-card.active .wave-bar.b1 { animation-delay: 0.1s; }
.va-card.active .wave-bar.b2 { animation-delay: 0.3s; }
.va-card.active .wave-bar.b3 { animation-delay: 0.2s; }
.va-card.active .wave-bar.b4 { animation-delay: 0.4s; }

@keyframes soundWavePulse {
  0% { transform: scaleY(0.5); }
  100% { transform: scaleY(1.4); }
}

.va-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.va-agent-name {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.25;
}

.va-agent-tags {
  font-size: 9px;
  font-weight: 500;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.va-card-text {
  font-size: 9.5px;
  color: #4b5563;
  line-height: 1.4;
  margin: 0;
}

/* Inspection Footer */
.nx-bfoot {
  height: 32px;
  padding: 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 11, 16, 0.6);
  user-select: none;
}

.bfoot-left {
  display: flex;
  gap: 4px;
}

.bfoot-btn {
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.bfoot-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
}

.bfoot-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.bfoot-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bfoot-status {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.40);
}

.bfoot-recap-btn {
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 10px;
  cursor: pointer;
}

.app-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: #0c0d12;
}

.app-left,
.app-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-right {
  justify-content: flex-end;
}

.app-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #16181f;
  font-size: 10px;
  font-weight: 800;
}

.app-left strong {
  font-size: 13px;
}

.app-seg {
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #12141b;
  font-size: 12px;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
}

.app-mid {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #08090d;
  border: 1px solid var(--line);
}

.app-mid button {
  height: 24px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--mute);
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
}

.app-mid button.on {
  background: #1a1c24;
  color: #fff;
}

.app-body {
  display: grid;
  grid-template-columns: 214px 1fr;
  min-height: min(58vh, 520px);
}

.app-rail {
  border-right: 1px solid var(--line);
  padding: 10px 8px 8px;
  background: #0b0c11;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.app-tabs span {
  flex: 1;
  text-align: center;
  height: 24px;
  line-height: 24px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--dim);
}

.app-tabs .on {
  background: #16181f;
  color: var(--text);
}

.app-row,
.app-machine,
.app-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 8px;
}

.app-row em {
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.app-row b,
.app-machine b {
  font-weight: 500;
  color: var(--mute);
}

.app-modes {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.app-modes i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 3px 6px;
  border-radius: 6px;
}

.app-modes .on {
  background: #16181f;
  color: var(--text);
}

.app-machine {
  padding: 8px 10px;
  border-radius: 10px;
  background: #12141b;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text);
}

.app-kicker {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.app-proj {
  padding: 8px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: #101218;
}

.app-proj.live {
  outline: 1px solid rgba(255, 255, 255, 0.06);
}

.app-proj header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 4px;
}

.app-proj header span {
  color: var(--dim);
  font-size: 11px;
}

.app-proj p {
  color: var(--mute);
  font-size: 11.5px;
  line-height: 1.4;
}

.app-proj em {
  color: var(--ok);
  font-style: normal;
  font-size: 10px;
}

.app-proj small {
  color: var(--dim);
}

.app-local {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #08090d;
}

.app-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-editor>header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
}

.app-find {
  padding: 4px 8px;
  border-radius: 8px;
  background: #12141b;
  border: 1px solid var(--line);
}

.app-chip {
  padding: 3px 8px;
  border-radius: 8px;
  background: #12141b;
  font-size: 11px;
}

.app-chip.on {
  background: #1c1f2a;
  color: var(--text);
}

.app-edit {
  display: grid;
  grid-template-columns: 148px 1fr;
  flex: 1;
  min-height: 180px;
}

.app-edit aside {
  border-right: 1px solid var(--line);
  padding: 8px;
  font-size: 12px;
  color: var(--mute);
}

.app-edit aside p {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.app-edit aside div {
  padding: 3px 6px;
  border-radius: 6px;
}

.app-edit aside .on {
  background: #171922;
  color: var(--text);
}

.app-code {
  padding: 8px 10px;
  overflow: hidden;
}

.app-crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 6px;
}

.app-diff {
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 8px;
}

.app-diff b {
  color: var(--ok);
}

.app-diff i {
  color: #e07a72;
  font-style: normal;
}

.app-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--line);
}

.app-chat,
.app-browser {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0d12;
  padding: 8px 10px;
  min-height: 120px;
}

.app-chat header,
.app-browser header {
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 8px;
}

.app-chat header i {
  color: var(--dim);
  font-style: normal;
}

.app-chat header em {
  color: #f3c27a;
  font-style: normal;
  float: right;
}

.app-run {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 6px;
}

.app-chat p {
  font-size: 11px;
  color: var(--dim);
}

.app-chat footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--mute);
}

.app-chat footer b {
  color: var(--ok);
}

.app-chat footer i {
  color: #e07a72;
  font-style: normal;
}

.app-chat button {
  margin-left: auto;
  height: 20px;
  padding: 0 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #12141b;
  color: var(--text);
  font-size: 11px;
}

.app-page {
  height: 88px;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #0e1018, #07080c);
  border: 1px solid var(--line);
}

.app-page span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.app-page strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.desk-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 14px 8px;
}

.df-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.df {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 8px;
}

.df span {
  font-size: 14px;
  color: var(--text);
}

.desk-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mute);
  font-size: 11px;
}

.st.ok {
  color: var(--ok);
  border-color: rgba(62, 224, 122, 0.25);
  background: rgba(62, 224, 122, 0.08);
}

.desk-body {
  display: grid;
  grid-template-columns: 188px 1fr 240px;
  min-height: min(52vh, 480px);
  border-top: 1px solid var(--line);
}

.ws-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 44px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}

.ws-left,
.ws-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-right {
  justify-content: flex-end;
}

.ws-logo {
  font-size: 13px;
  font-weight: 700;
}

.ws-pill {
  height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
}

.ws-mid {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.ws-mid button {
  height: 24px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
}

.ws-mid button.on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ws-body {
  display: grid;
  grid-template-columns: 196px 1fr 1.35fr;
  min-height: min(56vh, 500px);
}

.ws-side,
.ws-chat,
.ws-editor {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 10px;
}

.ws-editor {
  border-right: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ws-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.ws-tabs span {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
  height: 24px;
  line-height: 24px;
  border-radius: 8px;
}

.ws-tabs .on {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.ws-kicker {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  margin: 8px 0;
}

.ws-kicker b {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}

.ws-modes {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.ws-modes em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 3px 6px;
  border-radius: 6px;
}

.ws-modes .on {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.ws-machine {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 12.5px;
  margin-bottom: 8px;
}

.ws-machine b {
  font-weight: 500;
  color: var(--mute);
  font-size: 11px;
}

.ws-projects {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ws-projects li {
  padding: 7px 8px;
  border-radius: 10px;
  margin-bottom: 3px;
}

.ws-projects .live {
  background: rgba(255, 255, 255, 0.05);
}

.ws-projects b {
  display: block;
  font-size: 12.5px;
}

.ws-projects i {
  font-style: normal;
  color: var(--ok);
  font-size: 9px;
  letter-spacing: 0.08em;
  margin-left: 6px;
}

.ws-projects small {
  display: block;
  color: var(--dim);
  font-size: 11px;
}

.ws-local {
  margin-top: 12px;
  color: var(--dim);
  font-size: 11px;
}

.ws-chat header,
.ws-editor>header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 8px;
}

.ws-editor>header {
  padding: 8px 12px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.ws-chat header i {
  color: var(--dim);
  font-style: normal;
}

.ws-win {
  width: 28px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.ws-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 11px;
  color: #7eecc0;
  background: rgba(61, 214, 140, 0.1);
}

.ws-ok.warn {
  color: #f3c27a;
  background: rgba(245, 161, 35, 0.1);
}

.ws-ok button,
.ws-foot button {
  margin-left: auto;
  height: 20px;
  padding: 0 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 11px;
}

.ws-chat p {
  color: #c3cad6;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 8px;
}

.ws-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--mute);
  font-size: 11px;
}

.ws-foot b {
  color: var(--ok);
}

.ws-input {
  margin-top: 12px;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--dim);
  font-size: 12px;
  display: flex;
  align-items: center;
}

.ws-crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
}

.ws-files {
  color: var(--ok);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ws-edit {
  display: grid;
  grid-template-columns: 132px 1fr;
  flex: 1;
  min-height: 0;
}

.ws-tree {
  border-right: 1px solid var(--line);
  padding: 10px 8px;
  font-size: 12px;
  color: var(--mute);
}

.ws-tree p {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.ws-tree div {
  padding: 3px 6px;
  border-radius: 6px;
}

.ws-tree .on {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.desk-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 12px 8px;
}

.df {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
}

.df svg {
  width: 16px;
  height: 16px;
  color: var(--text);
  flex: 0 0 auto;
}

.desk-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
  justify-content: flex-end;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 11.5px;
}

.st.ok {
  color: var(--ok);
  border-color: rgba(62, 224, 122, 0.25);
  background: rgba(62, 224, 122, 0.08);
}

.side,
.main,
.right {
  min-width: 0;
}

.side {
  border-right: 1px solid var(--line);
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.18);
}

.side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.search {
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  margin-bottom: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--mute);
  font-size: 13px;
}

.nav-item.on {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.side-k {
  margin: 14px 8px 6px;
  font-size: 11px;
  color: var(--dim);
  font-weight: 600;
}

.proj {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  color: var(--mute);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot.o {
  background: #f0a35a;
}

.dot.b {
  background: #5aa0ff;
}

.dot.r {
  background: #ff6b6b;
}

.main {
  display: flex;
  flex-direction: column;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 8px 10px 0;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  height: 30px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--mute);
  font-size: 12.5px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.tabs button.on {
  color: var(--text);
  border-bottom-color: var(--violet);
}

.filebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 0;
  font-size: 12px;
  color: var(--mute);
}

.filebar .file {
  padding: 4px 8px;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.code {
  flex: 1;
  padding: 10px 16px 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #c6cce0;
}

.code .n {
  color: #4e5670;
  display: inline-block;
  width: 22px;
}

.code .kw {
  color: #c084fc;
}

.code .fn {
  color: #67e8f9;
}

.code .stn {
  color: #fbbf77;
}

.think {
  margin: 0 12px 10px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--mute);
  font-size: 12.5px;
}

.think .pulse {
  display: flex;
  gap: 4px;
}

.think i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse 1.2s ease-in-out infinite;
}

.think i:nth-child(2) {
  animation-delay: .15s;
}

.think i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes pulse {

  0%,
  100% {
    opacity: .25;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.term {
  border-top: 1px solid var(--line);
  padding: 8px 12px 10px;
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #b7c0d6;
}

.term-h {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 11px;
  margin-bottom: 6px;
}

.term .ok {
  color: var(--ok);
}

.term .cmd {
  color: #e8edf7;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #e8edf7;
  transform: translateY(2px);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.right {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.agent,
.agents,
.git {
  padding: 12px;
}

.agent {
  border-bottom: 1px solid var(--line);
}

.agent-h,
.agents-h,
.git-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.agent li,
.agents li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--mute);
  font-size: 12.5px;
}

.agent ul,
.agents ul {
  margin: 0;
  padding: 0;
}

.agent li.on {
  color: var(--violet-2);
}

.scan {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--dim);
  font-size: 11px;
}

.scan b {
  color: var(--text);
}

.agent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  margin-bottom: 6px;
  font-size: 12.5px;
}

.agent-row .who {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-row .stt {
  color: var(--dim);
  font-size: 11px;
}

.agent-row .stt.live {
  color: var(--ok);
}

.git {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.git-row {
  display: flex;
  justify-content: space-between;
  color: var(--mute);
  font-size: 12.5px;
}

.git-row .ok {
  color: var(--ok);
}

.section {
  position: relative;
  z-index: 2;
  padding: 120px 0 40px;
}

.section-head {
  margin-bottom: 48px;
  max-width: 16ch;
}

.section-head h2 {
  font-size: var(--t-h2);
  font-weight: 750;
}

.section-head p {
  margin-top: 16px;
  color: var(--mute);
  max-width: 36rem;
  font-size: var(--t-lead);
}

.story {
  height: 170vh;
}

.story-pin {
  position: sticky;
  top: 88px;
  height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: 0;
}

.story-copy {
  position: relative;
  min-height: 280px;
}

.story-step {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 460px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 700ms var(--ease);
}

.story-step.on {
  opacity: 1;
  transform: none;
}

.story-step .num {
  font-size: 13px;
  color: var(--violet-2);
  font-weight: 600;
}

.story-step h2 {
  font-size: var(--t-h2);
  margin: 12px 0 16px;
}

.story-step p {
  color: var(--mute);
  font-size: var(--t-lead);
}

.story-visuals {
  position: relative;
  height: min(65vh, 540px);
}

.story-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 500ms var(--ease), transform 800ms var(--ease);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.story-visual.on {
  opacity: 1;
  transform: none;
}

/* ============================================================================
   Mini-IDE Workspace Panels (Matching Upper App Frame)
   ============================================================================ */
.mini-nx-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  background: rgba(13, 15, 23, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.mini-nx-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 14px;
  background: rgba(9, 10, 16, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-nx-dots {
  display: flex;
  gap: 6px;
}

.mini-nx-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.mini-nx-dots i:nth-child(1) {
  background: #ff5f56;
}

.mini-nx-dots i:nth-child(2) {
  background: #ffbd2e;
}

.mini-nx-dots i:nth-child(3) {
  background: #27c93f;
}

.mini-nx-title {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.mini-nx-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-nx-badge.on,
.mini-nx-badge.ok {
  background: rgba(62, 224, 122, 0.12);
  color: #3ee07a;
  border-color: rgba(62, 224, 122, 0.30);
  box-shadow: 0 0 10px rgba(62, 224, 122, 0.20);
}

.mini-nx-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  flex: 1;
  min-height: 0;
}

.mini-nx-sidebar {
  background: rgba(8, 9, 14, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 8px;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--mute);
}

.mini-tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
}

.mini-tree-item.on {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
}

.tree-ico {
  font-size: 11px;
}

.mini-nx-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: rgba(11, 13, 20, 0.70);
  padding: 12px 14px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  line-height: 1.6;
}

.mini-code-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-code-lines .ln {
  display: inline-block;
  width: 20px;
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

.mini-code-lines .kwd {
  color: #c678dd;
}

.mini-code-lines .str {
  color: #98c379;
}

.mini-nx-terminal {
  margin-top: auto;
  border-radius: 8px;
  background: rgba(5, 6, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  font-size: 11px;
}

.mini-term-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 10px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.term-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ee07a;
  box-shadow: 0 0 6px #3ee07a;
}

.mini-term-cmd {
  color: #61afef;
  margin-bottom: 2px;
}

.mini-term-out {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-ok {
  color: #3ee07a;
  font-weight: 600;
}

.term-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #3ee07a;
  animation: termBlink 1s step-start infinite;
}

@keyframes termBlink {
  50% {
    opacity: 0;
  }
}

/* Multi-Agent Grid (Step 02) */
.mini-agents-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
  justify-content: center;
}

.mini-agent-card {
  border-radius: 12px;
  background: rgba(18, 21, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.mini-agent-card.active {
  border-color: rgba(122, 104, 255, 0.35);
  background: rgba(22, 25, 38, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.agent-avatar.claude {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.agent-avatar.codex {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.agent-avatar.grok {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.agent-head b {
  font-size: 12.5px;
  color: #fff;
}

.agent-role {
  font-size: 11px;
  color: var(--dim);
  display: block;
}

.agent-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ee07a;
  box-shadow: 0 0 6px #3ee07a;
  margin-left: auto;
}

.agent-thinking {
  margin-left: auto;
  font-size: 11px;
  color: #a78bfa;
  font-weight: 600;
}

.agent-thinking i {
  font-style: normal;
  animation: agentPulse 1.2s infinite ease-in-out;
}

.agent-thinking i:nth-child(2) {
  animation-delay: 0.2s;
}

.agent-thinking i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes agentPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

.agent-action {
  font-size: 11.5px;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 6px;
}

.act-tag {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  text-transform: uppercase;
}

.act-tag.ok {
  background: rgba(62, 224, 122, 0.15);
  color: #3ee07a;
}

.act-tag.purple {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.agent-action b {
  color: #3ee07a;
}

.agent-action i {
  color: #f87171;
  font-style: normal;
}

/* Split Sync (Step 03) */
.mini-split-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 0;
}

.mini-split-left {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  background: rgba(10, 12, 18, 0.75);
}

.mini-tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.mini-tab-bar .tab {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-mono, monospace);
}

.mini-diff-badge {
  margin-top: auto;
  font-size: 10.5px;
  color: #3ee07a;
  background: rgba(62, 224, 122, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(62, 224, 122, 0.20);
}

.mini-split-right {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  background: rgba(6, 7, 11, 0.85);
}

.mini-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.mini-preview-content {
  flex: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-preview-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}

.mini-preview-btn {
  height: 22px;
  padding: 0 10px;
  border-radius: 99em;
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 10px;
  font-weight: 700;
}

.mini-preview-badge {
  font-size: 10.5px;
  color: #3ee07a;
  font-weight: 600;
}

/* Pipeline Flow (Step 04) */
.mini-pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  flex: 1;
}

.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 100px;
}

.pipe-node.done {
  background: rgba(62, 224, 122, 0.08);
  border-color: rgba(62, 224, 122, 0.30);
}

.pipe-node.active {
  background: rgba(122, 104, 255, 0.12);
  border-color: rgba(122, 104, 255, 0.40);
  box-shadow: 0 0 20px rgba(122, 104, 255, 0.20);
}

.pipe-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.pipe-node.done .pipe-icon {
  background: #3ee07a;
  color: #000;
}

.pipe-node.active .pipe-icon {
  background: #7a68ff;
  color: #fff;
}

.pipe-text b {
  font-size: 12px;
  display: block;
  color: #fff;
}

.pipe-text span {
  font-size: 10px;
  color: var(--dim);
}

.pipe-connector {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.pipe-connector.done {
  background: #3ee07a;
}

/* Plan Showcase (Step 05) */
.mini-plan-showcase {
  display: flex;
  gap: 12px;
  padding: 18px;
  flex: 1;
  align-items: center;
}

.mini-plan-pill {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-plan-pill.pro {
  background: rgba(122, 104, 255, 0.08);
  border-color: rgba(122, 104, 255, 0.35);
}

.plan-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  display: inline-block;
  margin-bottom: 6px;
}

.plan-tag.pro {
  background: #7a68ff;
  color: #fff;
}

.mini-plan-pill b {
  font-size: 13px;
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.mini-plan-pill p {
  font-size: 11px;
  color: var(--mute);
  margin: 0;
}

/* Pricing checklist icons */
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14px;
}

.price-list li.off {
  color: var(--dim);
  opacity: 0.7;
}

.check-ico {
  width: 16px;
  height: 16px;
  color: var(--ok);
  flex-shrink: 0;
}

.cross-ico {
  width: 16px;
  height: 16px;
  color: var(--dim);
  flex-shrink: 0;
}

.feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feat {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  min-height: 180px;
}

.feat h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 12px 0 10px;
}

.feat p {
  color: var(--mute);
}

.feat .ico-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(122, 104, 255, 0.12);
  color: var(--violet-2);
}

.feat .ico-box svg {
  width: 18px;
  height: 18px;
}

.diff {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.diff article {
  padding: 24px 20px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.02);
}

.diff .yes {
  border-color: rgba(122, 104, 255, 0.4);
  background: linear-gradient(180deg, rgba(122, 104, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.diff h3 {
  font-size: 22px;
  margin: 10px 0 10px;
}

.diff p {
  color: var(--mute);
  font-size: 14.5px;
}

.diff .tag {
  font-size: 12px;
  color: var(--dim);
  font-weight: 600;
}

.diff .yes .tag {
  color: var(--violet-2);
}

.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.price {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.price.hot {
  border-color: rgba(122, 104, 255, 0.45);
}

.price h3 {
  font-size: 20px;
}

.amt {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 16px 0 8px;
}

.amt span {
  font-size: 16px;
  color: var(--mute);
  font-weight: 500;
}

.price ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
}

.price li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14.5px;
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.quote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.quote blockquote {
  margin: 0 0 16px;
  font-size: 16px;
}

.quote figcaption {
  color: var(--mute);
  font-size: 13px;
}

.quote strong {
  display: block;
  color: var(--text);
}

.finale {
  padding: 140px 0 120px;
  text-align: center;
}

.finale h2 {
  font-size: clamp(42px, 7vw, 80px);
  max-width: 12ch;
  margin: 0 auto 18px;
  font-weight: 800;
}

.finale p {
  color: var(--mute);
  margin-bottom: 28px;
}

.finale .hero-cta {
  justify-content: center;
}

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.foot-brand p {
  color: var(--mute);
  margin: 12px 0 0;
  max-width: 28ch;
  font-size: 14px;
}

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 12px;
}

.footer a {
  display: block;
  color: var(--mute);
  font-size: 14px;
  padding: 4px 0;
}

.footer a:hover {
  color: var(--text);
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
}

/* ============================================================================
   Unified AI Model Ecosystem Section
   ============================================================================ */
.models-ecosystem-section {
  padding: 80px 0 60px;
  position: relative;
  border-top: 1px solid var(--line);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.model-card {
  background: rgba(14, 17, 26, 0.70);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.model-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.model-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.model-brand-ico {
  width: 18px;
  height: 18px;
}

.claude-card .model-brand-badge { color: #f28b62; }
.codex-card .model-brand-badge { color: #10a37f; }
.grok-card .model-brand-badge { color: #60a5fa; }
.kimi-card .model-brand-badge { color: #a78bfa; }
.gemini-card .model-brand-badge { color: #38bdf8; }
.deepseek-card .model-brand-badge { color: #4ade80; }

.model-context-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.model-context-pill.purple {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.30);
  color: #c4b5fd;
}

.model-context-pill.green {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.30);
  color: #86efac;
}

.model-card-body {
  margin: 18px 0 14px;
}

.model-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.model-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  margin-bottom: 14px;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.model-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.50);
}

.model-status-dot.online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee07a;
  box-shadow: 0 0 10px #3ee07a;
}

/* ============================================================================
   macOS Desktop Replica & Safari Computer Use Section (Full Width End-to-End)
   ============================================================================ */
.macos-replica-section {
  padding: 80px 0 100px;
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
  width: 100%;
}

/* --- macOS Computer Use section head: clean, structured layout ----------- */
.macos-replica-section .section-head.macos-head {
  max-width: 620px;
  margin: 0 0 24px;
}

.macos-replica-section .section-head.macos-head h2 {
  margin-top: 18px;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.macos-replica-section .section-head.macos-head .lead {
  margin-top: 18px;
  max-width: 46rem;
  color: var(--mute);
}

.macos-head-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.macos-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.macos-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a68ff, #4a90ff);
  box-shadow: 0 0 8px rgba(122, 104, 255, 0.6);
}

.macos-desktop-frame {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-left: none;
  border-right: none;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85), inset 0 0 120px rgba(0, 0, 0, 0.50);
  background: url('macos-wallpaper.jpg') center center / cover no-repeat;
  position: relative;
  min-height: 544px;
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

/* macOS Top Menu Bar */
.macos-menubar {
  height: 32px;
  background: rgba(18, 22, 34, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.90);
  user-select: none;
  z-index: 30;
}

.macos-mb-left,
.macos-mb-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.macos-apple-logo {
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
}

.macos-mb-item {
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.macos-mb-item:hover {
  opacity: 1;
}

.macos-mb-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.mb-ico {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.macos-mb-clock {
  font-size: 11.5px;
  font-weight: 600;
}

/* macOS Canvas (Edge to Edge side-to-side desktop) */
.macos-canvas {
  flex: 1;
  padding: 28px 40px 32px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  position: relative;
  min-height: 448px;
  align-items: stretch;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* macOS Windows */
.macos-window {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 15, 24, 0.76);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Embedded Nexa App Inside macOS */
.macos-embedded-top {
  height: 38px;
  padding: 0 10px;
  background: rgba(10, 12, 18, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.macos-traffic-lights {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.macos-nexa-desk-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  flex: 1;
  min-height: 380px;
}

.macos-rail {
  background: rgba(10, 13, 20, 0.58);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.macos-rail-files {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.macos-file-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 10.5px;
}

.macos-file-item.on {
  background: rgba(168, 85, 247, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.macos-room-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(12, 15, 24, 0.62);
  backdrop-filter: blur(20px);
  padding: 12px;
}

.macos-chat-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.macos-lead-prompt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.prompt-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-bottom: 5px;
}

.author-model-badge {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(242, 139, 98, 0.15);
  border: 1px solid rgba(242, 139, 98, 0.3);
  color: #f28b62;
  font-weight: 600;
}

.prompt-bubble-text {
  font-size: 12px;
  color: #ffffff;
  line-height: 1.45;
  font-weight: 500;
}

.macos-agent-response {
  background: rgba(14, 17, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 10px 12px;
}

.macos-exec-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #a855f7;
  margin-bottom: 6px;
}

.exec-subagent-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}

.exec-dot.live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: pulseDot 1.5s infinite;
}

.macos-exec-status {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono, monospace);
  line-height: 1.4;
}

.macos-progress-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.macos-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a855f7, #3ee07a);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.macos-dock-input {
  margin-top: 10px;
}

.macos-input-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 10, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 4px 8px;
}

.macos-model-chip {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.macos-fake-input {
  flex: 1;
  background: none;
  border: none;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  outline: none;
}

.macos-send-ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #a855f7;
  border: none;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Native Safari Window */
.safari-titlebar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.safari-nav-buttons {
  display: flex;
  gap: 4px;
}

.safari-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.50);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.safari-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.safari-omnibox {
  background: rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 7px;
  height: 24px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.safari-lock-ico {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  opacity: 0.7;
}

.safari-url {
  flex: 1;
}

.safari-reload-ico {
  opacity: 0.5;
  font-size: 12px;
  cursor: pointer;
}

.safari-extra-btns {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
}

/* Safari Web Content */
.safari-viewport {
  flex: 1;
  background: #090a0f;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.safari-web-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.safari-brand {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.safari-nav-links {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.50);
}

.safari-nav-links span.active {
  color: #a855f7;
  font-weight: 600;
}

.safari-booking-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  position: relative;
}

.safari-booking-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.safari-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 14px;
}

.safari-form-row {
  margin-bottom: 12px;
}

.safari-form-row label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: 6px;
  font-weight: 500;
}

.safari-selector-pills,
.safari-time-slots {
  display: flex;
  gap: 6px;
}

.safari-pill,
.safari-time-btn {
  flex: 1;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.safari-pill.active,
.safari-time-btn.active {
  background: #a855f7;
  border-color: #a855f7;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.safari-submit-btn {
  width: 100%;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.30);
  transition: all 0.2s ease;
}

.safari-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.45);
}

.safari-confirmation-modal {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.safari-confirm-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(62, 224, 122, 0.15);
  border: 1px solid rgba(62, 224, 122, 0.30);
  color: #3ee07a;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.safari-confirmation-modal h5 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.safari-confirmation-modal p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 8px;
}

.safari-code {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #3ee07a;
}

/* macOS Floating Glass Dock */
.macos-dock {
  align-self: center;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 18px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.30);
  z-index: 25;
}

.macos-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.macos-dock-item:hover {
  transform: translateY(-4px) scale(1.15);
}

.dock-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.30);
}

.dock-icon.finder { background: linear-gradient(180deg, #38bdf8, #0284c7); color: #fff; }
.dock-icon.nexa-dock { background: #000000; border: 1px solid rgba(255, 255, 255, 0.2); }
.dock-nexa-svg { width: 18px; height: 18px; color: #fff; }
.dock-icon.safari-dock { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.dock-icon.terminal-dock { background: #1e1e1e; color: #fff; font-size: 12px; font-weight: 700; font-family: monospace; }
.dock-icon.vscode-dock { background: #007acc; color: #fff; font-size: 16px; }
.dock-icon.slack-dock { background: #4a154b; color: #fff; font-weight: 700; }
.dock-icon.notes-dock { background: linear-gradient(180deg, #fde047, #eab308); }
.dock-icon.settings-dock { background: #64748b; }
.dock-icon.trash-dock { background: rgba(255, 255, 255, 0.15); }

.dock-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.20);
  margin: 0 2px;
}

.dock-active-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  bottom: -6px;
}

/* Dynamic Computer Use Animated Cursor */
.macos-agent-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  transform: translate(-2px, -2px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: opacity 0.3s ease;
}

.macos-cursor-pointer {
  position: relative;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.60));
}

.mac-cursor-svg {
  width: 24px;
  height: 24px;
  display: block;
}

.macos-cursor-badge {
  position: absolute;
  left: 20px;
  top: 14px;
  white-space: nowrap;
  background: rgba(10, 12, 18, 0.90);
  border: 1px solid rgba(168, 85, 247, 0.40);
  backdrop-filter: blur(12px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.40);
}

.macos-cursor-ripple {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.50);
  transform: scale(0);
  left: -3px;
  top: -3px;
  pointer-events: none;
}

.macos-cursor-ripple.clicking {
  animation: macRipple 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes macRipple {
  0% { transform: scale(0); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

@media (max-width: 980px) {
  .models-grid {
    grid-template-columns: 1fr;
  }

  .macos-canvas {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: block;
  }

  .nav-bar {
    padding-right: 6px;
  }

  .pill {
    display: none;
  }

  .hero,
  .story-pin,
  .desk-body,
  .nx-body,
  .nx-edgrid,
  .nx-low,
  .feats,
  .diff,
  .prices,
  .quotes,
  .foot-top {
    grid-template-columns: 1fr;
  }

  .nx-tm,
  .nx-rail,
  .nx-right {
    display: none;
  }

  .nx-desk {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 540px;
    padding: 36px 0 20px;
    overflow: visible;
  }

  .world {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 540px;
    overflow: visible;
  }

  #globe {
    width: min(860px, 150vw);
    height: min(860px, 150vw);
    max-width: none;
    left: 50%;
  }

  .product-stage {
    height: auto;
    margin-top: 12px;
  }

  .product-sticky {
    position: relative;
    top: 0;
    height: auto;
    padding-bottom: 24px;
  }

  .product-frame {
    transform: none !important;
  }

  .desk-body {
    grid-template-columns: 1fr;
  }

  .right {
    display: none;
  }

  .story {
    height: auto;
  }

  .story-pin {
    position: relative;
    top: 0;
    height: auto;
    padding: 48px 20px;
  }

  .story-step,
  .story-visual {
    position: relative;
    opacity: 1;
    transform: none;
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================================
   Section polish + theme parity (dark & light)
   Nav, hero/globe, product stage and macOS replica are intentionally untouched.
   ============================================================================ */

/* Kicker -> soft pill that reads cleanly in both themes */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--violet-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: max-content;
}

.kicker-dot {
  color: var(--violet-2);
}

/* Section heads — a little more breathing room */
.section-head {
  max-width: 24ch;
}

.section-head h2 {
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 42rem;
}

/* --- Models ecosystem: theme-aware cards -------------------------------- */

.models-grid {
  gap: 20px;
}

.model-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(14, 17, 26, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

.model-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
}

.model-brand-ico {
  opacity: 0.95;
}

.model-context-pill {
  backdrop-filter: blur(8px);
}

/* --- Light theme parity for all marketing sections ----------------------- */

[data-theme="light"] .model-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .model-card:hover {
  border-color: rgba(92, 71, 255, 0.40);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}

[data-theme="light"] .model-name {
  color: #0e111a;
}

[data-theme="light"] .model-role {
  color: #545b6d;
}

[data-theme="light"] .model-context-pill {
  background: rgba(0, 0, 0, 0.045);
  border-color: rgba(0, 0, 0, 0.08);
  color: #545b6d;
}

[data-theme="light"] .model-context-pill.purple {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
  color: #7c3aed;
}

[data-theme="light"] .model-context-pill.green {
  background: rgba(21, 128, 61, 0.08);
  border-color: rgba(21, 128, 61, 0.25);
  color: #15803d;
}

[data-theme="light"] .model-tag {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.07);
  color: #545b6d;
}

[data-theme="light"] .model-card-foot {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #7a8296;
}

[data-theme="light"] .claude-card .model-brand-badge { color: #c2410c; }
[data-theme="light"] .codex-card .model-brand-badge { color: #0f766e; }
[data-theme="light"] .grok-card .model-brand-badge { color: #2563eb; }
[data-theme="light"] .kimi-card .model-brand-badge { color: #7c3aed; }
[data-theme="light"] .gemini-card .model-brand-badge { color: #0284c7; }
[data-theme="light"] .deepseek-card .model-brand-badge { color: #15803d; }

[data-theme="light"] .feat {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .feat .ico-box {
  background: rgba(92, 71, 255, 0.10);
}

[data-theme="light"] .diff article {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .diff .yes {
  background: linear-gradient(180deg, rgba(92, 71, 255, 0.10), rgba(255, 255, 255, 0.6));
  border-color: rgba(92, 71, 255, 0.35);
}

[data-theme="light"] .diff .yes .tag {
  color: #5c47ff;
}

[data-theme="light"] .quote {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .finale h2 {
  color: #0e111a;
}

[data-theme="light"] .footer h4 {
  color: #7a8296;
}

[data-theme="light"] .footer a {
  color: #545b6d;
}

[data-theme="light"] .footer a:hover {
  color: #0e111a;
}

[data-theme="light"] .foot-bot {
  color: #7a8296;
}

/* --- Hover polish shared by both themes --------------------------------- */

.feat {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feat:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 104, 255, 0.30);
}

[data-theme="light"] .feat:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.diff article {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.diff article:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 104, 255, 0.28);
}

[data-theme="light"] .diff article:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.price {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.price:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 104, 255, 0.35);
}

[data-theme="light"] .price:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.quote {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.quote:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 104, 255, 0.28);
}

[data-theme="light"] .quote:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

/* --- Finale glow --------------------------------------------------------- */

.finale {
  position: relative;
}

.finale::before {
  content: "";
  position: absolute;
  inset: -40% -10% -10%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, rgba(122, 104, 255, 0.18), transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .finale::before {
  background: radial-gradient(60% 60% at 50% 40%, rgba(92, 71, 255, 0.10), transparent 70%);
}

/* --- Footer spacing ------------------------------------------------------ */

.footer {
  padding: 56px 0 32px;
}

.foot-top {
  gap: 32px;
}

/* ============================================================================
   macOS Demo — Safari window, Google mock & Nexa app-in-macOS
   The Nexa app fills the whole canvas; Safari slides up as an overlay.
   ============================================================================ */

/* Canvas: single full-width window (Safari becomes an absolute overlay) */
.macos-canvas {
  grid-template-columns: 1fr;
  min-height: 496px;
}

/* Nexa app window fills the entire macOS canvas */
.macos-window.macos-full-nexa-app {
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Safari window — hidden overlay by default, slides up over the desktop */
.macos-safari-window {
  display: none;
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.70), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.macos-safari-window.visible {
  display: flex;
  animation: safariSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes safariSlideUp {
  from { transform: translateY(48px) scale(0.985); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Safari title bar */
.safari-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  background: rgba(235, 235, 240, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  flex-shrink: 0;
}

.safari-traffic {
  display: flex;
  gap: 7px;
}

.safari-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.safari-dot.red { background: #ff5f57; }
.safari-dot.yellow { background: #febc2e; }
.safari-dot.green { background: #28c840; }

.safari-nav-btns {
  display: flex;
  gap: 2px;
}

.safari-nav-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.safari-nav-btn:hover { background: rgba(0, 0, 0, 0.08); }

.safari-urlbar-wrap { flex: 1; }

.safari-urlbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  color: #1f2937;
}

.safari-lock-ico {
  width: auto;
  height: auto;
  font-size: 10px;
  opacity: 0.7;
}

.safari-url-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.safari-share-btn {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
}

/* Safari content + screens */
.safari-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.safari-screen {
  display: none;
  width: 100%;
  height: 100%;
}

.safari-screen.active {
  display: flex;
  flex-direction: column;
}

/* Google homepage */
.google-home {
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
}

.google-logo {
  display: flex;
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -2px;
}

.g-blue { color: #4285f4; }
.g-red { color: #ea4335; }
.g-yellow { color: #fbbc05; }
.g-green { color: #34a853; }

.google-search-wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.google-searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.16);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.google-searchbox.focused {
  box-shadow: 0 1px 10px rgba(32, 33, 36, 0.22);
  border-color: #4285f4;
}

.google-search-ico { font-size: 15px; color: #9aa0a6; }

.google-search-input {
  flex: 1;
  font-size: 15px;
  color: #202124;
}

.google-search-cursor {
  width: 1.5px;
  height: 18px;
  background: #4285f4;
  animation: googleBlink 1s step-end infinite;
  display: none;
}

.google-searchbox.focused .google-search-cursor { display: block; }

@keyframes googleBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.google-btns { display: flex; gap: 14px; }

.google-btn {
  height: 34px;
  padding: 0 16px;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  background: #f8f9fa;
  color: #3c4043;
  font-size: 13.5px;
  cursor: pointer;
}

.google-btn:hover {
  border-color: #dadce0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.10);
}

/* Google search results */
.google-results { overflow-y: auto; }

.google-results-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  border-bottom: 1px solid #ebebeb;
}

.g-results-logo {
  display: flex;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -1px;
}

.g-results-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 520px;
  height: 36px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #dfe1e5;
  border-radius: 18px;
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.14);
  font-size: 13px;
  color: #202124;
}

.google-results-nav {
  display: flex;
  gap: 20px;
  padding: 8px 24px 0;
  border-bottom: 1px solid #ebebeb;
  font-size: 12.5px;
  color: #5f6368;
}

.g-nav-item {
  padding-bottom: 8px;
  cursor: pointer;
}

.g-nav-item.active {
  color: #1a73e8;
  border-bottom: 2px solid #1a73e8;
  font-weight: 600;
}

.google-results-body { padding: 16px 24px 32px; }

.g-result-count {
  font-size: 12px;
  color: #70757a;
  margin-bottom: 18px;
}

.g-result { margin-bottom: 24px; }

.g-result-url {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #202124;
}

.g-favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #7a5cff, #5c47ff);
  display: grid;
  place-items: center;
}

.g-favicon svg { width: 11px; height: 11px; }

.g-result-site { color: #202124; }

.g-result-arrow { color: #70757a; }

.g-result-title {
  font-size: 17px;
  color: #1a0dab;
  margin: 4px 0;
  cursor: pointer;
}

.g-result-title:hover { text-decoration: underline; }

.g-result-snippet {
  font-size: 13px;
  color: #4d5156;
  line-height: 1.5;
}

.g-result-snippet b { color: #202124; font-weight: 600; }

.g-favicon-generic {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #e8eaed;
}

.g-result.top-result {
  border-left: 3px solid #7a5cff;
  padding-left: 10px;
  border-radius: 4px;
}

/* Nexa mini website page */
.safari-nexa-page { overflow-y: auto; }

.nexa-mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nexa-mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #0e111a;
}

.nexa-mini-logo {
  width: 20px;
  height: 20px;
  color: #5c47ff;
}

.nexa-mini-nav-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  color: #545b6d;
}

.nexa-mini-cta {
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: #5c47ff;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.nexa-mini-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  background: radial-gradient(60% 50% at 50% 0%, rgba(92, 71, 255, 0.10), transparent 70%);
}

.nexa-mini-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(92, 71, 255, 0.10);
  border: 1px solid rgba(92, 71, 255, 0.30);
  color: #5c47ff;
}

.nexa-mini-h1 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #0e111a;
  margin: 18px 0 12px;
}

.nexa-mini-h1 .violet { color: #5c47ff; }

.nexa-mini-sub {
  max-width: 44ch;
  font-size: 14px;
  color: #545b6d;
  margin-bottom: 22px;
}

.nexa-mini-btns { display: flex; gap: 12px; margin-bottom: 20px; }

.nexa-mini-btn-primary {
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7a5cff, #5c47ff);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(92, 71, 255, 0.35);
}

.nexa-mini-btn-secondary {
  height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #0e111a;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.nexa-mini-trust {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: #545b6d;
}

/* Demo cursor — HTML uses #macos-agent-cursor + .macos-cursor-svg */
#macos-agent-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  transform: translate(-2px, -2px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.macos-cursor-svg {
  width: 26px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.60));
}

#macos-cursor-ripple {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.50);
  transform: scale(0);
  left: -3px;
  top: -3px;
  pointer-events: none;
}

#macos-cursor-ripple.clicking {
  animation: macRipple 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================================
   macOS Nexa App — Product Unification (mirror hero product look)
   Styles every mac-only class so the app inside the mac matches the hero.
   ============================================================================ */

/* ---------- Rail: top controls block ---------- */
.macos-nexa-desk .nx-rail-top-ctrls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.macos-nexa-desk .nx-rail-top-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.macos-nexa-desk .nx-rail-btn {
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.macos-nexa-desk .nx-rail-btn.active {
  background: #181b24;
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.14);
}

.macos-nexa-desk .nx-rail-threads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.40);
  padding: 0 4px;
}

.macos-nexa-desk .nx-add-project-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.70);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.macos-nexa-desk .nx-add-project-btn:hover {
  color: #ffffff;
}

/* ---------- Rail: mode pills ---------- */
.macos-nexa-desk .nx-rail-mode-pills {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.macos-nexa-desk .rail-mode-pill {
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 0;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.macos-nexa-desk .rail-mode-pill.on {
  background: #1c1f2b;
  color: #ffffff;
}

/* ---------- Rail: machine bar ---------- */
.macos-nexa-desk .nx-rail-machine-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
}

.macos-nexa-desk .machine-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ee07a;
  box-shadow: 0 0 6px #3ee07a;
  flex-shrink: 0;
}

.macos-nexa-desk .machine-label {
  color: #ffffff;
  font-weight: 500;
}

.macos-nexa-desk .machine-new-btn {
  margin-left: auto;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Rail: content + projects + threads ---------- */
.macos-nexa-desk .nx-rail-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.macos-nexa-desk .nx-rail-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.macos-nexa-desk .nx-section-header {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.40);
  margin: 4px 0 0 4px;
}

.macos-nexa-desk .nx-project-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.macos-nexa-desk .nx-project-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  padding: 4px 4px 2px;
}

.macos-nexa-desk .proj-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.macos-nexa-desk .proj-badge.blue {
  background: #68a8ff;
  color: #000;
}

.macos-nexa-desk .proj-badge.purple {
  background: #a594ff;
  color: #000;
}

.macos-nexa-desk .proj-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.macos-nexa-desk .proj-actions button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  cursor: pointer;
  padding: 0 2px;
}

.macos-nexa-desk .proj-actions button:hover {
  color: #ffffff;
}

.macos-nexa-desk .nx-thread-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.macos-nexa-desk .nx-thread-item {
  background: transparent;
  border: 1px solid transparent;
}

.macos-nexa-desk .nx-thread-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.macos-nexa-desk .nx-thread-item.on {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.macos-nexa-desk .thread-dot {
  font-size: 12px;
  line-height: 1;
}

.macos-nexa-desk .thread-dot.sun { color: #ff9b44; }
.macos-nexa-desk .thread-dot.moon { color: #c5c9d4; }
.macos-nexa-desk .thread-dot.star { color: #facc15; }
.macos-nexa-desk .thread-dot.earth { color: #38bdf8; }

.macos-nexa-desk .thread-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.macos-nexa-desk .thread-branch {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.40);
}

.macos-nexa-desk .thread-status.done {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(62, 224, 122, 0.15);
  color: #3ee07a;
  font-size: 9.5px;
  font-weight: 600;
}

.macos-nexa-desk .thread-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.40);
}

/* ---------- Rail: bottom status ---------- */
.macos-nexa-desk .nx-rail-bottom-status {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.50);
  display: flex;
  align-items: center;
  gap: 6px;
}

.macos-nexa-desk .rail-local-icon {
  font-size: 12px;
}

.macos-nexa-desk .rail-status-pill {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee07a;
  box-shadow: 0 0 6px #3ee07a;
  color: transparent;
  font-size: 0;
}

/* ---------- Pane headers ---------- */
.macos-nexa-desk .nx-ph-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  min-width: 0;
}

.macos-nexa-desk .nx-ph-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.macos-nexa-desk .pane-agent-dot {
  font-size: 12px;
  line-height: 1;
}

.macos-nexa-desk .pane-agent-dot.sun { color: #ff9b44; }
.macos-nexa-desk .pane-agent-dot.moon { color: #c5c9d4; }

.macos-nexa-desk .pane-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.macos-nexa-desk .pane-badge {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.50);
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.macos-nexa-desk .pane-badge.ok {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(62, 224, 122, 0.15);
  color: #3ee07a;
  font-weight: 600;
}

.macos-nexa-desk .nx-ph-recap-btn {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin-left: 6px;
}

.macos-nexa-desk .ph-btn {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.40);
  font-size: 11px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.macos-nexa-desk .ph-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

/* ---------- Pane content: instruction card + agent banner ---------- */
.macos-nexa-desk .nx-instruction-card {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px 12px;
  margin: 8px 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.45;
}

.macos-nexa-desk .nx-instruction-card p {
  margin: 0;
}

.macos-nexa-desk .instruction-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.macos-nexa-desk .inst-btn {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.70);
  font-size: 11px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.macos-nexa-desk .inst-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.macos-nexa-desk .nx-agent-banner {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 6px 0;
  width: fit-content;
}

.macos-nexa-desk .banner-badge {
  color: inherit;
}

.macos-nexa-desk .exec-file-ico {
  font-size: 12px;
  line-height: 1;
}

/* ---------- Dock row ---------- */
.macos-nexa-desk .dock-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.macos-nexa-desk .dock-btn {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.70);
  cursor: pointer;
}

.macos-nexa-desk .dock-ico-badge {
  font-size: 12px;
  line-height: 1;
}

.macos-nexa-desk .dock-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee07a;
  box-shadow: 0 0 6px #3ee07a;
  margin-left: auto;
}

/* ---------- Browser header / bbar extras ---------- */
.macos-nexa-desk .browser-head-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.macos-nexa-desk .bbar-extra-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.macos-nexa-desk .omnibox-badge {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 600;
}

.macos-nexa-desk .omnibox-url {
  flex: 1;
  color: rgba(255, 255, 255, 0.90);
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.macos-nexa-desk .omnibox-star-btn {
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.40);
  font-size: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ---------- Browser: success banner ---------- */
.macos-nexa-desk .nx-banner-ok {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(122, 104, 255, 0.25), rgba(0, 212, 255, 0.2));
  border: 1px solid rgba(0, 212, 255, 0.4);
  font-size: 10px;
  color: #ffffff;
}

.macos-nexa-desk .nx-banner-ok .banner-score {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: #3ee07a;
  color: #000;
  font-weight: 800;
  font-size: 9px;
}

/* ---------- Browser: VA showcase (white product page like hero) ---------- */
.macos-nexa-desk .va-showcase {
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-sans, "DM Sans", -apple-system, sans-serif);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.macos-nexa-desk .va-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f3f0ff;
  padding-bottom: 10px;
  gap: 4px;
  flex-wrap: wrap;
}

.macos-nexa-desk .va-nav-pill {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.macos-nexa-desk .va-nav-pill.active {
  background: #5b21b6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.3);
  font-weight: 600;
}

.macos-nexa-desk .va-top-nav .va-pill-ico,
.macos-nexa-desk .va-card-badge-pill .va-pill-ico {
  width: auto;
  height: auto;
  stroke: none;
  fill: none;
  font-size: 12px;
}

.macos-nexa-desk .va-hero-wrap {
  text-align: center;
  margin: 6px 0 10px;
}

.macos-nexa-desk .va-headline {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
}

.macos-nexa-desk .va-subhead {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
}

.macos-nexa-desk .va-wave-box.magenta {
  background: linear-gradient(135deg, #a855f7, #d946ef);
}

.macos-nexa-desk .wave-bar.m1 { height: 5px; }
.macos-nexa-desk .wave-bar.m2 { height: 12px; }
.macos-nexa-desk .wave-bar.m3 { height: 8px; }
.macos-nexa-desk .wave-bar.m4 { height: 6px; }

.macos-nexa-desk .wave-bar.g1 { height: 5px; }
.macos-nexa-desk .wave-bar.g2 { height: 12px; }
.macos-nexa-desk .wave-bar.g3 { height: 8px; }
.macos-nexa-desk .wave-bar.g4 { height: 6px; }

/* ---------- Light mode parity for the mac product ---------- */
@media (prefers-color-scheme: light) {
  .macos-nexa-desk .nx-rail-btn.active {
    background: #eceef6;
    color: #111827;
    border-color: rgba(17, 24, 39, 0.12);
  }

  .macos-nexa-desk .rail-mode-pill.on {
    background: #e4e6ef;
    color: #111827;
  }

  .macos-nexa-desk .nx-rail-mode-pills,
  .macos-nexa-desk .nx-rail-machine-bar {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(17, 24, 39, 0.10);
  }

  .macos-nexa-desk .machine-label,
  .macos-nexa-desk .nx-rail-top-actions .nx-rail-btn,
  .macos-nexa-desk .nx-project-title,
  .macos-nexa-desk .pane-title,
  .macos-nexa-desk .nx-instruction-card {
    color: #111827;
  }
}
