:root {
  --bg-abyss: #04060b;
  --bg-deep: #080c16;
  --bg-panel: rgba(14, 21, 38, 0.76);
  --bg-panel-solid: #0f172a;
  --gold-bright: #f7d070;
  --gold-main: #d4a843;
  --gold-dark: #8c6618;
  --cyan-ice: #38bdf8;
  --crimson: #f43f5e;
  --emerald: #10b981;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border-gold: rgba(212, 168, 67, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-luxury: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(212, 168, 67, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Фоновый Canvas со звездами и северным сиянием */
#starfieldCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

.ambient-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 14%, rgba(212, 168, 67, 0.14), transparent 40%),
    radial-gradient(circle at 15% 30%, rgba(56, 189, 248, 0.11), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.09), transparent 50%);
  pointer-events: none;
}

.architectural-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.8px;
  color: var(--gold-bright);
  text-transform: uppercase;
}

/* ================= НАВИГАЦИЯ ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 11, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-gold);
}

.topbar-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.studio-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-emblem {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e293b, #090d16);
  border: 1px solid var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(212, 168, 67, 0.3);
}

.star-glyph {
  color: var(--gold-bright);
  font-size: 1.35rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 2px;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.65rem;
  letter-spacing: 2.2px;
  color: var(--gold-main);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--gold-bright);
}

/* ================= ЮВЕЛИРНЫЕ КНОПКИ ================= */
.btn-ornate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn-ornate.btn-lg {
  padding: 15px 28px;
  font-size: 0.98rem;
}

.btn-ornate.btn-sm {
  padding: 9px 16px;
  font-size: 0.84rem;
}

.btn-ornate.btn-full {
  width: 100%;
}

.btn-ornate-gold {
  background: linear-gradient(135deg, #f7d070 0%, #c8962e 55%, #9a6c15 100%);
  color: #060911;
  border: 1px solid #fde68a;
  box-shadow: 0 10px 28px rgba(212, 168, 67, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-ornate-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(247, 208, 112, 0.45);
}

.btn-ornate-glass {
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(10px);
}

.btn-ornate-glass:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-25deg);
  transition: left 0.65s ease;
}

.btn-ornate:hover .btn-shine {
  left: 140%;
}

.btn-label {
  position: relative;
  z-index: 1;
}

/* ================= HERO STAGE ================= */
.hero-stage {
  padding: 68px 0 80px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold-bright);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-bright);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.hero-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  line-height: 1.14;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.gold-shimmer {
  background: linear-gradient(90deg, #fff3c4, #f7d070, #d4a843, #fff3c4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerFlow 6s linear infinite;
}

@keyframes shimmerFlow {
  to { background-position: 200% center; }
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.04rem;
  margin-bottom: 30px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold-main);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
}

.telemetry-cell {
  display: flex;
  flex-direction: column;
}

.telemetry-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.telemetry-key {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.telemetry-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Правая 3D-карточка «Тайна Полярной звезды» */
.flagship-frame {
  position: relative;
  background: linear-gradient(165deg, rgba(19, 28, 49, 0.92) 0%, rgba(8, 12, 22, 0.96) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  transition: transform 0.18s ease-out;
  transform-style: preserve-3d;
}

/* Декоративные уголки рамки */
.frame-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold-bright);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}
.frame-corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.frame-corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.frame-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.frame-corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.flagship-visual {
  position: relative;
  height: 225px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 80% 25%, rgba(247, 208, 112, 0.32), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.25), transparent 55%),
    linear-gradient(180deg, #0b1325 0%, #070b14 100%);
  border-bottom: 1px solid var(--border-gold);
  overflow: hidden;
}

.polar-star-emblem {
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 5.5rem;
  color: rgba(247, 208, 112, 0.14);
  line-height: 1;
  pointer-events: none;
  animation: slowRotate 24s linear infinite;
}

@keyframes slowRotate {
  to { transform: rotate(360deg); }
}

.flagship-status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tag-live {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--emerald);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.7px;
}

.tag-chapters {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 99px;
}

.flagship-title-block {
  position: relative;
  z-index: 2;
}

.flagship-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 4px;
}

.flagship-title-block h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.flagship-details {
  padding: 24px;
}

.flagship-details p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.mechanics-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.flagship-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flagship-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ================= БИБЛИОТЕКА НОВЕЛЛ ================= */
.section-block {
  padding: 84px 0;
}

.section-deep {
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.9) 0%, rgba(4, 6, 11, 0.95) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 42px;
}

.section-kicker {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--gold-bright);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 14px 0 26px;
}

.filter-switcher {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 5px;
  gap: 6px;
}

.switch-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}

.switch-btn.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-main));
  color: #060911;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

/* Карточка в каталоге */
.story-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.story-card.released {
  border-color: var(--border-gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.story-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-bright);
}

.story-card-banner {
  height: 195px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.story-card.locked-slot .story-card-banner {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 12px,
      transparent 12px,
      transparent 24px
    ),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.09), #070b14);
}

.slot-cipher-watermark {
  position: absolute;
  right: 18px;
  bottom: 10px;
  font-family: 'Cinzel', serif;
  font-size: 3.6rem;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.story-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-card-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.38rem;
  margin-bottom: 10px;
}

.story-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex: 1;
}

.story-telemetry {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--gold-bright);
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

/* ================= РСЯ КОНТЕЙНЕР ================= */
.rsya-section {
  padding: 16px 0;
}

.rsya-frame {
  background: rgba(10, 15, 28, 0.75);
  border: 1px dashed var(--border-gold);
  border-radius: 14px;
  padding: 18px 22px;
}

.rsya-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.rsya-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

/* ================= ЭКОСИСТЕМА И МАКЕТ ТЕЛЕФОНА ================= */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.architecture-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.arch-step {
  display: flex;
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: 14px;
}

.arch-num {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.arch-body h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.arch-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Корпус смартфона */
.device-chassis {
  width: 330px;
  margin: 0 auto;
  background: #050811;
  border: 6px solid #1e293b;
  outline: 1px solid var(--border-gold);
  border-radius: 38px;
  padding: 18px 16px;
  box-shadow: var(--shadow-luxury);
}

.device-notch {
  width: 96px;
  height: 18px;
  background: #0f172a;
  border-radius: 99px;
  margin: 0 auto 14px;
}

.device-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.device-featured {
  background: linear-gradient(150deg, #172542, #090e1a);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.device-tag {
  font-size: 0.65rem;
  color: var(--gold-bright);
  font-weight: 800;
  letter-spacing: 0.8px;
}

.device-featured h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin: 6px 0;
}

.device-featured p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.device-shelf-header {
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.device-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.device-slot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 12px;
}

.slot-lock-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(212, 168, 67, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-meta {
  display: flex;
  flex-direction: column;
}

.slot-meta strong {
  font-size: 0.85rem;
}

.slot-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.device-footer-bar {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ================= ТЕРМИНАЛ СЕЙФА ================= */
.vault-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.social-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.social-node {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s, transform 0.2s;
}

.social-node:hover {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.node-icon {
  font-size: 1.4rem;
}

.social-node strong {
  display: block;
  font-size: 0.88rem;
}

.social-node small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Кодовый сейф */
.vault-terminal {
  background: linear-gradient(160deg, #11192e, #070b14);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-luxury);
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.vault-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold-bright);
}

.vault-dials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.dial-column {
  background: #050811;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dial-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: var(--text-muted);
  padding: 6px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
}

.dial-btn:hover {
  background: rgba(212, 168, 67, 0.2);
  color: var(--gold-bright);
}

.dial-digit {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-bright);
  padding: 4px 0;
}

.vault-output {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ================= ТЕХНОЛОГИЧЕСКИЙ BENTO ================= */
.tech-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.bento-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--gold-main);
  border-radius: 16px;
  padding: 28px;
}

.bento-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 10px;
}

.bento-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ================= ПОДВАЛ ================= */
.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--border-gold);
  background: #030509;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.footer-link,
.footer-link-btn {
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.footer-link:hover,
.footer-link-btn:hover {
  color: var(--gold-bright);
}

/* ================= МОДАЛЬНЫЕ ОКНА ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.86);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: #0d1424;
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  max-width: 620px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-luxury);
}

.modal-wide {
  max-width: 820px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.9rem;
  cursor: pointer;
}

.apk-warning-box {
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid var(--border-gold);
  padding: 16px;
  border-radius: 12px;
  margin: 18px 0;
  font-size: 0.86rem;
  color: #e2e8f0;
}

.modal-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s3-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-right: 32px;
  flex-wrap: wrap;
  gap: 10px;
}

.s3-stage-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  min-height: 320px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s3-loader-view {
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.star-spinner {
  font-size: 2.6rem;
  color: var(--gold-bright);
  animation: slowRotate 4s linear infinite;
  margin-bottom: 10px;
}

.s3-progress-track {
  height: 10px;
  background: #111a2e;
  border-radius: 99px;
  overflow: hidden;
  margin: 16px 0 12px;
  border: 1px solid var(--border-gold);
}

.s3-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-main), var(--gold-bright), var(--cyan-ice));
  transition: width 0.25s ease;
}

.scene-location-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--gold-bright);
  background: rgba(212, 168, 67, 0.12);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 60px;
}

.scene-dialog-frame {
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 20px;
}

.scene-speaker {
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 6px;
}

.privacy-box {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .hero-layout,
  .ecosystem-grid,
  .vault-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .telemetry-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .telemetry-divider {
    display: none;
  }
}