/* ==========================================================================
   MENTOR — Production Technical Landing Page Stylesheet
   Designed with Linear / Raycast / Zed Obsidian Aesthetics
   Crafted with pure CSS3, Flexbox/Grid, and hardware-accelerated transitions
   ========================================================================== */

:root {
  /* Color Palette — Deep Obsidian & Graphite */
  --bg-base: #08090d;
  --bg-surface: #0e1017;
  --bg-card: #121520;
  --bg-card-hover: #181c2c;
  --bg-card-subtle: rgba(255, 255, 255, 0.02);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-active: rgba(16, 185, 129, 0.4);

  /* Accents */
  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.15);
  --cyan: #38bdf8;
  --danger: #ef4444;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Motion */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* Background Atmosphere (Restrained & Tasteful) */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(50% 50% at 50% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(56, 189, 248, 0.03) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ================= Navigation ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

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

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.94rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-medium);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--text-muted);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 12px;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-subtext {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.7;
  font-family: var(--font-mono);
}

/* ================= Hero Section ================= */
.hero {
  padding: 80px 0 50px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.hero-heading {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin: 0 auto 20px;
  color: #fff;
}

.highlight-text {
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.65;
}

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

/* Engineering Stats Ribbon */
.stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 20px 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 900px;
  margin: 0 auto 40px;
}

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

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-unit {
  font-size: 0.9rem;
  color: var(--emerald);
  font-weight: 600;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 2px;
}

.stat-separator {
  width: 1px;
  height: 32px;
  background-color: var(--border-subtle);
}

/* ================= 2D Interactive Simulator ================= */
.simulator-section {
  padding: 20px 0 80px;
}

.simulator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
}

.sim-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(18, 21, 32, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.sim-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.sim-telemetry {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sim-telemetry .t-val {
  color: #fff;
  font-weight: 600;
}

.sim-telemetry .highlight {
  color: var(--emerald);
}

.sim-telemetry .t-divider {
  margin: 0 6px;
  opacity: 0.4;
}

.sim-workspace {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  padding: 24px;
  min-height: 480px;
}

/* PC Viewport (Windows 11 Frame) */
.pc-viewport {
  background: #090a10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pc-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #11131c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.win-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2e3f;
}

.win-close { background: #ef4444; opacity: 0.8; }
.win-min { background: #eab308; opacity: 0.8; }
.win-max { background: #22c55e; opacity: 0.8; }

.pc-window-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pc-title-spacer {
  width: 40px;
}

.pc-canvas {
  position: relative;
  flex: 1;
  background: radial-gradient(circle at 50% 50%, #0d0f18 0%, #06070a 100%);
  padding: 20px;
  overflow: hidden;
  user-select: none;
}

/* Virtual Cursor */
.pc-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 50;
  transform: translate(160px, 140px);
  transition: transform 0.04s ease-out;
}

.cursor-ripple {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--emerald);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease-out;
}

.pc-cursor.clicking .cursor-ripple {
  opacity: 1;
  transform: scale(2.2);
}

/* Replica MENTOR Desktop App Window */
.mentor-pc-app {
  width: 320px;
  background: #0e0f15;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.app-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-logo-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.app-subtitle {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.active-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.active-status-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

.app-data-card {
  background: #141620;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-row:last-child {
  border-bottom: none;
}

.data-row .label {
  color: var(--text-muted);
  font-weight: 600;
}

.data-row .val {
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-weight: 500;
}

.data-row .val.highlight {
  color: var(--emerald);
}

.app-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-btn {
  background: #1c1f2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.app-btn.danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

/* Phone Viewport (Mobile Chassis) */
.phone-viewport {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-chassis {
  width: 290px;
  background: #171924;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.phone-inner {
  background: #090a0f;
  border-radius: 28px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 430px;
  overflow: hidden;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0 4px 8px;
}

.camera-punch {
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #12141d;
  padding: 3px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.p-tab {
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  padding: 4px 0;
  color: var(--text-muted);
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.p-tab.active {
  background: #202434;
  color: #fff;
}

/* Interactive Trackpad */
.phone-touchpad {
  flex: 1;
  background: #0f1118;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: border-color var(--transition-fast);
}

.phone-touchpad:hover, .phone-touchpad.touching {
  border-color: rgba(16, 185, 129, 0.4);
}

.touchpad-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.6;
  pointer-events: none;
}

.touchpad-instructions {
  text-align: center;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.touch-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.touch-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.touch-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.finger-indicator {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  border: 2px solid var(--emerald);
  transform: translate(-50%, -50%);
  display: none;
  pointer-events: none;
}

/* Phone Left/Right Click Bar */
.phone-click-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.click-btn {
  background: #151722;
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.click-btn:active {
  background: #252a3d;
  color: #fff;
  border-color: var(--emerald);
}

/* Simulator Footer Controls */
.sim-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: #0b0c12;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

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

.preset-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.packet-feed {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feed-prefix {
  color: var(--text-muted);
}

/* ================= Pipeline & How It Works ================= */
.section {
  padding: 90px 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 54px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 8px 0 14px;
}

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

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pipeline-step {
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.8) 0%, rgba(10, 11, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pipeline-step:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
}

.step-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.pipeline-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pipeline-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.step-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-light);
  background: #090a0f;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

/* ================= Technical Features Grid ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(16, 18, 27, 0.8) 0%, rgba(10, 11, 17, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feature-card.col-wide {
  grid-column: span 2;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.feature-specs {
  list-style: none;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-top: auto;
}

.feature-specs li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-muted);
}

.feature-specs li strong {
  color: #fff;
  font-family: var(--font-mono);
}

.code-terminal {
  background: #090a10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: auto;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #11131c;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-badge {
  color: var(--emerald);
  font-weight: 600;
}

.code-terminal pre {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  overflow-x: auto;
  color: #e2e8f0;
}

.code-terminal .k { color: #f43f5e; }
.code-terminal .nf { color: #38bdf8; }
.code-terminal .nb { color: #a78bfa; }
.code-terminal .mi { color: #fbbf24; }
.code-terminal .ow { color: #f43f5e; }
.code-terminal .nd { color: #10b981; }

.tools-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

/* ================= Technical Benchmark Table ================= */
.table-container {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.benchmark-table th, .benchmark-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.benchmark-table th {
  background: #11131c;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.benchmark-table tr:last-child td {
  border-bottom: none;
}

.benchmark-table .mentor-col {
  background: rgba(16, 185, 129, 0.04);
  border-left: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
}

.highlight-green {
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.badge-success {
  color: var(--emerald);
  font-weight: 600;
}

/* ================= CLI Terminal Quick Install ================= */
.cli-installer-wrap {
  margin-bottom: 36px;
}

.cli-card {
  background: #090a10;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.cli-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.cli-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #10121c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.cli-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cli-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cli-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.cli-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cli-mode-switch {
  display: inline-flex;
  align-items: center;
  background: #06070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.cli-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cli-mode-btn:hover {
  color: #fff;
}

.cli-mode-btn.active {
  background: var(--emerald);
  color: #060609;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.cli-os-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cli-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.cli-tab.active {
  background: #1c202e;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cli-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #06070a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 16px;
  flex-wrap: wrap;
}

.cli-code-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
  overflow-x: auto;
}

.cli-prompt {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald);
  user-select: none;
}

#cliCommandText {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: all;
}

.cli-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cli-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.cli-copy-btn .check-icon {
  display: none;
}

.cli-copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald);
  color: var(--emerald);
}

.cli-copy-btn.copied .check-icon {
  display: inline-block;
}

.cli-copy-btn.copied .copy-icon {
  display: none;
}

.cli-preview-toggle {
  padding: 9px 20px;
  background: #0b0d14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.preview-toggle-btn:hover {
  color: #fff;
}

.preview-chevron {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.preview-chevron.rotate {
  transform: rotate(180deg);
}

.cli-terminal-screen {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #050608;
}

.cli-terminal-screen.open {
  max-height: 600px;
}

.terminal-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  background: #0e1017;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.screen-badge {
  color: var(--emerald);
  font-weight: 600;
}

.terminal-output {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-x: auto;
  color: #cbd5e1;
  margin: 0;
}

.ascii-art {
  color: #ffffff;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  letter-spacing: -0.05em;
  font-family: var(--font-mono);
}

.term-status-line {
  color: #475569;
  display: block;
  margin: 4px 0;
}

.term-cyan {
  color: #38bdf8;
  display: block;
}

.term-gray {
  color: #94a3b8;
  display: block;
}

.term-green {
  color: #10b981;
  display: block;
  font-weight: 600;
}

.term-white {
  color: #f8fafc;
  display: block;
}

/* ================= Downloads Section ================= */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.download-card {
  background: linear-gradient(180deg, rgba(17, 19, 28, 0.8) 0%, rgba(12, 13, 19, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.download-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.download-card.featured {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(16, 185, 129, 0.2);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, #0e1017 100%);
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--emerald);
  color: #060609;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-os-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.download-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: auto;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.meta-tag {
  color: var(--text-secondary);
}

/* 60-Second Quick Start */
.quick-start-box {
  background: linear-gradient(180deg, rgba(16, 18, 27, 0.8) 0%, rgba(10, 11, 17, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.qs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.qs-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.qs-header span {
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 600;
}

.qs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.qs-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.qs-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qs-step-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.qs-step-body code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: #06070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

/* ================= FAQ Section ================= */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.8) 0%, rgba(10, 11, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-card.active {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(16, 185, 129, 0.1);
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}

.faq-header h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
}

.faq-toggle {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}

.faq-body {
  padding: 0 22px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.faq-card.active .faq-body {
  display: block;
}

/* ================= Footer ================= */
.footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  font-size: 0.86rem;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 14px;
}

.footer-links-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 14px;
}

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

.footer-links-grid a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

.badge-mini .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1024px) {
  .hero-heading { font-size: 2.8rem; }
  .sim-workspace { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.col-wide { grid-column: span 1; }
  .download-grid { grid-template-columns: 1fr; }
  .qs-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-heading { font-size: 2.2rem; }
  .br-desktop { display: none; }
  .nav-links { display: none; }
  .stats-ribbon { gap: 20px; }
  .stat-separator { display: none; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .mentor-pc-app { width: 100%; }
}
