/* ═══════════════════════════════════════════════════════════
   PRACSTER — Pixel-Themed Landing Page Stylesheet
   Color Palette:
     Background:  #F4F1E8
     Primary:     #F2A900 (Arcade Yellow)
     Secondary:   #2E7D32 (Pixel Green)
     Border:      #1F1F1F
     Text:        #222222
     Alt BG:      #E8E4D8
     Warn:        #CC3300
   ═══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F4F1E8;
  --bg-alt: #E8E4D8;
  --primary: #F2A900;
  --secondary: #2E7D32;
  --border: #1F1F1F;
  --text: #222222;
  --warn: #CC3300;
  --white: #FAFAF5;
  --card-bg: #FAFAF5;
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --border-w: 3px;
  --border-s: solid var(--border);
  /* Horizontal inset for nav, hero, and all `.section` blocks — keep in sync across breakpoints */
  --page-gutter-x: 32px;
}

@media (max-width: 1024px) {
  :root {
    --page-gutter-x: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter-x: 16px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle, #1F1F1F22 1px, transparent 1px);
  background-size: 20px 20px;
}

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

ul {
  list-style: none;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  border: var(--border-w) solid var(--border);
  padding: 14px 24px;
  cursor: pointer;
  transition: transform 0.05s, box-shadow 0.05s, background 0.1s;
  box-shadow: 4px 4px 0 var(--border);
  text-transform: uppercase;
  position: relative;
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 var(--border);
}

.btn-primary {
  background: var(--primary);
  color: var(--border);
}

.btn-primary:hover {
  background: #e09c00;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
}

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

.btn-secondary:hover {
  background: var(--border);
  color: var(--bg);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--secondary);
}

.btn-nav {
  background: var(--primary);
  color: var(--border);
  font-size: 0.45rem;
  padding: 10px 16px;
  box-shadow: 4px 4px 0 var(--border);
}

.btn-nav:hover {
  background: #e09c00;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
}

.btn-huge {
  background: var(--primary);
  color: var(--border);
  font-size: 0.65rem;
  padding: 20px 36px;
  box-shadow: 6px 6px 0 var(--border);
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-huge:hover {
  background: #e09c00;
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border);
  animation: none;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 6px 6px 0 var(--border);
  }

  50% {
    box-shadow: 6px 6px 0 var(--border), 0 0 20px #F2A90066;
  }
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: relative;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--border-w) solid var(--border);
  background-image: radial-gradient(circle, #1F1F1F22 1px, transparent 1px);
  background-size: 20px 20px;
  /* Match `.hero`: gutter on outer bar, then `.nav-inner` is max-width centered (not padding inside 1200px) */
  padding-left: var(--page-gutter-x);
  padding-right: var(--page-gutter-x);
}

/* ── GREEN TICKER STRIP ──────────────────────────────────── */
.green-ticker {
  position: relative;
  z-index: 99;
  background: #1a5c1a;
  border-bottom: 2px solid #0f3d0f;
  overflow: hidden;
  padding: 10px 0;
  margin-bottom: 56px;
}

.gticker-inner {
  display: flex;
  white-space: nowrap;
  animation: gticker-run 22s linear infinite;
}

.gticker-inner span {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: #ccffcc;
  letter-spacing: 0.12em;
  padding-right: 0;
  flex-shrink: 0;
}

@keyframes gticker-run {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 210;
  background: var(--bg);
  background-image: radial-gradient(circle, #1F1F1F22 1px, transparent 1px);
  background-size: 20px 20px;
}

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--border);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.nav-links a {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text);
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

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

.nav-links a.btn-nav:hover {
  color: var(--border);
  background: #e09c00;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  background: transparent;
  border: var(--border-w) solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  cursor: pointer;
  color: var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 220;
  flex-shrink: 0;
}

.nav-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--border);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--border);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav.nav-is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav.nav-is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.nav-is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(15, 18, 24, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.nav.nav-is-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── SECTION UTILITIES ────────────────────────────────────── */
.section {
  padding: 100px var(--page-gutter-x);
}

.alt-bg {
  background: var(--bg-alt);
  background-image: radial-gradient(circle, #1F1F1F1A 1px, transparent 1px);
  background-size: 20px 20px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--secondary);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 48px;
  border-left: 6px solid var(--primary);
  padding-left: 20px;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  max-width: 660px;
  margin-bottom: 48px;
  margin-top: -28px;
  color: #444;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero {
  /* Top-aligned so headline + CTA stay above the fold (avoid vertical center gap) */
  min-height: 85vh;
  min-height: 85dvh;
  padding-top: 0;
  padding-bottom: 48px;
  /* Match `.section`: horizontal gutter on the outer block, then `.hero-content` is max-width centered — avoids double inset vs About */
  padding-left: var(--page-gutter-x);
  padding-right: var(--page-gutter-x);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.015) 3px,
      rgba(0, 0, 0, 0.015) 4px);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 0;
  padding: 20px 0 60px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 64px;
  row-gap: 10px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
}

.pre-badge {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--secondary);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  border: 2px solid var(--secondary);
  display: inline-block;
  padding: 6px 12px;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: 4rem;
  line-height: 1.1;
  color: #017EBB;
  /*text-shadow: 5px 5px 0 rgba(59, 130, 246, 0.3), 10px 10px 0 rgba(59, 130, 246, 0.15);*/
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.pixel-flicker {
  animation: flicker 6s infinite;
}

@keyframes flicker {

  0%,
  95%,
  100% {
    opacity: 1;
  }

  96% {
    opacity: 0.85;
  }

  97% {
    opacity: 1;
  }

  98% {
    opacity: 0.7;
  }

  99% {
    opacity: 1;
  }
}

.hero-sub {
  font-family: var(--font-pixel);
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  color: var(--secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-desc {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  max-width: 520px;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
  flex: 1 1 100%;
  order: 3;
  justify-content: flex-start;
}

.hero-badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  border: 2px solid var(--border);
  padding: 6px 10px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--border);
  letter-spacing: 0.08em;
}

/* ── PIXEL SCREEN (Hero Visual) ───────────────────────────── */
.hero-visual {
  flex: 0 0 420px;
  position: relative;
}

.pixel-screen {
  border: var(--border-w) solid var(--border);
  background: #0D0D0D;
  box-shadow: 6px 6px 0 var(--border), -2px -2px 0 var(--primary);
  font-family: var(--font-pixel);
  border-radius: 0;
  overflow: hidden;
}

.screen-header {
  background: #1A1A1A;
  border-bottom: 2px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  display: inline-block;
  border: 2px solid #444;
}

.screen-dot.red {
  background: var(--warn);
}

.screen-dot.yellow {
  background: var(--primary);
}

.screen-dot.green {
  background: var(--secondary);
}

.screen-title {
  font-size: 0.35rem;
  color: #888;
  margin-left: 8px;
  letter-spacing: 0.1em;
}

.screen-body {
  padding: 20px 18px;
  color: #00FF41;
}

.screen-label {
  font-size: 0.35rem;
  color: #555;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.m-label {
  font-size: 0.3rem;
  color: #888;
  width: 68px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.pixel-bar {
  flex: 1;
  height: 12px;
  background: #1A2A1A;
  border: 1px solid #333;
  overflow: hidden;
}

.pixel-fill {
  height: 100%;
  background: #2E7D32;
  transition: width 1s steps(8);
}

.pixel-fill[data-color="yellow"] {
  background: var(--primary);
}

.pixel-fill[data-color="warn"] {
  background: var(--warn);
}

.m-val {
  font-size: 0.3rem;
  color: #00FF41;
  width: 24px;
  text-align: right;
}

.m-val.warn {
  color: var(--warn);
}

.screen-divider {
  border-top: 1px dashed #333;
  margin: 14px 0;
}

.screen-round {
  font-size: 0.3rem;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.screen-decisions {
  margin-bottom: 12px;
}

.decision {
  font-size: 0.3rem;
  color: #555;
  padding: 3px 0;
  letter-spacing: 0.04em;
}

.active-decision {
  color: #00FF41;
  background: #001a00;
  padding: 3px 6px;
  margin-left: -6px;
}

.cursor-blink {
  font-size: 0.5rem;
  color: #00FF41;
  animation: blink-cur 1s steps(1) infinite;
}

@keyframes blink-cur {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.screen-reflection {
  height: 8px;
  background: linear-gradient(to right, transparent, #F2A90022, transparent);
  margin-top: 4px;
}

/* ── TICKER ─────────────────────────────────────────────────── */
.hero-ticker {
  border-top: var(--border-w) solid var(--border);
  background: var(--border);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  z-index: 2;
}

.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-slide 25s linear infinite;
}

.ticker-inner span {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  padding-right: var(--page-gutter-x);
}

@keyframes ticker-slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── ABOUT SECTION (redesigned) ────────────────────────────── */

/* Section label row: 01 ─────── ABOUT PRACSTER */
.about-label-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.about-num {
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  color: #bbb;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.about-dash {
  flex: 0 0 80px;
  height: 2px;
  background: #ccc;
  display: inline-block;
}

.about-lbl {
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  color: var(--secondary);
  letter-spacing: 0.15em;
}

/* ── Main heading (Redesigned) ───────────── */
.about-heading-main {
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

.about-heading {
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

.metrics-heading-line {
  padding-bottom: 14px;
  border-bottom: 6px solid var(--primary);
  margin-bottom: 20px;
}

.about-btn {
  margin-top: 48px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-sizing: border-box;
  font-size: 0.8rem;
  display: block;
}

.about-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: #4E55FF;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

/* Two-column grid (Redesigned) */
.about-layout-new {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}

/* ── Left: description card ─────────────────── */
.about-main-left {
  padding-right: 20px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.about-list li {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #CCCCCC;
  line-height: 1.6;
  position: relative;
  padding-left: 28px;
}

.about-list li::before {
  content: "»";
  color: #F2A900;
  font-size: 1.4rem;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: -4px;
}

/* ── Right: stat blocks ──────────────────────── */
.about-stats-new {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-stat-card {
  padding: 24px;
  background: #2A2D30;
  border: var(--border-w) solid #3A3D40;
  box-shadow: 4px 4px 0 #111;
  position: relative;
  transition: background 0.18s, transform 0.12s, box-shadow 0.12s;
  cursor: default;
}

.about-stat-card:hover {
  background: #32363A;
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #111;
}

/* Amber left-bar accent on hover */
.about-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.2s ease;
}

.about-stat-card:hover::before {
  transform: scaleY(1);
}

.about-stat-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.about-stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-stat-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Number */
.about-stat-num {
  display: block;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: #F2A900;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.about-stat-card:hover .about-stat-num {
  color: #FF672D;
}

/* Label */
.about-stat-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #888888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Description text */
.about-stat-desc {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}



/* ── HOW IT WORKS — SIMULATION FLOW ─────────────────────── */

.flow-sub {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #666;
  margin-top: -10px;
  margin-bottom: 40px;
}

/* 4 separate cards separated by gaps */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Outer frame - matches the thick "blue" border from reference, using primary amber */
.flow-card {
  background: var(--primary);
  padding: 16px;
  border: var(--border-w) solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.flow-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border);
}

/* Inner frame - matches the "dark" box with inset white line from reference */
.flow-card-inner {
  background: #1F2123;
  border: var(--border-w) solid var(--border);
  box-shadow: inset 0 0 0 4px #1F2123, inset 0 0 0 6px rgba(255, 255, 255, 0.8);
  height: 100%;
  padding: 36px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Large sequence number, modeled after the '■ ONLINE EVENTS ■' text */
.flow-num {
  display: block;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: #1193D4;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

/* Free-floating emoji icon — no frame */
.flow-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.flow-card:hover .flow-icon {
  transform: translateY(-4px) scale(1.05);
}

/* Step title */
.flow-title {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: #FF672D;
  line-height: 1.65;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

/* Description */
.flow-desc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
  line-height: 1.65;
}

/* ── VITALS DASHBOARD (Redesigned Metrics) ──────────────────────── */
.vitals-dashboard {
  display: flex;
  border: var(--border-w) solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  margin-top: 40px;
}

.vitals-left {
  flex: 0 0 35%;
  background: #1F2123;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: var(--border-w) solid var(--border);
  position: relative;
  /* Retro dotted overlay */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
}

.vitals-title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 #000;
}

.vitals-desc {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.7;
}

.vitals-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 0.55rem;
  margin-top: 40px;
}

.vitals-arrow {
  font-family: monospace;
  font-size: 1.2rem;
  transform: translateY(-2px);
  color: var(--border);
}

.vitals-right {
  flex: 1;
  background: var(--card-bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
}

/* ── Industry tab switcher ─────────────────────────────────── */
.vitals-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

.vitals-tab {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  border: var(--border-w) solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s, box-shadow 0.15s;
  box-shadow: 2px 2px 0 var(--border);
  text-transform: uppercase;
}

.vitals-tab:hover {
  background: #f5f3eb;
  transform: translateY(-2px);
  box-shadow: 3px 4px 0 var(--border);
}

.vitals-tab.active {
  background: #1193D4;
  color:rgb(255, 255, 255);
  border-color: var(--border);
  box-shadow: 4px 4px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

.vitals-tab.active:hover {
 /*background: #e09c00;*/
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ── Metrics wrap (for transition) ─────────────────────────── */
.vitals-metrics-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
}

.vitals-metrics-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  min-height: 280px;
}

.vitals-metrics-inner.transition-out {
  animation: vitals-fade-out 0.2s ease forwards;
}

.vitals-metrics-inner.transition-in {
  animation: vitals-slide-in 0.25s ease forwards;
}

@keyframes vitals-fade-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes vitals-slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vital-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vital-icon-box {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--border);
  background: var(--white);
}

.vital-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vital-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.vital-name {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--border);
  letter-spacing: 0.1em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vital-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.vital-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: bold;
  font-style: italic;
  background: rgba(0, 0, 0, 0.08);
  color: #888;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: background 0.2s, color 0.2s;
}

.vital-info-wrap:hover .vital-info-icon {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
}

.vital-info-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 10px;
  font-size: 11px;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
  white-space: normal;
  min-width: 160px;
  max-width: 260px;
  width: max-content;
  word-wrap: break-word;
  border-radius: 4px;
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s;
}

.vital-info-tooltip.vital-info-tooltip-visible {
  opacity: 1;
  visibility: visible;
}

/* In-row tooltips stay hidden; we use floating portal for display */
.vital-info-wrap.tooltip-visible .vital-info-tooltip:not(.vital-info-tooltip-portal) {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Portal tooltip: rendered in body to avoid overflow clipping */
.vital-info-tooltip-portal {
  position: fixed !important;
  z-index: 2147483647;
  max-width: 260px;
  word-wrap: break-word;
}

/* YOUR VITALS floating tooltip — dark panel, white text */
#vital-tooltip-floating.vital-tooltip-floating--game {
  position: fixed !important;
  z-index: 2147483647;
  box-sizing: border-box;
  max-width: 260px;
  min-width: 160px;
  width: max-content;
  padding: 8px 10px;
  font-size: 11px;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  border-radius: 4px;
  background: #2a2d32;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s;
}

#vital-tooltip-floating.vital-tooltip-floating--game[data-placement="top"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2a2d32;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

#vital-tooltip-floating.vital-tooltip-floating--game[data-placement="bottom"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  margin-left: -6px;
  width: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #2a2d32;
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.2));
}

.vital-pct {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.vital-bar-track {
  height: 14px;
  border: 2px solid var(--border);
  background: rgba(0, 0, 0, 0.06);
  width: 100%;
  position: relative;
}

.vital-bar-fill {
  height: 100%;
  border-right: 2px solid var(--border);
  transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── PROFILES SECTION ──────────────────────────────────────── */
/* ── WHO IS IT FOR ────────────────────────────────────────── */
.for-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.for-card {
  background: #EBEAD2;
  border: 3px solid #1193D4;
  box-shadow: 6px 6px 0 #1193D4;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}

.for-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #1193D4;
}

.for-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.for-icon {
  width: 48px;
  height: 48px;
  background: #1193D4;
  color: #F2A900;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.for-title-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.for-title {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: #2b2b2b;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.for-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #1193D4;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.for-body {
  flex-grow: 1;
}

.for-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.for-list li {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  position: relative;
  padding-left: 18px;
}

.for-list li::before {
  content: "»";
  color: #F2A900;
  font-size: 1.1rem;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: -2px;
}

.for-divider {
  border: none;
  border-top: 2px solid #F2A900;
  margin-top: 32px;
  margin-bottom: 20px;
}

.for-footer-link {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: #F2A900;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  transition: color 0.15s;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
}

.for-footer-link:hover {
  color: #FF672D;
}

/* ── TERMINAL CTA SECTION ────────────────────────────────── */
.terminal-cta {
  background: #0A0E1A;
  background-image: radial-gradient(circle, #ffffff08 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 64px var(--page-gutter-x) 0;
  border-top: var(--border-w) solid #F2A900;
}

.terminal-cta-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* The bordered terminal window */
.terminal-window {
  border: 2px solid #2a3050;
  box-shadow:
    0 0 0 1px #F2A90044,
    0 0 48px #F2A90018,
    inset 0 0 60px #00000044;
  overflow: hidden;
}

/* Top status bar */
.terminal-bar {
  background: #0d1120;
  border-bottom: 2px solid #1e2540;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-bar-title {
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  color: #F2A900;
  letter-spacing: 0.12em;
}

.terminal-bar-dots {
  display: flex;
  gap: 6px;
}

.tbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Terminal body */
.terminal-body {
  background: #0c1020;
  padding: 48px 40px 44px;
  text-align: center;
  position: relative;
  /* subtle scanline overlay */
  background-image: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.012) 3px,
      rgba(255, 255, 255, 0.012) 4px);
}

.terminal-body .btn-primary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.terminal-pre-label {
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  color: #4a5580;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.terminal-headline {
  font-family: var(--font-pixel);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.terminal-desc {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: #6a7aaa;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.terminal-desc p+p {
  margin-top: 16px;
}

/* Neon green CTA button */
.btn-terminal {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  background: #00CC44;
  color: #0A0E1A;
  border: 2px solid #00CC44;
  padding: 18px 32px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #008833, 0 0 24px #00CC4440;
  letter-spacing: 0.06em;
  transition: transform 0.05s, box-shadow 0.05s, background 0.1s;
  text-transform: uppercase;
  position: relative;
  animation: green-pulse 2.5s ease-in-out infinite;
}

.btn-terminal:hover {
  background: #00ee55;
  border-color: #00ee55;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #008833, 0 0 36px #00CC4466;
  animation: none;
}

.btn-terminal:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #008833;
}

@keyframes green-pulse {

  0%,
  100% {
    box-shadow: 4px 4px 0 #008833, 0 0 24px #00CC4440;
  }

  50% {
    box-shadow: 4px 4px 0 #008833, 0 0 40px #00CC4470;
  }
}

.terminal-footer-note {
  font-family: var(--font-pixel);
  font-size: 0.36rem;
  color: #354060;
  letter-spacing: 0.12em;
  margin-top: 24px;
  text-transform: uppercase;
}

/* ── PAGE FOOTER (slim strip under terminal) ──────────────── */
.terminal-page-footer {
  background: #070a14;
  border-top: 1px solid #1a2030;
  padding: 28px 24px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  text-align: center;
}

.tpf-logo {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: #F2A900;
  letter-spacing: 0.12em;
  text-shadow: 2px 2px 0 #2E7D32;
}

.tpf-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.tpf-links a {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: #354060;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

.tpf-links a:hover {
  color: #F2A900;
}

.tpf-copy {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: #2a3050;
  letter-spacing: 0.08em;
}

/* ── BLINK ANIMATION ──────────────────────────────────────── */
.blink-slow {
  animation: blink-cur 1.5s steps(1) infinite;
  color: var(--primary);
}

/* ── HOVER ACTIVATION ON STAT FILLS ─────────────────────── */
.metric-card.visible .stat-fill {
  width: var(--fill-w);
}

/* ═══════════════════════════════════════════════════════════
   SIM TERMINAL  (Hero visual replacement)
   ═══════════════════════════════════════════════════════════ */

/* Outer container – matches hero-visual sizing */
.sim-terminal {
  width: 100%;
  max-width: 460px;
  border: 2px solid #2a3560;
  background: #0b0f1e;
  box-shadow:
    0 0 0 1px #F2A90033,
    6px 6px 0 #1F1F1F,
    0 0 40px #F2A90014;
  font-family: var(--font-pixel);
  overflow: hidden;
}

/* ── Status bar ─────────────────────────────────────── */
.sim-bar {
  background: #0d1128;
  border-bottom: 2px solid #1e2645;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-bar-label {
  font-family: var(--font-pixel);
  font-size: 0.32rem;
  color: #F2A900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-bar-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  margin-left: 10px;
}

.sbar-dot {
  width: 9px;
  height: 9px;
  border-radius: 0;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Body ───────────────────────────────────────────── */
.sim-body {
  background: #0c1020;
  padding: 18px 16px 20px;
  /* subtle scanlines */
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px,
      rgba(255, 255, 255, 0.01) 3px, rgba(255, 255, 255, 0.01) 4px);
}

/* ── Decision header ────────────────────────────────── */
.sim-decision-hdr {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: #F2A900;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

/* ── Sector tabs ────────────────────────────────────── */
.sim-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sim-tab {
  font-family: var(--font-pixel);
  font-size: 0.28rem;
  color: #4a5880;
  border: 1px solid #2a3560;
  padding: 4px 8px;
  letter-spacing: 0.06em;
  cursor: default;
  transition: background 0.15s, color 0.15s;
}

.sim-tab.active-tab {
  background: #F2A900;
  color: #0b0f1e;
  border-color: #F2A900;
}

/* ── Problem statement ──────────────────────────────── */
.sim-problem {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #c8d0e8;
  line-height: 1.65;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e2540;
}

/* ── Decision options ───────────────────────────────── */
.sim-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.sim-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #1e2540;
  padding: 8px 12px;
  background: #0e1428;
  cursor: default;
  transition: background 0.15s, border-color 0.15s;
}

.sim-option-selected {
  background: #162040;
  border-color: #3a5090;
}

.opt-key {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: #4a6090;
  flex-shrink: 0;
  padding-top: 2px;
  width: 14px;
}

.sim-option-selected .opt-key {
  color: #7ab0ff;
}

.opt-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6a7aaa;
  line-height: 1.5;
}

.sim-option-selected .opt-text {
  color: #e8eeff;
}

/* ── Metric strip (animated vertical bars) ────────────── */
.sim-metric-strip {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding-top: 14px;
  border-top: 1px solid #1e2540;
}

.sim-metric-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

/* Outer shell — fixed height, bar grows from bottom */
.sim-mbar-wrap {
  width: 100%;
  height: 56px;
  background: #0d1430;
  border: 1px solid #1e2540;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
  /* needed for overlay */
}

/* Fill that animates height */
.sim-mbar-fill {
  width: 100%;
  transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.88;
}

/* Value + delta — overlaid inside the bar, centered */
.sim-mbar-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
  z-index: 2;
}

.sim-mval {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.sim-mdelta {
  font-family: var(--font-pixel);
  font-size: 0.3rem;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  min-width: 14px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.sim-mdelta.up {
  color: #afffbf;
}

.sim-mdelta.down {
  color: #ffb3a0;
}

.sim-mdelta.same {
  color: rgba(255, 255, 255, 0.5);
}

.sim-mlabel {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: #4a5880;
  letter-spacing: 0.06em;
}

/* Desktop hero: two columns, CTA under headline (unchanged layout) */
@media (min-width: 1025px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr min(420px, 38%);
    grid-template-rows: auto auto;
    column-gap: 64px;
    row-gap: 12px;
    align-items: start;
  }

  .hero-desc {
    margin-bottom: 0;
  }

  .hero-text {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-visual {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 460px;
  }

  .hero-cta-group {
    grid-column: 1;
    grid-row: 2;
    flex: unset;
    order: unset;
    width: auto;
    max-width: none;
    justify-self: start;
    margin-bottom: 0;
  }

  /* About: left column = copy + CTA, right = stats (original layout) */
  #about .section-inner {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    column-gap: 60px;
    row-gap: 32px;
    align-items: start;
  }

  #about .about-heading-main {
    grid-column: 1 / -1;
  }

  #about .about-layout-new {
    display: contents;
  }

  #about .about-main-left {
    grid-column: 1;
    grid-row: 2;
  }

  #about .about-main-left .about-list {
    margin-bottom: 0;
  }

  #about .about-stats-new {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
  }

  #about .about-btn {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    width: auto;
    max-width: 480px;
    justify-self: start;
  }

  .about-heading-main {
    text-align: left;
  }
}

/* ── RESPONSIVE — tablet + mobile (≤1024px) ───────────────── */
@media (max-width: 1024px) {
  .nav-backdrop {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 360px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(72px + env(safe-area-inset-top, 0px)) var(--page-gutter-x) 32px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--bg);
    background-image: radial-gradient(circle, #1F1F1F22 1px, transparent 1px);
    background-size: 20px 20px;
    border-left: var(--border-w) solid var(--border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 200;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.nav-is-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 2px solid rgba(31, 31, 31, 0.12);
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 8px;
    padding-top: 8px;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 8px;
    font-size: 0.52rem;
    box-sizing: border-box;
  }

  .nav-links a.btn-nav {
    justify-content: center;
    min-height: 52px;
    width: 100%;
    margin-top: 4px;
    font-size: 0.56rem;
  }

  .green-ticker {
    margin-bottom: 28px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    row-gap: 16px;
    padding: 12px 0 32px;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
  }

  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  .hero-title {
    font-size: clamp(1.35rem, 7vw, 2.6rem);
    margin-bottom: 16px;
  }

  .hero-desc {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    font-size: clamp(0.95rem, 2.8vw, 1.15rem);
    line-height: 1.65;
  }

  .hero-text {
    width: 100%;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .sim-terminal {
    max-width: 100%;
    width: 100%;
  }

  .sim-bar-label {
    white-space: normal;
    font-size: 0.28rem;
    line-height: 1.5;
  }

  .sim-body {
    padding: 18px 16px 20px;
  }

  .sim-options {
    gap: 14px;
    margin-bottom: 18px;
  }

  .sim-option {
    width: 100%;
    padding: 12px 14px;
    align-items: center;
  }

  .opt-text {
    font-size: 0.72rem;
    text-align: left;
    word-break: break-word;
  }

  .sim-problem {
    font-size: 0.78rem;
    word-break: break-word;
  }

  .sim-metric-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sim-metric-col {
    flex: 1 1 18%;
    min-width: 52px;
  }

  .hero-cta-group {
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .hero-cta-group .btn-primary {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Primary CTAs: larger pixel font than default .btn on small screens */
  .btn-primary {
    font-size: 0.5rem;
  }

  .hero-badge-row {
    justify-content: center;
  }

  .steps-connector {
    display: none;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-card {
    padding: 10px;
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0 var(--border);
  }

  .flow-card-inner {
    padding: 22px 20px 20px;
    border: 2px solid var(--border);
    box-shadow: inset 0 0 0 2px #1F2123, inset 0 0 0 4px rgba(255, 255, 255, 0.75);
  }

  .flow-num {
    margin-bottom: 18px;
    font-size: 0.95rem;
  }

  .flow-icon {
    margin-bottom: 18px;
  }

  .section-title {
    border-left: none;
    border-bottom: 6px solid var(--primary);
    padding-left: 0;
    padding-bottom: 14px;
    text-align: center;
  }

  #who-is-it-for .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    border-bottom: 4px solid #FF672D;
    padding-bottom: 12px;
    margin-bottom: 28px;
  }

  .about-heading {
    text-align: center;
    margin-bottom: 28px;
  }

  #how-it-works .about-heading {
    padding-bottom: 12px;
    border-bottom: 4px solid #FF672D;
  }

  .metrics-heading-line {
    text-align: center;
  }

  .section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 28px;
  }

  .about-heading-main {
    text-align: center;
    margin-bottom: 28px;
  }

  .about-layout-new {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
  }

  .about-main-left {
    padding-right: 0;
    text-align: left;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .about-list {
    gap: 16px;
    margin-bottom: 0;
  }

  .about-list li {
    padding-left: 26px;
  }

  .about-stats-new {
    gap: 18px;
    width: 100%;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
  }

  .about-stat-card {
    width: 100%;
    padding: 20px 20px 20px 22px;
  }

  .about-stat-card::before {
    transform: scaleY(1);
  }

  .about-btn {
    max-width: none;
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .vitals-dashboard {
    flex-direction: column;
    margin-top: 28px;
  }

  .vitals-left {
    border-right: none;
    border-bottom: var(--border-w) solid var(--border);
    padding: 28px 24px;
  }

  .vitals-right {
    padding: 24px 20px 28px;
  }

  .vitals-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .vitals-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .vitals-metrics-inner {
    gap: 16px;
    min-height: 0;
  }

  .vital-bar-track {
    height: 18px;
  }

  .for-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .for-card {
    padding: 22px 22px 24px;
    width: 100%;
  }

  .terminal-cta {
    padding: 48px var(--page-gutter-x) 0;
  }

  .terminal-body {
    padding: 36px 20px 32px;
  }

  .terminal-headline {
    font-size: clamp(1.1rem, 5vw, 2.2rem);
  }

  .terminal-desc {
    font-size: 1.05rem;
  }

  .terminal-body .btn-primary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: 64px var(--page-gutter-x);
  }

  .terminal-page-footer {
    margin-top: 40px;
    padding: 24px var(--page-gutter-x) 32px;
  }

  .tpf-copy {
    width: 100%;
  }
}

/* ── Mobile refinements (≤480px) ──────────────────────────── */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .nav-inner {
    padding: 10px 0;
  }

  .nav-logo {
    font-size: 0.95rem;
    gap: 10px;
  }

  .nav-logo-icon {
    width: 36px;
    height: 36px;
  }

  .green-ticker {
    padding: 8px 0;
    margin-bottom: 20px;
  }

  .gticker-inner span {
    font-size: 0.38rem;
  }

  .hero-content {
    padding: 8px 0 28px;
    gap: 14px;
    row-gap: 14px;
  }

  .hero-title {
    font-size: clamp(1.05rem, 8.2vw, 1.65rem);
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .sim-body {
    padding: 14px 12px 16px;
  }

  .sim-decision-hdr {
    font-size: 0.42rem;
    margin-bottom: 12px;
  }

  .sim-options {
    gap: 12px;
  }

  .sim-option {
    padding: 10px 12px;
  }

  .sim-metric-strip {
    gap: 8px;
  }

  .sim-mbar-wrap {
    height: 48px;
  }

  .section {
    padding: 48px var(--page-gutter-x);
  }

  .about-heading-main {
    font-size: clamp(0.95rem, 4.2vw, 1.25rem);
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .about-list {
    gap: 14px;
  }

  .about-list li {
    font-size: 0.95rem;
  }

  .about-stat-num {
    font-size: 1rem;
  }

  .flow-card-inner {
    padding: 20px 16px 18px;
  }

  .flow-title {
    font-size: 0.52rem;
  }

  .flow-desc {
    font-size: 0.75rem;
  }

  .vitals-left,
  .vitals-right {
    padding: 20px 16px;
  }

  .vitals-tab {
    font-size: 0.38rem;
    padding: 10px 14px;
  }

  .vital-bar-track {
    height: 20px;
  }

  .vital-row {
    gap: 12px;
  }

  .vital-name {
    white-space: normal;
    line-height: 1.45;
  }

  .for-card {
    padding: 20px 18px 22px;
  }

  .for-title {
    font-size: 0.58rem;
  }

  .btn {
    font-size: 0.42rem;
    padding: 14px 16px;
  }

  /* ~1.4× primary vs shrunken .btn; keeps CTAs readable on phones */
  .btn-primary {
    font-size: 0.6rem;
  }

  .btn-nav {
    font-size: 0.4rem;
  }

  .nav-links a.btn-nav {
    font-size: 0.52rem;
  }

  .terminal-cta {
    padding: 40px var(--page-gutter-x) 0;
  }

  .terminal-body {
    padding: 28px var(--page-gutter-x) 28px;
  }

  .terminal-headline {
    margin-bottom: 16px;
  }

  .terminal-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .cta-pixel-deco {
    display: none;
  }
}