/* ============================================
   StarTrek — Landing Page Styles
   ============================================ */

/* ---- Particle Canvas ---- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: var(--space-sm) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-hero);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow-purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem !important;
}

/* Mobile menu */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  filter: blur(80px);
  animation: pulse-glow 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-orbital {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring-1 {
  width: 300px;
  height: 300px;
}

.orbit-ring-2 {
  width: 420px;
  height: 420px;
  border-color: rgba(6, 182, 212, 0.08);
}

.orbit-ring-3 {
  width: 560px;
  height: 560px;
  border-color: rgba(16, 185, 129, 0.05);
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.orbit-dot-1 {
  background: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
  animation: orbit 12s linear infinite;
}

.orbit-dot-2 {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-blue-glow);
  animation: orbit 18s linear infinite reverse;
  --orbit-radius: 160px;
}

.orbit-dot-3 {
  background: var(--accent-green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  animation: orbit 25s linear infinite;
  --orbit-radius: 220px;
  width: 6px;
  height: 6px;
}

@keyframes orbit-2 {
  from {
    transform: rotate(0deg) translateX(160px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(160px) rotate(-360deg);
  }
}

@keyframes orbit-3 {
  from {
    transform: rotate(0deg) translateX(220px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(220px) rotate(-360deg);
  }
}

.orbit-dot-2 {
  animation-name: orbit-2;
}

.orbit-dot-3 {
  animation-name: orbit-3;
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  max-width: 800px;
  padding: 0 var(--space-xl);
}

.hero-badge {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.15s forwards;
  opacity: 0;
}

.hero-title .glow-word {
  position: relative;
  display: inline-block;
}

.hero-title .glow-word::after {
  display: none;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.45s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  justify-content: center;
  margin-top: var(--space-4xl);
  animation: fadeInUp 0.6s ease 0.6s forwards;
  opacity: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-purple), transparent);
}

/* ---- Problem Section ---- */
.problem-section {
  position: relative;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.problem-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.india-map-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.india-map-svg {
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.2));
}

.station-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-amber);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

.problem-content h2 {
  margin-bottom: var(--space-lg);
}

.problem-content p {
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
  line-height: 1.8;
}

.gap-counter {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.gap-counter-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.gap-counter-unit {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.gap-counter-label {
  font-size: 1rem;
  color: var(--text-tertiary);
}

/* ---- Pipeline Section ---- */
.pipeline-section {
  overflow: hidden;
}

.pipeline-section h2 {
  margin-bottom: var(--space-md);
}

.pipeline-section .section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.pipeline-track {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pipeline-track::-webkit-scrollbar {
  display: none;
}

.pipeline-card {
  min-width: 280px;
  max-width: 280px;
  padding: var(--space-xl);
  scroll-snap-align: start;
  position: relative;
}

.pipeline-card-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(124, 58, 237, 0.15);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.pipeline-card-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.pipeline-card h4 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.pipeline-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.pipeline-connector {
  display: flex;
  align-items: center;
  color: var(--accent-purple);
  font-size: 1.5rem;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ---- X-Factor Section ---- */
.xfactor-section {
  position: relative;
}

.xfactor-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.xfactor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.xfactor-card {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

.xfactor-card:nth-child(2) {
  animation-delay: -1.5s;
}

.xfactor-card:nth-child(3) {
  animation-delay: -3s;
}

.xfactor-card:nth-child(4) {
  animation-delay: -4.5s;
}

.xfactor-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.xfactor-card-icon.purple {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.xfactor-card-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.xfactor-card-icon.green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.xfactor-card-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.xfactor-card h4 {
  margin-bottom: var(--space-sm);
}

.xfactor-card p {
  font-size: 0.9rem;
}

/* ---- Objectives Section ---- */
.objectives-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.objectives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.objective-card {
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px;
}

.objective-card.obj1::before {
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-blue));
}

.objective-card.obj2::before {
  background: linear-gradient(to bottom, var(--accent-amber), var(--accent-orange));
}

.objective-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.objective-card.obj1 .objective-number {
  color: var(--accent-purple);
}

.objective-card.obj2 .objective-number {
  color: var(--accent-amber);
}

.objective-card h3 {
  margin-bottom: var(--space-md);
}

.objective-card p {
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.7;
}

.objective-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.objective-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.objective-features li::before {
  content: '▹';
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Tech Stack Section ---- */
.tech-section h2 {
  margin-bottom: var(--space-md);
}

.tech-section .section-subtitle {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-3xl);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  cursor: default;
}

.tech-item:hover {
  background: var(--bg-glass);
  border-color: var(--border-glass);
  transform: translateY(-4px);
}

.tech-item-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ---- Architecture Section ---- */
.arch-section {
  position: relative;
}

.arch-flow {
  display: flex;
  align-items: stretch;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
}

.arch-node {
  min-width: 200px;
  padding: var(--space-lg);
  text-align: center;
  flex-shrink: 0;
}

.arch-node-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: var(--space-md);
}

.arch-node-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-node-items li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.06);
}

.arch-arrow {
  display: flex;
  align-items: center;
  color: var(--accent-purple);
  font-size: 1.5rem;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ---- Team Section ---- */
.team-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
}

.team-grid {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-3xl);
}

.team-card {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  width: 260px;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-glow-purple);
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: var(--space-sm);
}

.team-card .team-email {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ---- Footer ---- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-glass);
  text-align: center;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-credit span {
  color: var(--accent-purple);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .objectives-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .gap-counter-number {
    font-size: 3.5rem;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}