/* ==========================================================================
   NEXCODE CLOUD OBSIDIAN DARK STYLES (GLASSMORPHISM V3)
   Comprehensive styling for Dark Glass Matrix, 9:16 Mobile & 16:9 PC Modes
   ========================================================================== */

:root {
  --bg-dark: #070709;
  --bg-card: rgba(18, 18, 24, 0.65);
  --bg-card-hover: rgba(28, 28, 38, 0.85);
  --bg-glass-solid: rgba(15, 15, 22, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(14, 165, 233, 0.4);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --accent-blue: #0ea5e9;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --text-main: #f4f4f5;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.15);
  --shadow-purple-glow: 0 0 25px rgba(139, 92, 246, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.14) 0%, transparent 60%),
              radial-gradient(circle at 80% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
              var(--bg-dark);
  overflow-x: hidden;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   VIEWPORT ASPECT RATIO SIMULATION MODES (PC 16:9 / PHONE 9:16)
   ========================================================================== */

body.mode-pc {
  max-width: 100vw;
  margin: 0 auto;
}

body.mode-mobile {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-subtle);
  border-radius: 0;
  background-size: cover;
  overflow-x: hidden;
}

body.mode-mobile .navbar {
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

body.mode-mobile .container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

body.mode-mobile .feature-grid,
body.mode-mobile .pricing-grid,
body.mode-mobile .support-grid {
  grid-template-columns: 1fr !important;
}

/* Base Container Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 7, 9, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Toggle Switcher for Demo Mode (PC vs Mobile) */
.view-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.toggle-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
  background: linear-gradient(135deg, #38bdf8 0%, var(--accent-blue) 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-glow-pro {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-glow-pro:hover {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #a78bfa 0%, var(--accent-purple) 100%);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   GLASSMORPHISM CARD BASE
   ========================================================================== */

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: 160px;
  padding-bottom: 90px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-blue) 70%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* ==========================================================================
   EQUAL & BALANCED FEATURE CARDS (GRID & FLEX STYLING)
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-section {
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch; /* Enforces equal height across row */
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 280px;
  padding: 2.2rem 2rem;
}

.feature-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--accent-blue);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.02);
}

.icon-purple { color: var(--accent-purple); }
.icon-cyan { color: var(--accent-cyan); }
.icon-pink { color: var(--accent-pink); }
.icon-emerald { color: var(--accent-emerald); }
.icon-amber { color: var(--accent-amber); }

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.3;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.feature-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
}

/* ==========================================================================
   PRICING CARDS (₹0 48H TRIAL VS ₹500 PRO LIFETIME)
   ========================================================================== */

.pricing-section {
  padding: 90px 0;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border: 1px solid var(--border-subtle);
  padding: 2.75rem 2.25rem;
}

.pricing-card.featured {
  border-color: var(--accent-purple);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, rgba(18, 18, 24, 0.75) 100%);
  box-shadow: var(--shadow-purple-glow);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.pricing-header {
  margin-bottom: 2rem;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.plan-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.price-currency {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.price-original {
  font-size: 1.25rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 0.25rem;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-check {
  color: var(--accent-emerald);
  font-weight: bold;
}

.trial-timer-banner {
  background: rgba(14, 165, 233, 0.1);
  border: 1px dashed rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ==========================================================================
   CUSTOMER SUPPORT (INSTAGRAM) & CREATOR (YOUTUBE) SECTION
   ========================================================================== */

.support-section {
  padding: 80px 0 100px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.support-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.creator-card-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.creator-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.social-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.social-icon-box.instagram {
  background: linear-gradient(135deg, #405DE6, #833AB4, #C13584, #E1306C);
  color: #fff;
}

.social-icon-box.youtube {
  background: #FF0000;
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  background: rgba(5, 5, 7, 0.95);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   MODAL OVERLAY (DYNAMIC POPUPS)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-glass-solid);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), var(--shadow-glow);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE MOBILE & DESKTOP FINE-TUNING
   ========================================================================== */

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
  }

  .hero-stats {
    flex-direction: row;
    gap: 1.5rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .feature-grid,
  .pricing-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }
}
