:root {
  --bg: #08080e;
  --surface: #10101a;
  --border: rgba(255,255,255,0.07);
  --accent: #5e17eb;
  --accent-glow: rgba(94,23,235,0.28);
  --muted: rgba(255,255,255,0.5);
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
}

/* ── NAV ── */
#navbar {
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav-scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8,8,14,0.85) !important;
  border-color: var(--border);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.parallax-layer {
  position: absolute;
  inset: -120px;
  pointer-events: none;
  will-change: transform;
}
.stars-layer { z-index: 1; }
.nebula-layer { z-index: 2; }
.nebula-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.dust-layer {
  z-index: 3;
  background:
    radial-gradient(ellipse at 65% 35%, rgba(94,23,235,0.055) 0%, transparent 65%),
    radial-gradient(ellipse at 15% 75%, rgba(124,58,255,0.04) 0%, transparent 55%);
}
.hero-content { position: relative; z-index: 10; }
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 9;
  pointer-events: none;
}

/* ── STARS ── */
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.star.lit {
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.6);
  opacity: 1 !important;
}

/* ── SHOOTING STAR ── */
@keyframes shoot {
  0%   { transform: translateX(0) translateY(0) rotate(-30deg); opacity: 0; width: 0; }
  10%  { opacity: 1; }
  100% { transform: translateX(-600px) translateY(300px) rotate(-30deg); opacity: 0; width: 180px; }
}
.shooting-star {
  position: absolute;
  height: 1.5px;
  background: linear-gradient(to left, rgba(255,255,255,0.9), rgba(255,255,255,0));
  border-radius: 2px;
  pointer-events: none;
  z-index: 4;
  animation: shoot 1.1s ease-out forwards;
}

/* ── MISC ── */
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 0.9; }
}
.scroll-indicator { animation: bounce-down 2.2s ease-in-out infinite; }

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--accent-glow);
  border-color: rgba(94,23,235,0.35) !important;
}

.btn-primary {
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 6px 32px rgba(94,23,235,0.45); }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-weight: 500;
  border-radius: 9999px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); transform: scale(1.02); }

.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(94,23,235,0.15);
  border: 1px solid rgba(94,23,235,0.35);
  color: rgba(180,140,255,0.9);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}
.mission-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7c3aff;
  box-shadow: 0 0 6px #7c3aff;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

.mono-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.handbook-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.handbook-pill:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.28);
  color: white;
}

.os-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: rgba(134,239,172,0.9);
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
}

.placeholder-box {
  border: 1.5px dashed rgba(255,255,255,0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2rem;
  background: rgba(255,255,255,0.015);
}

.pricing-card {
  border: 1px solid rgba(94,23,235,0.4);
  border-top: 3px solid var(--accent);
  box-shadow: 0 0 48px rgba(94,23,235,0.12), inset 0 0 40px rgba(94,23,235,0.04);
}

.counter-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.logo-placeholder {
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  min-height: 56px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  transition: border-color 0.2s, background 0.2s;
}
.logo-placeholder:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}

.logo-tile {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
  transition: opacity 0.18s, box-shadow 0.18s;
}
a.logo-tile:hover {
  opacity: 0.82;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.logo-tile img {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
}
.logo-tile--md img {
  height: 64px;
}
.logo-tile--sm img {
  height: 64px;
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000;
}
.video-wrapper img { width:100%; height:100%; object-fit:cover; transition:opacity 0.25s; }
.video-wrapper:hover img { opacity: 0.75; }
.play-btn { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.play-btn svg { width:68px; height:68px; filter:drop-shadow(0 4px 20px rgba(0,0,0,0.6)); transition:transform 0.2s; }
.video-wrapper:hover .play-btn svg { transform: scale(1.1); }

.vid-thumb {
  width: 140px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  background: #000;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.vid-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.vid-thumb:hover { opacity:0.8; border-color:rgba(94,23,235,0.5); }
.vid-thumb.active { border-color:var(--accent); box-shadow:0 0 12px rgba(94,23,235,0.4); }
.scrollbar-hide::-webkit-scrollbar { display:none; }
.scrollbar-hide { -ms-overflow-style:none; scrollbar-width:none; }

.mobile-menu { max-height:0; overflow:hidden; transition:max-height 0.3s ease-out; }
.mobile-menu.open { max-height:560px; }

.purple-check::before { content:'✓'; color:var(--accent); font-weight:700; margin-right:0.6rem; }

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-pill:hover { background:rgba(255,255,255,0.1); color:white; border-color:rgba(255,255,255,0.2); }

.exp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
}

.step-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(94,23,235,0.12);
  border: 1px solid rgba(94,23,235,0.2);
  border-radius: 10px;
  color: rgba(180,140,255,0.85);
  flex-shrink: 0;
}

.prirucka-section {
  position: relative;
  overflow: hidden;
}
.prirucka-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(94,23,235,0.1) 0%, transparent 50%),
    linear-gradient(315deg, rgba(94,23,235,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.prirucka-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(94,23,235,0.1);
  border: 1px solid rgba(94,23,235,0.2);
  color: rgba(180,140,255,0.8);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
}

.media-thumb {
  background: #ffffff;
  border-radius: 10px;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-thumb--dim {
  opacity: 0.5;
}

.media-card-soon {
  border-style: dashed;
  opacity: 0.55;
}

/* ── MISSION FLIGHT ANIMATION ── */
#flight-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.mission-step {
  opacity: 0.3;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.mission-step:hover { opacity: 0.6; }
.mission-step.active { opacity: 1; }
.step-big-num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 0.75rem;
  transition: opacity 0.5s ease;
}
.mission-step.active .step-big-num { opacity: 0.75; }

@media (max-width: 767px) {
  .parallax-layer { will-change: auto; }
}

/* ── HERO GALLERY ── */
.hero-gallery {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0a0a14;
  border: 1px solid rgba(255,255,255,0.07);
}
.hero-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: opacity;
}
.hero-gallery__slide.active { opacity: 1; }
.hero-gallery__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 48%, rgba(8,8,14,0.4) 100%),
    linear-gradient(to bottom, transparent 52%, rgba(8,8,14,0.7) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-gallery__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 3;
}
.hero-gallery__dot {
  width: 24px;
  height: 20px;
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
  transition: width 0.35s ease;
}
.hero-gallery__dot::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.28);
  transition: background 0.25s ease;
}
.hero-gallery__dot.active { width: 44px; }
.hero-gallery__dot.active::after { background: rgba(255,255,255,0.9); }
