/* ═══════════════════════════════════════════════════════════════
   GALAXY PLATFORM — Global Stylesheet
   Design system: Material Design 3 · Primary #cbf627 · Tertiary #8596ff
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────
   1. BASE
───────────────────────────────────────── */

body {
  background-color: #0e0e0e;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

#hero-title {
  font-size: 48px;
}

@media (min-width: 768px) {
  #hero-title {
    font-size: 4.4rem;
  }
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}


/* ─────────────────────────────────────────
   2. UTILITY CLASSES
───────────────────────────────────────── */

.glass-card {
  background: rgba(38, 38, 38, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.text-gradient-primary {
  background: linear-gradient(135deg, #cbf627 0%, #bde70e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Small pill / tag component */
.benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(203, 246, 39, 0.08);
  border: 1px solid rgba(203, 246, 39, 0.2);
  color: #cbf627;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.25s;
}
.benefit-tag:hover {
  background: rgba(203, 246, 39, 0.18);
  transform: translateY(-2px);
}

/* Stat counter */
.stat-number {
  display: inline-block;
  transition: transform 0.3s;
}


/* ─────────────────────────────────────────
   3. SCROLL PROGRESS BAR
───────────────────────────────────────── */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #cbf627, #bde70e);
  z-index: 9997;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(203, 246, 39, 0.6);
}


/* ─────────────────────────────────────────
   4. NAVIGATION
───────────────────────────────────────── */

nav.scrolled {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  background: rgba(14, 14, 14, 0.92) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8) !important;
}

nav .nav-inner {
  transition: padding 0.3s ease;
}

/* Underline slide animation on nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #cbf627;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active::after {
  width: 0;
}


/* ─────────────────────────────────────────
   5. KEYFRAME ANIMATIONS
───────────────────────────────────────── */

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}


/* ─────────────────────────────────────────
   6. HERO BACKGROUND ORBS
───────────────────────────────────────── */

.orb-1 {
  animation: float 8s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
  transition: transform 0.1s ease-out;
}
.orb-2 {
  animation: float 10s ease-in-out infinite 2s, pulse-glow 5s ease-in-out infinite 1s;
  transition: transform 0.15s ease-out;
}

/* SVG illustration float (AI Orchestrator page) */
.ai-float {
  animation: float 7s ease-in-out infinite;
}


/* ─────────────────────────────────────────
   7. SCROLL REVEAL
───────────────────────────────────────── */

.fade-in-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for grid children */
.stagger-1 { transition-delay: 0.10s !important; }
.stagger-2 { transition-delay: 0.22s !important; }
.stagger-3 { transition-delay: 0.34s !important; }
.stagger-4 { transition-delay: 0.46s !important; }

/* Feature card reveal — scale + fade + blur, expo-out easing */
.feature-reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  filter: blur(3px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.feature-reveal-1 { transition-delay: 0.18s; }
.feature-reveal-2 { transition-delay: 0.36s; }

/* Section label slide-up (homepage) */
.section-label {
  overflow: hidden;
}
.section-label span {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.section-label.visible span {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────────────────────────────────────
   8. LOGO TICKER (homepage)
───────────────────────────────────────── */

.ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}


/* ─────────────────────────────────────────
   9. CARD 3D TILT
───────────────────────────────────────── */

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.08s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.tilt-card:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}


/* ─────────────────────────────────────────
   10. RIPPLE BUTTON
───────────────────────────────────────── */

.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple .ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.25);
  animation: ripple-expand 0.55s linear;
  pointer-events: none;
}


/* ─────────────────────────────────────────
   11. PROGRESS BAR (homepage — telemetry)
───────────────────────────────────────── */

.progress-bar-fill {
  position: relative;
  overflow: hidden;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-bar-fill.animated {
  width: 92%;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  animation: shimmer 1.8s infinite;
}


/* ─────────────────────────────────────────
   12. ICON & INTERACTIVE EFFECTS
───────────────────────────────────────── */

/* Feature icon bounce on group hover */
.icon-bounce {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.group:hover .icon-bounce {
  transform: scale(1.18) rotate(-6deg);
}

/* Step number radial glow on hover */
.step-num {
  position: relative;
}
.step-num::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(203, 246, 39, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.group:hover .step-num::before {
  opacity: 1;
}


/* ─────────────────────────────────────────
   13. NAV DROPDOWN
───────────────────────────────────────── */

.nav-dropdown-wrap {
  position: relative;
}

/* Trigger link — chevron rotates on hover */
.nav-dropdown-wrap > a .dropdown-chevron {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
  margin-left: 2px;
  vertical-align: middle;
  opacity: 0.6;
}
.nav-dropdown-wrap:hover > a .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Invisible bridge filling the gap so hover doesn't break
   when mouse moves from trigger down to the panel */
.nav-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  transform: translateY(-6px);
  min-width: 240px;
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(203, 246, 39, 0.06);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

/* Small arrow tip above the panel */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 18px;
  transform: rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(14, 14, 14, 0.97);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Open state */
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown items — same hover feel as top nav links */
.nav-dropdown a {
  display: block;
  padding: 12px 18px;
  border-radius: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #adaaaa;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: #f5f5f5;
  opacity: 0.8;
}

/* Wide 2-column variant (Our Product) */
.nav-dropdown-wide {
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* ─────────────────────────────────────────
   14. PRICING CARDS (homepage)
───────────────────────────────────────── */

.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(203, 246, 39, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.pricing-card.featured:hover {
  box-shadow: 0 0 60px rgba(203, 246, 39, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5);
}


/* ─────────────────────────────────────────
   15. MOBILE MENU PANEL
───────────────────────────────────────── */

#mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0e0e0e;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

#mobile-menu-panel.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #1e1e1e;
  flex-shrink: 0;
}

#mobile-menu-close {
  background: none;
  border: none;
  color: #adaaaa;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  border-radius: 6px;
}

#mobile-menu-close:hover {
  color: #f5f5f5;
}

.mobile-menu-nav {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.mobile-menu-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #adaaaa;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  transition: color 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

.mobile-menu-link:hover {
  color: #f5f5f5;
}

.mobile-menu-link.active {
  color: #cbf627;
}

.mobile-menu-direct {
  font-size: 1.1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #1a1a1a;
}
