/* ==========================================================================
   xraicore Design System - Clean Corporate Light Mode (Linear / Stripe Style)
   ========================================================================== */

:root {
  /* Brand & Accent Colors - XrAI Core Identity */
  --primary: #02a3d1;
  --primary-hover: #018bb3;
  --primary-navy: #033c67;
  --primary-navy-hover: #022b4a;
  --primary-subtle: #e6f6fa;
  --primary-glow: rgba(2, 163, 209, 0.18);
  
  --accent-cyan: #02a3d1;
  --accent-navy: #033c67;
  --accent-purple: #033c67;
  --accent-emerald: #059669;
  --accent-amber: #d97706;

  /* Surfaces & Backgrounds */
  --bg-page: #fbfcfd;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Typography & Slate Palette */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-light: #edf2f7;
  --border-focus: #3b49df;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 24px 60px -8px rgba(15, 23, 42, 0.12), 0 8px 24px -4px rgba(15, 23, 42, 0.04);

  /* Layout & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.gradient-text {
  background: linear-gradient(135deg, #033c67 0%, #02a3d1 50%, #033c67 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center {
  text-align: center;
}

.text-success {
  color: var(--accent-emerald) !important;
}

.text-indigo {
  color: var(--primary) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #033c67 0%, #028eb8 100%);
  color: var(--text-inverse);
  box-shadow: 0 1px 2px rgba(3, 60, 103, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #022c4d 0%, #027a9d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 163, 209, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Badges & Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #dbeafe;
  color: #1e40af;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

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

/* Announcement Bar */
.announcement-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-body);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.announcement-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 252, 253, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

.footer-col .brand-logo-img {
  height: 26px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #033c67 0%, #02a3d1 100%);
  color: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 163, 209, 0.25);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 20px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.drawer-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
}

/* Ambient Glows */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.6;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 163, 209, 0.15) 0%, rgba(255,255,255,0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(3, 60, 103, 0.12) 0%, rgba(255,255,255,0) 70%);
  top: 400px;
  right: -100px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 50px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.trust-item svg {
  color: var(--accent-emerald);
}

/* ==========================================================================
   SIMULATOR: Multi-Agent Interactive Studio (Hero Centerpiece)
   ========================================================================== */

.simulator-wrapper {
  margin-top: 20px;
  perspective: 1200px;
}

.simulator-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: transform var(--transition-spring), box-shadow var(--transition-spring);
}

.simulator-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-controls .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.close { background: #ff5f56; }
.dot.minimize { background: #ffbd2e; }
.dot.maximize { background: #27c93f; }

.simulator-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
}

.terminal-badge {
  background: #e2e8f0;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.simulator-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.live-indicator {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

/* Simulator Toolbar */
.simulator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.scenario-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.scenario-selector label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.form-select {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  width: 100%;
  max-width: 480px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.form-select:focus {
  border-color: var(--primary);
  background: #ffffff;
}

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

/* Simulator Body Grid */
.simulator-body {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 480px;
  background: #ffffff;
}

/* Agents Topology Left Column */
.agents-topology {
  background: #fbfcfd;
  border-right: 1px solid var(--border-subtle);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topology-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.cluster-badge {
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
}

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

.agent-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
}

.agent-card.running {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
  background: #fafbff;
}

.agent-card.success-state {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.agent-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.agent-card.running .agent-avatar {
  transform: scale(1.08);
}

.avatar-blue {
  background: #e0f2fe;
  color: var(--accent-cyan);
}

.avatar-emerald {
  background: #dcfce7;
  color: var(--accent-emerald);
}

.avatar-purple {
  background: #f3e8ff;
  color: var(--accent-purple);
}

.agent-info {
  flex: 1;
}

.agent-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.agent-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.agent-status-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-idle {
  background: #f1f5f9;
  color: var(--text-muted);
}

.badge-executing {
  background: #dbeafe;
  color: #1d4ed8;
  animation: pulse-badge 1.5s infinite;
}

.badge-done {
  background: #dcfce7;
  color: #15803d;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.agent-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: block;
}

/* Cluster Telemetry */
.cluster-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
}

.tel-label {
  font-size: 0.68rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  font-weight: 600;
}

.tel-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

/* Terminal & Event Stream Right Column */
.terminal-stream {
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  border-left: 1px solid #1e293b;
}

.stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #0b1120;
  border-bottom: 1px solid #1e293b;
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.stream-clock {
  color: #38bdf8;
  font-weight: 600;
}

.stream-logs {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  animation: fadeInLog 0.3s ease forwards;
}

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

.log-time {
  color: #64748b;
  flex-shrink: 0;
  user-select: none;
}

.log-tag {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  flex-shrink: 0;
}

.tag-sys { background: #334155; color: #cbd5e1; }
.tag-orch { background: #1e3a8a; color: #93c5fd; }
.tag-data { background: #0369a1; color: #7dd3fc; }
.tag-guard { background: #065f46; color: #6ee7b7; }
.tag-exec { background: #581c87; color: #d8b4fe; }

.log-msg {
  color: #cbd5e1;
  word-break: break-word;
}

.log-msg code {
  color: #38bdf8;
  background: #1e293b;
  padding: 1px 4px;
  border-radius: 3px;
}

.stream-footer {
  padding: 12px 18px;
  background: #0b1120;
  border-top: 1px solid #1e293b;
}

.stream-progress-bar {
  width: 100%;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.stream-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.3s ease;
}

.stream-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================================================
   TRUST CHIPS STRIP
   ========================================================================== */

.trust-strip {
  padding: 30px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.trust-strip-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-bottom: 20px;
}

.trust-logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.trust-chip:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.chip-icon {
  font-size: 1rem;
}

/* ==========================================================================
   SECTIONS: Common Helpers
   ========================================================================== */

.section-padding {
  padding: 100px 0;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 18px;
  line-height: 1.2;
}

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

/* ==========================================================================
   CAPABILITIES GRID
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon-wrapper.icon-guard {
  background: #dcfce7;
  color: var(--accent-emerald);
}

.feature-icon-wrapper.icon-connect {
  background: #f3e8ff;
  color: var(--accent-purple);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--text-main);
}

.feature-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.feature-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.feature-check-list li {
  font-size: 0.875rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-check-list li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: 800;
}

/* ==========================================================================
   ARCHITECTURE ROADMAP
   ========================================================================== */

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

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.roadmap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.roadmap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #cbd5e1;
  line-height: 1;
  margin-bottom: 18px;
}

.roadmap-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.roadmap-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.step-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.comparison-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

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

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.comparison-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table .col-before {
  color: #64748b;
  width: 38%;
}

.comparison-table .col-after {
  color: var(--primary);
  background: #f8faff;
  width: 42%;
}

.comparison-table td:nth-child(3) {
  background: #fafcff;
}

.check-mark {
  display: inline-block;
  color: var(--accent-emerald);
  font-weight: 800;
  margin-right: 6px;
}

/* ==========================================================================
   EVALUATION / STRATEGY BANNER
   ========================================================================== */

.evaluation-cta-section {
  background: linear-gradient(180deg, var(--bg-page) 0%, #f1f5f9 100%);
}

.evaluation-banner {
  background: #0f172a;
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  color: white;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.evaluation-banner::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 73, 223, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.eval-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.eval-title {
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.eval-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 30px;
}

.eval-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eval-h-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.eval-action-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
}

.eval-action-card h3 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.eval-action-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.guarantee-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col.brand-col {
  padding-right: 40px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  color: var(--text-main);
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   INTERACTIVE MODAL
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-spring);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-muted);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.modal-header {
  padding: 30px 36px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: #fbfcfd;
}

.modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.modal-header h3 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Steps Indicator */
.modal-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
}

.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.step-indicator-item.active {
  opacity: 1;
}

.step-bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-subtle);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-indicator-item.active .step-bubble {
  background: var(--primary);
  color: white;
}

.step-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 12px;
}

/* Form Steps */
.modal-form {
  padding: 28px 36px 36px;
  overflow-y: auto;
}

.form-step {
  display: none;
  animation: fadeInStep 0.3s ease;
}

.form-step.active {
  display: block;
}

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

.step-question {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-card:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

.option-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--primary);
}

.option-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: #f8faff;
  box-shadow: 0 0 0 1px var(--primary);
}

.option-content {
  display: flex;
  flex-direction: column;
}

.option-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
}

.option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Success Step */
.success-box {
  padding: 10px 0;
}

.success-icon-badge {
  width: 52px;
  height: 52px;
  background: #dcfce7;
  color: var(--accent-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.success-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.success-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.score-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.score-number-group {
  display: flex;
  align-items: baseline;
}

.score-num {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary);
  line-height: 1;
}

.score-denom {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score-badge-status {
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

#scoreExplanation {
  font-size: 0.825rem;
  color: var(--text-body);
  line-height: 1.4;
}

.calendar-confirmation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-body);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.calendar-confirmation svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */

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

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

  .features-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .evaluation-banner {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 24px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-drawer.open {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .simulator-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .form-select {
    max-width: 100%;
  }

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

  .modal-form {
    padding: 20px;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-steps-indicator {
    padding: 12px 20px;
  }

  .step-text {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
