:root {
  --bg-deep: #060b14;
  --bg-surface: #0b1324;
  --bg-card: rgba(11, 19, 36, 0.72);
  --bg-card-hover: rgba(15, 26, 48, 0.84);
  --border-glass: rgba(148, 163, 184, 0.16);
  --border-cyan: rgba(34, 211, 238, 0.34);

  --text-main: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;

  --emerald: #10b981;
  --emerald-deep: #059669;
  --teal: #0891b2;
  --cyan: #22d3ee;
  --magma: #f97316;
  --amber: #f59e0b;
  --crimson: #f85149;

  --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 55%, #0891b2 100%);
  --shadow-primary: 0 10px 30px -6px rgba(16, 185, 129, 0.38);
  --shadow-primary-hover: 0 14px 36px -4px rgba(16, 185, 129, 0.52);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 50px -12px rgba(2, 6, 23, 0.65);
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-main);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

code,
kbd {
  font-family: var(--font-mono);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Cosmic Architectural Background + Noise Texture */
.space-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 50% at 50% -10%, rgba(8, 145, 178, 0.14), transparent 65%),
    radial-gradient(ellipse 65% 45% at 85% 95%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, #091121 52%, var(--bg-deep) 100%);
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
}

.glow-orb--teal {
  width: 560px;
  height: 560px;
  top: -160px;
  left: -140px;
  background: rgba(8, 145, 178, 0.36);
}

.glow-orb--magma {
  width: 480px;
  height: 480px;
  top: 26%;
  right: -180px;
  background: rgba(249, 115, 22, 0.18);
}

.glow-orb--emerald {
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: 22%;
  background: rgba(16, 185, 129, 0.18);
}

.arch-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.78), transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.78), transparent 85%);
}

.noise-layer {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Container */
.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Sticky Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 20, 0.78);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 19, 36, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 8px 20px -6px rgba(8, 145, 178, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.24rem;
  border-radius: 10px;
  background: rgba(11, 19, 36, 0.82);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.lang-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.34rem 0.58rem;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: #ecfdf5;
}

.lang-btn.is-active {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.72);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.lang-sep {
  color: rgba(148, 163, 184, 0.45);
  font-size: 0.76rem;
  user-select: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--nav-cta {
  margin-left: 16px;
  padding: 0.62rem 1.15rem;
  font-size: 0.88rem;
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.btn--nav-cta:hover {
  box-shadow: var(--shadow-primary-hover);
}

.btn--primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  box-shadow: var(--shadow-primary-hover);
}

.btn--secondary {
  background: rgba(11, 19, 36, 0.72);
  color: var(--text-main);
  border-color: var(--border-cyan);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(8, 145, 178, 0.16);
  border-color: var(--cyan);
}

.btn--full {
  width: 100%;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

/* Hero Section */
.hero {
  padding: 3.75rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 2.75rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 145, 178, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.32);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 3.5vw, 2.95rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.text-gradient {
  background: linear-gradient(95deg, #22d3ee 0%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 1.8rem;
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.7rem;
}

.hero-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.highlight-icon {
  color: var(--emerald);
  flex-shrink: 0;
}

/* Interactive Spaceport Preview Card */
.spaceport-card {
  padding: 0.95rem;
  border-color: var(--border-cyan);
  position: relative;
  overflow: hidden;
}

.spaceport-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 24px 60px -12px rgba(2, 6, 23, 0.75), 0 0 28px -8px rgba(16, 185, 129, 0.25);
}

.spaceport-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.2rem 0.35rem 0.75rem;
}

.telemetry-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a7f3d0;
}

.telemetry-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.85);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.spaceport-coords {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #bae6fd;
  letter-spacing: 0.04em;
}

.rocket-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.26rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #a7f3d0;
}

.spaceport-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: #060b14;
}

.spaceport-svg {
  width: 100%;
  height: auto;
}

/* HUD Corner Reticles */
.hud-reticles {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 3;
}

.hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(34, 211, 238, 0.55);
  border-style: solid;
  border-width: 0;
}

.hud-corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.hud-corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.hud-corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.hud-corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }

/* Floating Energy Particles in Stage */
.energy-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.e-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
  animation: floatBot 4.2s ease-in-out infinite;
}

.e-particle--1 { left: 24%; top: 28%; animation-delay: 0s; }
.e-particle--2 { left: 56%; top: 18%; background: var(--emerald); box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); animation-delay: 0.9s; }
.e-particle--3 { left: 72%; top: 56%; animation-delay: 1.7s; }
.e-particle--4 { left: 36%; top: 74%; background: var(--magma); box-shadow: 0 0 10px rgba(249, 115, 22, 0.75); animation-delay: 2.3s; }

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

/* Capsule animation along bridge */
.capsule-stream {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.capsule-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.9), 0 0 20px rgba(34, 211, 238, 0.65);
  opacity: 0;
  animation: capsuleTravel 3.6s linear infinite;
}

.capsule-dot--1 { animation-delay: 0s; }
.capsule-dot--2 { animation-delay: 1.2s; }
.capsule-dot--3 { animation-delay: 2.4s; }

@keyframes capsuleTravel {
  0%   { left: 26%; top: 62%; opacity: 0; transform: scale(0.7); }
  12%  { opacity: 0.95; transform: scale(1); }
  84%  { left: 71%; top: 44%; opacity: 0.95; transform: scale(1); }
  100% { left: 76%; top: 42%; opacity: 0; transform: scale(0.5); }
}

/* X-Ray overlay inside preview card */
.xray-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(34, 211, 238, 0.08) 0px,
      rgba(34, 211, 238, 0.08) 1px,
      transparent 1px,
      transparent 16px
    ),
    rgba(8, 36, 56, 0.32);
  transition: opacity 0.22s ease;
}

.spaceport-card[data-xray="true"] .xray-overlay {
  opacity: 1;
}

.xray-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.42), transparent);
  animation: xraySweep 2.4s linear infinite;
}

@keyframes xraySweep {
  0% { top: -36px; }
  100% { top: 100%; }
}

.xray-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.88);
  border: 1px solid rgba(34, 211, 238, 0.55);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.bot-status-pill {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: rgba(6, 11, 20, 0.84);
  border: 1px solid rgba(34, 211, 238, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: var(--text-main);
}

.status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  flex-shrink: 0;
}

.spaceport-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.mini-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mini-ctrl-btn:hover,
.mini-ctrl-btn[aria-pressed="true"] {
  background: rgba(8, 145, 178, 0.2);
  border-color: var(--cyan);
  color: #ffffff;
}

.mini-ctrl-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mini-ctrl-link:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

/* Sections */
.section {
  padding: 3.75rem 0;
}

@keyframes targetGlow {
  0% {
    border-color: rgba(34, 211, 238, 0.85);
    box-shadow: 0 24px 60px -12px rgba(2, 6, 23, 0.78), 0 0 0 2px rgba(16, 185, 129, 0.45), 0 0 32px -4px rgba(34, 211, 238, 0.4);
  }
  100% {
    border-color: var(--border-glass);
    box-shadow: var(--shadow-card);
  }
}

.section.is-target-pulse .glass-card {
  animation: targetGlow 2.2s ease-out;
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2.5rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #67e8f9;
  margin-bottom: 0.55rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.pillar-card {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 55px -12px rgba(2, 6, 23, 0.74), 0 0 24px -10px rgba(16, 185, 129, 0.28);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(6, 11, 20, 0.78);
  border: 1px solid var(--border-glass);
}

.pillar-icon--teal { color: var(--cyan); border-color: rgba(34, 211, 238, 0.38); }
.pillar-icon--magma { color: var(--magma); border-color: rgba(249, 115, 22, 0.4); }
.pillar-icon--emerald { color: var(--emerald); border-color: rgba(16, 185, 129, 0.4); }

.pillar-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.pillar-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  flex: 1;
}

.pillar-card code {
  padding: 0.1rem 0.38rem;
  border-radius: 6px;
  background: rgba(8, 145, 178, 0.16);
  color: var(--cyan);
  font-size: 0.85em;
}

.pillar-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-soft);
}

/* Interactive Mode Switcher */
.mode-switcher-wrap {
  margin-top: 1.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.mode-switcher {
  display: inline-flex;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(6, 11, 20, 0.88);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 12px 32px -6px rgba(2, 6, 23, 0.55);
  gap: 4px;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mode-btn:hover {
  color: var(--text-main);
}

.mode-btn.is-active[data-mode="adventure"] {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.mode-btn.is-active[data-mode="pro"] {
  background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
  color: #06141f;
  box-shadow: 0 10px 26px -6px rgba(34, 211, 238, 0.42);
}

.mode-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Chapter II Spotlight Card in #o-grze */
.chapter-spotlight {
  margin-top: 1.5rem;
  padding: 1.45rem 1.65rem;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  gap: 1.5rem;
  border-color: rgba(249, 115, 22, 0.36);
  background:
    radial-gradient(circle at 95% 15%, rgba(249, 115, 22, 0.14), transparent 55%),
    radial-gradient(circle at 12% 90%, rgba(14, 165, 233, 0.12), transparent 55%),
    var(--bg-card);
}

.spotlight-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fdba74;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.38);
  margin-bottom: 0.55rem;
}

.chapter-spotlight h3 {
  margin: 0 0 0.45rem;
  font-size: 1.22rem;
}

.chapter-spotlight p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.chapter-spotlight code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.14);
  color: #fed7aa;
  font-size: 0.85em;
}

.spotlight-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.spotlight-stat {
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  background: rgba(6, 11, 20, 0.72);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spotlight-stat strong {
  font-size: 0.98rem;
  color: #fde68a;
}

.spotlight-stat span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Chapter Filter Switcher in #misje */
.chapter-filter {
  margin-top: 0.45rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.chapter-btn {
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: rgba(11, 19, 36, 0.72);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chapter-btn:hover {
  border-color: rgba(34, 211, 238, 0.42);
  color: var(--text-main);
}

.chapter-btn.is-active {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.65);
  color: #ffffff;
}

.chapter-unlock-note {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: #bae6fd;
}

.mission-card.is-hidden-by-chapter {
  display: none;
}

/* 4 Missions Grid */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.mission-card {
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.mission-card--magma::before { background: linear-gradient(90deg, var(--magma), transparent); }
.mission-card--amber::before { background: linear-gradient(90deg, var(--amber), transparent); }
.mission-card--emerald::before { background: linear-gradient(90deg, var(--emerald), var(--teal)); }
.mission-card--crimson::before { background: linear-gradient(90deg, var(--crimson), #a855f7); }
.mission-card--sky::before { background: linear-gradient(90deg, #0ea5e9, var(--cyan)); }
.mission-card--orange::before { background: linear-gradient(90deg, #f97316, var(--amber)); }

.mission-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 55px -12px rgba(2, 6, 23, 0.74), 0 0 24px -10px rgba(16, 185, 129, 0.25);
}

.mission-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mission-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #cbd5e1;
}

.mission-biome-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(6, 11, 20, 0.72);
  border: 1px solid var(--border-glass);
}

.mission-title {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.25;
}

.mission-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  flex: 1;
}

.mission-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mission-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 145, 178, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #cffafe;
}

.missions-grid[data-active-mode="pro"] .mission-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(8, 145, 178, 0.18);
  border-color: rgba(34, 211, 238, 0.42);
}

.mission-goal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
}

/* Controls & Browser Specs */
.controls-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.35rem;
  align-items: stretch;
}

.controls-card,
.specs-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.controls-card:hover,
.specs-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.38);
}

.card-heading {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

.card-sub {
  margin: 0 0 1.35rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.keycaps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.keycap-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(6, 11, 20, 0.65);
  border: 1px solid var(--border-glass);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.keycap-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

.keycap-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.keycap-item span {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 0.65rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #1b2a44, #0f192b);
  border: 1px solid rgba(34, 211, 238, 0.38);
  box-shadow: 0 4px 0 #070d18;
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.84rem;
  flex-shrink: 0;
}

.keycap--wide {
  min-width: 78px;
}

.keycap-inline {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
}

.extra-keys-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.touch-guide {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(8, 145, 178, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.touch-guide-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(6, 11, 20, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  flex-shrink: 0;
}

.touch-guide strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text-main);
  margin-bottom: 0.18rem;
}

.touch-guide span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.48;
}

.browsers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.browser-pill {
  padding: 0.34rem 0.78rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: #a7f3d0;
  font-size: 0.82rem;
  font-weight: 700;
}

.specs-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  flex: 1;
}

.specs-list strong {
  color: var(--text-main);
}

.specs-cta {
  margin-top: auto;
}

/* FAQ Accordion (AEO) */
.faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.38);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-answer code {
  padding: 0.1rem 0.38rem;
  border-radius: 6px;
  background: rgba(8, 145, 178, 0.16);
  color: var(--cyan);
  font-size: 0.85em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(6, 11, 20, 0.86);
  padding: 1.85rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-brand span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-privacy-btn:hover {
  color: var(--cyan);
}

.footer-privacy-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mission-play-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--emerald);
  text-decoration: none;
  padding: 0.26rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.34);
  background: rgba(16, 185, 129, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mission-play-link:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--emerald);
  color: #ffffff;
  transform: translateX(2px);
}

/* Consent Mode v2 Banner (Dark Glassmorphism) */
.consent-banner {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  width: min(460px, calc(100vw - 2.5rem));
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: rgba(8, 14, 28, 0.94);
  border: 1px solid rgba(34, 211, 238, 0.36);
  box-shadow: 0 24px 60px -12px rgba(2, 6, 23, 0.88), 0 0 28px -10px rgba(16, 185, 129, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.consent-banner.is-visible {
  display: flex;
}

.consent-banner__title {
  margin: 0 0 0.28rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
}

.consent-banner__desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.consent-btn {
  padding: 0.58rem 1rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
}

/* Laptop 1366x768 & Chromebook adjustments */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .controls-layout {
    grid-template-columns: 1fr;
  }

  .chapter-spotlight {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    gap: 0.55rem 0.75rem;
    padding: 0.9rem 1.15rem 1.1rem;
    background: #060b14;
    border-bottom: 1px solid var(--border-cyan);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.94);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    display: none;
  }

  .primary-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .btn--nav-cta {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    margin-top: 0.15rem;
  }

  .lang-switch {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0.15rem 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    text-align: center;
  }

  .missions-grid,
  .keycaps-grid {
    grid-template-columns: 1fr;
  }

  .mode-switcher {
    flex-direction: column;
    border-radius: 16px;
    width: 100%;
    max-width: 340px;
  }

  .mode-btn {
    justify-content: center;
  }
}

@media (max-height: 540px) {
  .header-inner {
    min-height: 54px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-logo svg {
    width: 28px;
    height: 28px;
  }

  .hero {
    padding: 1.35rem 0 2rem;
  }

  .consent-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(560px, calc(100vw - 1.5rem));
    padding: 0.75rem 0.95rem;
    gap: 0.55rem;
  }

  .consent-banner__desc {
    font-size: 0.78rem;
  }
}

@media (max-width: 860px) and (max-height: 540px) {
  .primary-nav {
    top: 54px;
    max-height: calc(100dvh - 54px);
    padding: 0.65rem 1rem 0.85rem;
  }

  .nav-link {
    min-height: 38px;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse-dot,
  .telemetry-led,
  .e-particle,
  .capsule-dot,
  .xray-sweep {
    animation: none;
  }
  .btn,
  .glass-card,
  .pillar-card,
  .mission-card {
    transition: none;
  }
}
