/**
 * Marketing Landing Page Styles
 * Uses design system tokens and brand colors
 */

/* ========================================
   Floating Navigation Button
   ======================================== */

.floating-nav {
  display: flex;
  gap: 1rem;
}

.floating-nav .btn {
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.floating-nav .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4) !important;
}

.floating-nav .btn:active {
  transform: translateY(0);
}

@media (max-width: 576px) {
  .floating-nav {
    top: 15px !important;
    right: 15px !important;
  }

  .floating-nav .btn {
    padding: 8px 16px !important;
    font-size: 0.85rem;
  }
}

/* ========================================
   Hero Section
   ======================================== */

.landing-page {
  overflow-x: hidden;
}

.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 244, 237, 0.5) 100%);
  padding: 5rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

/* Typewriter effect */
.typewriter-text {
  display: inline-block;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--color-primary);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
  vertical-align: bottom;
}

/* Mobile cursor adjustments */
@media (max-width: 768px) {
  .typewriter-cursor {
    width: 4px;
    height: 1.1em;
  }
}

@media (max-width: 576px) {
  .typewriter-cursor {
    width: 5px;
    height: 1.2em;
  }
}

@keyframes cursor-blink {
  0%, 25% {
    background-color: var(--color-primary);
  }
  50%, 75% {
    background-color: transparent;
  }
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray-600);
  margin: 1.5rem 0 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-footnote {
  color: var(--color-gray-500);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 150px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.cta-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

/* ========================================
   Metrics Section
   ======================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.metric-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.metric-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--color-gray-600);
  font-weight: 500;
}

/* ========================================
   Features Section
   ======================================== */

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  border-color: var(--color-primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--color-gray-600);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ========================================
   Steps/How It Works Section
   ======================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.step:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--color-gray-600);
  line-height: 1.5;
}

/* ========================================
   Why Choose Section
   ======================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-item {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.why-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.why-item i {
  display: block;
  margin-bottom: 1rem;
}

.why-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.why-item p {
  color: var(--color-gray-600);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ========================================
   Demo Section
   ======================================== */

.demo-section {
  border-radius: 12px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.demo-section h2 {
  font-size: 2rem;
  font-weight: 700;
}

.demo-section p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  margin-top: 5rem;
}

.footer h5 {
  font-weight: 600;
}

.footer h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem !important;
}

.footer a {
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--color-primary) !important;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer .btn {
  font-weight: 600;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

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

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

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

  .cta-buttons {
    gap: 0.75rem;
  }

  .cta-buttons .btn {
    min-width: 140px;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }

  .feature-card,
  .step,
  .why-item {
    padding: 1.5rem;
  }

  .metric-value {
    font-size: 2rem;
  }

  .footer {
    text-align: center;
  }

  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 2rem 1rem;
  }

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

  .hero-title br {
    display: none;
  }

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

  .features-grid,
  .steps-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .cta-buttons .btn {
    width: 100%;
  }
}

/* ========================================
   Animation Classes
   ======================================== */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.metric-card,
.step,
.why-item {
  animation: slideInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
