/* ===========================================
   LANDING PAGE STYLES
   =========================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1a1a1a;
  z-index: 1000;
  padding: 16px 0;
}

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

.nav-logo a {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: #a0a0a0;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login {
  font-size: 15px;
  color: #a0a0a0;
  transition: color 0.2s;
}

.nav-login:hover {
  color: #ffffff;
}

.nav-cta {
  background: #0066ff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* Hero Section */
.hero {
  padding: 160px 24px 80px;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-headline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: -1px;
}

.hero-subheadline {
  font-size: 20px;
  line-height: 1.6;
  color: #a0a0a0;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.btn-primary {
  background: #0066ff;
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #333333;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: #1a1a1a;
}

.hero-trust {
  font-size: 14px;
  color: #707070;
}

/* Problem Section */
.problem {
  padding: 80px 24px;
}

.problem-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-headline {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 48px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.problem-item {
  background: #0f0f0f;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 32px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.problem-item:hover {
  transform: translateY(-4px);
  border-color: #0066ff;
}

.problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.problem-icon svg {
  color: #0066ff;
  stroke-width: 1.5;
}

.problem-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.problem-description {
  font-size: 15px;
  line-height: 1.6;
  color: #a0a0a0;
}

.problem-solution {
  font-size: 18px;
  color: #a0a0a0;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 24px;
  background: #0f0f0f;
}

.how-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.step {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 32px 24px;
  flex: 1;
  max-width: 320px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: #0066ff;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.step-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  background: #0066ff;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-icon svg {
  color: #0066ff;
  stroke-width: 1.5;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.step-description {
  font-size: 15px;
  line-height: 1.6;
  color: #a0a0a0;
}

.step-arrow {
  font-size: 32px;
  color: #333333;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* Features Section */
.features {
  padding: 80px 24px;
}

.features-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

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

.feature {
  background: #0f0f0f;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: #0066ff;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #0066ff;
}

.feature-icon svg {
  stroke-width: 1.7;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.feature-description {
  font-size: 14px;
  line-height: 1.6;
  color: #a0a0a0;
}

/* Pricing Section */
.pricing {
  padding: 80px 24px;
  background: #0f0f0f;
}

.pricing-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.pricing-subheadline {
  font-size: 18px;
  color: #a0a0a0;
  margin: -20px 0 36px;
}

.pricing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #101010;
  border: 1px solid #222222;
  border-radius: 999px;
  padding: 4px;
}

.pricing-toggle-btn {
  border: 0;
  background: transparent;
  color: #9e9e9e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.pricing-toggle-btn.is-active {
  background: #1d1d1d;
  color: #ffffff;
}

.pricing-save-label {
  color: #7faeff;
  border: 1px solid rgba(0, 102, 255, 0.35);
  background: rgba(0, 102, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  min-height: 520px;
  background: #0a0a0a;
  border: 1px solid #212121;
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pricing-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pricing-card-footer {
  margin-top: auto;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.free-tier {
  border-color: #1f1f1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.free-tier:hover {
  border-color: #323232;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.pro-tier.highlighted {
  border: 1px solid rgba(0, 102, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(0, 102, 255, 0.16), 0 20px 42px rgba(0, 102, 255, 0.22);
  transform: scale(1.03);
}

.pro-tier.highlighted:hover {
  border-color: rgba(0, 102, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 102, 255, 0.26), 0 24px 46px rgba(0, 102, 255, 0.26);
}

.tier-name {
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #ffffff;
}

.pricing-price {
  margin: 0 0 14px;
  min-height: 58px;
  display: flex;
  align-items: baseline;
}

.pricing-amount {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 18px;
  color: #9e9e9e;
  font-weight: 400;
  margin-left: 6px;
}

.pricing-billed-note {
  font-size: 13px;
  color: #7faeff;
  margin: -8px 0 20px;
  min-height: 20px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 26px;
  text-align: left;
  flex: 1;
}

.pricing-features li {
  font-size: 15px;
  color: #b0b0b0;
  margin-bottom: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.pricing-features .checkmark {
  color: #0066ff;
  font-weight: bold;
  margin-right: 0;
  flex-shrink: 0;
  line-height: 1.5;
}

.pricing-cta {
  display: block;
  width: 100%;
  border: none;
  text-align: center;
  background: #0066ff;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
  cursor: pointer;
}

.pricing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.pricing-cta.secondary {
  background: transparent;
  border: 1px solid #3a3a3a;
  color: #d6d6d6;
}

.pricing-cta.secondary:hover {
  background: #171717;
  border-color: #5a5a5a;
  color: #ffffff;
  box-shadow: none;
}

.pricing-cta.primary {
  background: #0066ff;
}

.pricing-trial {
  font-size: 14px;
  color: #a0a0a0;
  margin-bottom: 0;
}

.pricing-guarantee {
  font-size: 13px;
  color: #7c7c7c;
  margin: 0;
}

/* Upgrade Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container {
  width: 100%;
  max-width: 560px;
}

.modal-content {
  position: relative;
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #2b2b2b;
  color: #bdbdbd;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
  background: #171717;
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-title {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  margin: 0;
  color: #a0a0a0;
}

.modal-pricing-card {
  border: 1px solid rgba(0, 102, 255, 0.45);
  border-radius: 14px;
  padding: 22px;
  background: rgba(0, 102, 255, 0.05);
}

.modal-badge {
  display: inline-block;
  background: rgba(0, 102, 255, 0.2);
  color: #8ab5ff;
  border: 1px solid rgba(0, 102, 255, 0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.modal-price {
  margin: 6px 0 10px;
}

.modal-price-amount {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-price-period {
  font-size: 18px;
  color: #a0a0a0;
  margin-left: 5px;
}

.modal-annual {
  margin: 0 0 16px;
  color: #8ab5ff;
  font-size: 14px;
}

.modal-features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #c8c8c8;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.modal-features .checkmark {
  color: #0066ff;
  font-weight: 700;
  flex-shrink: 0;
}

.modal-cta {
  display: block;
  text-align: center;
  background: #0066ff;
  color: #ffffff;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}

.modal-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 102, 255, 0.35);
}

.modal-bonus {
  border-top: 1px solid #2b2b2b;
  padding-top: 12px;
}

.modal-bonus-text {
  margin: 0;
  text-align: center;
  color: #7b7b7b;
  font-size: 13px;
}

/* Final CTA Section */
.final-cta {
  padding: 120px 24px 80px;
}

.final-cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-headline {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.final-cta-subheadline {
  font-size: 18px;
  color: #a0a0a0;
  margin-bottom: 32px;
}

.btn-primary-large {
  background: #0066ff;
  color: #ffffff;
  padding: 20px 48px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

.final-cta-trust {
  font-size: 14px;
  color: #707070;
  margin-top: 16px;
}

.final-cta-social {
  font-size: 14px;
  color: #707070;
  margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 36px;
  }

  .hero-subheadline {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .section-headline {
    font-size: 28px;
  }

  .problem-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .pro-tier {
    order: -1;
  }

  .pro-tier.highlighted {
    transform: none;
  }

  .modal-content {
    padding: 22px;
  }

  .modal-title {
    font-size: 26px;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    animation: none;
  }

  .nav-links {
    display: none;
  }

  .final-cta-headline {
    font-size: 28px;
  }

  /* Disable animations on mobile for performance */
  .problem,
  .how-it-works,
  .features,
  .flexibility,
  .pricing,
  .final-cta {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 60px;
  }

  .hero-headline {
    font-size: 28px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* ============================================
   ANIMATIONS & POLISH
   ============================================ */

/* Fade-in animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-container {
  animation: fadeInUp 0.8s ease-out;
}

/* Animated arrow connector */
@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Button pulse animation on hover */
.btn-primary:hover,
.btn-primary-large:hover,
.pricing-cta:hover {
  animation: buttonPulse 0.3s ease-out;
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.02);
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Section entrance animations */
.problem,
.how-it-works,
.features,
.flexibility,
.pricing,
.final-cta {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.problem {
  animation-delay: 0.1s;
}

.how-it-works {
  animation-delay: 0.2s;
}

.features {
  animation-delay: 0.3s;
}

.flexibility {
  animation-delay: 0.4s;
}

.pricing {
  animation-delay: 0.5s;
}

.final-cta {
  animation-delay: 0.6s;
}
