/* ==========================================================================
   Cosmic Glassmorphism Theme - Mobile First
   ========================================================================== */

:root {
  --bg-dark: #030014;
  --bg-card: rgba(15, 10, 31, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(147, 51, 234, 0.3);

  --text-main: #ffffff;
  --text-muted: #94a3b8;

  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-gold: #fbbf24;

  --gradient-text: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  --gradient-button: linear-gradient(135deg, #0ea5e9, #6366f1);
  --gradient-button-hover: linear-gradient(135deg, #38bdf8, #818cf8);

  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
.plan-name {
  font-family: 'Outfit', sans-serif;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Background Effects
   ========================================================================== */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: var(--bg-dark);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(147, 51, 234, 0.4);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.3);
  bottom: 20%;
  right: -50px;
  animation-delay: -5s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(59, 130, 246, 0.3);
  bottom: -50px;
  left: 20%;
  animation-delay: -10s;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.glass-panel:hover::before {
  left: 150%;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 20px;
  background: rgba(3, 0, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: var(--gradient-text);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* ==========================================================================
   Layout & Sections Container
   ========================================================================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 65px 20px 40px;
  /* Reduced Top padding accounts for fixed nav */
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-subtitle {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 10px;
  max-width: 500px;
  margin-inline: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  margin-top: 5px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  border-radius: 24px;
  overflow: hidden;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
  border: 1px solid var(--border-glass);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
}

.badge-wrapper {
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.sparkle-icon {
  animation: spin-slow 4s linear infinite;
}

@keyframes spin-slow {
  100% {
    transform: rotate(360deg);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 90%;
}

.cta-wrapper {
  width: 100%;
}

.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  padding: 16px 24px;
  background: var(--gradient-button);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.primary-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
}

.primary-btn:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(14, 165, 233, 0.4);
}

.primary-btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   Trust Stats Section
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-card {
  padding: 20px 10px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.star {
  font-size: 1.2rem;
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-badges {
  grid-column: 1 / -1;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.trust-badge {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Split Layout Utilities
   ========================================================================== */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.split-content {
  flex: 1;
  width: 100%;
}

.split-image-wrapper {
  flex: 1;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
  border: 1px solid var(--border-glass);
}

.split-image-wrapper.purple-glow {
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.split-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.split-image-wrapper:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
}

.step-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.2);
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #fff;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
}

.feature-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.feature-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.price-card {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
  transform: scale(1.02);
  z-index: 2;
  background: rgba(25, 15, 40, 0.6);
}

.popular-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-gold);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-align: center;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--accent-gold);
}

.plan-period {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  width: 18px;
  height: 18px;
  stroke: var(--accent-cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.price-card.popular .check {
  stroke: var(--accent-gold);
}

.plan-btn {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  border-radius: 10px;
  font-weight: 700;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.plan-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.plan-btn.active {
  background: var(--gradient-button);
  border: none;
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.plan-btn.active:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Support & Footer
   ========================================================================== */
.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  gap: 15px;
}

.support-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.support-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.support-btn {
  padding: 10px 24px;
  background: transparent;
  color: #34d399;
  border: 1px solid #34d399;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s;
}

.support-btn:hover {
  background: rgba(52, 211, 153, 0.1);
}

.footer {
  margin-top: 40px;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 5px;
}

.disclaimer {
  color: #34d399 !important;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 .stat-card,
.stagger-1 .trust-badge {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.active.stagger-1 .stat-card:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-up.active.stagger-1 .stat-card:nth-child(2) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-up.active.stagger-1 .stat-card:nth-child(3) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-up.active.stagger-1 .trust-badges {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   Desktop / Tablet Media Queries
   ========================================================================== */
@media (min-width: 768px) {
  main {
    padding-top: 85px;
    gap: 60px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero {
    min-height: 70vh;
    padding: 40px 40px;
  }

  .hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .hero-content {
    align-items: flex-start;
    flex: 1;
  }

  .hero-image-wrapper {
    flex: 1;
    margin-left: 20px;
  }

  .primary-btn {
    margin: 0;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
    max-width: 80%;
  }

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

  .trust-badges {
    grid-column: span 3;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .split-layout {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
  }

  .steps-container {
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .step-card {
    flex: 1;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .split-layout .features-grid {
    height: 100%;
    align-content: center;
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .price-card.popular {
    transform: scale(1.05);
  }

  .price-card.popular:hover {
    transform: scale(1.08);
  }

  .support-card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
  }

  .support-content {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}