:root {
  --bg: #0b1020;
  --bg-soft: #11182d;
  --panel: #121a30;
  --panel-2: #0f172a;
  --border: #23314f;
  --text: #e5ecff;
  --text-soft: #aab7d8;
  --muted: #7f8fb3;
  --primary: #4f7cff;
  --primary-hover: #3d68eb;
  --secondary: #1b2440;
  --success: #19c37d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1440px;
  --font-stack: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(25, 195, 125, 0.12), transparent 18%),
    linear-gradient(180deg, #08101f 0%, #0b1020 100%);
  color: var(--text);
}

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

.page {
  min-height: 100vh;
}

.hero {
  padding: 56px 24px 20px;
}

.hero__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fb2ff;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subtext {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.demo-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 26px auto 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
}

.panel {
  background: linear-gradient(180deg, rgba(18, 26, 48, 0.82) 0%, rgba(11, 16, 32, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel--ai {
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border: 1px solid rgba(79, 124, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(79, 124, 255, 0.12),
    0 12px 40px rgba(79, 124, 255, 0.18),
    0 0 60px rgba(79, 124, 255, 0.08);
  position: relative;
}

.panel--ai::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, transparent, rgba(79,124,255,0.25), transparent);
  opacity: 0.6;
  pointer-events: none;
  animation: aiGlow 6s linear infinite;
}

@keyframes aiGlow {
  0% { opacity: 0.2; }
  50% { opacity: 0.7; }
  100% { opacity: 0.2; }
}

.panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.panel--ai .panel__header {
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.18), rgba(79, 124, 255, 0.06));
  border-bottom: 1px solid rgba(79, 124, 255, 0.28);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #314268;
}

.dot:nth-child(1) {
  background: #f87171;
}

.dot:nth-child(2) {
  background: #fbbf24;
}

.dot:nth-child(3) {
  background: #34d399;
}

.panel__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
}

.panel--ai .panel__title {
  color: #dce7ff;
}

.site-preview {
  padding: 28px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 42px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 14px;
}

.site-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.site-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fb2ff;
}

.site-copy h2 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.site-copy p {
  margin: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 16px;
}

.site-actions,
.action-stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-card {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 24, 45, 0.94), rgba(8, 16, 31, 0.98));
  border: 1px solid rgba(143, 178, 255, 0.15);
}

.site-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.site-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.metric-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.metric {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.metric span {
  font-size: 14px;
  color: var(--text-soft);
}

.services-preview {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.services-preview h3 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

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

.service-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.18), rgba(79, 124, 255, 0.08));
  border: 1px solid rgba(79, 124, 255, 0.35);
  color: #dce7ff;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(79, 124, 255, 0.15);
}

.service-item:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.28), rgba(79, 124, 255, 0.12));
  border-color: rgba(79, 124, 255, 0.55);
}
.demo-right .panel {
  height: 100%;
}

.tabs {
  display: flex;
  gap: 10px;
  padding: 16px 16px 0;
}

.tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.panel--ai .tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(79, 124, 255, 0.16);
  color: #c9d8ff;
}

.tab.active {
  background: rgba(79, 124, 255, 0.16);
  border-color: rgba(79, 124, 255, 0.32);
  color: #dce7ff;
}

.panel--ai .tab.active {
  background: #eaf1ff;
  border-color: #cfe0ff;
  color: #1d4ed8;
}

.ai-body {
  padding: 16px;
}

.status-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.1);
  border: 1px solid rgba(79, 124, 255, 0.18);
  color: #c9d8ff;
  font-size: 12px;
  font-weight: 700;
}

.chat-window {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #dbe4ff;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.55;
  font-size: 14px;
}

.message--bot {
  background: #eef3ff;
  color: #1e293b;
  border: 1px solid #d8e4ff;
  border-top-left-radius: 8px;
}

.message--user {
  margin-left: auto;
  background: linear-gradient(180deg, #4f7cff 0%, #3d68eb 100%);
  color: #ffffff;
  border-top-right-radius: 8px;
}

.panel--ai .action-stack {
  padding-top: 2px;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--secondary);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

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

.btn--primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: rgba(79, 124, 255, 0.45);
  color: #ffffff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.panel--ai .btn:not(.btn--primary) {
  background: rgba(255, 255, 255, 0.06);
}

.btn--ghost:hover,
.btn:hover {
  border-color: rgba(143, 178, 255, 0.3);
}

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

@media (max-width: 860px) {
  .hero {
    padding: 40px 16px 10px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .subtext {
    font-size: 16px;
  }

  .demo-shell {
    width: min(100% - 24px, var(--max-width));
    gap: 18px;
  }

  .site-preview,
  .ai-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav,
  .site-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-links {
    gap: 14px;
  }

  .site-copy h2 {
    font-size: 34px;
  }

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

  .chat-window {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 32px;
  }

  .panel__header,
  .tabs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .message {
    max-width: 94%;
  }

  .btn,
  .tab,
  .status-pill {
    width: 100%;
    justify-content: center;
  }

  .hero__actions,
  .site-actions,
  .action-stack {
    flex-direction: column;
  }
}

/* SD-DYNAMIC-DEMO-FRONTEND-EXPERIENCE-CLOSEOUT-001 - dynamic diagnostic,
   employee-selector, and experience-panel additions. Reuses the existing
   token set (--primary/--border/--text-soft/etc) and existing component
   shapes (.status-pill, .service-item, .tab) rather than a new visual
   language. */

.finding-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finding-list li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(79, 124, 255, 0.06);
  border: 1px solid rgba(79, 124, 255, 0.12);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.finding-list li.unknown {
  background: rgba(127, 143, 179, 0.08);
  border-color: rgba(127, 143, 179, 0.18);
  font-style: italic;
}

.evidence-link {
  margin-top: 14px;
  width: 100%;
}

.employee-tabs-label {
  margin: 4px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.employee-tabs {
  padding: 0 0 12px;
  flex-wrap: wrap;
}

.experience-panel {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(25, 195, 125, 0.06);
  border: 1px solid rgba(25, 195, 125, 0.18);
}

.experience-panel__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.experience-panel .status-pill {
  background: rgba(25, 195, 125, 0.12);
  border-color: rgba(25, 195, 125, 0.22);
  color: #b8f2d9;
}

.intent-input-wrap {
  margin-bottom: 10px;
}

.intent-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
}

.intent-input:disabled {
  opacity: 0.5;
}

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

.service-item.selectable {
  cursor: pointer;
  border: 1px solid transparent;
}

.service-item.selectable:hover {
  border-color: rgba(79, 124, 255, 0.35);
}

/* SD-DYNAMIC-REVENUE-DEMO-REFERENCE-EXPERIENCE-001 - presentation-layer
   rebuild. Replaces the two-panel "fake website preview + chat" shell
   with a single-column BUSINESS -> INTELLIGENCE -> OPPORTUNITY ->
   INTERACTION -> SOLUTION -> ACTION flow. Reuses .panel/.panel--ai/
   .status-pill/.service-item/.chat-window/.message/.btn/.finding-list -
   no new visual language, just a new arrangement of the same components. */

.demo-main {
  width: min(760px, calc(100% - 48px));
  margin: 26px auto 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-row--center {
  justify-content: center;
  margin-top: 20px;
}

.section-panel .panel__title {
  font-size: 15px;
}

.section-body {
  padding: 20px 22px 24px;
}

.intel-block {
  margin-bottom: 18px;
}

.intel-block:last-child {
  margin-bottom: 0;
}

.intel-block h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.intent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intent-buttons .btn {
  flex: 1 1 auto;
  min-width: 180px;
}

.recommendation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recommendation-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(25, 195, 125, 0.06);
  border: 1px solid rgba(25, 195, 125, 0.18);
}

.recommendation-card strong {
  display: block;
  margin-bottom: 4px;
  color: #b8f2d9;
}

.recommendation-card span {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .intent-buttons .btn {
    min-width: 100%;
  }

  .section-body {
    padding: 16px;
  }
}

/* SD-VININGS-EXTERNAL-BROWSER-LOAD-FAILURE-002 - visible, bounded
   fail-safe diagnostics (stage reached + correlation ID), never a secret
   or token. */
.debug-line {
  margin: 10px 0 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}

.debug-line--wrap {
  white-space: pre-wrap;
  word-break: break-word;
  color: #ff9a9a;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

/* SD-DYNAMIC-REVENUE-DEMO-ACTUAL-PRODUCT-EXPERIENCE-001 - "try it, don't
   read about it": a persistent, one-time disclaimer replaces the prior
   per-message "diagnostic exploration" boilerplate, and overlay/skillset/
   pack composition detail moves behind an opt-in toggle instead of being
   shown as always-visible developer terminology. */

.panel--ai .panel__header {
  justify-content: space-between;
}

.how-it-works-toggle {
  appearance: none;
  border: 1px solid rgba(79, 124, 255, 0.3);
  background: rgba(79, 124, 255, 0.08);
  color: #c9d8ff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.how-it-works-toggle:hover {
  background: rgba(79, 124, 255, 0.16);
}

.simulation-disclaimer {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.experience-detail {
  margin-bottom: 14px;
}

.message--sim {
  background: rgba(25, 195, 125, 0.06);
  border: 1px solid rgba(25, 195, 125, 0.18);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: 100%;
  text-align: center;
  border-radius: var(--radius-sm);
}

.message--simuser {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-top-right-radius: 8px;
}
