/* ============================================
   CYBER ESCAPE ROOM — Landing Page
   Brand: #38DEBB (mint), #16181E (deep navy)
   ============================================ */

:root {
  --bg: #0C0E13;
  --bg-2: #16181E;
  --bg-3: #1B1F27;
  --panel: rgba(22, 24, 30, 0.72);
  --line: rgba(56, 222, 187, 0.18);
  --line-strong: rgba(56, 222, 187, 0.45);
  --mint: #38DEBB;
  --mint-dim: #1FA68A;
  --blue: #0890FE;
  --red: #D42010;
  --yellow: #FECD3E;
  --text: #E6EEF1;
  --text-dim: #8A96A3;
  --text-mute: #5C6776;

  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --r: 6px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* Global grid backdrop */
.gridbg {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(56, 222, 187, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 222, 187, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
  z-index: 2;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(12, 14, 19, 0.85), rgba(12, 14, 19, 0.4));
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav .logo { height: 26px; }
.nav .logo svg, .nav .logo img { height: 100%; width: auto; }

.nav-meta {
  display: none;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
@media (min-width: 900px) {
  .nav-meta { display: flex; }
}
.nav-meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(56, 222, 187, 0.15);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 222, 187, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(56, 222, 187, 0); }
}
.nav-links { display: none; gap: 28px; }
@media (min-width: 820px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--mint); }
.nav-links a::before { content: "// "; opacity: 0.4; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--mint);
  border: none;
  border-radius: 2px;
  position: relative;
  transition: transform .15s, box-shadow .15s, background .15s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn:hover { background: #4FF3D0; box-shadow: 0 0 30px rgba(56, 222, 187, 0.4); }
.btn .arr { font-family: monospace; font-weight: 700; }

.btn.ghost {
  background: transparent;
  color: var(--mint);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { background: rgba(56, 222, 187, 0.08); box-shadow: none; }

/* === Language switcher === */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.lang-btn {
  width: 30px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity .15s, border-color .15s, transform .15s;
}
.lang-btn svg {
  width: 22px;
  height: auto;
  display: block;
  border-radius: 1px;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.active {
  opacity: 1;
  border-color: var(--line-strong);
  background: rgba(56, 222, 187, 0.06);
}
.lang-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--mint);
}

/* ============================================
   HERO  — full-bleed trailer background
   ============================================ */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 60px;
  overflow: hidden;
  min-height: 92vh;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg .trailer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
  filter: contrast(1.05) brightness(0.85) saturate(1.05);
}
/* Tint + readability gradient */
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(12,14,19,0.92) 28%, rgba(12,14,19,0.55) 55%, rgba(12,14,19,0.25) 80%, rgba(12,14,19,0.45) 100%),
    linear-gradient(180deg, rgba(12,14,19,0.6) 0%, transparent 25%, transparent 70%, rgba(12,14,19,0.95) 100%);
}
/* Subtle scanline overlay just on hero bg */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(56,222,187,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56,222,187,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.7) 100%);
  opacity: 0.7;
}

/* Hero inner now single column */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-left: 0;
}

/* Floating HUD overlay on hero (positioned absolute inside section) */
.hero-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mint);
}
.hero-hud .hud-tl,
.hero-hud .hud-tr,
.hero-hud .hud-br {
  position: absolute;
}
.hero-hud .hud-tl {
  top: 180px;
  right: clamp(20px, 4vw, 56px);
  display: none;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.hero-hud .hud-tl .row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.hero-hud .hud-tl .row span:first-child { color: var(--text-mute); }

.hero-hud .hud-tr {
  display: none;
  top: 180px;
  right: clamp(20px, 4vw, 56px);
  text-align: right;
  flex-direction: column;
  gap: 4px;
}

.hero-hud .hud-br {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(12, 14, 19, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  bottom: 90px;
  right: clamp(20px, 4vw, 56px);
}
.hero-hud .hud-br .green {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00FF9A;
  box-shadow: 0 0 8px #00FF9A;
}

@media (min-width: 900px) {
  .hero-hud .hud-tl,
  .hero-hud .hud-tr {
    display: flex;
  }
}

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(56, 222, 187, 0.06);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.tag .blip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  animation: blip 1.4s ease-in-out infinite;
}
@keyframes blip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero h1 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero h1 .mint { color: var(--mint); }
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.1em;
  height: 6px;
  background: var(--mint);
  opacity: 0.25;
}

.hero-sub {
  margin-top: 26px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}

.hero-ctas {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 14px;
}

.hero-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 560px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta .m-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-meta .m-value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}
.hero-meta .m-qual {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--text-mute);
  text-transform: none;
}

/* HERO RIGHT — Trailer + HUD overlay */
.hero-visual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  aspect-ratio: 16/11;
  min-height: 320px;
  max-height: 80vh;
}
.hero-visual::after {
  /* corner brackets */
  content: "";
  position: absolute; inset: 14px;
  pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(var(--mint), var(--mint)) top left / 22px 1px no-repeat,
    linear-gradient(var(--mint), var(--mint)) top left / 1px 22px no-repeat,
    linear-gradient(var(--mint), var(--mint)) top right / 22px 1px no-repeat,
    linear-gradient(var(--mint), var(--mint)) top right / 1px 22px no-repeat,
    linear-gradient(var(--mint), var(--mint)) bottom left / 22px 1px no-repeat,
    linear-gradient(var(--mint), var(--mint)) bottom left / 1px 22px no-repeat,
    linear-gradient(var(--mint), var(--mint)) bottom right / 22px 1px no-repeat,
    linear-gradient(var(--mint), var(--mint)) bottom right / 1px 22px no-repeat;
}
.hero-visual::before {
  /* edge fade to bg on the left side, so image dissolves into hero */
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 32%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
  opacity: 0.55;
}
.hero-visual img.trailer {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% 60%;
  filter: contrast(1.04) brightness(1.02) saturate(1.05);
}
.hero-visual .hud {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mint);
  letter-spacing: 0.08em;
}
.hud-tl {
  position: absolute; top: 24px; left: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.hud-tl .row { display: flex; gap: 8px; }
.hud-tl .row span:first-child { color: var(--text-mute); }
.hud-tr {
  position: absolute; top: 24px; right: 24px;
  text-align: right;
  display: flex; flex-direction: column; gap: 6px;
}
.hud-bl {
  position: absolute; bottom: 24px; left: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.hud-br {
  position: absolute; bottom: 24px; right: 24px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(12, 14, 19, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.hud-br .green {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00FF9A; box-shadow: 0 0 8px #00FF9A;
}

.bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 9.5px;
  color: var(--text-dim);
}
.bar .track {
  width: 90px; height: 4px;
  background: rgba(56, 222, 187, 0.12);
  border-radius: 1px;
  overflow: hidden;
}
.bar .fill {
  height: 100%;
  background: var(--mint);
  transition: width 1s ease;
}

/* Scrolling ticker beneath hero */
.ticker {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(56, 222, 187, 0.02);
}
.ticker-track {
  display: flex; gap: 48px;
  padding: 14px 0;
  animation: tick 38s linear infinite;
  white-space: nowrap;
}
.ticker span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.ticker span b { color: var(--mint); font-weight: 500; }
.ticker .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--mint);
  margin: 0 0 2px 0;
  vertical-align: middle;
  opacity: 0.6;
}
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTION SHELL
   ============================================ */
section.panel {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head .left { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow .idx {
  font-family: var(--font-mono);
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.eyebrow .line {
  width: 36px; height: 1px;
  background: var(--line-strong);
}
h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 .mint { color: var(--mint); }
.lead {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.55;
  max-width: 620px;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}
.p-card {
  position: relative;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  transition: border-color .2s, transform .2s;
}
.p-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.p-card .num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.p-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 36px;
}
.p-card p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}
.p-card .bar-line {
  height: 1px;
  background: linear-gradient(to right, var(--mint), transparent);
  margin-top: 22px;
}

.problem-conclusion {
  margin-top: 56px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(212, 32, 16, 0.08), rgba(22, 24, 30, 0.6));
  border-left: 2px solid var(--red);
  display: flex; gap: 22px; align-items: center;
  flex-wrap: wrap;
}
.problem-conclusion .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.problem-conclusion .text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* ============================================
   STATS
   ============================================ */
.stats-section {
  background: linear-gradient(180deg, transparent, rgba(56, 222, 187, 0.03), transparent);
}
#problem { padding-bottom: 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: var(--bg);
  padding: 38px 28px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.stat .num,
.stat .label,
.stat .source { min-width: 0; max-width: 100%; word-break: break-word; }
.stat .num {
  display: flex; align-items: flex-end;
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--mint);
}
.stat .num .sym {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--mint-dim);
  margin-left: 4px;
  margin-bottom: 0.2em;
}
.stat .label {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  max-width: 240px;
}
.stat .meta {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.stat .source {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}

/* ============================================
   SIMULATION CORE / WHAT IS IT
   ============================================ */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .sim-grid { grid-template-columns: 1.05fr 1fr; }
}

.terminal {
  background: #0A0C10;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.terminal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(56, 222, 187, 0.05);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.terminal-head .lights { display: flex; gap: 6px; }
.terminal-head .lights span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.terminal-head .lights span:first-child { background: var(--mint); }
.terminal-body { padding: 22px 24px; min-height: 320px; }
.terminal-body .line { display: block; min-height: 1.7em; }
.terminal-body .prompt { color: var(--mint); }
.terminal-body .key { color: var(--text-mute); }
.terminal-body .val { color: var(--text); }
.terminal-body .ok { color: #00FF9A; }
.terminal-body .warn { color: var(--yellow); }
.terminal-body .alert { color: var(--red); }
.terminal-body .cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--mint);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.sim-content h2 { margin-top: 18px; }
.sim-bullets {
  margin-top: 36px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.sim-bullets li {
  list-style: none;
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--mint);
}
.sim-bullets li .num {
  font-family: var(--font-mono);
  color: var(--mint);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-top: 2px;
  min-width: 24px;
}
.sim-bullets li .text {
  font-size: 16px;
  font-weight: 500;
}

/* ============================================
   SCENARIOS A/B/C/D
   ============================================ */
.scen-section {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(56, 222, 187, 0.06), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(8, 144, 254, 0.04), transparent);
}
.scen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) {
  .scen-grid { grid-template-columns: 1fr 1fr; }
}
.scenario {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color .2s;
}
.scenario:hover { border-color: var(--line-strong); }
.scenario .letter {
  position: absolute;
  top: -10px;
  right: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 240px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(56, 222, 187, 0.05);
  pointer-events: none;
  user-select: none;
}
.scenario .top-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scenario .top-meta .id {
  display: flex; align-items: center; gap: 8px;
  color: var(--mint);
}
.scenario h3 {
  margin-top: 26px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-family: var(--font-display);
}
.scenario p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 420px;
}
.scenario .keywords {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.scenario .keywords span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scenario .threat {
  margin-top: 26px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.threat .bar-graph {
  display: flex; gap: 2px; height: 14px;
}
.threat .bar-graph i {
  width: 4px; height: 100%;
  background: rgba(56, 222, 187, 0.18);
  display: inline-block;
}
.threat .bar-graph i.on {
  background: var(--mint);
}

/* ============================================
   LEARNING OUTCOMES
   ============================================ */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) {
  .learn-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .learn-grid { grid-template-columns: repeat(4, 1fr); }
}
.learn {
  background: var(--bg);
  padding: 36px 26px;
  display: flex; flex-direction: column;
  min-height: 340px;
  transition: background .2s;
}
.learn:hover { background: var(--bg-2); }
.learn .ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.learn .ico img { max-height: 36px; max-width: 36px; }
.learn .step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.learn h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.learn p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

/* ============================================
   PROJECT GOALS  /  VALUE
   ============================================ */
.value-section {
  background: var(--bg-2);
}
.value-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 900px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }

.v-card {
  position: relative;
  padding: 32px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.v-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 0.1em;
}
.v-card h3 {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.v-card p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}
.v-card .ring {
  position: absolute;
  top: 28px; right: 28px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mint);
}

/* ============================================
   RESULTS  (Big rows)
   ============================================ */
.results-list { 
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.result-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
}
@media (min-width: 900px) {
  .result-row { grid-template-columns: 140px 1fr 1fr; gap: 64px; padding: 56px 0; }
}
.result-row .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
  letter-spacing: 0.1em;
  padding-top: 8px;
}
.result-row h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.result-row .desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 480px;
}

/* ============================================
   CTA / CLOSING
   ============================================ */
.close-section {
  padding: 140px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(56, 222, 187, 0.10), transparent 70%);
  border-top: 1px solid var(--line);
}
.close-section .eyebrow { justify-content: center; }
.close-section h2 {
  margin: 20px auto 0;
  max-width: 880px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
}
.close-section .lead {
  margin: 26px auto 0;
}
.close-section .ctas {
  margin-top: 40px;
  display: flex; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.contact h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 360px;
}
.contact h3 .mint { color: var(--mint); }
.contact .col-head {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.contact ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact ul a {
  color: var(--text);
  font-size: 15.5px;
  transition: color .2s;
}
.contact ul a:hover { color: var(--mint); }
.contact ul small {
  display: block;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  margin-top: 2px;
  text-transform: uppercase;
}

.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot .end {
  display: flex; align-items: center; gap: 8px;
}
.foot-right {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-cookies {
  color: var(--text-mute);
  transition: color .2s;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-cookies:hover { color: var(--mint); }
.foot-sep {
  color: var(--text-mute);
  opacity: .5;
  font-size: 12px;
  line-height: 1;
}
.foot-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.foot-credit .bigeye-mark {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  transition: color .2s ease, opacity .2s ease;
  opacity: .85;
}
.foot-credit .bigeye-mark:hover {
  color: var(--mint);
  opacity: 1;
}
.foot-credit .bigeye-mark img {
  display: block;
  height: 18px;
  width: auto;
}
.foot .end .dot {
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
}

/* Reveal animations — JS-driven; content visible by default */
.reveal {
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.hidden-init {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.hidden-init.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* Hide nav meta on mobile gracefully */
@media (max-width: 540px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .scenario .letter { font-size: 130px; }
  .result-row { grid-template-columns: 1fr; gap: 16px; }
  .result-row .idx { padding-top: 0; }
}

/* ============================================
   MOBILE POLISH PASS
   ============================================ */
@media (max-width: 640px) {
  :root { --pad: 18px; }

  /* Nav: keep CTA compact, prevent logo wrap */
  .nav { padding: 10px 0; }
  .nav .logo { height: 22px; }
  .btn { padding: 9px 14px; font-size: 10.5px; letter-spacing: 0.08em; }

  /* Hero: less top padding, smaller min height, tighter rhythm */
  .hero {
    padding-top: 110px;
    padding-bottom: 48px;
    min-height: 80svh;
  }
  .hero-bg .trailer { object-position: 75% 60%; }
  .hero-bg-fade {
    background:
      linear-gradient(180deg, rgba(12,14,19,0.85) 0%, rgba(12,14,19,0.55) 40%, rgba(12,14,19,0.5) 70%, rgba(12,14,19,0.96) 100%);
  }
  .hero h1 { font-size: clamp(34px, 11vw, 56px); }
  .hero-sub { font-size: 15px; margin-top: 18px; color: #B8C2CC; }
  .hero-ctas { margin-top: 26px; gap: 10px; }
  .hero-meta {
    margin-top: 32px;
    gap: 16px;
    padding-top: 18px;
  }
  .hero-meta .m-label { color: #9AA7B4; }
  .hero-meta .m-value { font-size: 16px; }

  /* Sections: tighter vertical rhythm */
  section.panel { padding: 64px 0; }
  #problem { padding-bottom: 24px; }
  .section-head { margin-bottom: 36px; }
  h2 { font-size: clamp(28px, 8vw, 40px); }
  .lead { font-size: 15px; }

  /* Cards & paddings */
  .p-card { padding: 22px; }
  .p-card h3 { font-size: 19px; margin-top: 30px; }
  .problem-conclusion { padding: 24px; }
  .problem-conclusion .text { font-size: 18px; }

  /* Stats: 2x2, smaller numbers */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px 20px; }
  .stat .num { font-size: clamp(40px, 12vw, 56px); }
  .stat .label { font-size: 11.5px; margin-top: 14px; letter-spacing: 0.04em; }
  .stat .source { padding-top: 18px; font-size: 9.5px; }
  .stat .meta { right: 14px; top: 14px; font-size: 9px; }

  /* Simulation terminal: smaller padding */
  .terminal-body { padding: 16px 16px; min-height: 260px; font-size: 11.5px; }
  .sim-bullets { gap: 12px; }
  .sim-bullets li { padding: 12px 16px; }
  .sim-bullets li .text { font-size: 15px; }

  /* Scenarios: smaller letter, tighter pad */
  .scenario { padding: 28px 22px; }
  .scenario .letter { font-size: 120px; right: 14px; }
  .scenario h3 { font-size: 21px; margin-top: 22px; }

  /* Learn cards: tighter min-height */
  .learn { padding: 28px 22px; min-height: 0; }
  .learn .ico { margin-bottom: 22px; }

  /* Value cards */
  .v-card { padding: 24px; }
  .v-card .ring { top: 22px; right: 22px; width: 28px; height: 28px; font-size: 10px; }

  /* Results: stack idx above title */
  .result-row { padding: 32px 0; gap: 8px; }
  .result-row h3 { font-size: 22px; }
  .result-row .desc { font-size: 14.5px; }

  /* Close section */
  .close-section { padding: 100px 0 80px; }
  .close-section h2 { font-size: clamp(30px, 9vw, 48px); }

  /* Contact */
  .contact { padding: 60px 0 30px; }
  .contact-grid { gap: 32px; }
  .contact h3 { font-size: 24px; }
  .foot { font-size: 10px; gap: 10px; }
}

/* Very small phones (<360px) */
@media (max-width: 360px) {
  .nav .logo { height: 20px; }
  .btn { padding: 8px 12px; font-size: 10px; }
  .hero h1 { font-size: clamp(30px, 10vw, 44px); }
  .stat .num { font-size: clamp(38px, 13vw, 52px); }
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cer-cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  padding: 18px clamp(16px, 4vw, 40px);
  background: rgba(12, 14, 19, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.4);
  transform: translateY(110%);
  transition: transform .42s cubic-bezier(.2,.7,.2,1);
}
.cer-cc-banner.in { transform: none; }
.cer-cc-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
@media (min-width: 900px) {
  .cer-cc-inner { grid-template-columns: 1fr auto; gap: 28px; }
}
.cer-cc-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cer-cc-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 6px;
}
.cer-cc-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 720px;
}
.cer-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cer-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.cer-cc-btn.primary {
  background: var(--mint);
  color: var(--bg);
}
.cer-cc-btn.primary:hover { background: #4FF3D0; }
.cer-cc-btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.cer-cc-btn.ghost:hover {
  background: rgba(56, 222, 187, 0.06);
  color: var(--mint);
  border-color: var(--mint);
}

/* ===== Modal ===== */
.cer-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .26s ease;
}
.cer-cc-modal.in { opacity: 1; }
.cer-cc-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(6px);
}
.cer-cc-dialog {
  position: relative;
  max-width: 580px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: translateY(12px) scale(0.98);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.cer-cc-modal.in .cer-cc-dialog { transform: none; }
.cer-cc-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.cer-cc-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s;
}
.cer-cc-close:hover { color: var(--mint); border-color: var(--line-strong); }

.cer-cc-rows {
  margin: 22px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cer-cc-row {
  display: block;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .15s;
}
.cer-cc-row:hover { border-color: var(--line); }
.cer-cc-row.locked { cursor: default; opacity: 0.85; }
.cer-cc-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cer-cc-row-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cer-cc-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.cer-cc-row-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* Toggle switch */
.cer-cc-switch {
  position: relative;
  flex-shrink: 0;
}
.cer-cc-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.cer-cc-switch input:disabled { cursor: not-allowed; }
.cer-cc-track {
  display: block;
  width: 42px;
  height: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  position: relative;
  transition: background .2s, border-color .2s;
  pointer-events: none;
}
.cer-cc-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), background .2s;
}
.cer-cc-switch input:checked ~ .cer-cc-track {
  background: rgba(56, 222, 187, 0.18);
  border-color: var(--line-strong);
}
.cer-cc-switch input:checked ~ .cer-cc-track .cer-cc-thumb {
  transform: translateX(18px);
  background: var(--mint);
}
.cer-cc-switch input:disabled ~ .cer-cc-track {
  background: rgba(56, 222, 187, 0.12);
}
.cer-cc-switch input:disabled ~ .cer-cc-track .cer-cc-thumb {
  background: var(--mint-dim);
}

.cer-cc-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 540px) {
  .cer-cc-banner {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: rgba(8, 10, 14, 0.98);
  }
  .cer-cc-inner { gap: 14px; }
  .cer-cc-actions {
    width: 100%;
    flex-direction: column;
  }
  .cer-cc-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 11px;
    letter-spacing: 0.06em;
    white-space: normal;
    min-height: 44px;
    line-height: 1.2;
  }
  .cer-cc-dialog { padding: 22px 20px; }
  .cer-cc-dialog-foot { flex-direction: column-reverse; }
  .cer-cc-dialog-foot .cer-cc-btn { width: 100%; }
}

/* Footer cookie link hover */
.foot a[data-cookie-settings]:hover { color: var(--mint) !important; }

/* Temporarily hide Book a demo / Send enquiry CTAs (both EN + ET) */
.btn[data-i18n="nav.cta"],
.btn[data-i18n="hero.cta1"],
.close-section .ctas {
  display: none !important;
}
