/* ==========================================================================
   Motion4k Premium Landing Page & Pricing Styles
   ========================================================================== */

/* Background & Typography Base (inherited from styles.css but enforcing strict landing rules) */
.landing-body {
  overflow-y: auto;
  /* Allow scrolling on landing page */
  overflow-x: hidden;
  background-color: var(--bg-primary, #181825);
  color: var(--text-primary, #cdd6f4);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

/* Global Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Navbar */
.landing-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  background: rgba(24, 24, 37, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  transition: all 0.3s ease;
}

.landing-navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-navbar .brand-logo {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-bright, #fff);
  letter-spacing: -0.5px;
}

.landing-navbar .brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-cyan, #00f0ff), var(--accent-purple, #9d4edd));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

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

.nav-links a {
  color: var(--text-secondary, #a6adc8);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-bright, #fff);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan, #00f0ff), var(--accent-blue, #38bdf8));
  color: #000;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-outline {
  background: transparent;
  color: var(--text-bright, #fff);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan, #00f0ff);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-bright, #fff);
  letter-spacing: -1.5px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan, #00f0ff), var(--accent-purple, #9d4edd));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary, #a6adc8);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* Social Proof Banner */
.social-proof {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(17, 17, 27, 0.5);
  text-align: center;
}

.social-proof p {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.social-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.6;
}

.social-logos i {
  font-size: 28px;
}

/* Mockup Display */
.hero-mockup {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: var(--bg-tertiary, #252538);
  overflow: hidden;
  z-index: 2;
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-mockup:hover {
  transform: perspective(1000px) rotateX(0deg);
}

.mockup-header {
  height: 32px;
  background: var(--bg-sidebar, #11111b);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #45475a;
}

.mockup-dot.r {
  background: #f38ba8;
}

.mockup-dot.y {
  background: #f9e2af;
}

.mockup-dot.g {
  background: #a6e3a1;
}

.mockup-body {
  padding: 20px;
  aspect-ratio: 16/9;
  background-color: #1e1e2e;
  /* fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mockup-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, rgba(24, 24, 37, 0.8) 100%);
}

.play-pulse {
  width: 80px;
  height: 80px;
  background: rgba(0, 240, 255, 0.2);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--accent-cyan);
  z-index: 3;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
  animation: pulse 2s infinite;
  cursor: pointer;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(0, 240, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}


/* Section Shared */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-header h2 {
  font-size: 36px;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* Problem vs Solution */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.vs-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 40px;
}

.vs-card.bad {
  border-top: 4px solid var(--accent-red, #f38ba8);
}

.vs-card.good {
  border-top: 4px solid var(--accent-green, #a6e3a1);
  background: rgba(166, 227, 161, 0.05);
}

.vs-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vs-card.bad h3 {
  color: var(--accent-red);
}

.vs-card.good h3 {
  color: var(--accent-green);
}

.vs-list {
  list-style: none;
}

.vs-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.vs-card.bad .vs-list li i {
  color: var(--accent-red);
}

.vs-card.good .vs-list li i {
  color: var(--accent-green);
}


/* Bento Grid Features */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.bento-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card.tall {
  grid-row: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.bento-icon.purple {
  background: rgba(157, 78, 221, 0.1);
  color: var(--accent-purple);
}

.bento-card h3 {
  font-size: 20px;
  color: var(--text-bright);
  margin-bottom: 12px;
  z-index: 2;
  position: relative;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  z-index: 2;
  position: relative;
}

/* Glass Elements inside large cards */
.glass-panel {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 70%;
  height: 60%;
  background: rgba(30, 30, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
}

.glass-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

/* Workflow Section */
.workflow-section {
  background: var(--bg-sidebar);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.workflow-steps {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  position: relative;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), rgba(157, 78, 221, 0.3), transparent);
  z-index: 1;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-num {
  width: 60px;
  height: 60px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 auto 24px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.step:nth-child(2) .step-num {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.step h4 {
  font-size: 18px;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
}

.testimonial-stars {
  color: var(--accent-yellow, #f9e2af);
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
}

.author-info h5 {
  color: var(--text-bright);
  font-size: 14px;
}

.author-info p {
  color: var(--text-muted);
  font-size: 12px;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  color: var(--text-bright);
  cursor: pointer;
  font-weight: 600;
}

.faq-answer {
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.6;
}

/* Pricing Page specific styles */
.pricing-header {
  padding: 160px 0 80px;
  text-align: center;
}

.pricing-header h1 {
  font-size: 48px;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.pricing-card {
  background: var(--bg-sidebar);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transition: transform 0.3s ease;
}

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

.pricing-card.featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.featured-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-name {
  font-size: 20px;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.plan-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 20px;
}

.plan-price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

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

.plan-features li {
  margin-bottom: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li i {
  color: var(--accent-cyan);
}

/* Coupon UI */
.coupon-section {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}

.coupon-input-group {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.coupon-input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  outline: none;
}

.coupon-input:focus {
  border-color: var(--accent-cyan);
}

.coupon-message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.coupon-message.success {
  color: var(--accent-green);
}

.coupon-message.error {
  color: var(--accent-red);
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.8), rgba(24, 24, 37, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 40px;
  color: var(--text-bright);
  margin-bottom: 20px;
}

/* Footer */
.landing-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-sidebar);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(200px, auto);
  }

  .bento-card.large,
  .bento-card.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-title {
    font-size: 40px;
  }

  .workflow-steps {
    flex-direction: column;
    gap: 40px;
  }

  .workflow-steps::before {
    display: none;
  }

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

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

  /* Shared Responsive Grids */
  .pricing-grid,
  .adobetrack-feature-grid,
  .responsive-pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

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

@media (max-width: 768px) {
  .landing-navbar {
    padding: 10px 0;
  }
  .landing-navbar .container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: center;
  }
  
  .landing-navbar .brand-logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
  }
  
  /* The Auth buttons div */
  .landing-navbar .container > div:last-child {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: 8px;
  }
  
  /* Scale down Auth buttons */
  .landing-navbar .btn-primary, 
  .landing-navbar .btn-outline {
    padding: 6px 12px !important;
    font-size: 12px !important;
    margin: 0 !important;
  }
  
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .nav-links::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .social-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  /* Homepage specific padding reductions */
  .hero {
    padding: 120px 0 60px !important;
  }

  .section {
    padding: 60px 0 !important;
  }

  .vs-card {
    padding: 25px !important;
  }

  .bento-card {
    padding: 25px !important;
  }

  .hero-mockup {
    margin-top: 30px;
  }

  /* For the new Pricing containers */
  .motion-grid-container,
  .adobetrack-grid-container {
    padding: 40px 20px !important;
    border-radius: 20px !important;
  }
  
  .pricing-card {
    padding: 30px 20px !important;
  }
  
  .price {
    font-size: 48px !important;
  }
}

@media (max-width: 600px) {
  .hero-title,
  .section-header h2 {
    font-size: 32px !important;
  }
  .hero-subtitle,
  .section-header p {
    font-size: 16px !important;
  }
  .pricing-btn,
  .btn-primary,
  .btn-outline {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .pricing-card.studio.pro,
  .pricing-card.adobetrack.pro {
    transform: scale(1) !important;
  }
  .pricing-card.studio.pro:hover,
  .pricing-card.adobetrack.pro:hover {
    transform: translateY(-5px) scale(1) !important;
  }
}