:root {
  --primary-color: #005c30; /* Darker Green from screenshots */
  --secondary-color: #4cd964; /* Mint Green from screenshots */
  --accent-color: #ffca28; /* Gold/Yellow from screenshots */
  --text-color: #333333;
  --light-text: #666666;
  --white: #ffffff;
  --background-color: #f0fdf4; /* Very light mint bg */
  --footer-bg: #004d26;
  --border-color: #e0e0e0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --card-radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--white);
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  width: auto;
  border-radius: 4px; /* Slight radius for the white box logo */
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.nav-links > a:hover, .nav-links > a.active {
  color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
  height: 100%;
}

.dropbtn {
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1001;
  border-radius: 8px;
  top: 100%;
  right: 0; /* Align to right on desktop */
  padding: 10px 0;
  border: 1px solid var(--border-color);
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 20px;
  text-decoration: underline;
  display: block;
  font-weight: normal;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--background-color);
  color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), #1b5e20);
  color: var(--white);
  padding: 60px 0;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 8px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  transform: rotate(-5deg) translateY(10px);
  transition: all 0.4s ease;
}

.hero-image img:hover {
  transform: rotate(0deg) translateY(0) scale(1.02);
  border-color: rgba(255,255,255,0.2);
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
    order: 1; /* Content first */
  }
  
  .hero-image {
    order: 2; /* Image second */
    margin-top: 30px;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image img {
    max-width: 240px;
    transform: rotate(0deg);
  }
}


.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.2s, background-color 0.2s;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-color); /* Dark text for better contrast on yellow */
}

.btn-primary:hover {
  background-color: #ffb300;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--white);
}

/* Features/Content Sections */
.section {
  padding: 60px 0;
  background-color: var(--white);
}

.section:nth-child(even) {
  background-color: var(--background-color);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* App Showcase Section */
.app-showcase {
  padding: 80px 0;
  background-color: var(--white);
  overflow: hidden;
}

.showcase-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.showcase-container {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 40px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  scroll-behavior: smooth;
  width: 100%;
}

.showcase-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.scroll-btn {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 2;
  flex-shrink: 0;
}

.scroll-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.prev-btn {
  margin-right: 10px;
}

.next-btn {
  margin-left: 10px;
}

@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }
}

.showcase-item {
  flex: 0 0 auto;
  width: 280px;
  text-align: center;
  scroll-snap-align: center;
  transition: transform 0.3s;
}

.showcase-item:hover {
  transform: translateY(-10px);
}

.phone-frame {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,92,48,0.2);
  border: 8px solid #333;
  background-color: #fff;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 9/19.5; /* Approx modern phone ratio */
  position: relative;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-badge {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #003300;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.showcase-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.showcase-item p {
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.4;
}

/* Feature Card Update */
.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 15px rgba(0,92,48,0.05);
  text-align: center;
  transition: transform 0.3s;
  border: 1px solid rgba(76, 217, 100, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--text-color);
}

/* Content Page Styles */
.content-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-top: 40px;
  margin-bottom: 40px;
}

.content-wrapper h1 {
  color: var(--primary-color);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.content-wrapper h2 {
  color: var(--text-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-wrapper p, .content-wrapper ul {
  margin-bottom: 15px;
  color: var(--light-text);
}

.content-wrapper ul {
  padding-left: 20px;
  list-style-type: disc;
}

/* Example Calculation Box */
.calc-box {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #a5d6a7;
}

.calc-row:last-child {
  border-bottom: none;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-section p {
  margin-bottom: 10px;
  color: #a5d6a7;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #a5d6a7;
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  color: #a5d6a7;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: #fafafa;
    width: 100%;
    text-align: center;
    border: none;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* Click to open on mobile via JS if needed, or simple show */
  }
  
  /* Simple mobile behavior: show dropdown links always or indented */
  .dropdown.active .dropdown-content {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
