* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --milky: #fdfbf7;
  --milky-dark: #f3f0e8;
  --milky-deep: #e8e4d8;
  --ink: #000000;
  --ink-soft: #1a1a1a;
  --muted: #444444; /* Improved contrast */
  --line: rgba(0, 0, 0, 0.08);
  --line-heavy: rgba(0, 0, 0, 0.15);
  --glass: rgba(253, 251, 247, 0.95);
  --shadow-luxury: 0 60px 150px rgba(0, 0, 0, 0.12);
  --hermes: #f37021;
  --gold: #b78216;
  --radius-huge: 80px;
  --radius-xl: 48px;
  --radius-lg: 32px;
}

body {
  margin: 0;
  background-color: var(--milky);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  font-weight: 500;
  font-size: 12px;
}

/* --- Global Center Alignment Architecture --- */
.section-center,
.section-title,
.opportunity-card,
.landing-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 1000;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-align: center;
}

.portal-ring {
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.portal-ring i {
  position: absolute;
  inset: -40px;
  border: 4px dashed var(--hermes);
  border-radius: 50%;
  opacity: 0.3;
  animation: spinPortal 30s linear infinite;
}

.portal-ring span {
  width: 300px;
  height: 300px;
  background-color: var(--ink);
  border: 8px solid var(--hermes);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: organicAIBlob 12s infinite alternate ease-in-out;
  box-shadow: 0 0 150px rgba(243, 112, 33, 0.4);
}

@keyframes organicAIBlob {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1) rotate(0deg); }
  50% { border-radius: 50% 50% 30% 70% / 50% 50% 70% 50%; transform: scale(1.1) rotate(45deg); }
  100% { border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%; transform: scale(1) rotate(90deg); }
}

@keyframes spinPortal { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.ai-pulse-card {
  position: absolute;
  bottom: -40px;
  background-color: var(--ink);
  color: #ffffff;
  padding: 40px 64px;
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  text-align: center;
  z-index: 20;
}

.ai-pulse-card strong { font-size: 36px; margin-top: 12px; display: block; font-weight: 1000; }

.ai-speech {
  background-color: var(--milky-dark);
  padding: 56px;
  border-radius: 48px 48px 48px 0;
  font-size: 28px;
  font-weight: 900;
  border-left: 20px solid var(--hermes);
  line-height: 1.2;
}

/* Legacy landing-page size rules removed. The authoritative landing layout lives
   in the later "Landing Page UI Overhaul" section to prevent style drift. */

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 72px;
  width: 100%;
}

.opportunity-card {
  padding: 56px 32px;
  border-radius: 40px;
  border: 1px solid var(--line-heavy);
  transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.opportunity-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-luxury); border-color: var(--ink); }
.opportunity-card span { font-size: 64px; font-weight: 1000; color: #d0c9b0; margin-bottom: 28px; opacity: 0.6; }
.opportunity-card h3 { font-size: 24px; margin-bottom: 16px; overflow-wrap: anywhere; }
.opportunity-card p { font-size: 16px; color: var(--muted); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }

/* --- Luxury Interaction Elements --- */
.primary-button {
  background-color: var(--ink);
  color: #ffffff !important;
  padding: 16px 26px;
  border-radius: 18px;
  font-weight: 1000;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.primary-button:hover { transform: scale(1.06) translateY(-8px); box-shadow: 0 40px 100px rgba(0,0,0,0.25); }
.primary-button.electric { background-color: var(--hermes); }

.ghost-button {
  background-color: transparent;
  color: var(--ink);
  padding: 15px 24px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  font-weight: 1000;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 400ms ease;
}

.ghost-button:hover { background-color: var(--ink); color: #ffffff; }
.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- App Shell Restoration --- */
.app-shell { display: grid; grid-template-columns: 292px 1fr; min-height: 100vh; }
.sidebar { background-color: var(--milky-dark); border-right: 1px solid var(--line); padding: 56px 28px; display: flex; flex-direction: column; }
.sidebar-top { display: flex; flex-direction: column; min-height: 0; }
.nav-list { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.nav-item { padding: 14px 18px; border-radius: 18px; font-weight: 1000; margin-bottom: 10px; font-size: 15px; color: var(--muted); text-decoration: none; display: block; text-align: left; overflow-wrap: anywhere; }
.nav-item.active { background-color: var(--ink); color: #ffffff; }
.workspace { min-width: 0; }

.user-card { background-color: #ffffff; padding: 22px; border-radius: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.user-info strong { display: block; font-size: 16px; }
.user-info span { color: var(--muted); font-size: 13px; }
.logout-btn { background: none; border: 0; color: var(--hermes); font-weight: 900; cursor: pointer; text-align: left; padding: 0; }

/* --- Workstation Architecture --- */
.workstation { padding: 56px 40px; max-width: 1600px; margin: 0 auto; width: 100%; }
.workstation-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 20px; flex-wrap: wrap; }
.workstation-tabs { display: flex; gap: 12px; background-color: var(--milky-dark); padding: 8px; border-radius: 20px; }
.workstation-tabs button { background: none; border: 0; padding: 12px 24px; border-radius: 16px; font-weight: 900; cursor: pointer; color: var(--muted); }
.workstation-tabs button.active { background-color: #ffffff; color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.workstation-content {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 36px;
  align-items: start;
}

.workstation-rail h2 { font-size: 13px; color: var(--hermes); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 24px; text-align: left; }
.rail-stack { display: grid; gap: 16px; }
.rail-item { display: flex; justify-content: space-between; align-items: center; background-color: #ffffff; padding: 20px; border-radius: 20px; border: 1px solid var(--line); }
.rail-item span { font-weight: 700; color: var(--muted); }
.rail-item strong { font-size: 20px; }

.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.deal-card { background-color: #ffffff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; transition: transform 0.3s ease; }
.deal-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-luxury); }
.deal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 12px; }
.deal-header strong { font-size: 20px; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.tag { background-color: var(--milky-dark); padding: 8px 16px; border-radius: 12px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.deal-body .value { font-size: 26px; font-weight: 1000; color: var(--hermes); display: block; margin-bottom: 8px; }

.threads-layout { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 28px; min-height: 540px; }
.threads-list { display: flex; flex-direction: column; gap: 16px; }
.thread-item { background-color: #ffffff; border: 1px solid var(--line); padding: 18px; border-radius: 18px; text-align: left; cursor: pointer; transition: all 0.2s; }
.thread-item.active { background-color: var(--ink); color: #ffffff; border-color: var(--ink); }
.thread-item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.thread-item span { font-size: 14px; opacity: 0.6; }

.thread-view { background-color: #ffffff; border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; min-width: 0; }
.thread-view header { padding: 26px; border-bottom: 1px solid var(--line); }
.messages { flex: 1; padding: 26px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; max-height: 460px; }
.msg-bubble { max-width: 80%; padding: 18px; border-radius: 18px; position: relative; overflow-wrap: anywhere; }
.msg-bubble.ai { background-color: var(--milky-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-bubble.customer { background-color: var(--ink); color: #ffffff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-bubble small { font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; margin-bottom: 8px; display: block; opacity: 0.5; }
.thread-view footer { padding: 26px; border-top: 1px solid var(--line); }

.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.metric-card { background-color: #ffffff; border: 1px solid var(--line); padding: 34px 24px; border-radius: 24px; text-align: center; min-width: 0; }
.metric-card span { color: var(--hermes); font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; }
.metric-card strong { display: block; font-size: clamp(22px, 2.8vw, 40px); margin-top: 14px; letter-spacing: -0.05em; overflow-wrap: anywhere; }

.page-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 48px 36px 72px;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 980px;
}

.page-header h1 {
  font-size: clamp(30px, 3.6vw, 48px);
  text-align: left;
  line-height: 0.95;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  min-width: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
}

.loading {
  padding: 56px 40px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.kb-grid,
.mcp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.mcp-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  min-width: 0;
}

.mcp-card span {
  display: block;
  color: var(--hermes);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mcp-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lead-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
  margin-top: 40px;
}

.lead-import-panel,
.lead-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lead-import-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.lead-import-panel h2 {
  font-size: clamp(28px, 3vw, 42px);
  text-align: left;
  line-height: 1.02;
  margin-bottom: 12px;
}

.lead-import-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}

.lead-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.lead-file-picker {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(243, 112, 33, 0.45);
  background: linear-gradient(145deg, rgba(243, 112, 33, 0.1), rgba(255, 255, 255, 0.96));
  cursor: pointer;
}

.lead-file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.lead-file-picker span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-file-picker small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

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

.lead-import-meta .metric-card,
.lead-summary-card {
  text-align: left;
}

.lead-import-meta .metric-card strong {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
}

.lead-summary-card {
  background: linear-gradient(145deg, #ffffff, #fcfaf4);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.lead-summary-card span,
.lead-section-heading span {
  display: block;
  color: var(--hermes);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead-summary-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  margin: 12px 0 10px;
  overflow-wrap: anywhere;
}

.lead-summary-card p {
  margin: 0;
}

.lead-import-banner {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(243, 112, 33, 0.12);
  border: 1px solid rgba(243, 112, 33, 0.2);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
}

.lead-import-banner-dark {
  background: linear-gradient(135deg, #171717, #0a0a0a);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lead-preview-card {
  background: linear-gradient(145deg, #fffdf8, #f8f3e7);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}

.lead-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.lead-section-heading strong {
  font-size: 20px;
  line-height: 1.15;
  text-align: left;
  overflow-wrap: anywhere;
}

.lead-preview-list,
.lead-batch-list,
.lead-run-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.lead-preview-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lead-preview-item,
.lead-run-card,
.lead-batch-card {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  padding: 16px 18px;
  min-width: 0;
}

.lead-preview-item {
  font-weight: 700;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.lead-batch-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 160ms ease;
}

.lead-batch-card strong,
.lead-run-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lead-batch-card span,
.lead-run-card p,
.lead-run-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.lead-batch-card.active {
  background: linear-gradient(135deg, #1a1a1a, #080808);
  border-color: #1a1a1a;
  color: #ffffff;
}

.lead-batch-card.active span {
  color: rgba(255, 255, 255, 0.72);
}

.lead-empty {
  border-radius: 18px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  padding: 18px;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.76);
}

.lead-help-list {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.65;
}

.auth-metric-grid {
  margin-bottom: 32px;
}

.nav-list-spaced {
  margin-top: 48px;
}

.auth-action-stack-spaced {
  margin-top: 32px;
}

.user-card-push-bottom {
  margin-top: auto;
}

.rail-section-spaced {
  margin-top: 48px;
}

.plan-price {
  font-size: 64px;
  margin: 32px 0;
  display: block;
}

.plan-detail-block {
  margin-top: 18px;
}

.plan-detail-block strong {
  display: block;
  margin-bottom: 10px;
}

.plan-feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.plan-cta-button {
  margin-top: 48px;
  width: 100%;
}

.thread-reply-footer {
  display: flex;
  gap: 16px;
  align-items: center;
}

.thread-reply-input {
  flex: 1;
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  border: 2px solid var(--line-heavy);
  font-weight: 600;
}

.thread-reply-result-panel {
  margin: 0 40px 40px;
  padding: 24px;
}

.thread-reply-result-copy {
  margin-top: 12px;
}

.admin-banner-spaced {
  margin-top: 32px;
}

.admin-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.admin-user-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-user-actions-table {
  margin-top: 0;
  min-width: 320px;
  align-items: center;
  justify-content: space-between;
}

.admin-user-actions-main {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-selection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-selection-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  width: 100%;
  max-height: min(72vh, 820px);
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

.admin-users-table th,
.admin-users-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12px;
  line-height: 1.35;
}

.admin-users-table thead th {
  position: sticky;
  top: 0;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
  z-index: 1;
}

.admin-users-table tbody tr:hover {
  background: rgba(255, 247, 237, 0.7);
}

.admin-users-table select {
  min-width: 116px;
  max-width: 150px;
}

.admin-user-actions-main {
  min-width: 0;
}

.admin-user-actions-main .primary-button,
.admin-user-actions-main .ghost-button,
.admin-user-actions-main .danger-button {
  white-space: nowrap;
}

.danger-button {
  border-color: rgba(220, 38, 38, 0.24);
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.95);
}

.danger-button:hover {
  background: rgba(254, 226, 226, 1);
}

.danger-button-strong {
  font-weight: 800;
  border: 1px solid rgba(220, 38, 38, 0.5);
  background: #fee2e2;
  color: #991b1b;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.14);
  white-space: nowrap;
}

.admin-tech-watch-copy {
  margin: 16px 0 10px;
  line-height: 1.65;
}

.admin-tech-watch-meta {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.admin-form-actions {
  grid-column: 1 / -1;
}

.admin-run-list-spaced,
.section-grid-spaced,
.section-block-spaced {
  margin-top: 48px;
}

.section-block-spaced-lg {
  margin-top: 64px;
}

.trust-summary-panel {
  margin-top: 32px;
}

/* --- Auth Modal --- */
.modal-overlay { position: fixed; inset: 0; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-card { background-color: #ffffff; width: min(92vw, 460px); border-radius: 28px; padding: 36px; box-shadow: var(--shadow-luxury); }
.modal-card h2 { font-size: 32px; margin-bottom: 28px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 900; margin-bottom: 12px; color: var(--muted); }
.field input { width: 100%; padding: 16px; border-radius: 14px; border: 2px solid var(--line-heavy); font-size: 16px; font-weight: 600; }
.inline-field-help { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.modal-footer { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; align-items: center; font-weight: 700; }
.modal-footer a { color: var(--hermes); text-decoration: none; }

/* --- Status Colors --- */
.ok { color: #2ecc71; }
.err { color: #e74c3c; }

/* --- Workflow Accordion --- */
.workflow-accordion {
  max-width: 1000px;
  width: 100%;
  margin: 100px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.accordion-item {
  background-color: #ffffff;
  border-radius: 32px;
  border: 1px solid var(--line-heavy);
  overflow: hidden;
  transition: all 400ms ease;
}

.accordion-item.open {
  border-color: var(--hermes);
  box-shadow: 0 20px 60px rgba(243, 112, 33, 0.1);
}

.accordion-header {
  width: 100%;
  padding: 40px 56px;
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.accordion-header strong {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.accordion-header .icon {
  font-size: 32px;
  font-weight: 1000;
  color: var(--hermes);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 56px;
}

.accordion-item.open .accordion-content {
  max-height: 400px;
  padding-bottom: 56px;
}

.accordion-content p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

/* --- Luxury Color Injection & Vibrancy --- */
.opportunity-card {
  background: linear-gradient(145deg, #ffffff, var(--milky));
  border-left: 8px solid var(--hermes);
}
.opportunity-card:nth-child(even) { border-left-color: var(--gold); }

.deal-card {
  background: linear-gradient(145deg, #ffffff, #fcfaf0);
  border-top: 4px solid var(--gold);
}

.metric-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--milky-dark) 100%);
  border-bottom: 6px solid var(--hermes);
}

.kb-card {
  background-color: #ffffff;
  border: 1px solid var(--line-heavy);
  border-left: 12px solid var(--hermes);
  padding: 40px;
  border-radius: 24px;
}

.help-center-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.help-center-intro {
  background: linear-gradient(145deg, #ffffff, #fcfaf4);
  border: 1px solid var(--line-heavy);
  border-radius: 28px;
  padding: 30px;
}

.help-center-intro h2 {
  font-size: clamp(28px, 3vw, 44px);
  text-align: left;
  margin: 0 0 14px;
  line-height: 1.08;
}

.help-center-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
}

.help-section-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.help-section-card {
  background: #ffffff;
  border: 1px solid var(--line-heavy);
  border-radius: 24px;
  overflow: hidden;
}

.help-section-card summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.help-section-card summary::-webkit-details-marker {
  display: none;
}

.help-summary {
  min-width: 0;
}

.help-summary strong {
  display: block;
  font-size: 24px;
  font-weight: 1000;
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.help-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.help-toggle {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(243, 112, 33, 0.12);
  color: var(--hermes);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-content {
  padding: 0 26px 26px;
}

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

.help-fact {
  background: linear-gradient(145deg, #fffdf8, #f9f4ea);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 18px;
  min-width: 0;
}

.help-fact span {
  display: block;
  color: var(--hermes);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.help-fact p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

.help-block {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 18px;
  min-width: 0;
}

.help-block h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--hermes);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
}

.help-block ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.help-block li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.package-help-block > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

.faq-block {
  grid-column: 1 / -1;
}

.faq-stack {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fcfaf5;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

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

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 600;
}

/* --- Landing Page UI Overhaul --- */
.landing-shell {
  width: 100%;
  overflow-x: clip;
}

.opportunity-card,
.hero-signal-card,
.commercial-card,
.productivity-strip,
.roi-card,
.savings-card,
.automation-card,
.deal-card,
.thread-item,
.thread-view,
.metric-card,
.demo-guidance-card,
.engine-stream-card,
.flow-node {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark strong {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 950;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-wordmark-dynamic { color: #2c2c2c; }
.brand-wordmark-eight {
  color: var(--hermes);
  text-shadow: 0 0 24px rgba(243, 112, 33, 0.4);
}

.brand-wordmark-subtitle {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.corporate-footer .brand-wordmark { color: #ffffff; }
.corporate-footer .brand-wordmark-dynamic { color: rgba(255,255,255,0.9); }
.corporate-footer .brand-wordmark-subtitle { color: rgba(255,255,255,0.7); }

.sidebar .brand-wordmark { color: var(--ink); }
.sidebar .brand-wordmark-subtitle { color: var(--muted); }

.landing-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 32px;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 200;
}

.landing-brand {
  min-width: 0;
}

.landing-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.landing-nav-menu::-webkit-scrollbar { display: none; }

.landing-nav-link {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.72);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-nav-link:hover,
.landing-nav-link:focus-visible {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex-wrap: nowrap;
}

.landing-actions .ghost-button,
.landing-actions .primary-button {
  padding: 14px 18px;
  font-size: 13px;
  border-radius: 16px;
  border-width: 2px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nav-link-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link-container > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
}

.nav-link-container > a::after {
  content: "▾";
  font-size: 12px;
  opacity: 0.8;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: min(1100px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,241,0.98));
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 36px;
  padding: 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 220ms ease;
  z-index: 20;
}

.nav-link-container:hover .mega-menu,
.nav-link-container:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-column {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mega-menu-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hermes);
}

.mega-menu-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-menu-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 180ms ease;
  text-align: left;
}

.mega-menu-item:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 112, 33, 0.35);
  box-shadow: 0 20px 50px rgba(243, 112, 33, 0.12);
  background: #fffaf4;
}

.mega-menu-item strong {
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -0.05em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.mega-menu-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.landing-hero {
  padding: 104px 56px 88px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  gap: 32px;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.landing-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.landing-copy h1 {
  font-size: clamp(36px, 4.2vw, 62px);
  margin-bottom: 28px;
  text-align: left;
  max-width: 12ch;
  overflow-wrap: anywhere;
}

.landing-copy p {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 28px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(243, 112, 33, 0.12);
  color: var(--hermes);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.landing-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.landing-proof-row span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-command-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-signal-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #181818, #090909);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 70px rgba(0,0,0,0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-signal-card span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.56);
}

.hero-signal-card strong {
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.hero-signal-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.76);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.landing-section {
  padding: 92px 56px;
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin: 0 auto;
}

.section-title {
  align-items: flex-start;
  text-align: left;
  max-width: 1100px;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(30px, 3.4vw, 56px);
  line-height: 1;
  text-align: left;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.section-title p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
}

.section-left { align-items: flex-start; text-align: left; }
.section-on-dark .landing-kicker { background: rgba(255,255,255,0.12); color: #ffffff; }
.section-on-dark h2,
.section-on-dark p { color: #ffffff; }

.commercial-band,
.automation-band,
.landing-demo-section {
  border-radius: 48px;
  overflow: hidden;
}

.commercial-band {
  background: linear-gradient(180deg, #181818 0%, #0c0c0c 100%);
  color: #ffffff;
  padding-bottom: 100px;
}

.roi-band {
  background: linear-gradient(180deg, rgba(255,247,238,0.95), rgba(255,255,255,1));
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.automation-band {
  background: linear-gradient(180deg, #131313 0%, #080808 100%);
  color: #ffffff;
  padding-bottom: 100px;
}

.commercial-grid,
.roi-grid,
.savings-grid,
.automation-grid,
.hero-command-wall,
.demo-guidance-grid,
.demo-grid {
  display: grid;
  gap: 20px;
}

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

.commercial-card,
.automation-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  border-radius: 28px;
  padding: 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.commercial-card span,
.automation-card strong,
.roi-card span,
.savings-card span,
.productivity-strip span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.commercial-card span { color: rgba(255,255,255,0.58); }
.commercial-card strong,
.automation-card strong,
.roi-card strong,
.savings-card strong,
.productivity-strip strong {
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.commercial-card p,
.automation-card p,
.roi-card p,
.savings-card p,
.productivity-strip p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}

.commercial-card p,
.automation-card p { color: rgba(255,255,255,0.72); }

.productivity-strip-grid {
  display: grid;
  gap: 18px;
}

.productivity-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
}

.productivity-strip div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.productivity-strip span {
  color: var(--hermes);
}

.productivity-strip p {
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}

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

.roi-card,
.savings-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 28px;
  padding: 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.roi-card span,
.savings-card span { color: var(--hermes); }

.roi-card strong,
.savings-card strong {
  color: var(--ink);
}

.roi-card p,
.savings-card p,
.productivity-strip p {
  color: var(--muted);
}

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

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

.landing-demo-section {
  background: radial-gradient(circle at top, rgba(243,112,33,0.18), transparent 36%), linear-gradient(180deg, #161616, #060606);
  color: #ffffff;
  padding: 88px 56px;
  margin: 0 24px;
}

.landing-demo-section .section-title {
  max-width: 1180px;
}

.landing-demo-section .section-title h2 {
  color: #ffffff;
  margin-bottom: 14px;
  font-size: clamp(32px, 3.8vw, 60px);
}

.landing-demo-section .section-title p {
  color: rgba(255,255,255,0.76);
}

.landing-demo-card {
  max-width: 1600px;
  margin: 40px auto 0;
  background: linear-gradient(180deg, #ffffff, #f8f4ea);
  color: var(--ink);
  border-radius: 40px;
  padding: 22px;
  box-shadow: 0 60px 180px rgba(0,0,0,0.34);
}

.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px 26px;
  color: var(--muted);
}

.demo-window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(243, 112, 33, 0.55);
}

.demo-window-bar strong {
  margin-left: auto;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.demo-visual {
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  position: relative;
  display: block;
  overflow: visible;
}

.live-engine {
  background: linear-gradient(180deg, #171717, #090909);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
  padding: 20px;
  color: #ffffff;
}

.engine-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.engine-topbar span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.engine-topbar strong {
  display: block;
  font-size: 22px;
  line-height: 1.08;
  margin-top: 8px;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.engine-topbar em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: var(--hermes);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.engine-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.flow-node {
  min-height: 102px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 180ms ease;
}

.flow-node small {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.flow-node strong {
  font-size: 14px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.flow-node.active {
  background: linear-gradient(180deg, rgba(243,112,33,0.96), rgba(193,93,25,0.98));
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(243,112,33,0.22);
  transform: translateY(-4px);
}

.engine-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.78fr);
  gap: 14px;
  margin-top: 18px;
}

.engine-stream,
.engine-feed {
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px;
}

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

.engine-stream-card {
  min-height: 96px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.engine-stream-card span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.54);
}

.engine-stream-card strong {
  font-size: 18px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.engine-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.engine-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feed-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--hermes);
  box-shadow: 0 0 18px rgba(243,112,33,0.6);
  flex: 0 0 auto;
}

.engine-feed-item p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.demo-narrative {
  position: relative;
  z-index: 30;
}

.demo-narrative h2 {
  text-align: left;
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 46px);
  overflow-wrap: anywhere;
}

.demo-narrative p {
  text-align: left;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.demo-guidance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.demo-guidance-card {
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-guidance-card span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hermes);
}

.demo-guidance-card strong {
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ai-speech {
  background: linear-gradient(180deg, #1a1a1a, #090909);
  color: #ffffff;
  padding: 22px;
  border-radius: 28px 28px 28px 0;
  font-size: 16px;
  font-weight: 800;
  border-left: 6px solid var(--hermes);
  line-height: 1.55;
  margin-top: 24px;
  overflow-wrap: anywhere;
}

.demo-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.demo-stepper button {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 14px 12px;
  border-radius: 18px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 180ms ease;
}

.demo-stepper button.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

.demo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.demo-grid article {
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
}

.demo-grid article span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  margin-bottom: 12px;
}

.demo-grid article strong {
  display: block;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.business-grid,
.commercial-grid,
.roi-grid,
.savings-grid,
.automation-grid {
  margin-top: 28px;
}

/* --- Support Widget Global Logic & Fixes --- */
.support-minimized-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5000;
}

.support-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink) 0%, #333333 100%);
  color: #ffffff;
  border: 3px solid var(--hermes);
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(0,0,0,0.32);
  z-index: 5000;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  padding: 10px;
}

.support-trigger:hover { transform: scale(1.04) translateY(-4px); }

.support-trigger.minimized {
  position: static;
  width: auto;
  height: 52px;
  padding: 0 20px;
  border-radius: 26px;
  background: var(--hermes);
  border-color: #ffffff;
  box-shadow: 0 14px 36px rgba(243, 112, 33, 0.28);
}

.support-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--ink);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 1000;
  transition: all 200ms;
}
.support-close-btn:hover { background-color: #ff4757; border-color: #ffffff; }

.support-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 48px));
  background-color: #ffffff;
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 5500;
  border: 1px solid var(--line-heavy);
  animation: slideUp 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.support-window header {
  padding: 18px 20px;
  background-color: var(--ink);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-left strong { font-size: 15px; overflow-wrap: anywhere; }
.status-dot { width: 10px; height: 10px; background-color: #2ecc71; border-radius: 50%; box-shadow: 0 0 12px #2ecc71; animation: pulseStatus 2s infinite; }
@keyframes pulseStatus { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.header-actions { display: flex; gap: 10px; }
.header-actions button {
  background: rgba(255,255,255,0.1);
  border: 0;
  color: #ffffff;
  min-width: 52px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms;
}
.header-actions button:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }

.support-body { flex: 1; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; background-color: var(--milky); }
.msg.agent .bubble { background-color: #ffffff; border: 1px solid var(--line-heavy); padding: 16px 18px; border-radius: 20px 20px 20px 8px; font-weight: 600; line-height: 1.5; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); overflow-wrap: anywhere; }
.msg.user .bubble { background-color: var(--hermes); color: #ffffff; padding: 16px 18px; border-radius: 20px 20px 8px 20px; align-self: flex-end; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(243, 112, 33, 0.2); overflow-wrap: anywhere; }
.msg .bubble { white-space: pre-line; }

.support-window footer { padding: 16px 18px 18px; border-top: 1px solid var(--line-heavy); background: #ffffff; }
.support-window footer input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line-heavy); font-weight: 600; font-size: 14px; outline: none; transition: border-color 200ms; }
.support-window footer input:focus { border-color: var(--hermes); }

/* --- Corporate Footer Redesign --- */
.corporate-footer {
  background-color: var(--ink);
  color: #ffffff;
  padding: 120px 0 0;
  margin-top: 120px;
  border-top: 10px solid var(--hermes);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  gap: 100px;
}

.footer-brand-col { flex: 1.2; text-align: left; }
.footer-brand-col p { margin-top: 32px; font-size: 18px; line-height: 1.6; opacity: 0.7; color: #ffffff; text-align: left; }
.social-row { display: flex; gap: 24px; margin-top: 48px; }
.social-row span { font-weight: 900; color: var(--gold); cursor: pointer; transition: color 200ms; }
.social-row span:hover { color: var(--hermes); }

.footer-links-grid { flex: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.link-col { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.link-col h3 { font-size: 16px; color: var(--hermes); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 24px; text-align: left; }
.link-col a { color: #ffffff; text-decoration: none; font-weight: 600; font-size: 16px; opacity: 0.6; transition: opacity 200ms, color 200ms; }
.link-col a:hover { opacity: 1; color: var(--gold); }

.footer-bottom {
  margin-top: 100px;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.4;
}

/* --- Responsiveness --- */
@media (max-width: 1400px) {
  .app-shell { grid-template-columns: 260px 1fr; }
  .workstation { padding: 40px 28px; }
}

@media (max-width: 1200px) {
  .app-shell { transform: none; width: 100%; }
  .landing-nav {
    padding: 20px 24px;
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .landing-nav-menu,
  .landing-actions {
    justify-self: start;
  }
  .landing-nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link-container {
    width: 100%;
  }
  .nav-link-container > a {
    width: 100%;
    justify-content: space-between;
  }
  .mega-menu {
    position: static;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    margin-top: 12px;
    grid-template-columns: 1fr;
  }
  .nav-link-container:hover .mega-menu,
  .nav-link-container:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .landing-hero { padding: 80px 28px 64px; }
  .landing-hero-grid { grid-template-columns: 1fr; }
  .hero-command-wall,
  .commercial-grid,
  .roi-grid,
  .savings-grid,
  .automation-grid,
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .productivity-strip { grid-template-columns: 1fr; }
  .demo-stage { grid-template-columns: 1fr; gap: 40px; }
  .engine-pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .engine-body { grid-template-columns: 1fr; }
  .demo-guidance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-narrative h2, .demo-narrative p { text-align: left; }
  .landing-section { padding: 72px 28px; }
  .landing-demo-section { margin: 0 20px; padding: 72px 28px; }
  .landing-demo-card { padding: 20px; }
  .opportunity-grid { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 20px; }
  .page-container { padding: 40px 28px 72px; }
  .lead-import-layout { grid-template-columns: 1fr; }
  .workstation-content,
  .threads-layout,
  .analytics-grid { grid-template-columns: 1fr; }
  .lead-import-panel-head { flex-direction: column; }
  .lead-import-actions { justify-content: flex-start; }
  .help-fact-grid,
  .help-content-grid { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; gap: 80px; padding: 0 40px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
  .support-window { width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 48px)); bottom: 20px; right: 20px; border-radius: 28px; }
  .admin-users-table {
    min-width: 960px;
  }
  .admin-users-table th:nth-child(8),
  .admin-users-table td:nth-child(8),
  .admin-users-table th:nth-child(10),
  .admin-users-table td:nth-child(10) {
    display: none;
  }
}

@media (max-width: 768px) {
  .app-shell { transform: none; width: 100%; }
  .landing-nav { padding: 20px; }
  .landing-nav-menu { justify-content: flex-start; gap: 12px; }
  .landing-actions { width: 100%; justify-content: flex-start; }
  .landing-actions .ghost-button,
  .landing-actions .primary-button { flex: 1; width: 100%; }
  .landing-hero { padding: 64px 20px 52px; }
  .landing-copy h1 { font-size: 36px; max-width: none; }
  .landing-cta-row { flex-direction: column; width: 100%; }
  .landing-cta-row button { width: 100%; }
  .landing-hero-grid,
  .hero-command-wall,
  .commercial-grid,
  .roi-grid,
  .savings-grid,
  .automation-grid,
  .demo-grid,
  .demo-guidance-grid,
  .engine-stream {
    grid-template-columns: 1fr;
  }
  .landing-section { padding: 64px 20px; }
  .landing-demo-section { padding: 64px 20px; margin: 0 12px; border-radius: 32px; }
  .landing-demo-card { padding: 16px; }
  .demo-window-bar { flex-wrap: wrap; }
  .demo-window-bar strong { width: 100%; margin-left: 0; }
  .engine-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-stepper { grid-template-columns: repeat(2, 1fr); }
  .opportunity-grid { grid-template-columns: 1fr; }
  .workstation { padding: 28px 16px; }
  .page-container { padding: 28px 16px 64px; }
  .page-header h1 { font-size: 34px; }
  .thread-view header,
  .messages,
  .thread-view footer { padding: 18px; }
  .metric-card { padding: 24px 18px; }
  .lead-import-meta,
  .lead-import-summary-grid,
  .lead-preview-list { grid-template-columns: 1fr; }
  .lead-import-actions { width: 100%; }
  .lead-file-picker,
  .lead-import-actions .primary-button,
  .lead-import-actions .ghost-button { width: 100%; }
  .admin-selection-toolbar,
  .admin-selection-actions,
  .admin-user-actions-table,
  .admin-user-actions-main {
    width: 100%;
  }
  .admin-selection-toolbar {
    align-items: stretch;
  }
  .admin-selection-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-selection-actions .ghost-button,
  .admin-selection-actions .danger-button-strong,
  .admin-user-actions-main .primary-button,
  .admin-user-actions-main .ghost-button,
  .admin-user-actions-main .danger-button {
    width: 100%;
  }
  .admin-users-table {
    min-width: 760px;
  }
  .admin-users-table th:nth-child(9),
  .admin-users-table td:nth-child(9) {
    display: none;
  }
  .admin-table-wrap {
    max-height: min(68vh, 720px);
  }
  .help-center-intro,
  .help-section-card summary,
  .help-content { padding-left: 18px; padding-right: 18px; }
  .help-section-card summary { flex-direction: column; align-items: flex-start; }
  .help-summary strong { font-size: 20px; }
  .support-trigger,
  .support-window,
  .support-minimized-wrapper { right: 12px; bottom: 12px; }
  .mega-menu {
    display: none;
  }
  .support-window {
    width: calc(100vw - 24px);
    height: min(360px, calc(100vh - 140px));
    max-height: 58vh;
    border-radius: 22px;
  }
  .support-window header {
    padding: 12px 14px;
  }
  .support-window footer {
    padding: 10px 12px 12px;
  }
  .support-body {
    padding: 12px;
    gap: 10px;
  }
  .msg.agent .bubble,
  .msg.user .bubble {
    padding: 12px 14px;
    font-size: 13px;
  }
  .footer-links-grid { grid-template-columns: 1fr; }
  .footer-bottom .footer-container { flex-direction: column; gap: 16px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .opportunity-card:hover,
  .deal-card:hover,
  .primary-button:hover,
  .support-trigger:hover {
    transform: none !important;
  }
}

/* --- 动巴科技 Premium UI Redesign from Stitch reference --- */
:root {
  --d8-bg: #0c0e17;
  --d8-surface: #11131c;
  --d8-surface-2: #191b24;
  --d8-surface-3: #1d1f29;
  --d8-line: rgba(184, 195, 255, 0.15);
  --d8-line-strong: rgba(184, 195, 255, 0.28);
  --d8-text: #e2e1ef;
  --d8-muted: #c4c5d9;
  --d8-blue: #2e5bff;
  --d8-blue-soft: #b8c3ff;
  --d8-violet: #571bc1;
  --d8-lilac: #d0bcff;
  --d8-peach: #ffb59b;
  --d8-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --d8-glow: 0 24px 70px rgba(46, 91, 255, 0.24);
}

html {
  scroll-behavior: smooth;
  background: var(--d8-bg);
}

body {
  background:
    linear-gradient(180deg, rgba(17, 19, 28, 0.96), rgba(12, 14, 23, 1) 44%, #080a12 100%);
  color: var(--d8-text);
  font-family: "Noto Sans SC", "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.16;
  z-index: -1;
}

h1, h2, h3, h4,
.brand-wordmark strong {
  font-family: "Hanken Grotesk", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
}

.brand-wordmark {
  gap: 6px;
}

.brand-wordmark strong {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 950;
  color: #ffffff;
}

.brand-wordmark-dynamic,
.sidebar .brand-wordmark-dynamic,
.corporate-footer .brand-wordmark-dynamic {
  color: #ffffff;
}

.brand-wordmark-eight,
.sidebar .brand-wordmark-eight,
.corporate-footer .brand-wordmark-eight {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(184, 195, 255, 0.35);
}

.brand-wordmark-subtitle {
  font-family: "JetBrains Mono", monospace;
  color: var(--d8-blue-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.premium-landing {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(46, 91, 255, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(87, 27, 193, 0.12), transparent 42%),
    var(--d8-bg);
}

.premium-nav,
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px clamp(24px, 5vw, 80px);
  background: rgba(12, 14, 23, 0.44);
  border-bottom: 1px solid rgba(184, 195, 255, 0.12);
  backdrop-filter: blur(26px);
  transition: background 240ms ease, border-color 240ms ease, padding 240ms ease;
}

.premium-nav.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(12, 14, 23, 0.84);
  border-bottom-color: rgba(184, 195, 255, 0.28);
}

.landing-nav-menu {
  justify-content: center;
  gap: 34px;
}

.landing-nav-link,
.nav-link-container > a {
  color: var(--d8-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.82;
  position: relative;
}

.landing-nav-link::after,
.nav-link-container > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: var(--d8-blue-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.landing-nav-link:hover,
.landing-nav-link:focus-visible,
.nav-link-container > a:hover {
  background: transparent;
  color: #ffffff;
  opacity: 1;
}

.landing-nav-link:hover::after,
.landing-nav-link:focus-visible::after,
.nav-link-container > a:hover::after {
  transform: scaleX(1);
}

.primary-button,
.ghost-button,
.logout-btn,
.text-link-button {
  font-family: "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.primary-button {
  border: 0;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--d8-blue), #6424d8);
  box-shadow: 0 16px 42px rgba(46, 91, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: translateX(-120%);
  transition: transform 600ms ease;
}

.primary-button:hover::after {
  transform: translateX(120%);
}

.primary-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(46, 91, 255, 0.36);
}

.ghost-button {
  border: 1px solid rgba(184,195,255,0.2);
  border-radius: 999px;
  color: var(--d8-text);
  background: rgba(255,255,255,0.035);
}

.ghost-button:hover {
  color: #ffffff;
  background: rgba(184,195,255,0.12);
  border-color: rgba(184,195,255,0.38);
}

.premium-hero {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  padding: clamp(84px, 13vw, 180px) clamp(24px, 6vw, 96px);
}

.premium-hero-inner {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
}

.premium-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.premium-chip,
.premium-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(184,195,255,0.24);
  background: rgba(184,195,255,0.08);
  color: var(--d8-blue-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.premium-hero h1 {
  margin: 20px 0 24px;
  color: #f7f7ff;
  max-width: 16ch;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 800;
  text-align: left;
}

.premium-hero h1::first-line {
  color: #ffffff;
}

.premium-hero-copy p {
  max-width: 720px;
  margin: 0 0 32px;
  padding: 22px 28px;
  border: 1px solid rgba(184,195,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  color: var(--d8-text);
  line-height: 1.8;
  font-size: clamp(16px, 1.25vw, 19px);
  text-align: left;
}

.premium-cta-row {
  gap: 16px;
}

.premium-command-panel,
.premium-glass-card,
.landing-demo-card,
.modal-card,
.metric-card,
.deal-card,
.thread-view,
.thread-item,
.rail-item,
.user-card,
.panel,
.lead-file-picker,
.help-section-card,
.faq-item,
.commercial-card,
.productivity-strip,
.savings-card,
.automation-card,
.roi-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(184,195,255,0.14);
  color: var(--d8-text);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.premium-command-panel {
  border-radius: 28px;
  min-height: 500px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--d8-shadow);
  overflow: hidden;
}

.command-panel-top,
.command-metrics {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.command-panel-top span,
.command-metrics span {
  color: var(--d8-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.command-panel-top strong,
.command-metrics strong {
  color: #ffffff;
  font-size: clamp(22px, 3vw, 34px);
}

.command-metrics article {
  min-width: 0;
}

.premium-marquee {
  padding: 36px 0 40px;
  border-top: 1px solid rgba(184,195,255,0.08);
  border-bottom: 1px solid rgba(184,195,255,0.08);
  background: rgba(8,10,18,0.72);
  overflow: hidden;
  text-align: center;
}

.premium-marquee > span {
  color: var(--d8-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.premium-marquee div {
  display: flex;
  gap: clamp(42px, 7vw, 96px);
  width: max-content;
  margin-top: 22px;
  animation: d8Marquee 28s linear infinite;
}

.premium-marquee strong {
  color: rgba(226,225,239,0.26);
  font-size: clamp(30px, 4vw, 52px);
  white-space: nowrap;
}

.premium-section,
.premium-consult-section {
  padding: clamp(86px, 10vw, 148px) clamp(24px, 5vw, 76px);
  max-width: 1440px;
  margin: 0 auto;
}

.section-title {
  max-width: 860px;
}

.section-title h2,
.premium-stat-section h2 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 74px);
  line-height: 1.12;
  font-weight: 700;
  text-align: left;
}

.section-title p {
  color: var(--d8-muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.8;
  text-align: left;
}

.premium-feature-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 24px;
  margin-top: 48px;
}

.premium-glass-card {
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}

.premium-glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(184,195,255,0.36);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--d8-glow);
}

.commercial-card,
.productivity-strip,
.savings-card,
.automation-card,
.roi-card {
  border-radius: 18px;
  color: var(--d8-text);
}

.commercial-card span,
.productivity-strip span,
.savings-card span,
.automation-card strong,
.roi-card span {
  color: var(--d8-blue-soft);
}

.commercial-card strong,
.productivity-strip strong,
.savings-card strong,
.roi-card strong {
  color: #ffffff;
}

.commercial-card p,
.productivity-strip p,
.savings-card p,
.automation-card p,
.roi-card p {
  color: var(--d8-muted);
}

.premium-glass-card h3 {
  color: #ffffff;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
  text-align: left;
  margin: 12px 0 12px;
}

.premium-glass-card p {
  color: var(--d8-muted);
  line-height: 1.75;
  margin: 0 0 24px;
}

.premium-local-visual {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 10px;
  border: 1px solid rgba(184,195,255,0.12);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 195, 255, 0.34), transparent 22%),
    radial-gradient(circle at 82% 24%, rgba(208, 188, 255, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(46, 91, 255, 0.24), rgba(8, 10, 18, 0.84));
  transition: transform 800ms ease, border-color 240ms ease;
}

.premium-glass-card:hover .premium-local-visual {
  transform: scale(1.045);
  border-color: rgba(184,195,255,0.32);
}

.premium-local-visual::before,
.premium-local-visual::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  transform: rotate(18deg);
  animation: d8PanelSpin 26s linear infinite;
}

.premium-local-visual::after {
  inset: 28%;
  border-color: rgba(184,195,255,0.22);
  transform: rotate(-28deg);
  animation-duration: 32s;
  animation-direction: reverse;
}

.premium-local-visual i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--d8-blue-soft);
  box-shadow: 0 0 24px rgba(184,195,255,0.74);
}

.visual-flow i:nth-child(1) { left: 18%; top: 28%; }
.visual-flow i:nth-child(2) { left: 38%; top: 58%; }
.visual-flow i:nth-child(3) { left: 58%; top: 34%; }
.visual-flow i:nth-child(4) { left: 74%; top: 66%; }
.visual-flow i:nth-child(5) { left: 28%; top: 78%; }

.visual-signal {
  height: 220px;
  background:
    linear-gradient(90deg, rgba(184,195,255,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(184,195,255,0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(208,188,255,0.28), transparent 34%),
    rgba(14, 17, 30, 0.88);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.visual-signal i {
  width: 42%;
  height: 2px;
  border-radius: 0;
  transform-origin: left center;
}

.visual-signal i:nth-child(1) { left: 18%; top: 32%; transform: rotate(8deg); }
.visual-signal i:nth-child(2) { left: 20%; top: 50%; transform: rotate(-10deg); }
.visual-signal i:nth-child(3) { left: 24%; top: 68%; transform: rotate(12deg); }
.visual-signal i:nth-child(4) { right: 18%; top: 42%; width: 14px; height: 14px; }

.visual-shield {
  height: 160px;
  background:
    radial-gradient(circle at 50% 45%, rgba(46,91,255,0.36), transparent 34%),
    linear-gradient(135deg, rgba(33, 225, 170, 0.12), rgba(87, 27, 193, 0.22)),
    rgba(8,10,18,0.9);
}

.visual-shield i {
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(184,195,255,0.32);
  background: transparent;
  border-radius: 18px 18px 28px 28px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.visual-shield i:nth-child(2) {
  width: 44px;
  height: 44px;
  border-color: rgba(33,225,170,0.38);
}

.visual-shield i:nth-child(3) {
  width: 12px;
  height: 12px;
  background: var(--d8-blue-soft);
  border: 0;
}

.premium-feature-large {
  grid-row: span 2;
}

.premium-feature-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
}

.premium-icon {
  color: var(--d8-blue-soft);
  font-size: 28px;
}

.premium-icon.violet { color: var(--d8-lilac); }
.premium-icon.amber { color: var(--d8-peach); }

.premium-mini-network {
  height: 170px;
  border-radius: 12px;
  background: rgba(184,195,255,0.08);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.premium-mini-network::before,
.premium-mini-network::after {
  content: "";
  position: absolute;
  inset: 30%;
  border: 1px solid rgba(184,195,255,0.24);
  transform: rotate(45deg);
}

.premium-mini-network i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--d8-blue-soft);
  box-shadow: 0 0 24px rgba(184,195,255,0.6);
}

.premium-demo-section {
  margin: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(12,14,23,0), rgba(46,91,255,0.08) 50%, rgba(12,14,23,0));
}

.premium-stat-section {
  padding: clamp(84px, 10vw, 148px) clamp(24px, 6vw, 96px);
  text-align: center;
  max-width: 1180px;
  margin: 0 auto;
}

.premium-stat-section h2 {
  text-align: center;
  margin: 0 auto 54px;
}

.premium-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  text-align: left;
}

.premium-stat-grid article {
  padding-left: 22px;
  border-left: 1px solid rgba(184,195,255,0.18);
}

.premium-stat-grid strong {
  display: block;
  color: var(--d8-blue-soft);
  font-size: clamp(36px, 4vw, 58px);
  margin-bottom: 10px;
}

.premium-stat-grid span {
  display: block;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.premium-stat-grid p {
  color: var(--d8-muted);
  line-height: 1.7;
}

.premium-consult-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 42px;
}

.premium-consult-trust {
  display: grid;
  gap: 14px;
}

.consult-proof-stack .premium-glass-card {
  padding: 22px;
  border-left: 4px solid var(--d8-public-orange);
}

.consult-proof-stack .premium-glass-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3eb;
  color: var(--d8-public-orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.consult-proof-stack .premium-glass-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--d8-public-text);
  font-size: 19px;
  line-height: 1.35;
}

.consult-proof-stack .premium-glass-card p {
  color: var(--d8-public-muted);
  font-size: 15px;
  line-height: 1.7;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.proof-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,195,255,0.16);
  border-radius: 24px;
  padding: 26px;
  color: var(--d8-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.proof-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--d8-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-card strong {
  display: block;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.2;
}

.proof-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(221, 227, 255, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

.outcome-proof-grid,
.role-operating-grid,
.playbook-grid,
.onboarding-os-grid,
.scale-gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.outcome-proof-card,
.role-operating-card,
.playbook-card,
.onboarding-step-card,
.scale-gate-card {
  position: relative;
  min-height: 180px;
  border: 1px solid rgba(184, 195, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  padding: 22px;
  color: var(--d8-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 60px rgba(0, 0, 0, 0.16);
}

.outcome-proof-card span,
.role-operating-card span,
.playbook-card span,
.onboarding-step-card span,
.scale-gate-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--d8-blue-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.outcome-proof-card strong,
.role-operating-card strong,
.playbook-card strong,
.onboarding-step-card strong,
.scale-gate-card strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.22;
}

.outcome-proof-card p,
.role-operating-card p,
.playbook-card p,
.onboarding-step-card p,
.scale-gate-card p {
  margin: 0;
  color: rgba(221, 227, 255, 0.82);
  line-height: 1.65;
  text-align: left;
}

.playbook-card p + p {
  margin-top: 10px;
}

.scale-gate-card small {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(184, 195, 255, 0.14);
  color: rgba(255, 214, 154, 0.92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.workstation-main .role-operating-grid,
.workstation-main .playbook-grid,
.panel .role-operating-grid,
.panel .playbook-grid {
  margin-top: 18px;
}

.premium-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
}

.plan-card {
  align-items: flex-start;
  text-align: left;
}

.premium-plan-grid .plan-card {
  display: flex;
  min-height: 100%;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--d8-public-line);
  color: var(--d8-public-text);
  box-shadow: var(--d8-public-shadow);
}

.premium-plan-grid .plan-card:hover {
  border-color: var(--d8-public-orange);
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
}

.plan-card h3,
.plan-card p {
  text-align: left;
}

.premium-plan-grid .plan-card h3 {
  margin: 0;
  color: var(--d8-public-text);
  font-size: 26px;
}

.plan-card-head {
  display: grid;
  gap: 8px;
  width: 100%;
}

.plan-card-head span {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f6fb;
  color: var(--d8-public-muted);
  font-size: 12px;
  font-weight: 900;
}

.premium-plan-card:nth-child(2) {
  border-color: rgba(216, 91, 31, 0.45);
  box-shadow: 0 18px 46px rgba(216, 91, 31, 0.13);
}

.premium-plan-card:nth-child(2) .plan-card-head span {
  background: #fff3eb;
  color: var(--d8-public-orange-dark);
}

.premium-plan-grid .plan-card p {
  color: var(--d8-public-muted);
}

.plan-price {
  color: var(--d8-public-orange-dark);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.plan-desc {
  min-height: 54px;
  margin: 14px 0 4px;
  font-weight: 700;
}

.plan-fit-block {
  width: 100%;
  padding: 14px 0;
  border-top: 1px solid var(--d8-public-line);
}

.plan-fit-block strong {
  display: block;
  margin-bottom: 6px;
  color: var(--d8-public-text);
  font-size: 14px;
}

.plan-fit-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.plan-module-list,
.plan-capability-list {
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.plan-module-list li,
.plan-capability-list li {
  min-width: 0;
  border-radius: 8px;
  line-height: 1.55;
}

.plan-module-list li {
  padding: 8px 10px;
  background: #f6f8fb;
  color: var(--d8-public-text);
  font-size: 13px;
  font-weight: 800;
}

.plan-capability-list li {
  position: relative;
  padding-left: 18px;
  color: var(--d8-public-muted);
  font-size: 14px;
}

.plan-capability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--d8-public-orange);
}

.premium-plan-card .plan-cta-button {
  width: 100%;
  margin-top: auto;
}

.corporate-footer {
  margin-top: 0;
  padding-top: 92px;
  background: #080a12;
  border-top: 1px solid rgba(184,195,255,0.12);
  color: var(--d8-text);
}

.footer-container {
  max-width: 1440px;
}

.footer-brand-col p,
.link-col a {
  color: var(--d8-muted);
}

.link-col h3,
.social-row span {
  color: var(--d8-blue-soft);
}

.app-shell {
  grid-template-columns: 318px 1fr;
  background: var(--d8-bg);
  color: var(--d8-text);
}

.sidebar {
  background: rgba(8,10,18,0.88);
  border-right: 1px solid rgba(184,195,255,0.14);
  color: var(--d8-text);
}

.sidebar .brand-wordmark-subtitle {
  color: var(--d8-blue-soft);
}

.nav-item {
  color: var(--d8-muted);
  border-radius: 0;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(184,195,255,0.08);
}

.nav-item.active {
  color: #ffffff;
  background: rgba(46,91,255,0.22);
  border-left-color: var(--d8-blue-soft);
}

.workspace {
  background: linear-gradient(180deg, #11131c, #0c0e17);
  min-height: 100vh;
}

.workstation,
.page-container {
  color: var(--d8-text);
}

.workstation-header {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(184,195,255,0.12);
}

.workstation-header h1,
.page-header h1 {
  color: #ffffff;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.08;
  text-align: left;
}

.workstation-tabs {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,195,255,0.14);
}

.workstation-tabs button {
  color: var(--d8-muted);
  border-radius: 999px;
}

.workstation-tabs button.active {
  background: var(--d8-blue);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(46,91,255,0.28);
}

.workstation-content {
  grid-template-columns: minmax(230px, 280px) 1fr;
}

.workstation-rail h2,
.landing-kicker,
.metric-card span {
  color: var(--d8-blue-soft);
  background: transparent;
  letter-spacing: 0.06em;
}

.rail-item,
.deal-card,
.thread-item,
.thread-view,
.metric-card {
  border-radius: 24px;
}

.rail-item strong,
.deal-header strong,
.metric-card strong,
.thread-view h3,
.page-header p {
  color: #ffffff;
}

.rail-item span,
.deal-body p,
.thread-item span,
.page-header p,
.metric-card span {
  color: var(--d8-muted);
}

.tag {
  background: rgba(184,195,255,0.1);
  color: var(--d8-blue-soft);
}

.deal-body .value {
  color: var(--d8-peach);
}

.thread-item.active,
.msg-bubble.customer {
  background: linear-gradient(135deg, rgba(46,91,255,0.82), rgba(87,27,193,0.72));
  color: #ffffff;
  border-color: rgba(184,195,255,0.28);
}

.msg-bubble.ai {
  background: rgba(184,195,255,0.08);
  color: var(--d8-text);
}

.thread-reply-input,
.field input,
.field textarea,
.field select,
.support-window footer input {
  background: rgba(255,255,255,0.055);
  color: var(--d8-text);
  border: 1px solid rgba(184,195,255,0.18);
}

.thread-reply-input::placeholder,
.field input::placeholder,
.support-window footer input::placeholder {
  color: rgba(196,197,217,0.58);
}

.auth-route-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(46,91,255,0.13), transparent 34%),
    linear-gradient(135deg, rgba(12,14,23,1), rgba(17,19,28,1) 50%, rgba(25,18,52,1));
}

.auth-route-shell .landing-section {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(360px, 560px);
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 72px;
}

.auth-route-shell .section-title {
  align-items: center;
  text-align: center;
  max-width: 560px;
}

.auth-route-shell .section-title::before {
  content: "动巴科技";
  display: block;
  color: #ffffff;
  font-family: "Hanken Grotesk", "Noto Sans SC", system-ui, sans-serif;
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 28px;
}

.auth-route-shell .section-title .landing-kicker {
  color: var(--d8-blue-soft);
}

.auth-route-shell .section-title h1 {
  font-size: 0;
  line-height: 1.18;
}

.auth-route-shell .section-title h1,
.auth-route-shell .section-title p,
.auth-route-shell .section-title .landing-kicker {
  display: none;
}

.auth-route-shell .auth-metric-grid {
  display: none;
}

.auth-route-shell .modal-overlay {
  position: static;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  min-height: auto;
}

.auth-route-shell .modal-card {
  width: min(100%, 520px);
  margin: 0;
  border-radius: 28px;
  padding: 44px;
  box-shadow: var(--d8-shadow);
}

.modal-card h2 {
  color: #ffffff;
  font-size: 44px;
  margin-bottom: 28px;
}

.field label,
.inline-field-help,
.modal-footer,
.modal-footer span {
  color: var(--d8-muted);
}

.modal-footer a,
.text-link-button {
  color: var(--d8-blue-soft);
}

.support-trigger {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--d8-blue), #6424d8);
  color: #ffffff;
  border: 0;
  box-shadow: var(--d8-glow);
}

.support-window {
  background: rgba(17,19,28,0.94);
  border: 1px solid rgba(184,195,255,0.18);
  color: var(--d8-text);
  backdrop-filter: blur(22px);
}

.support-window header,
.support-window footer {
  background: rgba(255,255,255,0.03);
  border-color: rgba(184,195,255,0.12);
}

.support-body {
  background: rgba(8,10,18,0.72);
}

.msg.agent .bubble {
  background: rgba(184,195,255,0.1);
  color: var(--d8-text);
}

.msg.user .bubble {
  background: var(--d8-blue);
  color: #ffffff;
}

.premium-reveal,
.premium-glass-card,
.metric-card,
.deal-card,
.thread-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 850ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

@supports (animation-timeline: view()) {
  .premium-reveal,
  .premium-glass-card,
  .metric-card,
  .deal-card,
  .thread-view {
    animation: d8Rise both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@keyframes d8PanelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes d8Marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes d8Rise {
  from {
    opacity: 0.56;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .premium-hero-inner,
  .premium-feature-mosaic,
  .premium-consult-layout,
  .proof-grid,
  .auth-route-shell .landing-section {
    grid-template-columns: 1fr;
  }

  .premium-feature-large {
    grid-row: auto;
  }

  .premium-feature-wide {
    grid-template-columns: 1fr;
  }

  .premium-plan-grid,
  .premium-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    grid-template-columns: 1fr;
    padding: 14px 16px;
    gap: 12px;
  }

  .landing-nav-menu {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding: 4px 0 2px;
    justify-content: flex-start;
    gap: 18px;
  }

  .landing-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .landing-actions {
    position: absolute;
    top: 18px;
    right: 16px;
    width: auto;
    justify-content: flex-end;
  }

  .landing-actions .ghost-button {
    display: none;
  }

  .landing-actions .primary-button {
    width: auto;
    min-width: 96px;
    padding: 11px 14px;
  }

  .premium-hero {
    min-height: auto;
    padding: 56px 20px 76px;
  }

  .premium-hero-inner {
    gap: 30px;
  }

  .premium-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.1;
    letter-spacing: 0;
  }

  .premium-hero-copy p {
    padding: 18px 20px;
  }

  .premium-cta-row {
    padding-right: 74px;
  }

  .hero-command-wall {
    display: none;
  }

  .premium-command-panel {
    min-height: 380px;
  }

  .command-metrics {
    flex-direction: column;
  }

  .premium-feature-mosaic,
  .premium-consult-layout,
  .premium-plan-grid {
    gap: 16px;
  }

  .premium-glass-card,
  .auth-route-shell .modal-card {
    padding: 24px;
  }

  .corporate-footer {
    padding-top: 64px;
  }

  .support-trigger {
    width: 64px;
    height: 64px;
    bottom: 18px;
    right: 16px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-reveal,
  .premium-glass-card,
  .metric-card,
  .deal-card,
  .thread-view {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Competitor-informed public UI pass: clean B2B sales-engagement surface. */
:root {
  --d8-public-bg: #f6efe7;
  --d8-public-surface: #ffffff;
  --d8-public-surface-soft: #fffaf3;
  --d8-public-text: #171717;
  --d8-public-muted: #4c443b;
  --d8-public-line: #ded8cc;
  --d8-public-strong-line: #cfc6b8;
  --d8-public-orange: #d85b1f;
  --d8-public-orange-dark: #963713;
  --d8-public-teal: #0f766e;
  --d8-public-blue: #1f4f7a;
  --d8-public-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

body {
  font-family: var(--d8-font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

.premium-landing,
.landing-shell.premium-landing {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(247,244,238,0.94) 42%, #f0ebe1 100%),
    var(--d8-public-bg);
  color: var(--d8-public-text);
}

.premium-landing * {
  letter-spacing: 0;
}

.premium-landing .brand-wordmark strong,
.premium-landing .brand-wordmark-dynamic,
.premium-landing .brand-wordmark-eight {
  color: var(--d8-public-text);
  text-shadow: none;
}

.premium-landing .brand-wordmark strong {
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 800;
}

.premium-landing .brand-wordmark-subtitle {
  color: var(--d8-public-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.premium-landing .premium-nav,
.premium-landing .landing-nav {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  background: rgba(247,244,238,0.92);
  border-bottom: 1px solid var(--d8-public-line);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.04);
}

.premium-landing .premium-nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--d8-public-strong-line);
}

.premium-landing .landing-nav-menu {
  gap: 26px;
}

.premium-landing .landing-nav-link,
.premium-landing .nav-link-container > a {
  color: var(--d8-public-muted);
  font-size: 15px;
  font-weight: 700;
  opacity: 1;
}

.premium-landing .landing-nav-link:hover,
.premium-landing .landing-nav-link:focus-visible,
.premium-landing .nav-link-container > a:hover {
  color: var(--d8-public-text);
}

.premium-landing .landing-nav-link::after,
.premium-landing .nav-link-container > a::after {
  background: var(--d8-public-orange);
  height: 2px;
}

.premium-landing .primary-button,
.premium-landing .ghost-button {
  min-height: 46px;
  border-radius: 6px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: none;
}

.premium-landing .primary-button {
  background: var(--d8-public-orange);
  color: #ffffff !important;
  border: 1px solid var(--d8-public-orange);
}

.premium-landing .primary-button:hover {
  background: var(--d8-public-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(216, 91, 31, 0.18);
}

.premium-landing .primary-button::after {
  display: none;
}

.premium-landing .ghost-button {
  background: #ffffff;
  color: var(--d8-public-text);
  border: 1px solid var(--d8-public-strong-line);
}

.premium-landing .ghost-button:hover {
  background: #f3efe7;
  color: var(--d8-public-text);
  border-color: var(--d8-public-text);
  transform: translateY(-2px);
}

.premium-hero {
  min-height: auto;
  padding: clamp(78px, 10vw, 128px) clamp(22px, 5vw, 80px) 72px;
}

.premium-hero-inner {
  width: min(1240px, 100%);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(36px, 6vw, 78px);
}

.premium-chip,
.premium-label,
.landing-kicker {
  border-radius: 999px;
  border: 1px solid rgba(216, 91, 31, 0.22);
  background: #fff3eb;
  color: var(--d8-public-orange-dark);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

.premium-hero h1 {
  max-width: 18ch;
  margin: 18px 0 22px;
  color: var(--d8-public-text);
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.08;
  font-weight: 850;
  text-wrap: balance;
}

.premium-hero h1::first-line {
  color: var(--d8-public-text);
}

.premium-hero-copy p {
  max-width: 760px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--d8-public-muted);
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.85;
}

.premium-command-panel,
.premium-glass-card,
.landing-demo-card,
.proof-card,
.outcome-proof-card,
.role-operating-card,
.playbook-card,
.onboarding-step-card,
.scale-gate-card,
.premium-plan-grid .plan-card {
  background: var(--d8-public-surface);
  border: 1px solid var(--d8-public-line);
  border-radius: 8px;
  color: var(--d8-public-text);
  box-shadow: var(--d8-public-shadow);
  backdrop-filter: none;
}

.premium-glass-card:hover,
.premium-plan-grid .plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--d8-public-orange);
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
}

.premium-command-panel {
  min-height: 520px;
  padding: 26px;
}

.command-panel-top span,
.command-metrics span,
.proof-card span,
.outcome-proof-card span,
.role-operating-card span,
.playbook-card span,
.onboarding-step-card span,
.scale-gate-card span {
  color: var(--d8-public-muted);
  font-family: inherit;
  font-weight: 800;
  text-transform: none;
}

.command-panel-top strong,
.command-metrics strong,
.proof-card strong,
.outcome-proof-card strong,
.role-operating-card strong,
.playbook-card strong,
.onboarding-step-card strong,
.scale-gate-card strong,
.premium-glass-card h3,
.premium-plan-grid .plan-card h3 {
  color: var(--d8-public-text);
}

.hero-product-preview {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.preview-toolbar,
.preview-thread,
.preview-pipeline,
.preview-grid article {
  border: 1px solid var(--d8-public-line);
  border-radius: 8px;
  background: var(--d8-public-surface-soft);
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.preview-toolbar span,
.preview-thread span,
.preview-pipeline span,
.preview-grid span {
  color: var(--d8-public-muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-toolbar strong {
  color: var(--d8-public-teal);
  font-size: 14px;
}

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

.preview-grid article {
  padding: 18px;
}

.preview-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--d8-public-text);
  font-size: 28px;
  line-height: 1;
}

.preview-thread {
  padding: 18px;
}

.preview-thread strong {
  display: block;
  margin: 8px 0;
  color: var(--d8-public-text);
  font-size: 18px;
  line-height: 1.35;
}

.preview-thread p {
  margin: 0;
  color: var(--d8-public-muted);
  font-size: 15px;
}

.preview-pipeline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
}

.preview-pipeline i {
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--d8-public-orange);
}

.premium-marquee {
  background: #ffffff;
  border-color: var(--d8-public-line);
}

.premium-marquee > span,
.premium-marquee strong {
  color: var(--d8-public-muted);
}

.premium-marquee strong {
  font-size: clamp(22px, 3vw, 38px);
  opacity: 0.55;
}

.premium-section,
.premium-consult-section {
  padding: clamp(72px, 8vw, 112px) clamp(22px, 5vw, 72px);
}

.section-title h2,
.premium-stat-section h2 {
  color: var(--d8-public-text);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.16;
  font-weight: 820;
  text-wrap: balance;
}

.section-title p,
.premium-glass-card p,
.commercial-card p,
.productivity-strip p,
.savings-card p,
.automation-card p,
.roi-card p,
.proof-list,
.outcome-proof-card p,
.role-operating-card p,
.playbook-card p,
.onboarding-step-card p,
.scale-gate-card p,
.premium-plan-grid .plan-card p {
  color: var(--d8-public-muted);
}

.premium-feature-mosaic {
  grid-auto-rows: minmax(220px, auto);
}

.premium-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff3eb;
  color: var(--d8-public-orange-dark);
  font-size: 14px;
  font-weight: 900;
}

.premium-icon.violet {
  color: var(--d8-public-blue);
  background: #eaf2f8;
}

.premium-icon.amber {
  color: var(--d8-public-teal);
  background: #e6f4f1;
}

.premium-local-visual,
.premium-mini-network {
  border-radius: 8px;
  border-color: var(--d8-public-line);
  background:
    linear-gradient(90deg, rgba(31,79,122,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31,79,122,0.08) 1px, transparent 1px),
    #f8f6f0;
  background-size: 32px 32px;
}

.premium-local-visual::before,
.premium-local-visual::after,
.premium-mini-network::before,
.premium-mini-network::after {
  border-color: rgba(31, 79, 122, 0.16);
}

.premium-local-visual i,
.premium-mini-network i {
  background: var(--d8-public-orange);
  box-shadow: none;
}

.commercial-card,
.productivity-strip,
.savings-card,
.automation-card,
.roi-card {
  background: #ffffff;
  border: 1px solid var(--d8-public-line);
  border-radius: 8px;
}

.commercial-card span,
.productivity-strip span,
.savings-card span,
.automation-card strong,
.roi-card span,
.plan-price {
  color: var(--d8-public-orange-dark);
}

.commercial-card strong,
.productivity-strip strong,
.savings-card strong,
.roi-card strong {
  color: var(--d8-public-text);
}

.premium-demo-section {
  background: #111827;
  color: #ffffff;
  margin: 0;
}

.landing-demo-section .section-title h2,
.section-on-dark h2,
.premium-demo-section .section-title h2 {
  color: #ffffff;
}

.landing-demo-section .section-title p,
.section-on-dark p,
.premium-demo-section .section-title p {
  color: rgba(255,255,255,0.78);
}

.landing-demo-card {
  background: #ffffff;
  color: var(--d8-public-text);
}

.premium-stat-section {
  max-width: 1240px;
}

.premium-stat-grid article {
  padding: 24px;
  border: 1px solid var(--d8-public-line);
  border-left: 4px solid var(--d8-public-orange);
  border-radius: 8px;
  background: #ffffff;
}

.premium-stat-grid strong {
  color: var(--d8-public-text);
  font-size: clamp(28px, 3.2vw, 42px);
}

.premium-stat-grid span {
  color: var(--d8-public-orange-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
}

.premium-stat-grid p {
  color: var(--d8-public-muted);
}

.premium-plan-grid .plan-card {
  padding: 28px;
}

.plan-price {
  font-size: clamp(34px, 4vw, 48px);
}

.corporate-footer {
  background: #111827;
  border-top: 0;
}

@supports (animation-timeline: view()) {
  .premium-landing .premium-reveal,
  .premium-landing .premium-glass-card {
    animation: none;
  }
}

@media (max-width: 760px) {
  .premium-landing .landing-actions {
    position: static;
    justify-content: flex-start;
  }

  .premium-landing .landing-actions .primary-button {
    width: 100%;
  }

  .premium-hero {
    padding: 44px 20px 58px;
  }

  .premium-hero h1 {
    max-width: 14ch;
    font-size: clamp(30px, 8.4vw, 36px);
    line-height: 1.14;
  }

  .premium-hero-copy p {
    font-size: 16px;
    line-height: 1.72;
    margin-bottom: 22px;
  }

  .premium-cta-row {
    padding-right: 0;
  }

  .premium-command-panel {
    min-height: auto;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }
}

/* Product-wide workstation/admin/auth UI pass. */
:root {
  --d8-cream-page: #f6efe7;
  --d8-cream-surface: #fffaf3;
  --d8-cream-surface-strong: #ffffff;
  --d8-cream-text: #171717;
  --d8-cream-muted: #4c443b;
  --d8-cream-subtle: #756b60;
  --d8-cream-line: #e2d7c8;
  --d8-cream-line-strong: #cbbba8;
  --d8-font-display: "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, -apple-system, sans-serif;
  --d8-font-body: "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, -apple-system, sans-serif;
  --d8-app-bg: #f5f7fb;
  --d8-app-rail: #ffffff;
  --d8-app-surface: #ffffff;
  --d8-app-surface-soft: #f8fafc;
  --d8-app-text: #111827;
  --d8-app-muted: #526071;
  --d8-app-subtle: #6b7280;
  --d8-app-line: #d9e0ea;
  --d8-app-line-strong: #bfcbda;
  --d8-app-primary: #17324d;
  --d8-app-primary-soft: #e8f0f8;
  --d8-app-accent: #d85b1f;
  --d8-app-accent-soft: #fff1e8;
  --d8-app-success: #0f766e;
  --d8-app-danger: #b42318;
  --d8-app-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.app-shell,
.auth-route-shell {
  color: var(--d8-app-text);
  font-family: var(--d8-font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--d8-app-bg);
}

.app-shell *,
.auth-route-shell * {
  letter-spacing: 0;
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell h4,
.auth-route-shell h1,
.auth-route-shell h2,
.auth-route-shell h3,
.auth-route-shell h4 {
  color: var(--d8-app-text);
  line-height: 1.16;
  font-weight: 800;
  text-align: left;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--d8-app-rail);
  border-right: 1px solid var(--d8-app-line);
  color: var(--d8-app-text);
  padding: 28px 18px 20px;
  box-shadow: 8px 0 34px rgba(15, 23, 42, 0.04);
}

.sidebar .brand {
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--d8-app-line);
}

.sidebar .brand-wordmark strong,
.sidebar .brand-wordmark-dynamic,
.sidebar .brand-wordmark-eight {
  color: var(--d8-app-text);
  text-shadow: none;
}

.sidebar .brand-wordmark strong {
  font-size: 28px;
}

.sidebar .brand-wordmark-subtitle {
  color: var(--d8-app-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.nav-list-spaced {
  margin-top: 22px;
}

.nav-list {
  gap: 18px;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-group-label {
  padding: 0 12px;
  color: var(--d8-app-subtle);
  font-size: 12px;
  font-weight: 800;
}

.nav-group-stack {
  display: grid;
  gap: 4px;
}

.nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin: 0;
  border-radius: 6px;
  border-left: 3px solid transparent;
  color: var(--d8-app-muted);
  background: transparent;
  font-size: 15px;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--d8-app-primary);
  background: var(--d8-app-primary-soft);
  outline: none;
}

.nav-item.active {
  color: var(--d8-app-primary);
  background: var(--d8-app-primary-soft);
  border-left-color: var(--d8-app-accent);
}

.user-card {
  margin-top: 26px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--d8-app-line);
  background: var(--d8-app-surface-soft);
  box-shadow: none;
}

.user-info strong,
.user-info small {
  color: var(--d8-app-text);
}

.user-info span {
  color: var(--d8-app-muted);
}

.workspace {
  min-width: 0;
  background: var(--d8-app-bg);
}

.workstation,
.page-container {
  max-width: 1440px;
  padding: 36px clamp(20px, 3.4vw, 52px) 72px;
  color: var(--d8-app-text);
}

.page-container > header,
.workstation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--d8-app-line);
  flex-wrap: wrap;
}

.page-container > header p,
.workstation-header p,
.page-header p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--d8-app-muted);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
}

.workstation-header h1,
.page-container > header h1,
.page-header h1 {
  color: var(--d8-app-text);
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.1;
  font-weight: 850;
}

.app-shell .landing-kicker,
.auth-route-shell .landing-kicker {
  display: inline-flex;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(216, 91, 31, 0.2);
  background: var(--d8-app-accent-soft);
  color: var(--d8-app-accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: none;
}

.workstation-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid var(--d8-app-line);
  background: var(--d8-app-surface);
  box-shadow: none;
}

.workstation-tabs button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--d8-app-muted);
  font-size: 14px;
  font-weight: 800;
}

.workstation-tabs button.active {
  background: var(--d8-app-primary);
  color: #ffffff;
  box-shadow: none;
}

.workstation-content {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
}

.workstation-rail h2 {
  color: var(--d8-app-subtle);
  font-size: 12px;
  font-weight: 850;
  text-transform: none;
  margin-bottom: 12px;
}

.app-shell .panel,
.app-shell .metric-card,
.app-shell .deal-card,
.app-shell .thread-view,
.app-shell .thread-item,
.app-shell .rail-item,
.app-shell .mcp-card,
.app-shell .kb-card,
.app-shell .help-center-intro,
.app-shell .help-section-card,
.app-shell .help-fact,
.app-shell .help-block,
.app-shell .faq-item,
.app-shell .lead-import-panel,
.app-shell .lead-sidebar-panel,
.app-shell .lead-summary-card,
.app-shell .lead-preview-card,
.app-shell .lead-preview-item,
.app-shell .lead-run-card,
.app-shell .lead-batch-card,
.app-shell .role-operating-card,
.app-shell .playbook-card,
.app-shell .opportunity-card,
.app-shell .proof-card {
  background: var(--d8-app-surface);
  border: 1px solid var(--d8-app-line);
  border-radius: 8px;
  color: var(--d8-app-text);
  box-shadow: var(--d8-app-shadow);
  backdrop-filter: none;
}

.app-shell .panel {
  padding: 22px;
}

.app-shell .metric-card {
  padding: 22px;
  text-align: left;
  border-bottom: 0;
}

.app-shell .metric-card span,
.app-shell .mcp-card span,
.app-shell .lead-summary-card span,
.app-shell .lead-section-heading span,
.app-shell .help-fact span,
.app-shell .help-block h4 {
  color: var(--d8-app-subtle);
  font-size: 12px;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
}

.app-shell .metric-card strong,
.app-shell .mcp-card strong,
.app-shell .rail-item strong,
.app-shell .deal-header strong,
.app-shell .thread-view h3,
.app-shell .lead-summary-card strong,
.app-shell .lead-section-heading strong,
.app-shell .help-summary strong,
.app-shell .help-center-intro h2,
.app-shell .kb-card h3,
.app-shell .plan-card h3 {
  color: var(--d8-app-text);
}

.app-shell .metric-card strong {
  margin-top: 8px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
}

.app-shell p,
.app-shell li,
.app-shell .deal-body p,
.app-shell .thread-item span,
.app-shell .rail-item span,
.app-shell .help-summary p,
.app-shell .help-fact p,
.app-shell .help-block li,
.app-shell .package-help-block > p,
.app-shell .faq-item p,
.app-shell .lead-summary-card p,
.app-shell .lead-run-card p,
.app-shell .lead-run-card small,
.app-shell .lead-batch-card span,
.app-shell .admin-tech-watch-copy,
.app-shell .admin-tech-watch-meta {
  color: var(--d8-app-muted);
  font-weight: 500;
}

.analytics-grid,
.mcp-grid,
.kb-grid,
.deals-grid,
.lead-import-meta,
.lead-import-summary-grid,
.help-fact-grid,
.help-content-grid {
  gap: 16px;
}

.app-shell .deal-card,
.app-shell .opportunity-card.plan-card {
  padding: 22px;
  border-top: 3px solid var(--d8-app-accent);
}

.app-shell .deal-card:hover,
.app-shell .thread-item:hover,
.app-shell .lead-batch-card:hover,
.app-shell .opportunity-card:hover {
  transform: translateY(-2px);
  border-color: var(--d8-app-line-strong);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.app-shell .business-empty-state {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 260px;
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--d8-app-ink);
}

.app-shell .business-empty-state h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.app-shell .business-empty-state p {
  max-width: 620px;
  margin: 0;
  color: var(--d8-app-muted);
  line-height: 1.7;
}

.tag {
  border-radius: 999px;
  background: var(--d8-app-primary-soft);
  color: var(--d8-app-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.deal-body .value,
.plan-price,
.ok {
  color: var(--d8-app-success);
}

.err {
  color: var(--d8-app-danger);
}

.threads-layout {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
}

.thread-item {
  width: 100%;
  padding: 16px;
}

.thread-item.active,
.msg-bubble.customer,
.lead-batch-card.active {
  background: var(--d8-app-primary);
  color: #ffffff;
  border-color: var(--d8-app-primary);
}

.thread-item.active span,
.lead-batch-card.active span {
  color: rgba(255,255,255,0.78);
}

.thread-view header,
.thread-view footer {
  padding: 20px;
}

.messages {
  padding: 20px;
}

.msg-bubble {
  border-radius: 8px;
  line-height: 1.65;
}

.msg-bubble.ai {
  background: var(--d8-app-primary-soft);
  color: var(--d8-app-text);
}

.thread-reply-footer {
  gap: 10px;
}

.thread-reply-input,
.field input,
.field textarea,
.field select,
.admin-create-form input,
.admin-create-form select,
.admin-users-table select,
.support-window footer input {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid var(--d8-app-line-strong);
  background: #ffffff;
  color: var(--d8-app-text);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.thread-reply-input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus,
.admin-create-form input:focus,
.admin-create-form select:focus,
.admin-users-table select:focus,
.support-window footer input:focus,
.app-shell button:focus-visible,
.auth-route-shell button:focus-visible,
.support-window button:focus-visible {
  border-color: var(--d8-app-primary);
  box-shadow: 0 0 0 3px rgba(23, 50, 77, 0.14);
  outline: none;
}

.app-shell .primary-button,
.app-shell .ghost-button,
.app-shell .logout-btn,
.auth-route-shell .primary-button,
.auth-route-shell .ghost-button,
.auth-route-shell .text-link-button,
.support-window button,
.support-trigger {
  min-height: 44px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.app-shell .primary-button,
.auth-route-shell .primary-button,
.support-trigger {
  border: 1px solid var(--d8-app-accent);
  background: var(--d8-app-accent);
  color: #ffffff !important;
  box-shadow: none;
}

.app-shell .primary-button:hover,
.auth-route-shell .primary-button:hover,
.support-trigger:hover {
  transform: translateY(-1px);
  background: #b94717;
  border-color: #b94717;
  box-shadow: 0 12px 26px rgba(216, 91, 31, 0.18);
}

.app-shell .primary-button::after,
.auth-route-shell .primary-button::after {
  display: none;
}

.app-shell .ghost-button,
.auth-route-shell .ghost-button {
  border: 1px solid var(--d8-app-line-strong);
  background: #ffffff;
  color: var(--d8-app-primary);
}

.app-shell .ghost-button:hover,
.auth-route-shell .ghost-button:hover {
  background: var(--d8-app-primary-soft);
  border-color: var(--d8-app-primary);
  color: var(--d8-app-primary);
  transform: translateY(-1px);
}

.logout-btn,
.text-link-button {
  color: var(--d8-app-primary);
  background: transparent;
}

.lead-file-picker {
  min-height: 58px;
  border-radius: 8px;
  border-color: rgba(216, 91, 31, 0.36);
  background: var(--d8-app-accent-soft);
}

.lead-file-picker span {
  color: var(--d8-app-accent);
  font-size: 14px;
  text-transform: none;
}

.lead-import-banner {
  border-radius: 8px;
  background: var(--d8-app-accent-soft);
  border-color: rgba(216, 91, 31, 0.22);
  color: #7c2d12;
}

.lead-import-banner-dark {
  background: var(--d8-app-primary);
  border-color: var(--d8-app-primary);
  color: #ffffff;
}

.lead-empty {
  border-radius: 8px;
  background: var(--d8-app-surface-soft);
  border-color: var(--d8-app-line);
  color: var(--d8-app-muted);
}

.workflow-accordion {
  margin: 24px 0 0;
  gap: 12px;
}

.accordion-item {
  border-radius: 8px;
  border-color: var(--d8-app-line);
  box-shadow: var(--d8-app-shadow);
}

.accordion-header {
  min-height: 56px;
  padding: 16px 18px;
}

.accordion-content {
  color: var(--d8-app-muted);
}

.help-center-intro,
.help-section-card {
  border-radius: 8px;
}

.help-section-card summary {
  min-height: 64px;
  padding: 20px;
}

.help-summary strong {
  font-size: 20px;
  letter-spacing: 0;
}

.help-toggle {
  border-radius: 999px;
  background: var(--d8-app-primary-soft);
  color: var(--d8-app-primary);
  letter-spacing: 0;
  text-transform: none;
}

.help-content {
  padding: 0 20px 20px;
}

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

.admin-checkbox-row {
  color: var(--d8-app-text);
}

.admin-table-wrap {
  border-color: var(--d8-app-line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-users-table th,
.admin-users-table td {
  padding: 12px;
  border-bottom-color: var(--d8-app-line);
  color: var(--d8-app-text);
  font-size: 13px;
}

.admin-users-table thead th {
  background: var(--d8-app-primary);
  color: #ffffff;
  font-size: 13px;
}

.admin-users-table tbody tr:hover {
  background: var(--d8-app-primary-soft);
}

.danger-button,
.danger-button-strong {
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(180, 35, 24, 0.26);
  background: #fff4f2;
  color: var(--d8-app-danger);
  box-shadow: none;
}

.danger-button:hover,
.danger-button-strong:hover {
  background: #fee4e2;
}

.auth-route-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 91, 31, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(246, 239, 231, 0.98) 46%, #efe4d4 100%),
    var(--d8-cream-page);
  color: var(--d8-cream-text);
}

.auth-route-shell .landing-nav {
  background: rgba(255, 250, 243, 0.9);
  border-bottom: 1px solid var(--d8-cream-line);
  box-shadow: 0 12px 34px rgba(23, 18, 13, 0.06);
}

.auth-route-shell .brand-wordmark strong,
.auth-route-shell .brand-wordmark-dynamic,
.auth-route-shell .brand-wordmark-eight {
  color: var(--d8-cream-text);
  text-shadow: none;
}

.auth-route-shell .brand-wordmark strong {
  font-family: var(--d8-font-display);
  font-weight: 900;
}

.auth-route-shell .brand-wordmark-subtitle,
.auth-route-shell .landing-nav-link {
  color: var(--d8-cream-muted);
}

.auth-route-shell .landing-section {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 560px);
  align-items: center;
  justify-content: center;
  padding: 58px 20px 72px;
}

.auth-route-shell .section-title::before {
  content: "动巴科技";
  color: var(--d8-cream-text);
  font-family: var(--d8-font-display);
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 950;
  line-height: 0.95;
  margin-bottom: 18px;
}

.auth-route-shell .modal-card {
  width: min(100%, 500px);
  border-radius: 18px;
  padding: 34px;
  border: 1px solid var(--d8-cream-line);
  background: rgba(255, 250, 243, 0.94);
  color: var(--d8-cream-text);
  box-shadow: 0 24px 70px rgba(23, 18, 13, 0.12);
}

.auth-route-shell .modal-card h2 {
  color: var(--d8-cream-text);
  font-family: var(--d8-font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 950;
  letter-spacing: 0;
}

.auth-route-shell .field label,
.auth-route-shell .inline-field-help,
.auth-route-shell .modal-footer,
.auth-route-shell .modal-footer span {
  color: var(--d8-cream-text);
  font-weight: 800;
}

.auth-route-shell .inline-field-help,
.auth-route-shell .modal-footer span {
  color: var(--d8-cream-muted);
  font-weight: 650;
}

.auth-route-shell .field input,
.auth-route-shell .field textarea,
.auth-route-shell .field select {
  border-color: var(--d8-cream-line-strong);
  background: #ffffff;
  color: var(--d8-cream-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.auth-route-shell .field input::placeholder {
  color: #7c756d;
}

.field label,
.inline-field-help,
.modal-footer,
.modal-footer span {
  color: var(--d8-app-muted);
}

.modal-footer {
  align-items: flex-start;
}

.auth-route-shell .text-link-button {
  border: 1px solid var(--d8-cream-line-strong);
  background: #fffaf3;
  color: var(--d8-cream-text);
  box-shadow: 0 6px 18px rgba(23, 18, 13, 0.08);
}

.auth-route-shell .text-link-button:hover,
.auth-route-shell .text-link-button:focus-visible {
  background: var(--d8-cream-text);
  border-color: var(--d8-cream-text);
  color: #fffaf3;
  transform: translateY(-1px);
}

.support-trigger {
  right: 24px;
  bottom: 24px;
  width: auto;
  min-width: 112px;
  height: 52px;
  padding: 0 18px;
  border-radius: 999px;
}

.support-window {
  border: 1px solid var(--d8-app-line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--d8-app-text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  backdrop-filter: none;
}

.support-window header {
  background: var(--d8-app-primary);
  color: #ffffff;
  border-color: var(--d8-app-primary);
}

.support-window footer {
  background: #ffffff;
  border-color: var(--d8-app-line);
}

.support-body {
  background: var(--d8-app-bg);
}

.msg.agent .bubble,
.msg.user .bubble {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
  box-shadow: none;
}

.msg.agent .bubble {
  background: #ffffff;
  border: 1px solid var(--d8-app-line);
  color: var(--d8-app-text);
}

.msg.user .bubble {
  background: var(--d8-app-primary);
  color: #ffffff;
}

.support-feedback button {
  min-height: 34px;
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--d8-app-line);
  }

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

  .workstation-content,
  .threads-layout,
  .lead-import-layout,
  .admin-create-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workstation,
  .page-container {
    padding: 24px 16px 48px;
  }

  .page-container > header,
  .workstation-header {
    align-items: flex-start;
  }

  .workstation-header h1,
  .page-container > header h1,
  .page-header h1 {
    font-size: 32px;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .analytics-grid,
  .mcp-grid,
  .kb-grid,
  .lead-import-meta,
  .lead-import-summary-grid,
  .help-fact-grid,
  .help-content-grid {
    grid-template-columns: 1fr;
  }

  .thread-reply-footer {
    flex-direction: column;
  }

  .thread-reply-input,
  .thread-reply-footer .primary-button,
  .lead-import-actions .primary-button,
  .lead-import-actions .ghost-button,
  .lead-file-picker {
    width: 100%;
  }

  .support-trigger {
    right: 14px;
    bottom: 14px;
  }

  .support-window {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    height: min(620px, calc(100vh - 24px));
  }
}

/* MotionSites-inspired public polish: milky studio background, youthful tech typography, single-line 动巴科技 brand. */
:root {
  --d8-motion-cream: #f8f1e4;
  --d8-motion-cream-2: #fff8ec;
  --d8-motion-ink: #171410;
  --d8-motion-ink-soft: #2c261e;
  --d8-motion-muted: #63594c;
  --d8-motion-line: rgba(40, 34, 26, 0.13);
  --d8-motion-line-strong: rgba(40, 34, 26, 0.24);
  --d8-motion-orange: #e65f22;
  --d8-motion-blue: #2148ff;
  --d8-motion-lime: #c9ff4a;
  --d8-motion-shadow: 0 30px 90px rgba(36, 27, 16, 0.12);
  --d8-motion-font: "HarmonyOS Sans SC", "MiSans", "Alibaba PuHuiTi", "Noto Sans SC", "Microsoft YaHei UI", system-ui, -apple-system, sans-serif;
  --d8-type-hero: clamp(43px, 5.4vw, 74px);
  --d8-type-section: clamp(30px, 3.8vw, 52px);
  --d8-type-title: clamp(21px, 2vw, 29px);
  --d8-type-card: clamp(18px, 1.35vw, 22px);
  --d8-type-body: clamp(16px, 1vw, 18px);
  --d8-type-caption: 13px;
  --d8-leading-tight: 1.08;
  --d8-leading-title: 1.2;
  --d8-leading-body: 1.72;
}

body {
  color: var(--d8-motion-ink);
  font-family: var(--d8-motion-font);
  font-size: var(--d8-type-body);
  line-height: var(--d8-leading-body);
}

.premium-landing,
.landing-shell.premium-landing {
  background:
    radial-gradient(circle at 82% 8%, rgba(201, 255, 74, 0.35), transparent 24%),
    radial-gradient(circle at 8% 10%, rgba(230, 95, 34, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(23, 20, 16, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 20, 16, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf0 0%, var(--d8-motion-cream) 48%, #efe3cf 100%);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  color: var(--d8-motion-ink);
}

.premium-landing h1,
.premium-landing h2,
.premium-landing h3,
.auth-route-shell h1,
.auth-route-shell h2,
.auth-route-shell h3 {
  font-family: var(--d8-motion-font);
  color: var(--d8-motion-ink);
  letter-spacing: -0.035em;
}

.brand-wordmark,
.brand-wordmark strong,
.premium-landing .brand-wordmark strong,
.auth-route-shell .brand-wordmark strong,
.sidebar .brand-wordmark strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  line-height: 1;
}

.premium-landing .brand-wordmark strong,
.auth-route-shell .brand-wordmark strong,
.sidebar .brand-wordmark strong {
  color: var(--d8-motion-ink);
  font-family: var(--d8-motion-font);
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 950;
  letter-spacing: -0.055em;
}

.premium-landing .landing-nav,
.premium-landing .premium-nav,
.auth-route-shell .landing-nav {
  border-bottom: 1px solid var(--d8-motion-line);
  background: rgba(255, 248, 236, 0.82);
  backdrop-filter: blur(24px) saturate(135%);
  box-shadow: 0 14px 60px rgba(36, 27, 16, 0.08);
}

.premium-landing .landing-nav-menu {
  gap: 10px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.premium-landing .landing-nav-link,
.auth-route-shell .landing-nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--d8-motion-ink-soft);
  font-size: 15px;
  font-weight: 850;
}

.premium-landing .landing-nav-link:hover,
.premium-landing .landing-nav-link:focus-visible,
.auth-route-shell .landing-nav-link:hover,
.auth-route-shell .landing-nav-link:focus-visible {
  border-color: var(--d8-motion-line-strong);
  background: rgba(255, 255, 255, 0.7);
  color: var(--d8-motion-ink);
}

.premium-landing .landing-nav-link::after,
.auth-route-shell .landing-nav-link::after {
  display: none;
}

.premium-landing .primary-button,
.premium-landing .ghost-button,
.auth-route-shell .primary-button,
.auth-route-shell .ghost-button,
.auth-route-shell .text-link-button {
  border-radius: 999px;
  min-height: 48px;
  padding: 13px 20px;
  font-family: var(--d8-motion-font);
  font-size: 15px;
  font-weight: 950;
}

.premium-landing .primary-button,
.auth-route-shell .primary-button {
  border: 1px solid var(--d8-motion-ink);
  background: var(--d8-motion-ink);
  color: #fff8ec !important;
  box-shadow: 0 18px 45px rgba(23, 20, 16, 0.22);
}

.premium-landing .primary-button:hover,
.auth-route-shell .primary-button:hover {
  background: var(--d8-motion-orange);
  border-color: var(--d8-motion-orange);
  color: #ffffff !important;
  transform: translateY(-2px) rotate(-0.35deg);
}

.premium-landing .ghost-button,
.auth-route-shell .ghost-button,
.auth-route-shell .text-link-button {
  border: 1px solid var(--d8-motion-line-strong);
  background: rgba(255, 250, 240, 0.9);
  color: var(--d8-motion-ink);
}

.auth-route-shell .text-link-button:hover,
.auth-route-shell .text-link-button:focus-visible {
  border-color: var(--d8-motion-ink);
  background: var(--d8-motion-ink);
  color: #fff8ec;
}

.premium-hero {
  padding: clamp(86px, 11vw, 150px) clamp(22px, 5vw, 86px) 84px;
}

.premium-hero-inner {
  width: min(1320px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
}

.premium-chip,
.premium-label,
.landing-kicker {
  border: 1px solid var(--d8-motion-ink);
  background: var(--d8-motion-lime);
  color: var(--d8-motion-ink);
  box-shadow: 5px 5px 0 var(--d8-motion-ink);
}

.premium-hero h1 {
  max-width: 18ch;
  margin: 20px 0 22px;
  font-size: var(--d8-type-hero);
  line-height: var(--d8-leading-tight);
  font-weight: 930;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.premium-hero-copy p {
  max-width: 720px;
  color: var(--d8-motion-muted);
  font-size: var(--d8-type-body);
  line-height: var(--d8-leading-body);
  font-weight: 560;
}

.premium-command-panel,
.premium-glass-card,
.landing-demo-card,
.proof-card,
.outcome-proof-card,
.role-operating-card,
.playbook-card,
.onboarding-step-card,
.scale-gate-card,
.premium-plan-grid .plan-card {
  border: 1.5px solid var(--d8-motion-ink);
  border-radius: 24px;
  background: rgba(255, 248, 236, 0.88);
  color: var(--d8-motion-ink);
  box-shadow: 10px 10px 0 rgba(23, 20, 16, 0.92), var(--d8-motion-shadow);
}

.premium-command-panel {
  position: relative;
  overflow: hidden;
  transform: rotate(0.6deg);
}

.premium-command-panel::before {
  content: "";
  position: absolute;
  inset: -30% -18% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 72, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.preview-toolbar,
.preview-thread,
.preview-pipeline,
.preview-grid article {
  border: 1px solid var(--d8-motion-line-strong);
  border-radius: 18px;
  background: #fffdf8;
}

.preview-grid strong,
.preview-thread strong,
.command-panel-top strong,
.command-metrics strong,
.proof-card strong,
.outcome-proof-card strong,
.role-operating-card strong,
.playbook-card strong,
.onboarding-step-card strong,
.scale-gate-card strong {
  color: var(--d8-motion-ink);
  font-weight: 950;
}

.premium-marquee {
  border-block: 1.5px solid var(--d8-motion-ink);
  background: var(--d8-motion-ink);
}

.premium-marquee > span,
.premium-marquee strong {
  color: #fff8ec;
}

.premium-section,
.premium-consult-section {
  max-width: 1360px;
}

.section-title h2,
.premium-stat-section h2 {
  max-width: 920px;
  font-size: var(--d8-type-section);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-title p,
.premium-glass-card p,
.commercial-card p,
.productivity-strip p,
.savings-card p,
.automation-card p,
.roi-card p,
.outcome-proof-card p,
.role-operating-card p,
.playbook-card p,
.onboarding-step-card p,
.scale-gate-card p,
.premium-plan-grid .plan-card p {
  color: var(--d8-motion-muted);
  font-size: var(--d8-type-body);
  line-height: var(--d8-leading-body);
  font-weight: 540;
}

.premium-glass-card h3,
.commercial-card strong,
.productivity-strip strong,
.savings-card strong,
.automation-card strong,
.roi-card strong,
.proof-card strong,
.outcome-proof-card strong,
.role-operating-card strong,
.playbook-card strong,
.onboarding-step-card strong,
.scale-gate-card strong,
.premium-plan-grid .plan-card h3,
.preview-thread strong {
  font-size: var(--d8-type-title);
  line-height: var(--d8-leading-title);
  letter-spacing: -0.025em;
}

.preview-grid strong,
.command-panel-top strong,
.command-metrics strong,
.metric-card strong,
.premium-stat-grid strong {
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.premium-chip,
.premium-label,
.landing-kicker,
.preview-toolbar span,
.preview-thread span,
.preview-pipeline span,
.preview-grid span,
.command-panel-top span,
.command-metrics span,
.scale-gate-card span,
.plan-card-head span {
  font-size: var(--d8-type-caption);
  line-height: 1.35;
}

.scale-gate-card span,
.plan-card-head span,
.command-panel-top span,
.command-metrics span {
  color: var(--d8-motion-orange);
  font-weight: 950;
}

.premium-plan-grid {
  align-items: stretch;
}

.premium-plan-grid .plan-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  text-align: left;
}

.premium-plan-card:nth-child(2) {
  background: #171410;
  color: #fff8ec;
}

.premium-plan-card:nth-child(2) h3,
.premium-plan-card:nth-child(2) .plan-price,
.premium-plan-card:nth-child(2) .plan-fit-block strong {
  color: #fff8ec;
}

.premium-plan-card:nth-child(2) p,
.premium-plan-card:nth-child(2) li {
  color: rgba(255, 248, 236, 0.8);
}

.plan-price {
  color: var(--d8-motion-orange);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 930;
  letter-spacing: -0.04em;
}

.auth-route-shell {
  background:
    radial-gradient(circle at 82% 14%, rgba(201, 255, 74, 0.26), transparent 22%),
    linear-gradient(90deg, rgba(23, 20, 16, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 20, 16, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #fffaf0 0%, var(--d8-motion-cream) 58%, #eadbc5 100%);
  background-size: auto, 42px 42px, 42px 42px, auto;
  color: var(--d8-motion-ink);
}

.auth-route-shell .landing-section {
  grid-template-columns: minmax(0, 520px);
  padding: clamp(44px, 8vw, 86px) 20px 82px;
}

.auth-route-shell .section-title::before {
  color: var(--d8-motion-ink);
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 930;
  letter-spacing: -0.045em;
}

.auth-route-shell .modal-card {
  border: 1.5px solid var(--d8-motion-ink);
  border-radius: 26px;
  background: rgba(255, 248, 236, 0.92);
  box-shadow: 10px 10px 0 var(--d8-motion-ink), 0 30px 90px rgba(36, 27, 16, 0.14);
}

.auth-route-shell .field input,
.auth-route-shell .field textarea,
.auth-route-shell .field select {
  min-height: 56px;
  border: 1.5px solid var(--d8-motion-line-strong);
  border-radius: 18px;
  background: #fffdf8;
  color: var(--d8-motion-ink);
  font-size: 16px;
  font-weight: 700;
}

.premium-transparent-visual {
  position: relative;
  width: 100%;
  min-height: 210px;
  display: grid;
  place-items: center;
  margin-top: 22px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(33, 72, 255, 0.12), transparent 34%),
    radial-gradient(circle at 84% 28%, rgba(201, 255, 74, 0.2), transparent 32%),
    rgba(255, 253, 248, 0.66);
}

.premium-command-panel > .premium-transparent-visual {
  min-height: 178px;
  margin: 18px 0 4px;
  background: transparent;
}

.premium-feature-wide .premium-transparent-visual {
  margin-top: 0;
}

.premium-transparent-visual svg {
  width: min(100%, 520px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 38px rgba(23, 20, 16, 0.14));
}

.visual-blob {
  fill: rgba(255, 248, 236, 0.78);
  stroke: rgba(23, 20, 16, 0.18);
  stroke-width: 2;
}

.visual-blob.blue { fill: rgba(223, 232, 255, 0.72); }
.visual-blob.lime { fill: rgba(201, 255, 74, 0.32); }
.visual-blob.orange { fill: rgba(230, 95, 34, 0.17); }

.visual-panel,
.visual-card {
  fill: rgba(255, 253, 248, 0.86);
  stroke: rgba(23, 20, 16, 0.82);
  stroke-width: 3;
}

.visual-panel.side,
.visual-card.accent {
  fill: rgba(223, 232, 255, 0.82);
}

.visual-card.small {
  fill: rgba(255, 248, 236, 0.9);
  stroke-width: 2;
}

.visual-line,
.visual-route,
.visual-envelope,
.visual-envelope.large,
.visual-bolt,
.visual-check {
  fill: none;
  stroke: rgba(23, 20, 16, 0.86);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visual-envelope,
.visual-envelope.large {
  stroke-width: 5;
}

.visual-bolt {
  fill: rgba(201, 255, 74, 0.46);
}

.visual-shield-shape {
  fill: rgba(255, 253, 248, 0.88);
  stroke: rgba(23, 20, 16, 0.9);
  stroke-width: 4;
}

.visual-check {
  stroke: var(--d8-motion-orange);
  stroke-width: 12;
}

.visual-dot,
.visual-avatar {
  fill: #fff8ec;
  stroke: rgba(23, 20, 16, 0.88);
  stroke-width: 3;
}

.visual-dot.orange { fill: var(--d8-motion-orange); }
.visual-dot.blue { fill: var(--d8-motion-blue); }
.visual-dot.lime { fill: var(--d8-motion-lime); }
.visual-avatar { fill: rgba(223, 232, 255, 0.88); }
.visual-avatar.big { fill: rgba(201, 255, 74, 0.38); }

.visual-spark {
  fill: var(--d8-motion-lime);
  stroke: rgba(23, 20, 16, 0.9);
  stroke-width: 3;
  transform-origin: center;
  animation: d8VisualFloat 5s ease-in-out infinite;
}

.premium-glass-card:hover .premium-transparent-visual svg,
.premium-command-panel:hover .premium-transparent-visual svg {
  transform: translateY(-4px) rotate(-0.4deg);
}

.premium-transparent-visual svg {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes d8VisualFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

.engine-pipeline {
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 8px;
}

.flow-node {
  min-height: 82px;
  padding: 12px 14px;
  border-radius: 18px;
  justify-content: start;
  gap: 8px;
}

.flow-node-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 248, 236, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.flow-node-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-node small {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.flow-node strong {
  font-size: 13px;
}

.workflow-accordion {
  max-width: 1360px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px auto 0;
}

.accordion-item {
  border: 1.5px solid var(--d8-motion-ink);
  border-radius: 22px;
  background: rgba(255, 248, 236, 0.9);
  box-shadow: 6px 6px 0 rgba(23, 20, 16, 0.9);
}

.accordion-header {
  min-height: 0;
  padding: 18px 18px 14px;
  align-items: flex-start;
  gap: 14px;
}

.accordion-header strong {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.accordion-header .icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--d8-motion-lime);
  color: var(--d8-motion-ink);
  font-size: 20px;
}

.accordion-item.open .accordion-content {
  max-height: 260px;
  padding: 0 18px 18px;
}

.accordion-content {
  padding: 0 18px;
}

.accordion-content p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--d8-motion-muted);
}

@media (max-width: 1180px) {
  .premium-hero-inner {
    grid-template-columns: 1fr;
  }

  .premium-command-panel {
    transform: none;
  }

  .workflow-accordion {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .premium-landing .landing-nav,
  .auth-route-shell .landing-nav {
    gap: 14px;
    padding: 18px;
  }

  .premium-landing .brand-wordmark strong,
  .auth-route-shell .brand-wordmark strong {
    font-size: 30px;
  }

  .premium-hero h1 {
    max-width: 16ch;
    font-size: clamp(34px, 9.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .section-title h2,
  .premium-stat-section h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.028em;
  }

  .premium-hero-copy p,
  .section-title p,
  .premium-glass-card p,
  .outcome-proof-card p,
  .role-operating-card p,
  .playbook-card p,
  .onboarding-step-card p,
  .scale-gate-card p,
  .premium-plan-grid .plan-card p {
    font-size: 16px;
    line-height: 1.68;
  }

  .premium-command-panel,
  .premium-glass-card,
  .landing-demo-card,
  .proof-card,
  .outcome-proof-card,
  .role-operating-card,
  .playbook-card,
  .onboarding-step-card,
  .scale-gate-card,
  .premium-plan-grid .plan-card,
  .auth-route-shell .modal-card {
    border-radius: 20px;
    box-shadow: 6px 6px 0 var(--d8-motion-ink), 0 18px 50px rgba(36, 27, 16, 0.12);
  }

  .premium-transparent-visual {
    min-height: 168px;
    margin-top: 18px;
  }

  .premium-command-panel > .premium-transparent-visual {
    min-height: 138px;
  }

  .engine-pipeline {
    grid-template-columns: 1fr;
  }

  .flow-node {
    min-height: 64px;
    display: grid;
    grid-template-columns: 34px auto 1fr;
    align-items: center;
  }
}
