:root {
  --bg-dark: #050510;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.05);
  --card-radius: 24px;

  --text-main: #e0e0ff;
  --text-dim: #8080aa;

  --accent: #6366f1;
  /* Indigo */
  --neon-blue: #00f3ff;
  --neon-green: #00ff88;
  --neon-gold: #fbbf24;
  --signal-red: #ff2a6d;

  --font-ui: 'Inter', sans-serif;
  --font-head: 'Outfit', sans-serif;

  --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --hover-inset: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(5, 5, 16, 0.8);
  --step-num-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  --bg-dark: #f8fafc;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);

  --text-main: #1e293b;
  --text-dim: #64748b;

  --accent: #4f46e5;
  --neon-blue: #0284c7;
  --signal-red: #e11d48;
  --neon-green: #16a34a;
  --neon-gold: #d97706;

  --hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --hover-inset: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  --nav-bg: rgba(248, 250, 252, 0.8);
  --step-num-color: rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(255, 42, 109, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-ui);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAV */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 5%;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
  background: var(--nav-bg);
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.beta-tag {
  font-size: 0.7rem;
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-main);
}

.lang-switch {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}

.lang-switch span {
  transition: 0.3s;
  padding: 2px 5px;
  border-radius: 4px;
}

.lang-switch span:hover {
  color: var(--text-main);
}

.lang-switch span.active {
  background: var(--accent);
  color: var(--text-main);
  font-weight: 700;
}

.sep {
  opacity: 0.3;
  padding: 0 !important;
}

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.highlight {
  background: linear-gradient(90deg, var(--neon-blue), var(--accent));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-dim);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.disclaimer-hero {
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.6;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* BUTTONS */
.btn-primary {
  background: #fff;
  color: #000;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--neon-blue);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.7);
  }

  100% {
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
  }
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text-main);
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

/* SECTIONS */
.section {
  margin-bottom: 5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.section h2 {
  font-family: var(--font-head);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.steps-grid,
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.step-card,
.card-feature,
.roadmap-item,
.aud-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: 0.4s;
  position: relative;
  text-align: center;
}

.card-feature:hover,
.roadmap-item:hover,
.aud-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-blue);
  box-shadow: 0 10px 40px -10 rgba(0, 0, 0, 0.5);
}

.step-num {
  position: absolute;
  top: -15px;
  left: 20px;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
}

/* Features & Tooltips */
.card-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: help;
}

.card-feature i {
  font-size: 2rem;
  color: var(--accent);
}

.tooltip-container {
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.9);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-main);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  width: 200px;
  border: 1px solid var(--card-border);
}

.tooltip-container:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.aud-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  text-align: left;
}

.aud-card i {
  font-size: 1.5rem;
  color: var(--text-dim);
}

/* Roadmap */
.roadmap-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.roadmap-item {
  min-width: 180px;
}

.roadmap-item i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
  color: var(--text-dim);
}

.roadmap-status {
  text-align: center;
  margin-top: 2rem;
  opacity: 0.7;
}

/* UPLOAD */
.screen-center {
  padding-top: 5vh;
  text-align: center;
}

.upload-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  display: inline-block;
  width: 90%;
  max-width: 500px;
}

.upload-zone {
  border: 2px dashed var(--text-dim);
  padding: 3rem 1rem;
  border-radius: 16px;
  margin: 2rem 0;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--neon-blue);
  background: rgba(0, 243, 255, 0.05);
}

.spinner-ai {
  width: 60px;
  height: 60px;
  border: 4px solid var(--card-border);
  border-top-color: var(--neon-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

.process-checklist {
  margin: 1.5rem auto 0;
  max-width: 400px;
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
}

.chk-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.chk-item.active {
  color: var(--text-main);
  font-weight: 600;
}

.chk-item.done {
  color: var(--neon-blue);
}

.chk-item .icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.chk-item.active .icon {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.progress-bar-container {
  width: 100%;
  max-width: 350px;
  height: 4px;
  background: var(--card-border);
  margin: 0 auto 1rem;
}

.progress-bar {
  height: 100%;
  background: var(--neon-blue);
  width: 0%;
}

/* PHASE 13 RESULT */
#result-screen {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.video-title {
  text-align: center;
  font-family: var(--font-head);
  margin-bottom: 2rem;
  opacity: 0.8;
  font-weight: 500;
}

.result-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Gauge */
.gauge-tech-wrapper {
  position: relative;
  width: 300px;
  height: 160px;
  margin: 0 auto;
}

.gauge-svg {
  overflow: visible;
}

.gauge-bg {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 20;
  stroke-linecap: butt;
}

.gauge-fill {
  stroke: var(--neon-blue);
  stroke-width: 20;
  stroke-linecap: butt;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.5s ease-out;
  filter: drop-shadow(0 0 15px var(--neon-blue));
}

.gauge-center-tech {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.gauge-center-tech .val {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.gauge-center-tech .lbl {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 10px;
  display: block;
  font-weight: 600;
}

/* CIRCLE METRICS (New) */
.metrics-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.metric-circle-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-chart {
  width: 100px;
  height: 100px;
  position: relative;
}

.circle-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(180deg);
  /* Start from bottom? No, standard is top. Let's do Standard. */
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2.5;
}

.circle-val {
  fill: none;
  stroke: var(--col);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
  filter: drop-shadow(0 0 5px var(--col));
}

.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
}

.metric-label {
  margin-top: 10px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 600;
}

.confidence-card {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.conf-badge-large {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  padding: 5px 20px;
  border-radius: 12px;
  background: var(--card-border);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.conf-badge-large.high {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* Reliability Panel (Restored) */
.reliability-panel {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.rel-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  min-width: 100px;
}

.rel-item .val {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
}

.rel-item.cov-vis i {
  color: #818cf8;
}

.rel-item.cov-vis .val {
  color: #818cf8;
}

.rel-item.cov-aud i {
  color: #34d399;
}

.rel-item.cov-aud .val {
  color: #34d399;
}

.rel-item.cov-txt i {
  color: #fbbf24;
}

.rel-item.cov-txt .val {
  color: #fbbf24;
}

.filmstrip-container {
  margin: 2rem 0;
  overflow-x: auto;
}

.filmstrip {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  justify-content: center;
}

.filmstrip img {
  height: 70px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.6;
  transition: 0.2s;
}

.filmstrip img:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--neon-blue);
}

/* SPOILER / DETAIL */
.spoiler-section {
  margin: 2rem 0;
}

.btn-spoiler {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  width: 100%;
  padding: 1rem 2rem;
  text-align: left;
  color: var(--text-main);
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: 0.3s;
}

.btn-spoiler:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

/* Modality Grid */
.modality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.mod-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.mod-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mod-head i {
  color: var(--accent);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.m-bar {
  width: 100px;
  height: 6px;
  background: var(--card-border);
  border-radius: 3px;
  overflow: hidden;
}

.m-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 1s;
}

.highlight-card {
  border-color: var(--neon-blue);
  background: rgba(0, 243, 255, 0.02);
}

.ai-factors-box .ai-item {
  margin-bottom: 8px;
  font-size: 0.9rem;
  border-left: 3px solid var(--signal-red);
  padding-left: 10px;
}

/* AUDIT LOG TABLE */
.table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.audit-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  text-align: left;
  position: sticky;
  top: 0;
  backdrop-filter: blur(5px);
}

.audit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.row-red {
  background: rgba(255, 42, 109, 0.05);
}

.row-green {
  background: rgba(0, 243, 255, 0.05);
}

.tag-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-red {
  color: var(--signal-red);
  background: rgba(255, 42, 109, 0.1);
  border: 1px solid rgba(255, 42, 109, 0.2);
}

.tag-green {
  color: var(--neon-blue);
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.log-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.badge-filter {
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: 0.3s;
}

.badge-filter.active {
  background: var(--accent);
  color: var(--text-main);
}

/* DEV BADGE */
.dev-feature {
  position: relative;
  border: 1px dashed var(--text-dim);
  opacity: 0.8;
}

.badge-dev {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Back Button Styling in Upload */
.upload-card .btn-text {
  margin-top: 15px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: 0.3s;
}

.upload-card .btn-text:hover {
  color: var(--text-main);
  border-color: var(--neon-blue);
  background: rgba(0, 243, 255, 0.05);
}

.pdf-btn-wrapper {
  display: inline-block;
  position: relative;
}

/* DESIGN DISCLAIMER */
.design-disclaimer {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--neon-gold);
  padding: 12px 20px;
  border-radius: 50px;
  margin: 20px 0 30px 0;
  max-width: 500px;
  backdrop-filter: blur(10px);
}

.dd-icon {
  color: var(--neon-gold);
  font-size: 1.2rem;
}

.dd-text {
  font-size: 0.8rem;
  color: var(--text-main);
  text-align: left;
  line-height: 1.3;
}

/* FOOTER FIX */
html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-container {
  flex: 1;
}

footer {
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--card-border);
  background: var(--bg-dark);
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: auto;
  /* Push to bottom */
}

/* Updated Logo */
.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -1px;
}

.beta-tag {
  font-size: 0.7rem;
  vertical-align: super;
  opacity: 0.7;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--neon-blue);
}

.hidden {
  display: none !important;
}

/* ERROR MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 2001;
  background: var(--card-bg);
  border: 1px solid var(--signal-red);
  box-shadow: 0 0 50px rgba(255, 42, 109, 0.2);
  padding: 3rem;
  margin: 20px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-icon {
  font-size: 3rem;
  color: var(--signal-red);
  margin-bottom: 1.5rem;
  animation: pulseRed 2s infinite;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-family: var(--font-head);
}

.modal-content p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseRed {
  0% {
    text-shadow: 0 0 10px var(--signal-red);
  }

  50% {
    text-shadow: 0 0 30px var(--signal-red);
  }

  100% {
    text-shadow: 0 0 10px var(--signal-red);
  }
}

/* --- NEW 11-BLOCK DESIGN CSS --- */

/* General Block */
.section-block {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
}

.section-block h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-main);
  opacity: 0.9;
}

/* Block 1: Summary Linear Bars */
.linear-metrics {
  width: 100%;
  margin: 20px 0;
}

.lm-group {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.lm-label {
  width: 60px;
  font-weight: 600;
  color: var(--text-dim);
}

.lm-bar-bg {
  flex: 1;
  height: 8px;
  background: var(--card-border);
  border-radius: 4px;
  overflow: hidden;
}

.lm-bar-fill {
  height: 100%;
  transition: width 1s ease;
}

.lm-bar-fill.gold {
  background: var(--neon-gold, #ffd700);
}

.lm-bar-fill.red {
  background: var(--signal-red);
}

.lm-val {
  width: 40px;
  text-align: right;
  font-weight: 700;
  color: var(--text-main);
}

.confidence-row {
  font-size: 1.1rem;
  margin-top: 15px;
}

.conf-val {
  font-weight: 800;
  color: var(--neon-blue);
  margin-left: 10px;
}

/* Block 2: Reliability */
.reliability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.rel-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rel-card span {
  color: var(--text-main);
  font-weight: 600;
}

.rel-card.inactive {
  opacity: 0.5;
}

.rel-note {
  font-size: 0.9rem;
  color: var(--neon-blue);
  margin-top: 8px;
}

/* Block 4: Moments */
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Block 5: Coverage */
.coverage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cov-item {
  font-size: 1rem;
  font-weight: 500;
}

.cov-item span {
  font-weight: 700;
  color: var(--text-main);
}

.cov-item.dim {
  opacity: 0.5;
}

/* Block 6: Signals */
.signals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.sig-group h4 {
  margin: 0 0 5px 0;
  font-size: 0.95rem;
  color: var(--neon-blue);
}

.sig-group p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Block 7: Channels */
.channels-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.chan-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  flex: 1;
  text-align: center;
  min-width: 80px;
}

.chan-card strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 5px;
  color: var(--neon-blue);
}

.chan-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 5px;
  text-align: center;
}

/* Block 9: Process */
.process-list {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.8;
}

.process-list strong {
  color: var(--text-main);
}

/* Block 10: Interpret */
.block-interpret {
  border-left: 3px solid var(--neon-gold, #ffd700);
}

/* Footer */
.actions-footer {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: underline;
}

/* --- HERO REFINEMENT (Step 5322) --- */

/* Background Glow Effect */
.hero {
  position: relative;
  overflow: hidden;
  /* Contain the glow */
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(50px);
}

/* Simple Text Disclaimer */
.hero-disclaimer-text {
  font-size: 0.9rem;
  color: var(--neon-gold);
  /* Accent Color */
  opacity: 0.9;
  margin: 15px 0 35px 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Typography Improvements */
.hero h1 {
  font-size: 3.5rem;
  /* Larger Title */
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 15px auto;
  /* Tighter spacing to disclaimer */
  color: #ccc;
}

/* Button Polish */
.cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary {
  padding: 14px 35px;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
  /* Stronger Glow */
}

/* --- POLISH ROUND 2 (Step 5334) --- */

/* Logo TRUTH White */
.beta-tag {
  color: #fff !important;
  /* Force white */
  opacity: 0.9;
  font-weight: 600;
}

/* Updated Audience Cards */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* Wider cards */
  gap: 20px;
  margin-top: 20px;
}

.aud-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  /* Flex layout */
  align-items: flex-start;
  gap: 15px;
  text-align: left;
  /* Align text left */
  transition: 0.3s;
}

.aud-card i {
  font-size: 1.5rem;
  color: var(--neon-blue);
  margin-top: 5px;
}

.aud-info strong {
  display: block;
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 5px;
}

.aud-info p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.aud-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  border-color: var(--neon-blue);
}

/* Reset Disclaimer Styles (Since we set them inline, just ensure no conflict) */
.hero-disclaimer-text {
  /* Base styles, inline overrides color/style */
  margin: 15px 0 35px 0;
}


/* --- RESULT SCREEN OVERHAUL (STEP 5470) --- */

/* Header */
.res-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.res-date {
  font-family: 'Courier New', monospace;
  color: var(--neon-blue);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Summary Block */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.summary-footer {
  margin-top: 25px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  padding-top: 15px;
}

.conf-wrapper {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dashed var(--text-dim);
}

.prob-disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Reliability Cards */
.rel-card.dev {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  opacity: 0.7;
}

.badge-dev-mini {
  background: var(--card-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: auto;
  color: var(--neon-gold);
}

/* Linear Bars Fix - Explicit High Priority */
.lm-bar-fill {
  height: 100%;
  transition: width 1s ease;
  border-radius: 4px;
}

.lm-bar-fill.neon-blue {
  background-color: var(--neon-blue) !important;
  box-shadow: 0 0 10px var(--neon-blue);
}

.lm-bar-fill.signal-red {
  background-color: var(--signal-red) !important;
  box-shadow: 0 0 10px var(--signal-red);
}

/* Channels Grid - Force 4 Columns */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  /* FORCE 4 COLS */
  gap: 15px;
}

/* ... existing card styles ... */

/* Anomalies List - YELLOW */
.anomalies-list {
  margin-top: 15px;
}

.anom-item {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--neon-gold) !important;
  /* YELLOW */
  font-weight: 500;
  font-family: 'Courier New', monospace;
  display: flex;
  justify-content: space-between;
}

.anom-desc {
  font-size: 0.85rem;
  color: #ccc;
  font-weight: normal;
  margin-left: 10px;
}

.chart-container-wrapper {
  position: relative;
  height: 380px;
  /* Enhanced height for pro visualization */
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 25px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.flags-guide {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.flag-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red {
  background: var(--signal-red);
  box-shadow: 0 0 5px var(--signal-red);
}

.dot.gold {
  background: var(--neon-gold);
  box-shadow: 0 0 5px var(--neon-gold);
}

.dot.blue {
  background: var(--neon-blue);
  box-shadow: 0 0 5px var(--neon-blue);
}

/* Channels Grid */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* FORCED 4 COLUMNS */
  gap: 15px;
}

.chan-icon-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--card-border);
  transition: 0.3s;
}

.chan-icon-card i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: var(--text-dim);
}

/* Active Channel State (Generic Blue) */
.chan-icon-card.active {
  border-color: var(--neon-blue);
  background: rgba(0, 243, 255, 0.05);
}

.chan-icon-card.active i {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

/* Specific Channel Colors Override */
#chan-aud.active {
  border-color: #bc13fe;
  background: rgba(188, 19, 254, 0.05);
}

#chan-aud.active i {
  color: #bc13fe;
  text-shadow: 0 0 10px #bc13fe;
}

#chan-txt.active {
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.05);
}

#chan-txt.active i {
  color: #00ff88;
  text-shadow: 0 0 10px #00ff88;
}

#chan-phy.active {
  border-color: #ff2a6d;
  background: rgba(255, 42, 109, 0.05);
}

#chan-phy.active i {
  color: #ff2a6d;
  text-shadow: 0 0 10px #ff2a6d;
}

.chan-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Signals List */
.signals-list-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sig-row {
  background: var(--card-bg);
  padding: 12px;
  border-left: 3px solid var(--neon-blue);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--card-border);
}

/* Anomalies List - Forensic Styling */
.anomalies-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anom-item {
  padding: 14px;
  background: rgba(255, 42, 109, 0.03);
  border-left: 4px solid var(--signal-red);
  border-radius: 4px;
  color: var(--text-main);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  border: 1px solid var(--card-border);
}

.anom-item:hover {
  background: rgba(255, 42, 109, 0.08);
  transform: translateX(5px);
}

/* Full Summary & Help */
.block-full-summary .text-content {
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-line;
  /* Handle newlines */
}

.help-steps p {
  margin-bottom: 10px;
  color: var(--text-dim);
}

/* --- FORENSIC REPORT (V5.0) --- */
.forensic-report {
  font-family: 'Inter', sans-serif;
  color: #e0e0e0;
  padding: 10px;
}

.report-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.report-verdict {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.truth-score-large {
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.9;
  font-family: 'Outfit', sans-serif;
}

.executive-summary {
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  line-height: 1.6;
  border: 1px solid var(--card-border);
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .expert-grid {
    grid-template-columns: 1fr;
  }
}

.expert-card {
  background: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.expert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
  border-color: var(--neon-blue);
}

.expert-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.expert-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.recommendations-box {
  background: rgba(255, 42, 109, 0.04);
  padding: 20px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 42, 109, 0.3);
  position: relative;
  overflow: hidden;
}

.recommendations-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--signal-red);
}

.rec-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.7;
}

.rec-list li::marker {
  color: var(--signal-red);
}

/* FORENSIC REPORT V35 ENHANCEMENTS */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 10px;
}

.risk-badge.stable {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.risk-badge.warning {
  background: rgba(251, 191, 36, 0.1);
  color: var(--neon-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.risk-badge.critical {
  background: rgba(255, 42, 109, 0.1);
  color: var(--signal-red);
  border: 1px solid rgba(255, 42, 109, 0.3);
}

.category-tag {
  display: inline-block;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  color: #888;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hot-zones-container {
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
}

.hot-zone-item {
  display: flex;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hot-zone-item:last-child {
  border-bottom: none;
}

.hot-zone-time {
  font-family: 'Courier New', monospace;
  color: var(--neon-blue);
  font-weight: 800;
  min-width: 50px;
}

.interrogation-strategy-box {
  margin-top: 25px;
  background: rgba(129, 140, 248, 0.05);
  border-left: 4px solid #818cf8;
  padding: 15px;
  border-radius: 0 8px 8px 0;
}

.interrogation-title {
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.question-item {
  font-size: 0.85rem;
  color: #ddd;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.question-item::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #6366f1;
}

/* ===== INTERVIEW RECOMMENDATIONS BLOCK (Prominent, Outside Spoiler) ===== */
.interview-recommendations-block {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(129, 140, 248, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-left: 5px solid var(--accent);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.interview-recommendations-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.interview-rec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.interview-rec-header i {
  font-size: 1.4rem;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.15);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.interview-rec-header h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
  font-weight: 700;
}

.interview-rec-header .rec-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.interview-question-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interview-q-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background 0.2s;
}

.interview-q-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.06);
}

.interview-q-item .q-icon {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.interview-q-item .q-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.signal-audit-badge {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-left: 5px;
}

/* --- BENTO GRID SYSTEM --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 20px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--hover-shadow), var(--hover-inset);
}

.bento-span-12 { grid-column: span 12; }
.bento-span-8 { grid-column: span 8; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }
.bento-span-3 { grid-column: span 3; }

@media (max-width: 992px) {
  .bento-span-8, .bento-span-6, .bento-span-4, .bento-span-3 {
    grid-column: span 6;
  }
}
@media (max-width: 768px) {
  .bento-span-8, .bento-span-6, .bento-span-4, .bento-span-3 {
    grid-column: span 12;
  }
}

/* Investor Info Specific Styles */
.investor-header {
  text-align: center;
  margin-bottom: 2rem;
}
.investor-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  height: 100%;
}
.investor-stat-val {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--neon-blue);
  line-height: 1;
}
.investor-stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.investor-team-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.investor-team-member {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 12px;
}
.investor-team-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}
.investor-team-info h4 {
  margin: 0 0 4px 0;
  color: var(--text-main);
  font-size: 1rem;
}
.investor-team-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.investor-company p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.investor-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}
.investor-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
}
.investor-contact-item i {
  color: var(--accent);
  width: 20px;
  text-align: center;
}
.pitch-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--accent), var(--neon-blue));
  color: #000;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s;
}
.pitch-btn:hover {
  transform: scale(1.05);
  color: #000;
}


/* Fade In Animation */
.fade-in { animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* ============================================================
   MOBILE RESPONSIVE — Full overhaul for 320px–768px screens
   ============================================================ */

/* --- Hamburger button (hidden on desktop) --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  transition: background 0.2s;
  z-index: 200;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.08); }
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile nav overlay --- */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 1rem 4%;
    position: sticky;
    top: 0;
    z-index: 150;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 16, 0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 140;
    font-size: 1.3rem;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .lang-switch {
    font-size: 1rem;
    padding: 8px 20px;
  }

  /* Bento grid — all full width on mobile */
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 12px !important;
  }

  .bento-span-12,
  .bento-span-8,
  .bento-span-6,
  .bento-span-4,
  .bento-span-3 {
    grid-column: span 1 !important;
  }

  .bento-card {
    border-radius: 16px !important;
    padding: 1.2rem !important;
  }

  /* Hero */
  .hero {
    padding: 2rem 0.5rem 2rem !important;
  }

  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }

  .cta-group {
    flex-direction: column !important;
    gap: 0.8rem !important;
    align-items: center !important;
  }

  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    max-width: 320px !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    text-align: center;
  }

  /* Steps grid */
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .step-card {
    padding: 1.5rem 1rem !important;
  }

  /* Audience grid */
  .audience-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .aud-card {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  /* Key Features grid */
  .features-grid,
  .grid-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.8rem !important;
  }

  .card-feature {
    padding: 1rem 0.7rem !important;
    border-radius: 14px !important;
    gap: 10px !important;
    font-size: 0.85rem !important;
  }

  /* Investor section */
  .investor-stat-val {
    font-size: 2rem !important;
  }

  /* bento inner grids inside investor card */
  .bento-card .bento-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.8rem !important;
    padding: 0 !important;
  }

  /* Upload screen */
  .upload-card {
    padding: 1.5rem 1rem !important;
    width: 95% !important;
    border-radius: 18px !important;
  }

  .upload-zone {
    padding: 2rem 0.8rem !important;
  }

  /* Result screen */
  #result-screen {
    padding: 0 10px 30px !important;
  }

  .result-hero {
    padding: 1.5rem 1rem !important;
    border-radius: 18px !important;
  }

  /* Gauge — scale down on mobile */
  .gauge-tech-wrapper {
    width: 220px !important;
    height: 120px !important;
  }

  .gauge-center-tech .val {
    font-size: 2.8rem !important;
  }

  /* Metrics row — wrap on mobile */
  .metrics-row {
    gap: 1.2rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .circle-chart {
    width: 80px !important;
    height: 80px !important;
  }

  .circle-text {
    font-size: 1.1rem !important;
  }

  .metric-label {
    font-size: 0.75rem !important;
  }

  /* Reliability panel */
  .reliability-panel {
    gap: 0.6rem !important;
  }

  .rel-item {
    padding: 10px 12px !important;
    min-width: 80px !important;
    font-size: 0.8rem !important;
  }

  .rel-item .val {
    font-size: 0.95rem !important;
  }

  /* Modality grid */
  .modality-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Chart containers */
  .chart-container,
  canvas {
    max-width: 100% !important;
  }

  /* Table wrapper */
  .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Spoiler buttons */
  .btn-spoiler {
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem !important;
  }

  /* Section headings */
  .section h2,
  .bento-card h2 {
    font-size: 1.4rem !important;
    margin-bottom: 1.2rem !important;
  }

  /* Footer / Disclaimer */
  .footer-disclaimer {
    padding: 1rem !important;
    font-size: 0.8rem !important;
    text-align: center !important;
  }

  /* Pitch btn */
  .pitch-btn {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin-top: 12px !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
  }
}

/* --- Very small screens (iPhone SE, 320px) --- */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.7rem !important; }
  .nav-links { font-size: 1.1rem !important; gap: 2rem !important; }
  .features-grid, .grid-2 { grid-template-columns: 1fr !important; }
  .bento-card .bento-grid { grid-template-columns: 1fr !important; }
}
