/* ==============================================================================
   Aegis Systems — Market Simulator Suite Design System
   Modern Enterprise Financial Dark Mode with High-Tech Glassmorphism
   Typography: Plus Jakarta Sans / Inter / JetBrains Mono
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-deep: #050811;
  --bg-surface: #0a0f1d;
  --bg-surface-elevated: #111827;
  --bg-glass: rgba(16, 24, 40, 0.72);
  --bg-glass-card: rgba(17, 24, 39, 0.65);
  --bg-glass-input: rgba(15, 23, 42, 0.6);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(16, 185, 129, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #050811;

  /* Accent Gradients & Colors */
  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.2);
  --indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.2);
  --amber: #f59e0b;
  --rose: #f43f5e;

  --grad-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-hero: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Sizing & Layout */
  --measure: 78rem;
  --header-height: 4.5rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Light Glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(50% 50% at 50% 0%, rgba(6, 182, 212, 0.08) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.skip {
  position: absolute;
  top: -3rem;
  left: 1.5rem;
  background: var(--emerald);
  color: var(--text-inverse);
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.2s ease;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--measure), 100% - 3rem);
  margin-inline: auto;
}

/* ==============================================================================
   Header Navigation
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 8, 17, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--emerald-light);
  stroke-width: 2.2;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-nav a[aria-current="page"] {
  position: relative;
}
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--emerald);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: #050811 !important;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  cursor: pointer;
}

/* ==============================================================================
   Buttons & Pills
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.btn-outline-emerald:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 1.5rem;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h1 .gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .lede {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-proof-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-proof-item svg {
  color: var(--emerald);
  width: 16px;
  height: 16px;
}

/* Terminal / Cockpit Preview Window */
.terminal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.08);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-body {
  padding: 1.25rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #cbd5e1;
  background: #080c18;
}

.terminal-line {
  display: flex;
  gap: 0.6rem;
  word-break: break-all;
}
.terminal-prompt { color: var(--emerald); user-select: none; }
.terminal-cmd { color: #fff; font-weight: 600; }
.terminal-dim { color: var(--text-muted); }
.terminal-accent { color: var(--cyan); }
.terminal-highlight { color: var(--emerald-light); font-weight: 500; }
.terminal-amber { color: var(--amber); }

/* ==============================================================================
   Sections & General Content
   ============================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.5rem;
}

.section-header.left {
  text-align: left;
  margin-inline: 0;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature Grid Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.05);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--emerald-light);
}

.card-icon.cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--cyan);
}

.card-icon.indigo {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--indigo);
}

.card-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--amber);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==============================================================================
   Interactive Protocol Sandbox Tabs
   ============================================================================== */
.sandbox-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.sandbox-nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.sandbox-tab {
  padding: 1.1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sandbox-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.sandbox-tab.active {
  color: var(--emerald-light);
  border-bottom-color: var(--emerald);
  background: rgba(16, 185, 129, 0.06);
}

.sandbox-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.sandbox-panel {
  padding: 1.75rem;
}

.sandbox-panel:first-child {
  border-right: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.sandbox-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.code-view {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #cbd5e1;
  overflow-x: auto;
  white-space: pre;
}

.code-keyword { color: #f43f5e; }
.code-tag { color: #06b6d4; }
.code-attr { color: #a855f7; }
.code-val { color: #10b981; }
.code-comment { color: #64748b; font-style: italic; }

/* ==============================================================================
   Comparison Matrix
   ============================================================================== */
.comp-table-container {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-table th {
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comp-table th.col-highlight {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-light);
  border-top: 2px solid var(--emerald);
}

.comp-table td {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.comp-table td.col-highlight {
  background: rgba(16, 185, 129, 0.03);
  color: #fff;
  font-weight: 500;
}

.check-icon { color: var(--emerald); font-weight: bold; }
.cross-icon { color: var(--rose); font-weight: bold; }

/* ==============================================================================
   ROI Calculator
   ============================================================================== */
.roi-card {
  background: linear-gradient(145deg, rgba(16, 24, 40, 0.85) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(16, 185, 129, 0.08);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.slider-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald-light);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--bg-surface-elevated);
  border-radius: 9999px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  cursor: pointer;
  transition: transform 0.1s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.roi-results-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
}

.roi-metric-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.roi-metric-large {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.roi-submetrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.submetric-val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.submetric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==============================================================================
   Case Studies Cards
   ============================================================================== */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.case-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
}

.case-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.case-tier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.case-stat {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--emerald-light);
  line-height: 1.1;
  margin: 0.75rem 0 0.5rem;
}

.case-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.case-narrative {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.case-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ==============================================================================
   Markets Pipeline Grid
   ============================================================================== */
.market-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.market-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.2s ease;
}
.market-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.market-flag {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.market-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.market-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.market-status-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}
.market-status-pill.live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.market-status-pill.upcoming {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.market-status-pill.pipeline {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* ==============================================================================
   Pricing & Evaluation Cards
   ============================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 50px -10px rgba(16, 185, 129, 0.15);
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.8) 0%, rgba(10, 15, 29, 0.95) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin: 1.25rem 0 0.5rem;
}
.pricing-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pricing-features li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pricing-features li svg {
  color: var(--emerald);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==============================================================================
   Form Styling
   ============================================================================== */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 44rem;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ==============================================================================
   Footer
   ============================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #03050a;
  padding: 4.5rem 0 3rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==============================================================================
   Responsive Styles
   ============================================================================== */
@media (max-width: 960px) {
  .hero-grid, .roi-grid, .sandbox-content, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .sandbox-panel:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .site-nav.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .roi-card, .form-card {
    padding: 1.75rem;
  }
}

/* ==============================================================================
   Prepared Evaluation Request Modal / Confirmation
   ============================================================================== */
.prepared {
  display: none;
  margin-top: 2rem;
  background: linear-gradient(145deg, rgba(16, 24, 40, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
  border: 1px solid var(--emerald);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
  animation: fadeIn 0.3s ease;
}

.prepared.is-visible {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.prepared-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.prepared-header svg {
  color: var(--emerald-light);
  width: 24px;
  height: 24px;
}

.prepared-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.prepared-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

#prepared-letter {
  width: 100%;
  height: 190px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  background: #060913;
  color: #94a3b8;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  resize: vertical;
}

.prepared-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-error {
  color: #f43f5e;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  min-height: 1.2rem;
  font-weight: 500;
}

/* ==============================================================================
   Architecture & Flow Elements
   ============================================================================== */
.arch-diagram {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.arch-row {
  display: grid;
  grid-template-columns: 1fr auto 1.5fr;
  align-items: center;
  gap: 2rem;
}

.arch-node {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.arch-node.highlight {
  border-color: var(--emerald);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.arch-node-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.arch-node-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.arch-arrow svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

@media (max-width: 800px) {
  .arch-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .arch-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
}

/* ==============================================================================
   Architecture & Flow Visualizers
   ============================================================================== */
.diagram-canvas {
  background: radial-gradient(circle at 50% 50%, rgba(10, 15, 29, 0.95) 0%, rgba(5, 8, 17, 1) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  margin: 2.5rem 0;
}

.diagram-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), var(--cyan), transparent);
}

.diagram-grid-flow {
  display: grid;
  grid-template-columns: 1.2fr 0.3fr 1.6fr 0.3fr 1.2fr;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 990px) {
  .diagram-grid-flow {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .diagram-connector {
    transform: rotate(90deg);
    margin: 0.5rem auto;
  }
}

.diagram-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.diagram-box.active, .diagram-box:hover {
  border-color: var(--emerald);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.diagram-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.diagram-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.diagram-box-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.diagram-box-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.diagram-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
}

.diagram-connector svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

/* ==============================================================================
   Interactive Scenario Player & Lab
   ============================================================================== */
.scenario-lab {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  margin: 3rem 0;
}

.scenario-header-bar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.scenario-selector-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scenario-dropdown {
  padding: 0.65rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  color: #fff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
}
.scenario-dropdown:focus {
  border-color: var(--emerald);
}

.scenario-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-pill-bar {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.35rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

.step-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.step-pill.active {
  background: var(--emerald);
  color: var(--text-inverse);
  box-shadow: 0 0 12px var(--emerald);
}

.step-pill.completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.scenario-body-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 480px;
}

@media (max-width: 900px) {
  .scenario-body-grid {
    grid-template-columns: 1fr;
  }
}

.scenario-stage-panel {
  padding: 2.25rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scenario-step-meta {
  margin-bottom: 1.5rem;
}

.scenario-step-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  display: block;
}

.scenario-step-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.scenario-step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* Animated Sequence Node Line */
.sequence-track {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.seq-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
}

.seq-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-medium);
  transition: all 0.3s ease;
}

.seq-node.active .seq-node-dot {
  background: var(--emerald);
  border-color: #fff;
  box-shadow: 0 0 15px var(--emerald);
  transform: scale(1.3);
}

.seq-node-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.seq-node.active .seq-node-label {
  color: var(--emerald-light);
  font-weight: 600;
}

/* Real-Time Participant State Blotter */
.state-blotter {
  background: rgba(16, 24, 40, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.blotter-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blotter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.blotter-stat-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.blotter-stat-val.positive { color: var(--emerald-light); }
.blotter-stat-val.negative { color: var(--rose); }

.blotter-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.scenario-payload-panel {
  background: #060913;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.scenario-payload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}


