/* 序城客户开发工作台官网样式 · 极简清爽与 v1.3.0 工作台视觉对齐 */
:root {
  --xc-font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --xc-font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", "Noto Sans SC", system-ui, sans-serif;
  --xc-font-mono: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;

  --xc-canvas: #f6f8fb;
  --xc-sidebar-bg: #f8f9fc;
  --xc-surface: #ffffff;
  --xc-surface-2: #f7f9fc;
  --xc-surface-3: #ebeef5;

  --xc-text: #14151a;
  --xc-text-2: #383b46;
  --xc-muted: #6b7280;
  --xc-faint: #9ca3af;

  --xc-line: #e4e7ee;
  --xc-line-subtle: #edf0f6;
  --xc-line-strong: #cbd2df;

  --xc-info: #2563eb;
  --xc-info-bg: #eaf1fe;
  --xc-strong-fg: #be123c;
  --xc-strong-bg: #fff1f2;
  --xc-strong-line: #fecdd3;
  --xc-ok: #15803d;
  --xc-ok-strong: #10b981;
  --xc-ok-bg: #eaf7ef;
  --xc-warn: #b45309;
  --xc-warn-bg: #fff7e6;

  --xc-r-sm: 8px;
  --xc-r-md: 10px;
  --xc-r-lg: 14px;
  --xc-r-xl: 18px;
  --xc-r-pill: 999px;

  --xc-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --xc-shadow-card: 0 6px 24px rgba(15, 23, 42, 0.045);
  --xc-shadow-float: 0 14px 40px rgba(15, 23, 42, 0.09);
  --xc-shadow-cta: 0 6px 18px rgba(20, 21, 26, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--xc-font-sans);
  background: var(--xc-canvas);
  color: var(--xc-text);
}

body {
  margin: 0;
  font-family: var(--xc-font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--xc-text);
  background: var(--xc-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--xc-info);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 14px;
  background: var(--xc-text);
  color: #fff;
  border-radius: var(--xc-r-sm);
  z-index: 200;
}

.skip-link:focus {
  left: 14px;
  top: 14px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

.card {
  background: var(--xc-surface);
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-xl);
  box-shadow: var(--xc-shadow-card);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface);
  color: var(--xc-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--xc-text);
  border-color: var(--xc-text);
  color: #ffffff;
  box-shadow: var(--xc-shadow-cta);
}

.btn-primary:hover {
  background: #23262f;
  border-color: #23262f;
}

.btn-secondary {
  background: var(--xc-surface);
  border-color: var(--xc-line-strong);
  color: var(--xc-text);
  box-shadow: var(--xc-shadow-sm);
}

.btn-secondary:hover {
  background: var(--xc-surface-2);
  border-color: #aeb7c7;
}

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

.btn-ghost:hover {
  background: var(--xc-surface-2);
  color: var(--xc-text);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  min-height: 48px;
  padding: 11px 24px;
  font-size: 15px;
}

.btn-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.btn-meta {
  padding: 2px 8px;
  border-radius: var(--xc-r-pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.flag-svg {
  display: inline-block;
  width: 18px;
  height: 12px;
  flex: 0 0 18px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 248, 251, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 231, 238, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(20, 21, 26, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--xc-text);
}

.brand-text small {
  font-size: 11px;
  color: var(--xc-muted);
  margin-top: 2px;
}

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

.main-nav a {
  padding: 7px 12px;
  border-radius: var(--xc-r-md);
  color: var(--xc-text-2);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: #eaeef5;
  color: var(--xc-text);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-md);
  background: var(--xc-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: var(--xc-text);
}

.mobile-nav {
  border-top: 1px solid var(--xc-line);
  background: var(--xc-surface);
  padding: 14px 0 18px;
}

.mobile-nav-inner {
  display: grid;
  gap: 6px;
}

.mobile-nav-inner > a {
  padding: 9px 10px;
  border-radius: var(--xc-r-sm);
  font-weight: 500;
  color: var(--xc-text-2);
}

.mobile-nav-inner > a:hover {
  background: var(--xc-surface-2);
}

.mobile-nav-ctas {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 72px;
  background:
    radial-gradient(920px 380px at 50% -60px, rgba(37, 99, 235, 0.08), transparent 70%),
    var(--xc-canvas);
}

.hero-head {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid #d5e2fc;
  border-radius: var(--xc-r-pill);
  background: var(--xc-info-bg);
  color: var(--xc-info);
  font-size: 12.5px;
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xc-info);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.05); }
}

.hero-head h1 {
  margin: 22px 0 14px;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--xc-text);
}

.hero-sub {
  margin: 0 auto 28px;
  font-size: clamp(15.5px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--xc-text-2);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Interactive 3-Stage Mechanism Visualizer */
.visualizer-shell {
  padding: 22px 24px 24px;
  box-shadow: var(--xc-shadow-float);
}

.visualizer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--xc-line);
}

.scenario-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.scenario-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface-2);
  color: var(--xc-text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scenario-pill:hover {
  border-color: var(--xc-line-strong);
  background: var(--xc-surface);
  color: var(--xc-text);
}

.scenario-pill.is-active {
  background: var(--xc-text);
  border-color: var(--xc-text);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(20, 21, 26, 0.15);
}

/* 3-Stage Pipeline */
.pipeline-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-top: 18px;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xc-faint);
  font-size: 17px;
  font-weight: 700;
}

.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 8px;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  background: var(--xc-surface-2);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pipeline-stage:hover {
  border-color: var(--xc-line-strong);
}

.pipeline-stage.is-active {
  background: #ffffff;
  border-color: var(--xc-info);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.pipeline-stage.is-done {
  background: #ffffff;
  border-color: #bbf7d0;
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.stage-step {
  font-size: 15px;
  font-weight: 700;
  color: var(--xc-info);
}

.stage-head strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--xc-text);
  flex: 1;
}

.stage-state {
  padding: 2px 8px;
  border-radius: var(--xc-r-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--xc-surface-3);
  color: var(--xc-muted);
  white-space: nowrap;
}

.pipeline-stage.is-active .stage-state {
  background: var(--xc-info-bg);
  color: var(--xc-info);
}

.pipeline-stage.is-done .stage-state {
  background: var(--xc-ok-bg);
  color: var(--xc-ok);
}

.stage-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--xc-muted);
}

.stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-chip {
  padding: 2px 8px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-info-bg);
  border: 1px solid #cfe0fc;
  color: var(--xc-info);
  font-size: 11.5px;
  font-weight: 600;
}

.stage-feed {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: var(--xc-r-sm);
  background: #14151a;
  color: #e5e7eb;
  font-family: var(--xc-font-mono);
  font-size: 10.5px;
  line-height: 1.5;
}

.feed-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.feed-line > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-line .feed-skip {
  color: #93c5fd;
  flex: none;
}

.feed-line .feed-hit {
  color: #6ee7b7;
  flex: none;
}

.stage-checks {
  display: grid;
  gap: 5px;
}

.stage-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--xc-r-sm);
  background: var(--xc-surface-2);
  border: 1px solid var(--xc-line);
  font-size: 11.5px;
  color: var(--xc-text-2);
}

.stage-check-item em {
  font-style: normal;
  font-weight: 600;
  color: var(--xc-ok);
}

/* Live Counters */
.viz-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  background: var(--xc-surface-2);
}

.viz-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
  border-right: 1px solid var(--xc-line);
}

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

.viz-metric-label {
  font-size: 12px;
  color: var(--xc-muted);
}

.viz-metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--xc-text);
  line-height: 1.25;
}

.viz-metric.is-highlight .viz-metric-value {
  color: var(--xc-info);
}

/* 1:1 Compact Customer Directory Cards */
.viz-results-wrap {
  margin-top: 18px;
}

.viz-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.viz-results-head strong {
  font-size: 14.5px;
  color: var(--xc-text);
}

.viz-results-sub {
  margin-left: 10px;
  font-size: 12px;
  color: var(--xc-muted);
}

.badge-pill-info {
  padding: 2px 10px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-info-bg);
  color: var(--xc-info);
  font-size: 11.5px;
  font-weight: 600;
}

.badge-pill-ok {
  padding: 2px 10px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-ok-bg);
  color: var(--xc-ok);
  font-size: 11.5px;
  font-weight: 600;
}

.customer-directory {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--xc-line);
}

.customer-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(260px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--xc-line);
  background: #ffffff;
  transition: background 0.15s ease;
}

.customer-row:hover {
  background: var(--xc-surface-2);
}

.customer-row.is-strong-trade {
  border-left: 3px solid #e11d48;
  background: #fffafb;
}

.customer-row.is-strong-trade:hover {
  background: #fff5f7;
}

.customer-row__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 7px;
}

.customer-row__name {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--xc-text);
}

.customer-row.is-strong-trade .customer-row__name {
  color: #991b1b;
}

.customer-strong-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--xc-strong-line);
  border-radius: var(--xc-r-pill);
  background: var(--xc-strong-bg);
  color: var(--xc-strong-fg);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}

.customer-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid #e2e8f0;
  border-radius: var(--xc-r-pill);
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.customer-row__strong-note {
  margin-top: 4px;
  color: var(--xc-strong-fg);
  font-size: 12px;
  line-height: 1.45;
}

.customer-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
  color: var(--xc-muted);
  font-size: 12px;
}

.customer-row__links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lead-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 10px;
  border-radius: var(--xc-r-pill);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.lead-link-pill.is-website {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.lead-link-pill.is-website:hover {
  background: var(--xc-info);
  border-color: var(--xc-info);
  color: #ffffff;
  transform: translateY(-1px);
}

.lead-link-pill.is-source {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.lead-link-pill.is-source:hover {
  background: var(--xc-text);
  border-color: var(--xc-text);
  color: #ffffff;
  transform: translateY(-1px);
}

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

.customer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-md);
  background: var(--xc-surface);
}

.customer-contact__body {
  min-width: 0;
}

.customer-contact__label {
  display: block;
  font-size: 10.5px;
  color: var(--xc-muted);
  line-height: 1.3;
}

.customer-contact__value {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: var(--xc-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-contact__value.is-email {
  font-family: var(--xc-font-mono);
  color: #1d4ed8;
  font-size: 12.5px;
}

.customer-copy-btn {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-sm);
  background: var(--xc-surface-2);
  color: var(--xc-text-2);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.customer-copy-btn:hover {
  background: var(--xc-text);
  border-color: var(--xc-text);
  color: #ffffff;
}

/* Shared Section Head */
.section {
  padding: 76px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface);
  border: 1px solid var(--xc-line);
  color: var(--xc-muted);
  font-size: 12px;
  font-weight: 600;
}

.section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.24;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--xc-text-2);
  font-size: 15.5px;
}

/* Section 2: 5-Dimension Contrast Grid */
.contrast-section {
  background: #ffffff;
  border-top: 1px solid var(--xc-line);
  border-bottom: 1px solid var(--xc-line);
}

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

.contrast-card {
  padding: 18px 20px;
  box-shadow: var(--xc-shadow-sm);
}

.contrast-card-wide {
  grid-column: 1 / -1;
}

.contrast-dim {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.dim-num {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--xc-info);
}

.contrast-dim h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

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

.pair-bad,
.pair-good {
  padding: 12px 14px;
  border-radius: var(--xc-r-lg);
  border: 1px solid var(--xc-line);
}

.pair-bad {
  background: #fafafa;
}

.pair-good {
  background: #f5f8ff;
  border-color: #cfe0fc;
}

.pair-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--xc-r-pill);
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 6px;
}

.tag-bad {
  background: #fee2e2;
  color: #b91c1c;
}

.tag-good {
  background: var(--xc-info);
  color: #ffffff;
}

.contrast-pair p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--xc-text-2);
}

.contrast-pair p strong {
  color: var(--xc-text);
  font-weight: 700;
}

.contrast-pair code {
  font-family: var(--xc-font-mono);
  font-size: 12px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
}

/* Section 3: Workbench Visual Feature Tabs */
.wb-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.wb-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  background: var(--xc-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wb-tab:hover {
  border-color: var(--xc-line-strong);
  transform: translateY(-1px);
}

.wb-tab.is-active {
  background: var(--xc-text);
  border-color: var(--xc-text);
  color: #ffffff;
  box-shadow: var(--xc-shadow-cta);
}

.wb-tab-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--xc-surface-2);
  color: var(--xc-text);
  font-family: var(--xc-font-num);
  font-size: 13px;
  font-weight: 700;
}

.wb-tab.is-active .wb-tab-num {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.wb-tab-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wb-tab-text strong {
  font-size: 13.5px;
  font-weight: 700;
}

.wb-tab-text small {
  font-size: 11.5px;
  color: var(--xc-muted);
}

.wb-tab.is-active .wb-tab-text small {
  color: rgba(255, 255, 255, 0.76);
}

/* Workbench Shell Mockup */
.wb-window {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  overflow: hidden;
  box-shadow: var(--xc-shadow-float);
}

.wb-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  background: var(--xc-sidebar-bg);
  border-right: 1px solid var(--xc-line);
}

.wb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 14px;
}

.wb-brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.wb-brand span {
  display: grid;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.15;
}

.wb-brand small {
  font-size: 11px;
  font-weight: 400;
  color: var(--xc-muted);
}

.wb-new-btn {
  min-height: 38px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--xc-r-pill);
  background: var(--xc-text);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wb-nav-list {
  display: grid;
  gap: 4px;
}

.wb-nav-item {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--xc-text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.wb-nav-item:hover {
  background: #eef1f7;
}

.wb-nav-item.is-active {
  background: #ffffff;
  border-color: var(--xc-line);
  color: var(--xc-text);
  font-weight: 650;
  box-shadow: var(--xc-shadow-sm);
}

.wb-sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--xc-line);
}

.wb-account-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-md);
  background: #ffffff;
}

.wb-account-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--xc-ok-strong);
}

.wb-account-meta strong {
  display: block;
  font-size: 12.5px;
  color: var(--xc-text);
}

.wb-account-meta small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--xc-muted);
  line-height: 1.4;
}

.wb-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--xc-canvas);
}

.wb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--xc-line);
  background: rgba(255, 255, 255, 0.92);
}

.wb-topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wb-view-badge {
  padding: 2px 9px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-info-bg);
  color: var(--xc-info);
  font-size: 11.5px;
  font-weight: 600;
}

.wb-topbar-title strong {
  font-size: 14.5px;
  color: var(--xc-text);
}

.wb-topbar-user {
  padding: 4px 12px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--xc-text-2);
}

.wb-content {
  padding: 18px 22px 22px;
}

.wb-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.wb-panel-bar h3 {
  margin: 0 0 2px;
  font-size: 15.5px;
  font-weight: 700;
}

.wb-panel-bar p {
  margin: 0;
  font-size: 12.5px;
  color: var(--xc-muted);
}

.wb-region-summary {
  padding: 3px 11px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-info-bg);
  border: 1px solid #cfe0fc;
  color: var(--xc-info);
  font-size: 12px;
  font-weight: 600;
}

/* Panel 1: AI Industry Keyword Expansion + Cosmic Starry Speed Bar */
.wb-ai-expand-card {
  padding: 13px 15px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  background: #ffffff;
  margin-bottom: 12px;
}

.ai-expand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--xc-line-subtle);
}

.ai-query-box {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ai-query-label {
  padding: 2px 8px;
  border-radius: var(--xc-r-sm);
  background: var(--xc-surface-2);
  border: 1px solid var(--xc-line);
  font-size: 11px;
  font-weight: 600;
  color: var(--xc-muted);
}

.ai-query-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--xc-text);
}

.ai-preset-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-preset-btn,
.btn-ai-replay {
  padding: 4px 10px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface-2);
  color: var(--xc-text-2);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.ai-preset-btn:hover,
.btn-ai-replay:hover {
  border-color: var(--xc-line-strong);
  background: #ffffff;
}

.ai-preset-btn.is-active {
  background: var(--xc-text);
  border-color: var(--xc-text);
  color: #ffffff;
}

.btn-ai-replay {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.ai-expand-stream {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.ai-expand-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--xc-r-pill);
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ai-chips-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-expand-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--xc-r-pill);
  background: #f8fbff;
  border: 1px solid #cfe0fc;
  color: #1e40af;
  font-size: 11.5px;
  font-weight: 600;
  animation: aiChipIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--chip-i, 0) * 65ms);
}

@keyframes aiChipIn {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* GPT-style Cosmic Starry Speed Bar */
.cosmic-speed-card {
  position: relative;
  overflow: hidden;
  padding: 13px 15px;
  margin-bottom: 12px;
  border-radius: var(--xc-r-lg);
  border: 1px solid rgba(129, 140, 248, 0.34);
  background:
    radial-gradient(1.5px 1.5px at 12% 24%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 26% 74%, rgba(191, 219, 254, 0.78), transparent),
    radial-gradient(1.5px 1.5px at 45% 20%, rgba(255, 255, 255, 0.88), transparent),
    radial-gradient(1px 1px at 64% 68%, rgba(165, 180, 252, 0.82), transparent),
    radial-gradient(1.5px 1.5px at 78% 28%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 91% 72%, rgba(147, 197, 253, 0.82), transparent),
    radial-gradient(360px 140px at 80% 0%, rgba(79, 70, 229, 0.32), transparent 70%),
    linear-gradient(125deg, #090d1a 0%, #121833 52%, #1b1947 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.cosmic-speed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 18% 58%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 54% 48%, rgba(224, 231, 255, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 86% 42%, rgba(255, 255, 255, 0.72), transparent);
  animation: starTwinkle 3.4s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0.35; }
  100% { opacity: 0.95; }
}

.cosmic-speed-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.cosmic-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e0e7ff;
}

.cosmic-readout {
  padding: 2px 10px;
  border-radius: var(--xc-r-pill);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(199, 210, 254, 0.28);
  font-size: 11.5px;
  font-weight: 600;
  color: #e0e7ff;
}

.cosmic-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cosmic-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(226, 232, 240, 0.78);
  cursor: pointer;
  transition: all 0.18s ease;
}

.cosmic-step:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.cosmic-step strong {
  font-size: 12.5px;
  font-weight: 700;
}

.cosmic-step small {
  font-size: 11px;
  opacity: 0.78;
}

.cosmic-star {
  font-size: 11px;
  color: rgba(199, 210, 254, 0.55);
  transition: transform 0.2s ease, color 0.2s ease;
}

.cosmic-step.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.90) 0%, rgba(99, 102, 241, 0.95) 100%);
  border-color: rgba(199, 210, 254, 0.55);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.cosmic-step.is-active .cosmic-star {
  color: #fde68a;
  transform: scale(1.18);
}

.cosmic-step.is-active small {
  opacity: 0.95;
}

/* Tab 1: Region + Flag cards */
.region-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.region-card {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.region-card:hover {
  border-color: var(--xc-line-strong);
}

.region-card.is-selected {
  background: var(--xc-info-bg);
  border-color: var(--xc-info);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.region-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.region-card-top strong {
  font-size: 13px;
  color: var(--xc-text);
}

.region-pill {
  padding: 1px 7px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface-2);
  color: var(--xc-muted);
  font-size: 10.5px;
  font-weight: 600;
}

.region-card.is-selected .region-pill {
  background: #ffffff;
  color: var(--xc-info);
}

.region-card small {
  display: block;
  font-size: 11px;
  color: var(--xc-muted);
}

.flag-grid-wrap {
  padding: 13px 15px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  background: #ffffff;
}

.flag-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.flag-grid-head > strong {
  font-size: 13px;
  color: var(--xc-text);
}

.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 7px;
}

.flag-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-md);
  background: var(--xc-surface-2);
  color: var(--xc-text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.12s ease;
}

.flag-chip:hover {
  border-color: var(--xc-line-strong);
  background: #ffffff;
}

.flag-chip.is-checked {
  background: var(--xc-info-bg);
  border-color: #93c5fd;
  color: var(--xc-text);
  font-weight: 600;
}

.flag-chip.is-micro {
  border-style: dashed;
}

.flag-chip-note {
  margin-left: auto;
  font-size: 10px;
  color: var(--xc-warn);
  font-weight: 600;
}

/* Tab 2 & 3 Controls */
.wb-filter-pills,
.mail-status-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wb-pill {
  padding: 5px 12px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-pill);
  background: #ffffff;
  color: var(--xc-text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

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

.wb-directory-list {
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  overflow: hidden;
  background: #ffffff;
}

.wb-segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--xc-line-subtle);
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface-2);
}

.wb-segmented button {
  padding: 5px 14px;
  border: 0;
  border-radius: var(--xc-r-pill);
  background: transparent;
  color: var(--xc-text-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.wb-segmented button.is-active {
  background: #ffffff;
  color: var(--xc-text);
  box-shadow: var(--xc-shadow-sm);
}

/* Tab 3: Clean Mail Workspace with Subtle Refined Borders */
.wb-mail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.wb-mail-compose,
.wb-mail-records {
  padding: 18px 20px;
  border: 1px solid var(--xc-line-subtle);
  border-radius: var(--xc-r-lg);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.025);
}

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

.mail-field-box {
  padding: 10px 13px;
  border: 1px solid var(--xc-line-subtle);
  border-radius: var(--xc-r-md);
  background: #fafbfd;
}

.mail-field-box span {
  display: block;
  font-size: 11px;
  color: var(--xc-muted);
}

.mail-field-box strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--xc-text);
}

.mail-subject-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--xc-line-subtle);
  border-radius: var(--xc-r-md);
  background: #ffffff;
  margin-bottom: 10px;
}

.mail-subject-bar span {
  padding: 2px 8px;
  border-radius: 5px;
  background: #f1f4f9;
  font-size: 11px;
  font-weight: 600;
  color: var(--xc-text-2);
}

.mail-subject-bar strong {
  font-size: 13px;
  color: var(--xc-text);
}

.mail-var-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--xc-muted);
}

.var-chip {
  padding: 2px 10px;
  border: 1px solid #dbeafe;
  border-radius: var(--xc-r-pill);
  background: #f3f7ff;
  color: var(--xc-info);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.var-chip:hover {
  background: #dbeafe;
}

.mail-editor-preview {
  padding: 14px 16px;
  border: 1px solid var(--xc-line-subtle);
  border-radius: var(--xc-r-md);
  background: #fafbfd;
  font-size: 13px;
  line-height: 1.65;
  color: var(--xc-text-2);
}

.mail-editor-preview mark {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--xc-info-bg);
  color: var(--xc-info);
  font-weight: 600;
}

.mail-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.mail-ready-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--xc-ok);
}

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

.mail-progress-head strong {
  display: block;
  font-size: 14px;
}

.mail-progress-head small {
  color: var(--xc-muted);
  font-size: 12px;
}

.mail-progress-bar {
  height: 8px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface-3);
  overflow: hidden;
  margin-bottom: 14px;
}

.mail-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--xc-ok-strong);
}

.mail-record-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.mail-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--xc-line-subtle);
  border-radius: var(--xc-r-md);
  background: #fafbfd;
}

.mail-record-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mail-record-left strong {
  display: block;
  font-size: 13px;
}

.mail-record-left small {
  display: block;
  font-family: var(--xc-font-mono);
  font-size: 11.5px;
  color: var(--xc-info);
}

.mail-status-tag {
  padding: 2px 9px;
  border-radius: var(--xc-r-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mail-status-tag.is-sent {
  background: var(--xc-ok-bg);
  color: var(--xc-ok);
}

.mail-status-tag.is-queued {
  background: var(--xc-warn-bg);
  color: var(--xc-warn);
}

/* Tab 4: Team Dedup & Geo Stats */
.team-geostats-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

.geo-bars-card,
.dedup-ledger-card {
  padding: 16px 18px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  background: #ffffff;
}

.geo-bars-head,
.dedup-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.geo-bars-head strong,
.dedup-ledger-head strong {
  font-size: 13.5px;
}

.geo-bars-head > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--xc-info);
}

.geo-bars-list {
  display: grid;
  gap: 12px;
}

.geo-bar-item {
  display: grid;
  gap: 5px;
}

.geo-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.geo-bar-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--xc-text);
}

.geo-bar-track {
  height: 8px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface-3);
  overflow: hidden;
}

.geo-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14151a 0%, #2563eb 100%);
  transition: width 0.35s ease;
}

.dedup-log-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.dedup-log-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-md);
  background: var(--xc-surface-2);
}

.dedup-log-list strong {
  display: block;
  font-size: 12.5px;
  color: var(--xc-text);
}

.dedup-log-list small {
  display: block;
  font-size: 11px;
  color: var(--xc-muted);
}

.dedup-tag {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-surface-3);
  color: var(--xc-text-2);
  font-size: 11px;
  font-weight: 600;
}

.dedup-tag.is-asset {
  background: var(--xc-info-bg);
  color: var(--xc-info);
}

.dedup-tag.is-new {
  background: var(--xc-ok-bg);
  color: var(--xc-ok);
}

/* Section 4: Credits Pricing & Calculator */
.pricing-section {
  background: #ffffff;
  border-top: 1px solid var(--xc-line);
  border-bottom: 1px solid var(--xc-line);
}

.calculator-card {
  padding: 22px 24px;
  margin-bottom: 24px;
  background: var(--xc-surface-2);
}

.calc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--xc-line);
}

.calc-mode-wrap,
.calc-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-mode-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-pill);
  background: #ffffff;
}

.calc-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 0;
  border-radius: var(--xc-r-pill);
  background: transparent;
  color: var(--xc-text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-mode-btn.is-active {
  background: var(--xc-text);
  color: #ffffff;
}

.preset-chip {
  padding: 4px 11px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-pill);
  background: #ffffff;
  color: var(--xc-text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.preset-chip.is-active {
  background: var(--xc-info-bg);
  border-color: var(--xc-info);
  color: var(--xc-info);
}

.calc-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  padding-top: 18px;
}

.calc-slider-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calc-slider-header label {
  font-size: 14px;
  font-weight: 600;
  color: var(--xc-text);
}

.calc-lead-readout {
  font-size: 28px;
  font-weight: 700;
  color: var(--xc-info);
}

#lead-volume-slider {
  width: 100%;
  accent-color: var(--xc-text);
  cursor: pointer;
}

.calc-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--xc-muted);
}

.calc-savings-note {
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-md);
  background: #ffffff;
  font-size: 12.5px;
  color: var(--xc-text-2);
}

.calc-result-panel {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  background: #ffffff;
}

.calc-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--xc-line);
  font-size: 13px;
  color: var(--xc-muted);
}

.calc-big-num {
  font-size: 22px;
  color: var(--xc-text);
}

.calc-plan-badge {
  padding: 2px 10px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-info-bg);
  color: var(--xc-info);
  font-size: 13px;
}

.calc-compare-bar {
  padding-top: 4px;
}

.compare-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 7px;
}

.compare-meta > span {
  color: var(--xc-muted);
}

.compare-meta > strong {
  color: var(--xc-ok);
}

.compare-track {
  position: relative;
  height: 28px;
  border-radius: var(--xc-r-sm);
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 11px;
  color: var(--xc-muted);
}

.compare-xc {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  min-width: max-content;
  max-width: 65%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: var(--xc-text);
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  transition: width 0.25s ease;
}

/* 4 Tier Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
}

.tier-card.is-featured {
  border-color: var(--xc-text);
  box-shadow: var(--xc-shadow-float);
}

.tier-ribbon {
  position: absolute;
  top: -11px;
  right: 18px;
  padding: 3px 10px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-info);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
}

.tier-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--xc-line);
}

.tier-head h3 {
  margin: 0 0 10px;
  font-size: 17.5px;
  font-weight: 700;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.tier-price strong {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--xc-text);
}

.tier-price span {
  font-size: 13px;
  color: var(--xc-muted);
}

.tier-features {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1;
}

.tier-features li {
  position: relative;
  padding-left: 19px;
  font-size: 13px;
  color: var(--xc-text-2);
  line-height: 1.45;
}

.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--xc-info);
  font-weight: 700;
}

.tier-cta {
  width: 100%;
}

/* Add-on Banner */
.addon-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 22px;
  background: linear-gradient(90deg, #f8faff 0%, #ffffff 100%);
  border-color: #cfe0fc;
}

.addon-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.addon-badge {
  padding: 3px 10px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-info);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.addon-info h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.addon-info h3 strong {
  color: var(--xc-info);
  margin-left: 6px;
}

.addon-info p {
  margin: 0;
  font-size: 13px;
  color: var(--xc-text-2);
}

/* Section 5: Download Strip */
.download-section {
  padding: 64px 0;
}

.download-card {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 28px;
  padding: 32px 34px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
}

.download-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-pill);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: var(--xc-text-2);
}

.download-eyebrow img {
  border-radius: 6px;
}

.download-copy h2 {
  margin: 14px 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.28;
  font-weight: 750;
}

.download-copy p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--xc-text-2);
}

.download-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--xc-muted);
}

.download-specs code {
  font-family: var(--xc-font-mono);
  color: var(--xc-info);
}

.download-action-box {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-lg);
  background: #ffffff;
  box-shadow: var(--xc-shadow-sm);
}

.download-exe-btn {
  width: 100%;
}

/* Footer */
.site-footer {
  padding: 40px 0 28px;
  background: #ffffff;
  border-top: 1px solid var(--xc-line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--xc-line);
}

.footer-company-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-company-row img {
  border-radius: 8px;
}

.footer-company-row strong {
  display: block;
  font-size: 15.5px;
  color: var(--xc-text);
}

.footer-company-row span {
  display: block;
  font-size: 12px;
  color: var(--xc-muted);
}

.footer-tagline {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--xc-muted);
}

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 18px 30px;
}

.footer-info-item > span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--xc-muted);
  margin-bottom: 4px;
}

.footer-info-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--xc-text);
}

.footer-info-item a {
  color: var(--xc-info);
  font-family: var(--xc-font-mono);
  font-size: 13px;
}

.inline-copy-btn {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-sm);
  background: var(--xc-surface-2);
  color: var(--xc-text-2);
  font-size: 11px;
  cursor: pointer;
}

.inline-copy-btn:hover {
  background: var(--xc-text);
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--xc-muted);
}

.icp-link:hover {
  color: var(--xc-text);
  text-decoration: underline;
}

/* Dialog & Toast */
.xc-dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 24px 26px;
  border: 1px solid var(--xc-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  color: var(--xc-text);
}

.xc-dialog::backdrop {
  background: rgba(15, 23, 42, 0.36);
}

.xc-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.xc-dialog-kicker {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-info-bg);
  color: var(--xc-info);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.xc-dialog-head h3 {
  margin: 0;
  font-size: 18px;
}

.xc-dialog-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--xc-line);
  border-radius: 50%;
  background: var(--xc-surface-2);
  color: var(--xc-text-2);
  cursor: pointer;
}

.xc-dialog-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--xc-text-2);
}

.xc-dialog-box {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-r-md);
  background: var(--xc-surface-2);
  font-size: 12.5px;
}

.xc-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.site-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: var(--xc-r-pill);
  background: var(--xc-text);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .pipeline-track {
    grid-template-columns: 1fr;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    height: 18px;
  }
  .wb-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wb-window {
    grid-template-columns: 1fr;
  }
  .wb-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--xc-line);
  }
  .wb-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .download-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .hide-sm {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .viz-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .viz-metric:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }
  .customer-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .customer-row__contacts {
    grid-template-columns: 1fr;
  }
  .contrast-grid,
  .contrast-pair,
  .region-cards,
  .mail-row-pair,
  .team-geostats-grid,
  .calc-body,
  .footer-info-grid {
    grid-template-columns: 1fr;
  }
  .cosmic-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1160px, calc(100% - 26px));
  }
  .visualizer-shell {
    padding: 16px;
  }
  .wb-tabs,
  .pricing-grid,
  .wb-nav-list {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .live-dot,
  .cosmic-speed-card::before,
  .ai-expand-chip {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
