/* CSS Variables */
:root {
  --color-4: #22a1b4;
  --color-2: #18817d;
  --color-5: #c04d1b;
  --color-1: #75b620;
  --color-3: #12586e;

  /* Semantic color mappings */
  --primary-color: var(--color-3);
  --primary-light: var(--color-1);
  --primary-dark: #466874;
  --secondary-color: var(--color-4);
  --accent-color: var(--color-5);
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a2332;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(90, 126, 140, 0.1);
  --shadow-md: 0 4px 16px rgba(90, 126, 140, 0.15);
  --shadow-lg: 0 8px 32px rgba(90, 126, 140, 0.2);
  
  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(90, 126, 140, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light) !important;
  transition: var(--transition-base);
}

.navbar-brand:hover {
  color: var(--color-1) !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-base);
}

.navbar-nav .nav-link:hover {
  color: var(--color-1) !important;
}

.navbar .btn-primary {
  background: linear-gradient(135deg, var(--color-1), var(--color-3));
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: var(--transition-base);
}

.navbar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(163, 214, 224, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-3) 0%, var(--color-2) 50%, var(--color-1) 100%);
  color: var(--text-light);
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 20% 50%, var(--color-1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--color-4) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, var(--color-5) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-1), var(--color-4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

.hero-cta .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-base);
}

.hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--color-1), var(--color-4));
  border: none;
  box-shadow: 0 8px 20px rgba(163, 214, 224, 0.3);
}

.hero-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(163, 214, 224, 0.4);
}

.hero-cta .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--text-light);
}

.hero-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-light);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-1);
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
}

/* Hero Image */
.hero-image {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 3s ease-in-out infinite;
  color: var(--text-dark);
  font-weight: 600;
}

.floating-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.card-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 5%;
  animation-delay: 1s;
}

.card-3 {
  bottom: 15%;
  left: 10%;
  animation-delay: 2s;
}

.hero-mockup {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-mockup i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-2);
  max-width: 700px;
  margin: 0 auto;
}

/* Problems Section */
.problems-section {
  background: var(--bg-light);
}

.problem-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
}

.problem-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.problem-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-5), var(--color-4));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.problem-icon i {
  font-size: 2rem;
  color: white;
}

.problem-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.problem-card p {
  color: var(--color-2);
  margin-bottom: 1.5rem;
}

.solution-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(163, 214, 224, 0.15);
  border-radius: 20px;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Feature Cards */
.features-section {
  background: white;
}

.feature-card {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 16px;
  transition: var(--transition-base);
  height: 100%;
  border: 2px solid transparent;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: var(--color-1);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-3), var(--color-1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 2.5rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--color-2);
  line-height: 1.8;
}

/* How It Works Section */
.how-it-works-section {
  background: linear-gradient(135deg, var(--color-3), var(--color-2));
  color: var(--text-light);
}

.how-it-works-section .section-title,
.how-it-works-section .section-subtitle {
  color: var(--text-light);
}

.step-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  height: 100%;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-base);
}

.step-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.step-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.step-number {
  position: absolute;
  top: -20px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-5), var(--color-4));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-md);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-1), var(--color-3));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step-icon i {
  font-size: 2.5rem;
  color: white;
}

.step-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.step-card p {
  color: var(--color-2);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.step-example {
  background: rgba(90, 126, 140, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.step-example code {
  color: var(--primary-color);
  font-size: 0.95rem;
}

.progress-example {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(90, 126, 140, 0.05);
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.progress-step.active {
  background: rgba(163, 214, 224, 0.2);
  color: var(--primary-color);
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.action-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Benefits Section */
.benefits-section {
  background: var(--bg-light);
}

.benefits-content {
  padding-right: 2rem;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: var(--transition-base);
}

.benefit-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.benefit-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.benefit-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.benefit-item p {
  color: var(--color-2);
  margin: 0;
}

.comparison-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-side {
  padding: 2rem;
}

.comparison-side.old {
  background: rgba(228, 181, 160, 0.1);
}

.comparison-side.new {
  background: rgba(163, 214, 224, 0.15);
}

.comparison-side h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: white;
  border-radius: 8px;
  font-weight: 600;
}

.comparison-side.old .comparison-item {
  color: var(--color-5);
}

.comparison-side.new .comparison-item {
  color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-3), var(--color-1));
}

.cta-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.2rem;
  color: var(--color-2);
  margin-bottom: 1.5rem;
}

.cta-features {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-features span {
  color: var(--primary-color);
  font-weight: 600;
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-3), var(--color-1));
  border: none;
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
  border-radius: 50px;
  color: white;
  font-weight: 700;
  transition: var(--transition-base);
  box-shadow: 0 8px 20px rgba(90, 126, 140, 0.3);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(90, 126, 140, 0.4);
  color: white;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer-brand h4 {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.footer h5 {
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-1);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-1);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
  }
  
  .hero-image {
    height: 400px;
    margin-top: 3rem;
  }
  
  .floating-card {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .comparison-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-cta .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
