/* ─────────────────────────────────────────────────────────
   Orbital Vault — Custom Styles
───────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

::selection { background: #10b981; color: #000; }

/* Gradient text */
.gradient-text-green {
  background: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar scrolled */
#navbar.scrolled {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Emerald button */
.btn-emerald {
  background: #10b981;
  color: #000;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.15em;
}
.btn-emerald:hover { background: #34d399; transform: translateY(-1px); }
.btn-emerald:active { transform: translateY(0); }
.btn-emerald .arrow-icon { transition: transform 0.2s ease; }
.btn-emerald:hover .arrow-icon { transform: translateX(4px); }

/* CTA button */
.cta-btn {
  transition: transform 0.2s ease;
  letter-spacing: 0.2em;
}
.cta-btn:hover { transform: scale(1.05); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hero content fade-in */
.hero-content {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Status pulse */
@keyframes statusPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.status-pulse { animation: statusPulse 2s ease-in-out infinite; }

/* Satellite float */
@keyframes satFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}
.sat-float { animation: satFloat 10s ease-in-out infinite; }

/* Ring pulse */
@keyframes ringPulse {
  0%,100% { opacity: 0.3; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%,-50%) scale(1.03); }
}
.ring-anim {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: ringPulse 4s ease-in-out infinite;
}

/* Scan line */
@keyframes scanLine {
  0% { top: 0; }
  100% { top: 100%; }
}
.scan-line { animation: scanLine 4s linear infinite; }

/* Scroll hint float */
@keyframes scrollHint {
  0%,100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(4px); }
}
.scroll-hint { animation: scrollHint 2s ease-in-out infinite; }

/* Feature card */
.feature-card {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(24,24,27,0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card::before {
  content: attr(data-priority);
  position: absolute;
  top: 8px; right: 12px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(16,185,129,0.4);
}
.feature-card:hover { border-color: rgba(16,185,129,0.3); transform: translateY(-2px); }
.fc-icon {
  width: 48px; height: 48px;
  background: rgba(16,185,129,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.feature-card:hover .fc-icon { transform: scale(1.1); background: rgba(16,185,129,0.2); }
.fc-title {
  font-size: 1rem; font-weight: 700;
  color: white; margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.fc-desc { color: #a1a1aa; font-size: 0.875rem; line-height: 1.6; }
.fc-more {
  margin-top: 1.5rem;
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  color: #10b981; text-transform: uppercase; letter-spacing: 0.2em;
  opacity: 0; transition: opacity 0.2s ease;
}
.feature-card:hover .fc-more { opacity: 1; }

/* Sector row hover */
.sector-row { transition: background 0.15s ease; cursor: default; }
.sector-row:hover { background: rgba(255,255,255,0.02); }
.sector-row:hover .sector-name { color: #34d399 !important; }

/* Stat blocks stagger */
.stat-block {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-block.visible { opacity: 1; transform: translateY(0); }

/* Focus */
:focus-visible {
  outline: 2px solid rgba(16,185,129,0.6);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .stat-block { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
