/* ============================================================
   MZyte Apps — Command Universe
   Stylesheet v1.0
   ============================================================ */

/* -------- 1. RESET & ROOT ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Surfaces */
  --bg-base: #060D10;
  --bg-deep: #060707;
  --surface-1: #12181C;
  --surface-2: #171D22;
  --surface-3: #20262B;
  --surface-4: #282828;

  /* Brand */
  --brand-blue: #1BA1DE;
  --brand-blue-hover: #007CB0;
  --brand-blue-deep: #0151B0;
  --brand-gold: #D4A017;

  /* Text */
  --text-primary: #F4F7FA;
  --text-secondary: #A7B0B8;
  --text-muted: #6B7680;

  /* Lines */
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* Glows */
  --glow-blue: rgba(27, 161, 222, 0.35);
  --glow-blue-soft: rgba(27, 161, 222, 0.12);
  --glow-gold: rgba(212, 160, 23, 0.18);

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --container: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Atmospheric global background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px circle at 12% -10%, rgba(27, 161, 222, 0.10), transparent 50%),
    radial-gradient(900px circle at 100% 110%, rgba(212, 160, 23, 0.05), transparent 55%),
    radial-gradient(1400px circle at 50% 50%, rgba(27, 161, 222, 0.025), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--brand-blue-hover); }

button { font-family: inherit; cursor: pointer; }

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

::selection {
  background: var(--brand-blue);
  color: var(--bg-base);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-blue-deep), var(--surface-3));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-blue); }

/* -------- 2. LAYOUT ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section { padding: 120px 0; position: relative; z-index: 1; }
.section--tight { padding: 80px 0; }
.section--hero { padding: 140px 0 80px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  padding: 6px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(27, 161, 222, 0.05);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 12px var(--brand-blue);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #98A4AE 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 56px;
}

/* -------- 3. HEADER --------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s var(--ease-out);
}

.header.is-scrolled {
  padding: 12px 0;
  background: rgba(6, 13, 16, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo__mark {
  width: 38px;
  height: 38px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--brand-blue), var(--brand-blue-deep));
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 24px -8px var(--glow-blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo__mark::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: conic-gradient(from 0deg, transparent, var(--brand-blue), transparent 30%);
  z-index: -1;
  animation: spin 4s linear infinite;
  opacity: 0.5;
}
@keyframes spin { to { transform: rotate(360deg); } }

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.logo__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

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

.nav__list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.nav__link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: all 0.2s var(--ease-out);
  position: relative;
}
.nav__link:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}
.nav__link.is-active {
  color: var(--text-primary);
  background: var(--surface-3);
}
.nav__link.is-active::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -2px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--brand-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-blue);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-1));
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.header__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(27, 161, 222, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.header__cta:hover { border-color: var(--brand-blue); color: #fff; }
.header__cta:hover::after { transform: translateX(100%); }
.header__cta i { color: var(--brand-blue); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text-primary);
}

/* -------- 4. BUTTONS -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-deep));
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 30px -10px var(--glow-blue);
}
.btn--primary:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 18px 40px -10px var(--glow-blue);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-soft);
  color: var(--text-primary);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-medium);
  color: #fff;
}

.btn i { font-size: 12px; }

/* -------- 5. HERO ----------------------------------------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 22px 0 24px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero__lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__meta {
  display: flex;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.hero__meta-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* System core visual (right side of hero) */
.system-core {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  margin-left: auto;
}

.system-core__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.system-core__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.system-core__core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand-blue) 0%, var(--brand-blue-deep) 50%, #0a1a2a 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  z-index: 3;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 60px var(--glow-blue),
    0 0 120px var(--glow-blue);
  animation: core-pulse 3.5s ease-in-out infinite;
}
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 0 60px var(--glow-blue), 0 0 120px var(--glow-blue); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset, 0 0 80px var(--glow-blue), 0 0 180px var(--glow-blue); }
}

.system-core__core::before,
.system-core__core::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  animation: ring-rotate 20s linear infinite;
}
.system-core__core::after {
  inset: -50px;
  border-style: dashed;
  border-color: rgba(27, 161, 222, 0.18);
  animation-duration: 30s;
  animation-direction: reverse;
}
@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

.node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(18, 24, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  z-index: 4;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.node:hover {
  border-color: var(--brand-blue);
  background: var(--surface-2);
  box-shadow: 0 8px 24px -8px var(--glow-blue);
}
.node__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 8px var(--brand-blue);
}
.node--gold .node__dot { background: var(--brand-gold); box-shadow: 0 0 8px var(--brand-gold); }
.node--green .node__dot { background: #4DD37F; box-shadow: 0 0 8px #4DD37F; }

/* Terminal under hero */
.terminal {
  margin-top: 56px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-1), var(--bg-deep));
  overflow: hidden;
}
.terminal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}
.terminal__dots { display: flex; gap: 6px; }
.terminal__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}
.terminal__dot:nth-child(1) { background: #FF5F57; }
.terminal__dot:nth-child(2) { background: #FEBC2E; }
.terminal__dot:nth-child(3) { background: #28C840; }
.terminal__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 12px;
}
.terminal__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.terminal__status::before {
  content: '';
  width: 6px; height: 6px;
  background: #4DD37F;
  border-radius: 50%;
  box-shadow: 0 0 6px #4DD37F;
  animation: pulse 2s infinite;
}
.terminal__body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-secondary);
  min-height: 200px;
  max-height: 240px;
  overflow: hidden;
  position: relative;
}
.terminal__line { opacity: 0; transform: translateY(6px); }
.terminal__line.is-active { animation: term-in 0.4s var(--ease-out) forwards; }
@keyframes term-in {
  to { opacity: 1; transform: translateY(0); }
}
.term-tag {
  display: inline-block;
  min-width: 60px;
  color: var(--brand-blue);
}
.term-tag--app { color: var(--brand-gold); }
.term-tag--game { color: #4DD37F; }
.term-tag--sys { color: #c97cf9; }
.term-cursor::after {
  content: '▊';
  color: var(--brand-blue);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* -------- 6. PRODUCT MAP --------------------------------- */
.product-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.product-col {
  background: linear-gradient(180deg, var(--surface-1), rgba(18, 24, 28, 0.4));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.product-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--glow-blue-soft), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.product-col:hover { border-color: var(--border-medium); transform: translateY(-2px); }
.product-col:hover::before { opacity: 1; }

.product-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.product-col__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--brand-blue);
  font-size: 16px;
}
.product-col__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.product-col__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.product-col__list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.product-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 13px;
  transition: all 0.2s var(--ease-out);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.product-node:hover {
  border-color: var(--brand-blue);
  background: rgba(27, 161, 222, 0.05);
  transform: translateX(4px);
}
.product-node::after {
  content: '→';
  margin-left: auto;
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.2s var(--ease-out);
}
.product-node:hover::after { opacity: 1; color: var(--brand-blue); }
.product-node__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 8px var(--brand-blue);
  flex-shrink: 0;
}
.product-node__code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
  letter-spacing: 0.1em;
}
.product-node:hover .product-node__code { color: var(--brand-blue); }

/* -------- 7. FEATURED PRODUCTS ---------------------------- */
.featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-deep));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease-out);
  transform-style: preserve-3d;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
}
.product-card:hover { border-color: var(--border-medium); }
.product-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--glow-blue-soft), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.product-card:hover .product-card__glow { opacity: 1; }

.product-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.product-card__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid;
}
.status--dev { color: var(--brand-blue); border-color: var(--brand-blue); background: rgba(27,161,222,0.08); }
.status--ready { color: var(--brand-gold); border-color: var(--brand-gold); background: rgba(212,160,23,0.08); }
.status--planned { color: var(--text-muted); border-color: var(--border-soft); }
.status--active { color: #4DD37F; border-color: #4DD37F; background: rgba(77,211,127,0.08); }
.status::before {
  content: '';
  width: 5px; height: 5px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.product-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}
.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-card__cta i { transition: transform 0.2s var(--ease-out); }
.product-card__cta:hover i { transform: translateX(4px); }

/* Mini phone mockup */
.mockup {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 9 / 18;
  margin: 0 auto;
  background: linear-gradient(135deg, #1a2229, #0a0e12);
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 40px -10px var(--glow-blue);
  transition: transform 0.4s var(--ease-out);
}
.product-card:hover .mockup { transform: rotateY(-6deg) rotateX(4deg); }
.mockup__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 6px;
  background: #000;
  border-radius: 4px;
  z-index: 2;
}
.mockup__screen {
  width: 100%;
  height: 100%;
  background: var(--bg-base);
  border-radius: 20px;
  padding: 22px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.mock-bar {
  background: linear-gradient(90deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 6px 8px;
}
.mock-bar__label {
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.mock-bar__value {
  font-size: 10px;
  color: var(--text-primary);
  font-weight: 600;
}
.mock-bar__value--gold { color: var(--brand-gold); }
.mock-bar__value--blue { color: var(--brand-blue); }
.mock-bar__value--green { color: #4DD37F; }

.mock-graph {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 6px;
  position: relative;
  overflow: hidden;
}
.mock-graph svg { width: 100%; height: 100%; }

.mock-progress {
  height: 4px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}
.mock-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  border-radius: 99px;
  width: 65%;
  animation: progress-shimmer 2.5s ease-in-out infinite;
}
@keyframes progress-shimmer {
  0%, 100% { width: 65%; }
  50% { width: 80%; }
}

/* -------- 8. ENGINE FLOW ---------------------------------- */
.engine {
  background: linear-gradient(180deg, transparent, rgba(18, 24, 28, 0.4), transparent);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.engine-flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
}
.engine-flow::before {
  content: '';
  position: absolute;
  top: 38px; left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), var(--border-medium), transparent);
  z-index: 0;
}

.engine-step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.engine-step__num {
  position: relative;
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: all 0.4s var(--ease-out);
}
.engine-step.is-active .engine-step__num {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 0 30px -10px var(--glow-blue);
}
.engine-step__num::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--border-soft);
  opacity: 0;
  transition: opacity 0.3s;
}
.engine-step.is-active .engine-step__num::before {
  opacity: 1;
  animation: ring-rotate 12s linear infinite;
}

.engine-step__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.engine-step.is-active .engine-step__label { color: var(--text-primary); }

.engine-step__desc {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* -------- 9. PRINCIPLES (system modules) ----------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.module {
  background: linear-gradient(180deg, var(--surface-1), var(--bg-deep));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.module:hover { border-color: var(--border-medium); }

.module__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-soft);
}
.module__id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
}
.module__light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #4DD37F;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.module__light::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4DD37F;
  box-shadow: 0 0 6px #4DD37F;
  animation: pulse 2.2s infinite;
}

.module__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.module__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.module__code {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.module__code .kw { color: var(--brand-blue); }
.module__code .val { color: var(--brand-gold); }
.module__code .fn { color: #c97cf9; }

.module__progress {
  height: 3px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}
.module__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  border-radius: 99px;
  width: 0;
  transition: width 1.2s var(--ease-out);
}

/* -------- 10. METRICS ------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.metric {
  position: relative;
  padding: 26px 22px;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-deep));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
}
.metric__chart {
  position: absolute;
  right: -10px; bottom: -10px;
  width: 80px; height: 80px;
  opacity: 0.4;
}
.metric__value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}
.metric__suffix {
  display: inline-block;
  font-size: 22px;
  color: var(--brand-blue);
  margin-left: 2px;
}
.metric__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 10px;
}

/* -------- 11. CTA & FOOTER -------------------------------- */
.cta-band {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, var(--surface-1), var(--bg-deep));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px circle at 20% 30%, var(--glow-blue-soft), transparent 50%),
    radial-gradient(400px circle at 80% 70%, var(--glow-gold), transparent 50%);
  pointer-events: none;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  position: relative;
}
.cta-band__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.footer {
  padding: 70px 0 30px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-deep);
  position: relative;
  z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer__brand .logo { margin-bottom: 16px; }
.footer__about {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 13px;
  color: var(--text-secondary);
}
.footer__col a:hover { color: var(--brand-blue); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
}
.footer__socials { display: flex; gap: 10px; }
.footer__social {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all 0.2s;
  font-size: 13px;
}
.footer__social:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(27, 161, 222, 0.06);
}

/* -------- 12. PAGE-SPECIFIC ------------------------------- */
/* Generic page hero */
.page-hero {
  padding: 180px 0 60px;
  text-align: left;
  position: relative;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin-top: 18px;
}
.page-hero__lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 18px;
}

/* Filter pills (apps, games) */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.filter-pill:hover { border-color: var(--border-medium); color: var(--text-primary); }
.filter-pill.is-active {
  background: rgba(27,161,222,0.08);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* Roadmap timeline */
.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 60px;
}
.roadmap__line {
  position: absolute;
  top: 50px; left: 10%; right: 10%;
  height: 2px;
  background: var(--surface-3);
  z-index: 0;
}
.roadmap__line-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  width: 0;
  border-radius: 2px;
  transition: width 1.2s var(--ease-out);
  box-shadow: 0 0 20px var(--glow-blue);
}
.roadmap-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}
.roadmap-step__date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.roadmap-step__dot {
  position: relative;
  width: 24px; height: 24px;
  margin: 0 auto 22px;
  background: var(--surface-1);
  border: 2px solid var(--border-medium);
  border-radius: 50%;
  transition: all 0.4s var(--ease-out);
}
.roadmap-step.is-active .roadmap-step__dot {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  box-shadow: 0 0 0 6px rgba(27,161,222,0.15), 0 0 20px var(--glow-blue);
}
.roadmap-step.is-active .roadmap-step__dot::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed var(--brand-blue);
  animation: ring-rotate 10s linear infinite;
}
.roadmap-step__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.roadmap-step__desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-form {
  background: linear-gradient(180deg, var(--surface-1), var(--bg-deep));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-form__row { margin-bottom: 18px; }
.contact-form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  transition: all 0.2s var(--ease-out);
  outline: none;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--brand-blue);
  background: var(--surface-1);
  box-shadow: 0 0 0 4px rgba(27,161,222,0.1);
}
.contact-form__textarea { resize: vertical; min-height: 130px; }

.console-panel {
  background: linear-gradient(180deg, var(--surface-1), var(--bg-deep));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  font-family: var(--font-mono);
}
.console-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--border-soft);
}
.console-panel__title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.console-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 12px;
}
.console-row:last-child { border-bottom: 0; }
.console-row__key { color: var(--text-muted); letter-spacing: 0.05em; }
.console-row__val { color: var(--text-primary); display: inline-flex; align-items: center; gap: 6px; }
.console-row__val--blue { color: var(--brand-blue); }
.console-row__val--gold { color: var(--brand-gold); }
.console-row__val--green { color: #4DD37F; }

.console-panel__viz {
  margin-top: 22px;
  height: 120px;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

/* About timeline (vertical) */
.bio-timeline {
  position: relative;
  margin-top: 50px;
  padding-left: 30px;
}
.bio-timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--brand-blue), transparent 90%);
}
.bio-item {
  position: relative;
  padding: 0 0 36px 22px;
}
.bio-item::before {
  content: '';
  position: absolute;
  left: -26px; top: 6px;
  width: 13px; height: 13px;
  background: var(--bg-base);
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--glow-blue);
}
.bio-item__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.bio-item__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.bio-item__desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 620px;
}

/* Two-column generic */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Big mockup (product detail) */
.big-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: linear-gradient(135deg, #1a2229, #0a0e12);
  border-radius: 36px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -10px var(--glow-blue);
}
.big-mockup__screen {
  width: 100%; height: 100%;
  background: var(--bg-base);
  border-radius: 24px;
  padding: 32px 16px 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.big-mockup__notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 6px;
  background: #000;
  border-radius: 4px;
  z-index: 2;
}

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.feature {
  padding: 22px;
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s;
}
.feature:hover { border-color: var(--border-medium); }
.feature__icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: rgba(27,161,222,0.08);
  border: 1px solid var(--border-soft);
  color: var(--brand-blue);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 6px;
}
.feature__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.feature__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Radar canvas */
.radar-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}

/* Game canvas frame */
.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-deep));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Web code panel */
.code-panel {
  background: linear-gradient(180deg, var(--surface-1), var(--bg-deep));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.code-panel .cm { color: var(--text-muted); font-style: italic; }
.code-panel .kw { color: var(--brand-blue); }
.code-panel .str { color: var(--brand-gold); }
.code-panel .fn { color: #c97cf9; }
.code-panel .num { color: #4DD37F; }

/* -------- 13. PAGE TRANSITION OVERLAY -------------------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.page-transition.is-active { opacity: 1; pointer-events: auto; }
.page-transition__lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(27, 161, 222, 0.06) 0px,
    rgba(27, 161, 222, 0.06) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.page-transition.is-active .page-transition__lines { opacity: 1; }
.page-transition__scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
  box-shadow: 0 0 30px var(--brand-blue);
  top: -10px;
}
.page-transition.is-active .page-transition__scan {
  animation: scan-down 0.6s ease-in-out;
}
@keyframes scan-down {
  from { top: -10px; }
  to { top: 110%; }
}
.page-transition__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.page-transition__label::before,
.page-transition__label::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--brand-blue);
}

/* -------- 14. MOUSE GLOW + PARTICLES --------------------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.mouse-glow {
  position: fixed;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(27,161,222,0.06) 0%, transparent 55%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease-out;
  will-change: transform;
}

/* -------- 15. REVEAL / UTILITIES -------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.text-mono { font-family: var(--font-mono); }
.text-blue { color: var(--brand-blue); }
.text-gold { color: var(--brand-gold); }
.text-mute { color: var(--text-muted); }
.text-center { text-align: center; }

.mb-0 { margin-bottom: 0 !important; }

/* -------- 16. RESPONSIVE ---------------------------------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 50px; }
  .system-core { max-width: 460px; margin: 0 auto; }
  .product-map { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .product-card .mockup { max-width: 180px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .engine-flow { grid-template-columns: repeat(4, 1fr); gap: 30px 10px; }
  .engine-flow::before { display: none; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .roadmap { grid-template-columns: 1fr; gap: 30px; padding-left: 30px; }
  .roadmap__line { left: 12px; top: 0; bottom: 0; right: auto; width: 2px; height: auto; }
  .roadmap-step { text-align: left; padding-left: 30px; }
  .roadmap-step__dot { margin: 0 0 12px -30px; }
  .two-col { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 60px; }
  .nav { display: none; }
  .nav.is-open {
    display: block;
    position: fixed;
    top: 70px; left: 18px; right: 18px;
    background: rgba(6, 13, 16, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
    z-index: 99;
  }
  .nav.is-open .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .nav.is-open .nav__link {
    padding: 12px 14px;
    width: 100%;
  }
  .menu-toggle { display: inline-flex; }
  .header__cta span { display: none; }
  .header__cta { padding: 10px 12px; }
  .principles { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .engine-flow { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__meta { gap: 18px; }
  .hero__meta-value { font-size: 16px; }
  .cta-band { padding: 50px 24px; }
  .product-col, .product-card, .contact-form, .console-panel { padding: 22px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 32px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { flex-wrap: wrap; }
}

/* -------- 17. PREFERS REDUCED MOTION --------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .system-core__core, .system-core__core::before, .system-core__core::after,
  .logo__mark::after, .term-cursor::after, .module__light::before {
    animation: none !important;
  }
  .bg-canvas, .mouse-glow { display: none; }
}

/* -------- 18. DETAIL PAGES (mist-uav / bas-bakalim / games) --- */
.game-frame__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(6,7,7,0.85), transparent);
}
.game-frame__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(0deg, rgba(6,7,7,0.85), transparent);
}
.game-frame__score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}
.game-frame__score-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.game-frame__combo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-gold);
}

/* Detail hero strip */
.detail-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.detail-chip i { color: var(--brand-blue); }

/* Radar overlay readouts */
.radar-wrap { position: relative; }
.radar-readout {
  position: absolute;
  z-index: 4;
  background: rgba(6,7,7,0.7);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  backdrop-filter: blur(6px);
}
.radar-readout strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}
.radar-readout--tl { top: 6px; left: 6px; }
.radar-readout--br { bottom: 6px; right: 6px; text-align: right; }

/* Flight suitability gauge */
.gauge {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
}
.gauge__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gauge__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.gauge__verdict {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-green, #4DD37F);
}
.gauge__bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4DD37F 0%, #D4A017 55%, #e0533f 100%);
  overflow: hidden;
}
.gauge__needle {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 18px;
  background: #F4F7FA;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  transform: translateX(-50%);
}
.gauge__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted, var(--text-secondary));
}

/* KP index mini bars */
.kp-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  padding: 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.kp-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand-blue), rgba(27,161,222,0.25));
  min-height: 8px;
  transition: height 0.6s var(--ease-out);
}
.kp-bar.is-high { background: linear-gradient(180deg, #e0533f, rgba(224,83,63,0.3)); }
.kp-bar.is-mid  { background: linear-gradient(180deg, var(--brand-gold), rgba(212,160,23,0.3)); }

/* Wind line readout */
.wind-rows { display: flex; flex-direction: column; gap: 10px; }
.wind-row {
  display: grid;
  grid-template-columns: 70px 1fr 54px;
  align-items: center;
  gap: 12px;
}
.wind-row__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}
.wind-row__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.wind-row__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
}
.wind-row__val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  text-align: right;
}

/* Color-wave row (bas-bakalim) */
.wave-row { display: flex; gap: 8px; margin-top: 16px; }
.wave-cell {
  flex: 1;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  animation: wave-pulse 2.4s ease-in-out infinite;
}
.wave-cell:nth-child(1) { background: rgba(27,161,222,0.25); animation-delay: 0s; }
.wave-cell:nth-child(2) { background: rgba(212,160,23,0.25); animation-delay: 0.2s; }
.wave-cell:nth-child(3) { background: rgba(77,211,127,0.25); animation-delay: 0.4s; }
.wave-cell:nth-child(4) { background: rgba(201,124,249,0.25); animation-delay: 0.6s; }
@keyframes wave-pulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
  .game-frame__score-value { font-size: 24px; }
}

/* code-panel header bar + body (web / bas-bakalim) */
.code-panel { padding: 0; overflow: hidden; }
.code-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.code-panel__body {
  margin: 0;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-secondary);
  white-space: pre;
  overflow-x: auto;
}
