/* ==========================================================================
   Project RIO — Unified Design System & Mobile Responsive Engine
   AspiGrow Technologies • Dark Mode, Glassmorphism & High-Impact Visuals
   ========================================================================== */

/* ==========================================================================
   Global Content Wrapper & Layout Isolation
   ========================================================================== */
.main-wrapper,
.content-container {
  position: relative;
  z-index: 10;
  max-width: 1060px;
  margin: 0 auto;
  padding: 140px 32px 90px;
  box-sizing: border-box;
  width: 100%;
}

main {
  width: 100%;
  box-sizing: border-box;
}

section {
  width: 100%;
  margin-bottom: 96px;
  position: relative;
  box-sizing: border-box;
}

/* ==========================================================================
   Top Header & Navigation Bar (Isolated & Fixed)
   ========================================================================== */
.top-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(3, 16, 17, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: padding 0.3s ease, background 0.3s ease;
  box-sizing: border-box;
}

.top-nav-bar.scrolled {
  padding: 14px 48px;
  background: rgba(3, 16, 17, 0.96);
  border-bottom: 1px solid rgba(34, 190, 198, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

#rioTopNav {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* ==========================================================================
   Centered Section Headers & Badges (No Text Hugging Corners)
   ========================================================================== */
.section-badge,
.kicker-pill {
  display: table;
  margin: 0 auto 16px;
  padding: 5px 14px;
  background: rgba(34, 190, 198, 0.08);
  border: 1px solid rgba(34, 190, 198, 0.25);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  box-shadow: 0 0 16px rgba(34, 190, 198, 0.1);
  text-align: center;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

h1.statement,
h2.statement {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  box-sizing: border-box;
  color: var(--cream);
}

h1.statement {
  font-size: clamp(28px, 5.5vw, 46px);
  max-width: 20ch;
  line-height: 1.15;
  font-weight: 700;
}

h2.statement {
  font-size: clamp(23px, 4.2vw, 36px);
  max-width: 24ch;
  line-height: 1.2;
  font-weight: 500;
}

p.sub {
  text-align: center;
  margin: 14px auto 36px;
  max-width: 60ch;
  font-size: clamp(13.5px, 2.5vw, 15px);
  line-height: 1.6;
  color: var(--dim);
  font-weight: 300;
  box-sizing: border-box;
}

.hero-lead {
  margin: 14px auto 32px;
}

/* Hero Action CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* ==========================================================================
   Hero Metrics Strip (Visual Stats Bar)
   ========================================================================== */
.hero-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(7, 24, 27, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 16px;
  padding: 16px 28px;
  max-width: 880px;
  margin: 0 auto 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  width: 100%;
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.metric-num {
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 40%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-text {
  font-size: 11px;
  color: var(--dim);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-metric-sep {
  width: 1px;
  height: 28px;
  background: rgba(244, 239, 230, 0.1);
}

/* ==========================================================================
   1. Interactive Cockpit HUD
   ========================================================================== */
.cockpit-hud {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(7, 24, 27, 0.85) 0%, rgba(3, 16, 17, 0.95) 100%);
  border: 1px solid rgba(34, 190, 198, 0.25);
  border-radius: 20px;
  padding: 24px 28px;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(34, 190, 198, 0.1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.cockpit-hud::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.cockpit-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-terminal-icon {
  font-size: 14px;
}

.hud-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
}

.cockpit-status-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-chip {
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(244, 239, 230, 0.05);
  border: 1px solid rgba(244, 239, 230, 0.1);
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-chip.status-live {
  border-color: rgba(34, 190, 198, 0.4);
  background: rgba(34, 190, 198, 0.12);
  color: var(--teal);
  font-weight: 500;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  display: inline-block;
}

/* Prompt Preset Chips */
.prompt-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.prompt-chips-label {
  font-size: 11px;
  color: var(--dimmer);
  white-space: nowrap;
  font-weight: 400;
}

.prompt-chip {
  background: rgba(3, 16, 17, 0.7);
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: var(--dim);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.prompt-chip:hover {
  border-color: rgba(34, 190, 198, 0.4);
  color: var(--cream);
}

.prompt-chip.active {
  background: rgba(34, 190, 198, 0.14);
  border-color: var(--teal);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(34, 190, 198, 0.2);
}

/* HUD Input Command Line */
.hud-input-bar {
  background: rgba(3, 16, 17, 0.85);
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  box-sizing: border-box;
}

.hud-prefix {
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.hud-command-text {
  color: var(--cream);
  font-weight: 400;
  flex: 1;
  word-break: break-word;
}

.hud-cursor {
  color: var(--teal);
  animation: blink 1s infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 8-Step Visual Pipeline Nodes */
.flow-nodes {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  align-items: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.flow-node {
  background: rgba(3, 16, 17, 0.7);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  transition: all 0.35s var(--ease-out);
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
}

.flow-node .node-icon {
  font-size: 14px;
  margin-bottom: 4px;
}

.flow-node .node-step {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--dimmer);
  margin-bottom: 2px;
  font-weight: 500;
}

.flow-node .node-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
}

.flow-node.active {
  border-color: var(--teal);
  background: rgba(34, 190, 198, 0.16);
  box-shadow: 0 0 24px rgba(34, 190, 198, 0.3);
  transform: translateY(-2px);
}

.flow-node.active .node-step {
  color: var(--teal);
}

.flow-node.active .node-label {
  color: #ffffff;
}

/* ==========================================================================
   2. Paradigm Shift Comparison Grid
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
  width: 100%;
  box-sizing: border-box;
}

.compare-card {
  background: rgba(7, 24, 27, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 18px;
  padding: 30px 32px;
  backdrop-filter: blur(16px);
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.compare-card:hover {
  transform: translateY(-3px);
}

.compare-card.legacy {
  border-color: rgba(244, 239, 230, 0.08);
}

.compare-card.rio-card {
  border-color: rgba(34, 190, 198, 0.35);
  background: linear-gradient(150deg, rgba(7, 24, 27, 0.85) 0%, rgba(3, 16, 17, 0.95) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(34, 190, 198, 0.1);
}

.compare-card-head {
  margin-bottom: 14px;
}

.compare-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.compare-status-badge.status-legacy {
  background: rgba(244, 239, 230, 0.06);
  color: var(--dim);
}

.compare-status-badge.status-rio {
  background: rgba(34, 190, 198, 0.15);
  color: var(--teal);
  border: 1px solid rgba(34, 190, 198, 0.3);
}

.compare-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.compare-sub {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.55;
  margin-bottom: 24px;
  font-weight: 300;
}

.compare-flow-seq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-seq-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(3, 16, 17, 0.5);
  border: 1px solid rgba(244, 239, 230, 0.05);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.compare-card.rio-card .flow-seq-item {
  border-color: rgba(34, 190, 198, 0.15);
  background: rgba(34, 190, 198, 0.05);
}

.flow-seq-item:hover {
  transform: translateX(3px);
}

.flow-seq-item .icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.flow-seq-item .icon.bad {
  background: rgba(244, 239, 230, 0.08);
  color: var(--dimmer);
}

.flow-seq-item .icon.good {
  background: var(--teal);
  color: var(--on-teal);
  font-weight: 700;
}

.seq-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seq-content strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
}

.seq-content span {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.4;
  font-weight: 300;
}

/* ==========================================================================
   3. Interactive AI Router Simulator
   ========================================================================== */
.router-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  background: rgba(7, 24, 27, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.09);
  border-radius: 20px;
  padding: 24px 28px;
  backdrop-filter: blur(20px);
  margin-top: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  width: 100%;
}

.router-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.router-sidebar-title {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 4px;
  font-weight: 500;
}

.task-preset-btn {
  background: rgba(3, 16, 17, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  font-family: inherit;
  color: var(--cream);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
}

.task-preset-btn .btn-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-preset-btn .btn-icon {
  font-size: 14px;
}

.task-preset-btn:hover {
  border-color: rgba(34, 190, 198, 0.4);
  background: rgba(34, 190, 198, 0.06);
}

.task-preset-btn.active {
  border-color: var(--teal);
  background: rgba(34, 190, 198, 0.14);
  box-shadow: 0 0 20px rgba(34, 190, 198, 0.2);
}

.task-preset-btn .task-name {
  font-size: 13.5px;
  font-weight: 500;
}

.task-preset-btn .task-desc {
  font-size: 11.5px;
  color: var(--dim);
  padding-left: 22px;
  line-height: 1.35;
}

.router-viewport {
  background: rgba(3, 16, 17, 0.85);
  border: 1px solid rgba(34, 190, 198, 0.2);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.router-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.matrix-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 4px;
}

.routing-decision {
  font-size: 16px;
  font-weight: 400;
  color: var(--cream);
}

.target-box {
  text-align: right;
}

.target-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
}

.router-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.metric-card {
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid rgba(244, 239, 230, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
}

.metric-card .label {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 4px;
  font-weight: 500;
}

.metric-card .val {
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
}

.metric-card.highlight .val,
.val.highlight-teal {
  color: var(--teal);
}

.router-reason-box {
  background: rgba(244, 239, 230, 0.03);
  padding: 14px 18px;
  border-radius: 10px;
  border-left: 3px solid var(--teal);
  box-sizing: border-box;
}

.reason-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.reason-text {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.45;
}

.benchmark-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benchmark-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dimmer);
}

.models-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(244, 239, 230, 0.02);
  border: 1px solid rgba(244, 239, 230, 0.04);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.model-row.selected {
  background: rgba(34, 190, 198, 0.08);
  border-color: rgba(34, 190, 198, 0.35);
}

.model-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--cream);
}

.model-bar-wrap {
  height: 6px;
  background: rgba(244, 239, 230, 0.08);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.model-bar-fill {
  height: 100%;
  background: var(--dimmer);
  border-radius: 8px;
  transition: width 0.6s var(--ease-out), background 0.3s ease;
}

.model-row.selected .model-bar-fill {
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.model-score {
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
  text-align: right;
}

.model-row.selected .model-score {
  color: var(--teal);
}

/* ==========================================================================
   4. Architecture Grid
   ========================================================================== */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  width: 100%;
  box-sizing: border-box;
}

.arch-card {
  background: rgba(7, 24, 27, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 18px;
  padding: 26px 24px;
  backdrop-filter: blur(16px);
  transition: all 0.35s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.arch-card:hover {
  border-color: rgba(34, 190, 198, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(34, 190, 198, 0.1);
}

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

.arch-icon-wrap {
  font-size: 20px;
}

.arch-card .arch-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--teal);
}

.arch-card h3 {
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.arch-card p {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
  margin-bottom: 18px;
  font-weight: 300;
  flex-grow: 1;
}

.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arch-tag {
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(34, 190, 198, 0.08);
  border: 1px solid rgba(34, 190, 198, 0.2);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--teal);
}

/* ==========================================================================
   5. 5-Tier Memory System
   ========================================================================== */
.memory-system-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 32px;
  width: 100%;
  box-sizing: border-box;
}

.memory-card {
  background: rgba(7, 24, 27, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.memory-card:hover, .memory-card.active {
  border-color: var(--teal);
  background: rgba(34, 190, 198, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(34, 190, 198, 0.18);
}

.mem-type-badge {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 600;
}

.memory-card h4 {
  font-size: 15px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
}

.mem-retention {
  font-size: 10.5px;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 500;
}

.mem-summary {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.45;
  font-weight: 300;
  flex-grow: 1;
}

.mem-example-box {
  margin-top: 22px;
  background: rgba(3, 16, 17, 0.85);
  border: 1px solid rgba(34, 190, 198, 0.2);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
}

.mem-example-text {
  font-size: 13.5px;
  color: var(--cream);
  font-weight: 300;
  line-height: 1.5;
}

.mem-example-text strong {
  color: var(--teal);
  font-weight: 500;
}

.mem-inspect-hint {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

/* ==========================================================================
   6. Controlled Self-Evolution Pipeline
   ========================================================================== */
.evolution-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: 36px;
  overflow-x: auto;
  padding-bottom: 12px;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.evolution-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 100px;
  position: relative;
  box-sizing: border-box;
}

.evolution-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -6px;
  top: 18px;
  color: var(--dimmer);
  font-size: 16px;
}

.evo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(3, 16, 17, 0.9);
  border: 1px solid rgba(244, 239, 230, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--dim);
  transition: all 0.3s ease;
  font-weight: 500;
}

.evolution-step:hover .evo-icon, .evolution-step.active .evo-icon {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 0 18px rgba(34, 190, 198, 0.35);
  transform: scale(1.08);
}

.evolution-step.checkpoint .evo-icon {
  border-color: #f7a631;
  color: #f7a631;
  box-shadow: 0 0 14px rgba(247, 166, 49, 0.3);
}

.evo-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 2px;
}

.evo-desc {
  font-size: 10.5px;
  color: var(--dim);
  max-width: 100px;
  font-weight: 300;
  line-height: 1.35;
}

/* ==========================================================================
   7. Industry Tabs & Preview
   ========================================================================== */
.industry-wrapper {
  margin-top: 32px;
  width: 100%;
  box-sizing: border-box;
}

.industry-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
  padding-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ind-tab-btn {
  background: transparent;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--dim);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.ind-tab-btn:hover {
  border-color: var(--teal);
  color: var(--cream);
}

.ind-tab-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--on-teal);
  font-weight: 500;
}

.industry-content-card {
  margin-top: 24px;
  background: rgba(7, 24, 27, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 18px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.ind-info h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.ind-info p {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.55;
  margin-bottom: 20px;
  font-weight: 300;
}

.ind-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ind-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cream);
  font-weight: 300;
}

.ind-features-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
}

.ind-preview-box {
  background: rgba(3, 16, 17, 0.9);
  border: 1px solid rgba(34, 190, 198, 0.2);
  border-radius: 14px;
  padding: 20px 22px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--cream);
  line-height: 1.5;
  box-sizing: border-box;
}

.ind-preview-box .prompt-line {
  color: var(--teal);
  margin-bottom: 10px;
  font-weight: 500;
}

.ind-preview-box .agent-action {
  color: var(--dim);
  padding-left: 10px;
  border-left: 2px solid rgba(34, 190, 198, 0.3);
  margin-bottom: 8px;
}

.ind-status-tag {
  color: var(--teal);
  margin-top: 14px;
  font-size: 11px;
}

/* ==========================================================================
   8. Real-World Company Simulator
   ========================================================================== */
.company-sim-container {
  background: rgba(7, 24, 27, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 20px;
  padding: 28px 32px;
  margin-top: 32px;
  box-sizing: border-box;
  width: 100%;
}

.company-goal-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(3, 16, 17, 0.85);
  border: 1px solid rgba(34, 190, 198, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.company-goal-input .prompt-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--teal);
  text-transform: uppercase;
}

.company-goal-input .prompt-val {
  font-size: 14.5px;
  color: var(--cream);
  font-weight: 300;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.dept-card {
  background: rgba(3, 16, 17, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.07);
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.dept-card:hover {
  border-color: rgba(34, 190, 198, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.dept-header {
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.dept-badge {
  font-size: 9.5px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 2px;
}

.dept-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
}

.dept-tool {
  font-size: 11px;
  color: var(--teal);
  margin-top: 3px;
}

.dept-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dept-tasks li {
  font-size: 11.5px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 300;
  line-height: 1.35;
}

.dept-tasks li::before {
  content: '•';
  color: var(--teal);
}

/* ==========================================================================
   9. Enterprise Deployment Modes
   ========================================================================== */
.deployment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
  width: 100%;
  box-sizing: border-box;
}

.deploy-card {
  background: rgba(7, 24, 27, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s var(--ease-out);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
}

.deploy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 190, 198, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.deploy-card.popular {
  border-color: var(--teal);
  background: linear-gradient(150deg, rgba(7, 24, 27, 0.9) 0%, rgba(3, 16, 17, 0.95) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 190, 198, 0.15);
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--teal);
  color: var(--on-teal);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.deploy-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34, 190, 198, 0.1);
  border: 1px solid rgba(34, 190, 198, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 16px;
}

.deploy-mode-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.deploy-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.deploy-desc {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 300;
  min-height: 40px;
}

.deploy-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.deploy-specs li {
  font-size: 12.5px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 300;
}

.deploy-specs li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
}

/* ==========================================================================
   10. Roadmap Timeline
   ========================================================================== */
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 32px;
  width: 100%;
  box-sizing: border-box;
}

.roadmap-node {
  background: rgba(7, 24, 27, 0.65);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.roadmap-node:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.roadmap-stage-num {
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}

.roadmap-node h4 {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
}

.roadmap-node p {
  font-size: 11px;
  color: var(--dim);
  font-weight: 300;
}

/* ==========================================================================
   Responsive Adaptations (Mobile & Tablet Excellence)
   ========================================================================== */
@media (max-width: 960px) {
  .top-nav-bar {
    padding: 16px 28px;
  }
  .main-wrapper,
  .content-container {
    padding: 120px 24px 60px;
  }
  section {
    margin-bottom: 76px;
  }
  .hero-metrics-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px;
  }
  .hero-metric-sep {
    display: none;
  }
  .flow-nodes {
    grid-template-columns: repeat(4, 1fr);
  }
  .comparison-grid,
  .router-container,
  .industry-content-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .target-box {
    text-align: left;
  }
  .arch-grid,
  .deployment-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .memory-system-container,
  .departments-grid,
  .roadmap-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  /* Header Fix: Crisp, non-merging, well-spaced */
  .top-nav-bar {
    padding: 12px 18px;
    height: 62px;
    background: rgba(3, 16, 17, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(34, 190, 198, 0.2);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  }
  .top-nav-bar.scrolled {
    padding: 12px 18px;
  }
  .brand svg.logo {
    height: 20px;
  }
  #rioTopNav {
    gap: 8px;
  }
  .rio-pill-btn {
    padding: 5px 10px;
    font-size: 11px;
    gap: 5px;
  }
  .rio-pill-tag {
    display: none;
  }
  .top-menu-toggle {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 100px;
  }
  #bgmBtn {
    width: 30px;
    height: 30px;
  }

  /* Safe container gutters: Words NEVER touch corners on mobile */
  .main-wrapper,
  .content-container {
    padding: 98px 20px 48px;
  }
  section {
    margin-bottom: 60px;
  }

  /* Dropdown Menu on Mobile: Isolated overlay */
  .top-menu-dropdown {
    position: fixed;
    top: 66px;
    right: 14px;
    left: 14px;
    width: auto;
    max-width: 360px;
    margin-left: auto;
    background: rgba(4, 18, 20, 0.98);
    border: 1px solid rgba(34, 190, 198, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(34, 190, 198, 0.2);
    z-index: 100;
  }

  /* Hero & Cockpit */
  .hero-metrics-bar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 12px;
  }
  .metric-num {
    font-size: 18px;
  }
  .cockpit-hud {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .flow-nodes {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .flow-node {
    padding: 8px 4px;
  }

  /* Components & Grids on Mobile */
  .router-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .memory-system-container,
  .departments-grid,
  .roadmap-timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .model-row {
    grid-template-columns: 110px 1fr 45px;
    gap: 8px;
    padding: 8px 10px;
  }
  .mem-example-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .compare-card,
  .industry-content-card,
  .company-sim-container,
  .deploy-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
}

@media (max-width: 440px) {
  .top-nav-bar {
    padding: 10px 14px;
  }
  .main-wrapper,
  .content-container {
    padding: 92px 16px 40px;
  }
  /* On compact screens, hide RIO pill label so menu & logo have ample space */
  .rio-pill-btn .rio-pill-label,
  .rio-pill-btn .rio-pill-arrow {
    display: none;
  }
  .rio-pill-btn {
    padding: 5px 8px;
  }
  .compare-card,
  .industry-content-card,
  .company-sim-container,
  .deploy-card {
    padding: 18px 14px;
  }
}

/* ==========================================================================
   RIO Mascot & Visual Showcase Design System
   ========================================================================== */

/* Hero Layout with Mascot Character */
.hero-layout-split {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin-top: 10px;
}

.hero-layout-split .hero-text-col {
  text-align: left;
}

.hero-layout-split .statement {
  text-align: left;
  margin: 16px 0 20px;
}

.hero-layout-split .sub {
  text-align: left;
  margin: 0 0 32px;
  max-width: 580px;
}

.hero-layout-split .hero-actions,
.hero-layout-split .hero-ctas {
  justify-content: flex-start;
}

/* Animated Mascot Float Card */
.mascot-hero-card {
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(34, 190, 198, 0.14), rgba(7, 24, 27, 0.75) 70%);
  border: 1px solid rgba(34, 190, 198, 0.35);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(34, 190, 198, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .4s ease, border-color .4s ease;
  animation: mascotCardFloat 6s ease-in-out infinite;
}

.mascot-hero-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 190, 198, 0.6);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 45px rgba(34, 190, 198, 0.35);
}

@keyframes mascotCardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.mascot-img-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #020c0d;
  box-shadow: inset 0 0 20px rgba(34, 190, 198, 0.2);
}

.mascot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mascot-hero-card:hover .mascot-img-wrap img {
  transform: scale(1.04);
}

/* Mascot Pulse Radar Badge */
.mascot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(3, 16, 17, 0.85);
  border: 1px solid rgba(34, 190, 198, 0.4);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mascot-status-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--teal);
  animation: dotBlink 2s infinite ease-in-out;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(0.8); }
}

.mascot-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.mascot-speech {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
  font-weight: 300;
  margin: 0;
  max-width: 320px;
}

/* Visual Architecture Showcase Container */
.visual-showcase-box {
  background: rgba(7, 24, 27, 0.7);
  border: 1px solid rgba(34, 190, 198, 0.25);
  border-radius: 20px;
  padding: 24px;
  margin: 36px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(34, 190, 198, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.visual-showcase-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(244, 239, 230, 0.1);
  background: #020c0d;
}

.visual-showcase-media img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.visual-showcase-box:hover .visual-showcase-media img {
  transform: scale(1.03);
}

.visual-showcase-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(3, 16, 17, 0.88);
  border: 1px solid rgba(34, 190, 198, 0.4);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--teal);
  text-transform: uppercase;
}

.visual-showcase-content {
  text-align: left;
}

.visual-showcase-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

.visual-showcase-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -.02em;
  margin: 0 0 14px;
  line-height: 1.25;
}

.visual-showcase-desc {
  font-size: 14.5px;
  color: var(--dim);
  line-height: 1.65;
  font-weight: 300;
  margin: 0 0 20px;
}

.visual-showcase-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visual-showcase-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--cream);
  font-weight: 400;
}

@media (max-width: 960px) {
  .hero-layout-split {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-layout-split .hero-text-col,
  .hero-layout-split .statement,
  .hero-layout-split .sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-layout-split .hero-actions,
  .hero-layout-split .hero-ctas {
    justify-content: center;
  }
  .mascot-hero-card {
    max-width: 360px;
    margin: 0 auto;
  }
  .visual-showcase-box {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .visual-showcase-media img {
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .hero-layout-split {
    gap: 28px;
  }
  .mascot-hero-card {
    padding: 18px;
    border-radius: 20px;
    max-width: 100%;
  }
  .mascot-img-wrap {
    max-width: 240px;
  }
  .visual-showcase-box {
    padding: 16px;
  }
}

