/* CSS Variables */
:root {
  --primary-dark-green: #034737;
  --primary-green: #047857;
  --accent-green: #10b981;
  --light-green: #6ee7b7;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-green-light: #f0fdf4;
  --border-light: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 25px -5px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  --card-border: 1px solid rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: "Outfit", Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  font-weight: 400;
  font-size: 16px;
}

.section {
  padding: 5rem 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-header h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-dark-green),
    var(--accent-green)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary-dark-green);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  border-color: var(--primary-dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 450;
  font-size: 1rem;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--primary-dark-green);
}

.cta-btn {
  background: var(--primary-dark-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s ease;
  letter-spacing: -0.01em;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 8rem 2rem 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

/* Features Page Specific Hero Image Styling */
body.features-page .hero-image img {
  box-shadow: none;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(1.5);
}

body.features-page .hero-image:hover img {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.5);
}

/* Features Page Specific Grid Centering for 5 Cards */
body.features-page .features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

body.features-page .features-grid .feature-card {
  flex: 0 0 300px;
}

/* Trusted By Section */
.trusted-by {
  padding: 3rem 0;
  background: var(--bg-light);
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trusted-logos img {
  height: 40px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.trusted-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

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

.feature-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 16px;
  border: var(--card-border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(3, 71, 55, 0.15);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--primary-dark-green),
    var(--primary-green)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
}

/* How It Works */
.how-it-works {
  background: var(--bg-light);
}

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

.step {
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-dark-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
}

/* Testimonials */
.testimonials {
  background: var(--bg-white);
}

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

.testimonial {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 16px;
  border: var(--card-border);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.testimonial-author {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-role {
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 400;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.faq-question:hover {
  color: var(--primary-dark-green);
}

.faq-question span {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

/* Toggle Switch for Pricing */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-light);
  transition: all 0.4s ease;
  border-radius: 34px;
  border: 2px solid var(--border-light);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: all 0.4s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary-dark-green);
  border-color: var(--primary-dark-green);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Ensure no double states */
.toggle-switch input:checked + .toggle-slider:after {
  display: none;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-dark-green),
    var(--primary-green)
  );
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.4;
}

.cta-content .btn-primary {
  background: white;
  color: var(--primary-dark-green);
}

.cta-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

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

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

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

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
  }

  .section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
  }

  .hero-buttons {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }
}
