/* ==========================================================================
   AI-MP (ai-mp.online) — Mission Control SaaS Design System (v3)
   Linear × Raycast × Attio × Magic UI precision obsidian interface
   Zero AI slop: no emojis, no purple blobs, no nested card walls.
   ========================================================================== */

:root {
  /* Obsidian surface ladder */
  --bg-canvas: #06070a;
  --bg-elev-1: #0c0e14;
  --bg-elev-2: #12151e;
  --bg-elev-3: #181c28;
  --bg-glass: rgba(12, 14, 20, 0.78);

  /* Text hierarchy — WCAG AA/AAA on obsidian */
  --text-primary: #f5f7fa;
  --text-secondary: #a1a9bc;
  --text-muted: #6e778c;
  --text-invert: #06070a;

  /* Disciplined functional signals */
  --emerald: #22d399;
  --emerald-bright: #4ae8b5;
  --emerald-dim: rgba(34, 211, 153, 0.12);
  --emerald-border: rgba(34, 211, 153, 0.34);

  --ice: #7dd3fc;
  --ice-dim: rgba(125, 211, 252, 0.12);

  --amber: #f5b942;
  --amber-dim: rgba(245, 185, 66, 0.13);

  --crimson: #f87171;
  --crimson-dim: rgba(248, 113, 113, 0.12);

  /* Hairlines & spotlight */
  --border-subtle: rgba(255, 255, 255, 0.075);
  --border-medium: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* Typography */
  --font-sans: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Geometry */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --section-space: clamp(80px, 9vw, 132px);

  /* Motion */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med: 280ms;

  /* Shadows */
  --shadow-stage: 0 36px 90px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-white-cta: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 12px 32px -8px rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   Reset & Browser Surfaces
   ========================================================================== */

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

html {
  overflow-x: clip;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  overflow-x: clip;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
}

::selection {
  background-color: var(--emerald);
  color: var(--text-invert);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid var(--bg-canvas);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

svg {
  display: block;
  flex-shrink: 0;
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Ambient Background (Canvas Shader + Subtle Precision Grid)
   ========================================================================== */

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#ambient-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.72;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 15%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 15%, transparent 82%);
}

.page-shell {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Buttons (Linear / Raycast high-contrast pill + subtle chrome)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-expo),
              background-color var(--t-fast) var(--ease-expo),
              border-color var(--t-fast) var(--ease-expo),
              color var(--t-fast) var(--ease-expo),
              box-shadow var(--t-med) var(--ease-expo);
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--white {
  background: #ffffff;
  color: var(--text-invert);
  box-shadow: var(--shadow-white-cta);
}

.btn--white:hover {
  background: #eef2f7;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 40px -6px rgba(34, 211, 153, 0.32);
  transform: translateY(-1px);
}

.btn--emerald {
  background: var(--emerald);
  color: var(--text-invert);
  font-weight: 700;
}

.btn--emerald:hover {
  background: var(--emerald-bright);
  box-shadow: 0 12px 32px -6px rgba(34, 211, 153, 0.42);
  transform: translateY(-1px);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.btn--ghost {
  color: var(--text-secondary);
  padding: 0 14px;
}

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

.btn--lg {
  min-height: 50px;
  padding: 0 26px;
  font-size: 15.5px;
}

.btn--full {
  width: 100%;
}

.btn__arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast) var(--ease-expo);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   1. Navigation Header (Crisp Obsidian Glass + Live ⌘K Trigger)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 7, 10, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, #171c28 0%, #0b0d13 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(34, 211, 153, 0.18);
}

.brand__pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--emerald-dim);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast) var(--ease-expo),
              background-color var(--t-fast) var(--ease-expo);
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 13px;
  transition: border-color var(--t-fast) var(--ease-expo),
              color var(--t-fast) var(--ease-expo),
              background-color var(--t-fast) var(--ease-expo);
}

.cmd-trigger:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 11, 16, 0.98);
  padding: 16px var(--gutter) 24px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.mobile-drawer__links a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   2. HERO — Cinematic Centered Pitch + Interactive Multi-Shop Command Center
   ========================================================================== */

.hero {
  padding-top: clamp(44px, 6.5vw, 84px);
  padding-bottom: clamp(48px, 6vw, 88px);
  position: relative;
}

.hero__head {
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

/* Magic UI inspired animated border beam capsule */
.hero__beam-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(14, 17, 24, 0.88);
  border: 1px solid var(--border-medium);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(34, 211, 153, 0.14), 0 8px 30px -10px rgba(34, 211, 153, 0.35);
}

.hero__beam-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}

.hero__beam-pill strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero__title {
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #9aa4b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 30px;
  letter-spacing: 0.008em;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   THE WOW STAGE: Interactive Multi-Shop Command Center
   ========================================================================== */

.stage-wrap {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
}

.stage-halo {
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(34, 211, 153, 0.65) 35%, rgba(125, 211, 252, 0.6) 65%, transparent 95%);
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 3;
}

.stage-glow {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 153, 0.16) 0%, rgba(125, 211, 252, 0.06) 45%, transparent 75%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

.app-stage {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 19, 27, 0.96) 0%, rgba(10, 12, 17, 0.98) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
}

/* Top bar of the live command center */
.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

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

.stage-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.stage-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
}

.stage-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.stage-bar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-scan-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--emerald);
  color: var(--text-invert);
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color var(--t-fast) var(--ease-expo),
              transform var(--t-fast) var(--ease-expo),
              box-shadow var(--t-fast) var(--ease-expo);
}

.stage-scan-btn:hover {
  background: var(--emerald-bright);
  box-shadow: 0 0 24px rgba(34, 211, 153, 0.45);
}

.stage-scan-btn.is-scanning {
  background: rgba(34, 211, 153, 0.2);
  color: var(--emerald-bright);
  border: 1px solid var(--emerald-border);
}

.stage-scan-btn svg {
  width: 14px;
  height: 14px;
}

.stage-scan-btn.is-scanning svg {
  animation: spin 0.9s linear infinite;
}

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

/* Main App Body: Sidebar (Manager Portfolio) + Main Workspace */
.stage-body {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 492px;
}

.stage-sidebar {
  border-right: 1px solid var(--border-subtle);
  background: rgba(7, 9, 13, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-section-label {
  padding: 14px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-list {
  display: flex;
  flex-direction: column;
  padding: 0 8px 12px;
  gap: 4px;
}

.shop-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color var(--t-fast) var(--ease-expo),
              border-color var(--t-fast) var(--ease-expo);
}

.shop-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.shop-item.is-active {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-medium);
}

.shop-item__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.shop-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.shop-item.is-active .shop-avatar {
  background: var(--emerald-dim);
  border-color: var(--emerald-border);
  color: var(--emerald);
}

.shop-item__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-item__meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.shop-item__drr {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald);
  white-space: nowrap;
}

.sidebar-summary {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(34, 211, 153, 0.035);
}

.sidebar-summary__label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sidebar-summary__val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 2px;
}

.sidebar-summary__sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Workspace Right Panel */
.stage-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.stage-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-subtle);
}

.stage-kpi {
  padding: 16px 18px;
  border-right: 1px solid var(--border-subtle);
  min-width: 0;
}

.stage-kpi:last-child {
  border-right: none;
}

.stage-kpi__label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stage-kpi__val {
  font-family: var(--font-mono);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 5px;
}

.stage-kpi__val--emerald {
  color: var(--emerald);
}

.stage-kpi__delta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--emerald);
}

.stage-kpi__delta--muted {
  color: var(--text-secondary);
}

/* Interactive Chart inside Command Center */
.stage-chart-panel {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.stage-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.stage-chart-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.stage-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  width: 12px;
  height: 2px;
  border-radius: 2px;
}

.legend-line--ours {
  background: var(--emerald);
}

.legend-line--comp {
  border-top: 2px dashed var(--text-muted);
}

.stage-chart-svg-wrap {
  position: relative;
  height: 132px;
  cursor: crosshair;
}

.stage-chart-svg {
  width: 100%;
  height: 100%;
}

.chart-tooltip {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  background: rgba(10, 12, 18, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 120ms ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.chart-tooltip.is-visible {
  opacity: 1;
}

/* Live Cluster Table inside Stage */
.stage-table-wrap {
  position: relative;
  overflow-x: auto;
}

.scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  box-shadow: 0 0 18px var(--emerald);
  opacity: 0;
  pointer-events: none;
}

.stage-table-wrap.is-scanning .scan-beam {
  opacity: 1;
  animation: scan-down 1.15s var(--ease-expo) forwards;
}

@keyframes scan-down {
  0% { transform: translateY(0); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(190px); opacity: 0; }
}

.stage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stage-table th {
  text-align: left;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.stage-table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.stage-table tr:last-child td {
  border-bottom: none;
}

.stage-table th.is-r,
.stage-table td.is-r {
  text-align: right;
}

.kw-name {
  color: var(--text-primary);
  font-weight: 600;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status-tag--good {
  background: var(--emerald-dim);
  color: var(--emerald);
}

.status-tag--ice {
  background: var(--ice-dim);
  color: var(--ice);
}

.status-tag--warn {
  background: var(--crimson-dim);
  color: var(--crimson);
}

.stage-toast {
  position: absolute;
  bottom: 14px;
  right: 16px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: rgba(12, 24, 20, 0.96);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-bright);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-expo), transform var(--t-med) var(--ease-expo);
}

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

/* ==========================================================================
   3. Metric Proof Ribbon (Clean Hairline Stats — Zero Clutter)
   ========================================================================== */

.metrics-ribbon {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

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

.metric-cell {
  padding: 30px 24px;
  border-right: 1px solid var(--border-subtle);
}

.metric-cell:first-child {
  padding-left: 0;
}

.metric-cell:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-cell__val {
  font-family: var(--font-mono);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 8px;
}

.metric-cell--emerald .metric-cell__val {
  color: var(--emerald);
}

.metric-cell__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-cell__sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Common Section Layout
   ========================================================================== */

.section {
  padding-block: var(--section-space);
  position: relative;
}

.section--bordered {
  border-top: 1px solid var(--border-subtle);
}

.section-intro {
  max-width: 720px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.section-intro--center {
  text-align: center;
  margin-inline: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-lead {
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================================
   4. MANAGER / AGENCY SHOWCASE (Multi-Client Operations Hub)
   ========================================================================== */

.manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4.5vw, 60px);
  align-items: center;
}

.manager-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.manager-point {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.manager-point__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
}

.manager-point h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.manager-point p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Interactive Portfolio Radar Widget */
.radar-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-stage);
}

.radar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.radar-filters {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.radar-filter {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color var(--t-fast) var(--ease-expo), color var(--t-fast) var(--ease-expo);
}

.radar-filter.is-active {
  background: #ffffff;
  color: var(--text-invert);
}

.radar-list {
  display: flex;
  flex-direction: column;
}

.radar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 64px 96px 138px;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  transition: background-color var(--t-fast) var(--ease-expo);
}

.radar-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.radar-row:last-child {
  border-bottom: none;
}

.radar-row.is-hidden {
  display: none;
}

.radar-client__name {
  font-weight: 700;
  color: var(--text-primary);
}

.radar-client__sub {
  font-size: 12px;
  color: var(--text-muted);
}

.radar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.radar-report-box {
  display: none;
  padding: 14px 20px;
  border-top: 1px solid var(--emerald-border);
  background: rgba(34, 211, 153, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-primary);
}

.radar-report-box.is-open {
  display: block;
}

/* ==========================================================================
   5. LIVING BENTO GRID (Cursor-Tracking Spotlight Borders + Live Demos)
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  transition: border-color var(--t-med) var(--ease-expo);
}

/* Spotlight follow glow on hover (Linear / Aceternity technique) */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 211, 153, 0.11), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-expo);
  pointer-events: none;
}

.bento-card:hover {
  border-color: var(--border-medium);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-12 { grid-column: span 12; }

.bento-card__title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.bento-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* Bento Demo 1: Live Slot Stepper */
.slot-ladder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slot-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 136px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}

.slot-row--ours {
  background: rgba(34, 211, 153, 0.08);
  border-color: var(--emerald-border);
}

.slot-rank {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
}

.slot-row--ours .slot-rank {
  color: var(--emerald);
}

.slot-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.slot-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(161, 169, 188, 0.45);
}

.slot-row--ours .slot-bar-fill {
  background: linear-gradient(90deg, var(--emerald) 0%, var(--ice) 100%);
}

.slot-bid {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.slot-row--ours .slot-bid {
  color: var(--emerald-bright);
}

/* Bento Demo 2: P&L Waterfall */
.waterfall {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wf-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 74px;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
}

.wf-label {
  color: var(--text-secondary);
}

.wf-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.wf-fill {
  height: 100%;
  border-radius: 999px;
}

.wf-fill--base { background: #cbd5e1; }
.wf-fill--cost { background: rgba(248, 113, 113, 0.72); }
.wf-fill--profit { background: var(--emerald); }

.wf-val {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.wf-val--profit {
  color: var(--emerald);
}

/* Bento Demo 3: Interactive 24h Night Shield */
.shield-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.shield-bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px;
  align-items: end;
  height: 112px;
}

.shield-bar {
  border-radius: 3px 3px 1px 1px;
  background: rgba(34, 211, 153, 0.42);
  min-height: 12px;
  transition: background-color 120ms ease, transform 120ms ease;
  cursor: pointer;
}

.shield-bar--night {
  background: rgba(125, 211, 252, 0.25);
}

.shield-bar:hover,
.shield-bar.is-hot {
  background: var(--emerald);
  transform: scaleY(1.06);
}

.shield-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Bento Demo 4: Portfolio Routing Nodes */
.route-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.route-node {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.route-node--lead {
  border-color: var(--emerald-border);
  background: rgba(34, 211, 153, 0.06);
}

.route-node__type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.route-node--lead .route-node__type {
  color: var(--emerald);
}

.route-node__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.route-node__meta {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Bento Demo 5: Wide Chats & Reviews Pipeline */
.bento-wide-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.chat-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.chat-event {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.chat-event__step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  margin-bottom: 6px;
}

.chat-event__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.chat-event__desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   6. CALCULATOR & PRICING CONSTRUCTOR (Obsidian Split Statements)
   ========================================================================== */

.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  background: var(--bg-elev-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-stage);
}

.calc-left {
  padding: clamp(24px, 3.6vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.calc-right {
  padding: clamp(24px, 3.6vw, 44px);
  background: linear-gradient(160deg, rgba(20, 26, 36, 0.95) 0%, rgba(10, 12, 18, 0.98) 100%);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.presets-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-chip {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color var(--t-fast) var(--ease-expo),
              border-color var(--t-fast) var(--ease-expo),
              color var(--t-fast) var(--ease-expo);
}

.preset-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.preset-chip.is-active {
  background: var(--emerald-dim);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}

.slider-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.slider-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.slider-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald);
  margin-left: 6px;
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--bg-canvas);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 14px rgba(34, 211, 153, 0.45);
  transition: transform var(--t-fast) var(--ease-expo);
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--bg-canvas);
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.calc-mode-box {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 153, 0.05);
  border: 1px solid rgba(34, 211, 153, 0.22);
}

.calc-mode-box__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 6px;
}

.calc-mode-box__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.period-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.period-pill {
  min-height: 42px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color var(--t-fast) var(--ease-expo),
              color var(--t-fast) var(--ease-expo),
              border-color var(--t-fast) var(--ease-expo);
}

.period-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.period-pill.is-active {
  background: #ffffff;
  color: var(--text-invert);
  border-color: #ffffff;
}

.res-caption {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.res-big {
  font-family: var(--font-mono);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--emerald);
  margin-bottom: 6px;
}

.res-big--white {
  color: var(--text-primary);
}

.res-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.res-sub strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.res-lines {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.res-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.res-line:last-child {
  border-bottom: none;
}

.res-line__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.res-line__sub {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.res-line__val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--emerald);
  white-space: nowrap;
}

.res-line__val--white {
  color: var(--text-primary);
}

.res-line--saving {
  display: none;
}

.res-line--saving.is-visible {
  display: flex;
}

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

.res-kpi__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.res-kpi__val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.res-kpi__val--emerald {
  color: var(--emerald);
}

/* ==========================================================================
   7. COMPARISON (Two-Column Truth Split)
   ========================================================================== */

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

.compare-panel {
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elev-1);
}

.compare-panel--ours {
  border-color: var(--emerald-border);
  background: linear-gradient(180deg, rgba(34, 211, 153, 0.065) 0%, rgba(12, 14, 20, 0.95) 55%);
}

.compare-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-panel__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.compare-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.compare-list strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.compare-list span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ico-yes { color: var(--emerald); margin-top: 2px; }
.ico-no { color: var(--crimson); margin-top: 2px; }

/* ==========================================================================
   8. FAQ Accordion
   ========================================================================== */

.faq-wrap {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--border-medium);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__plus {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--t-med) var(--ease-expo), color var(--t-fast) ease;
}

.faq-item[open] .faq-item__plus {
  transform: rotate(45deg);
  color: var(--emerald);
}

.faq-item__body {
  padding-bottom: 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.faq-item__body strong {
  color: var(--text-primary);
}

/* ==========================================================================
   8.5 Community Chats (Telegram & MAX)
   ========================================================================== */

.header-socials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--t-fast) var(--ease-expo),
              background-color var(--t-fast) var(--ease-expo),
              border-color var(--t-fast) var(--ease-expo),
              color var(--t-fast) var(--ease-expo),
              box-shadow var(--t-fast) var(--ease-expo);
}

.social-icon-btn--tg {
  color: #38bdf8;
}

.social-icon-btn--tg:hover {
  background: rgba(42, 171, 238, 0.16);
  border-color: rgba(42, 171, 238, 0.48);
  color: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(42, 171, 238, 0.45);
}

.social-icon-btn--max {
  color: #a78bfa;
}

.social-icon-btn--max:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.48);
}

.mobile-drawer__socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transition: transform var(--t-fast) var(--ease-expo),
              background-color var(--t-fast) var(--ease-expo),
              border-color var(--t-fast) var(--ease-expo);
}

.social-pill--tg svg { color: #38bdf8; }
.social-pill--tg:hover {
  background: rgba(42, 171, 238, 0.14);
  border-color: rgba(42, 171, 238, 0.45);
  transform: translateY(-1px);
}

.social-pill--max svg { color: #a78bfa; }
.social-pill--max:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.48);
  transform: translateY(-1px);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin-inline: auto;
}

.community-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 26px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border-medium);
  transition: transform var(--t-med) var(--ease-expo),
              border-color var(--t-med) var(--ease-expo),
              background-color var(--t-med) var(--ease-expo),
              box-shadow var(--t-med) var(--ease-expo);
}

.community-card:hover {
  transform: translateY(-3px);
}

.community-card--tg:hover {
  border-color: rgba(42, 171, 238, 0.46);
  background: linear-gradient(180deg, rgba(42, 171, 238, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 22px 50px -24px rgba(42, 171, 238, 0.45);
}

.community-card--max:hover {
  border-color: rgba(139, 92, 246, 0.48);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 22px 50px -24px rgba(139, 92, 246, 0.48);
}

.community-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.community-card--tg .community-card__icon {
  background: rgba(42, 171, 238, 0.14);
  border: 1px solid rgba(42, 171, 238, 0.34);
  color: #38bdf8;
}

.community-card--max .community-card__icon {
  background: linear-gradient(135deg, rgba(76, 117, 255, 0.22) 0%, rgba(155, 81, 224, 0.22) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.community-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.community-card__head h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.community-card__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.community-card__body p {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--text-secondary);
}

.community-card__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.community-card--tg .community-card__cta {
  color: #38bdf8;
}

.community-card--max .community-card__cta {
  color: #c4b5fd;
}

.community-card__cta svg {
  transition: transform var(--t-fast) var(--ease-expo);
}

.community-card:hover .community-card__cta svg {
  transform: translate(2px, -2px);
}

.footer-socials {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-socials__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-socials__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-socials .social-pill {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

/* ==========================================================================
   9. Closing CTA + Footer
   ========================================================================== */

.closing-cta {
  padding-block: clamp(72px, 8vw, 120px);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-cta::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 153, 0.16) 0%, transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}

.closing-cta__title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 19ch;
  margin-inline: auto;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #aeb7ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.closing-cta__sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 30px;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 52px 0 36px;
  background: rgba(5, 6, 9, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-about {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 34ch;
}

.footer-col h3,
.footer-col__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-seo-links {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-seo-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  line-height: 1.55;
}

.footer-seo-label {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.footer-seo-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.footer-seo-items a {
  color: var(--text-secondary);
  transition: color 140ms ease;
}

.footer-seo-items a:hover {
  color: var(--emerald-bright);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   10. Working Command Palette Modal (⌘K / Ctrl+K)
   ========================================================================== */

.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 3, 6, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
}

.cmd-backdrop.is-open {
  display: flex;
}

.cmd-dialog {
  width: 100%;
  max-width: 560px;
  background: #0e1118;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.cmd-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
}

.cmd-input::placeholder {
  color: var(--text-muted);
}

.cmd-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmd-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: background-color 120ms ease, color 120ms ease;
}

.cmd-item:hover,
.cmd-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.cmd-item.is-hidden {
  display: none;
}

.cmd-item__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Scroll-margin & Responsive
   ========================================================================== */

[id="managers"],
[id="features"],
[id="calculator"],
[id="pricing"],
[id="compare"],
[id="faq"],
[id="community"] {
  scroll-margin-top: 80px;
}

@media (max-width: 1320px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-nav__link {
    padding: 7px 10px;
    font-size: 13.5px;
  }

  .cmd-trigger__text {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-nav,
  .cmd-trigger {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .stage-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .manager-grid,
  .calc-shell,
  .compare-grid,
  .bento-wide-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-right {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }

  .bento-span-7,
  .bento-span-5 {
    grid-column: span 12;
  }

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

  .metric-cell:nth-child(2) {
    border-right: none;
  }

  .metric-cell:nth-child(3),
  .metric-cell:nth-child(4) {
    border-top: 1px solid var(--border-subtle);
  }

  .metric-cell:nth-child(3) {
    padding-left: 0;
  }

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

@media (max-width: 720px) {
  .brand__pill,
  .header-actions .btn--ghost,
  .header-socials {
    display: none;
  }

  .btn {
    white-space: normal;
    text-align: center;
    padding: 11px 18px;
    height: auto;
  }

  .header-actions .btn {
    white-space: nowrap;
    padding: 0 14px;
    min-height: 38px;
    font-size: 13.5px;
  }

  .shop-list,
  .stage-kpis,
  .route-flow,
  .chat-feed,
  .metrics-ribbon__grid,
  .res-kpis,
  .community-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-kpi {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .stage-kpi:last-child {
    border-bottom: none;
  }

  .stage-table .hide-sm {
    display: none;
  }

  .radar-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  .radar-row .hide-sm {
    display: none;
  }

  .metric-cell {
    padding: 22px 0;
    border-right: none;
    border-top: 1px solid var(--border-subtle);
  }

  .metric-cell:first-child {
    border-top: none;
  }

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

  .slider-scale .scale-mid {
    display: none;
  }

  .bento-card,
  .compare-panel {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   11. Auth Pages (/login, /register, /verify, /forgot, /reset, /welcome)
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(28px, 4.5vw, 56px) 0 clamp(48px, 6vw, 76px);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 3.6vw, 44px);
  align-items: stretch;
}

.auth-grid--welcome {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: start;
}

.auth-pitch {
  position: relative;
  background: linear-gradient(165deg, rgba(16, 20, 29, 0.92) 0%, rgba(9, 11, 16, 0.96) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.6vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-stage);
}

.auth-pitch::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(34, 211, 153, 0.65) 40%, rgba(125, 211, 252, 0.5) 70%, transparent 95%);
  pointer-events: none;
}

.auth-pitch__title {
  font-size: clamp(28px, 2.9vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 18px 0 14px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #9aa4b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-pitch__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 48ch;
}

.auth-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
  gap: 16px;
}

.auth-kpi__label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.auth-kpi__val {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.auth-kpi__val--emerald {
  color: var(--emerald);
}

.auth-kpi__sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-guarantees {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.auth-guarantees li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-guarantees svg {
  color: var(--emerald);
}

/* Right Obsidian Form Card */
.auth-card {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.6vw, 44px);
  box-shadow: var(--shadow-stage);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
  gap: 4px;
}

.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color var(--t-fast) var(--ease-expo), color var(--t-fast) var(--ease-expo);
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab--active {
  background: #ffffff;
  color: var(--text-invert);
  font-weight: 700;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-sub strong {
  color: var(--text-primary);
}

.auth-alert {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 18px;
}

.auth-alert--err {
  background: var(--crimson-dim);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.auth-alert--ok {
  background: var(--emerald-dim);
  color: #a7f3d0;
  border: 1px solid var(--emerald-border);
}

.auth-alert--info {
  background: rgba(125, 211, 252, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(125, 211, 252, 0.25);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-link {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.auth-input {
  height: 48px;
  width: 100%;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: #07090e;
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color var(--t-fast) var(--ease-expo), box-shadow var(--t-fast) var(--ease-expo);
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-input:focus {
  border-color: var(--emerald);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 153, 0.16);
}

.auth-input--code {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-align: center;
  height: 56px;
}

.pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pwd-wrap .auth-input {
  padding-right: 46px;
}

.pwd-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}

.pwd-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.pwd-toggle svg {
  width: 18px;
  height: 18px;
}

.auth-legal-note {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

.token-guide-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.scope-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.scope-item b {
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.scope-safe {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-border);
  color: #d1fae5;
  font-size: 13px;
  line-height: 1.5;
}

/* ==========================================================================
   12. Legal Pages (/offer, /privacy)
   ========================================================================== */

.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px var(--gutter) 80px;
}

.legal-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-stage);
}

.legal-card h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--emerald);
  margin-bottom: 28px;
}

.legal-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.legal-card p,
.legal-card li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-card strong {
  color: var(--text-primary);
}

.legal-card ul,
.legal-card ol {
  padding-left: 20px;
  margin: 10px 0 14px;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--emerald);
}

@media (max-width: 980px) {
  .auth-grid,
  .auth-grid--welcome {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-grid:not(.auth-grid--welcome) .auth-card {
    order: -1;
  }
}

@media (max-width: 640px) {
  .auth-kpis,
  .scope-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

