/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sage: #5B8C6A;
  --sage-dark: #4A7356;
  --sage-light: #8FBCA3;
  --sage-50: #F2F7F4;
  --sage-100: #E5EFE8;
  --cream: #FFF8E6;
  --cream-100: #FFFDF7;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
nav#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.3s, box-shadow 0.3s;
}

nav#navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--sage);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo-text {
  letter-spacing: 1px;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--sage);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  border-radius: 1px;
  transition: width 0.2s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

#lang-toggle {
  background: none;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s, color 0.2s;
}

#lang-toggle:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.nav-cta:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 24px 20px;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: var(--sage-50);
  color: var(--sage);
}

.mobile-cta {
  text-align: center;
  margin-top: 8px;
}

/* ===== Hero ===== */
#hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(170deg, var(--sage) 0%, var(--sage-dark) 60%, #3A5A44 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,248,230,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.88;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-primary {
  background: var(--cream);
  color: var(--gray-900);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ===== Section titles ===== */
.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Features ===== */
#features {
  padding: 100px 0;
  background: var(--white);
}

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

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(91, 140, 106, 0.1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sage-50);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Services ===== */
#services {
  padding: 100px 0;
  background: var(--cream-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 140, 106, 0.08);
}

.service-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sage-50);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

/* ===== App Showcase ===== */
#app-showcase {
  padding: 100px 0;
  background: var(--white);
}

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

.showcase-card {
  background: var(--sage-50);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
}

.showcase-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--sage);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.showcase-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.showcase-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== Company ===== */
#company {
  padding: 100px 0;
  background: var(--cream-100);
}

.company-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.company-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.company-row:last-child {
  border-bottom: none;
}

.company-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
}

.company-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.company-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--sage);
  transition: opacity 0.2s;
}

.company-link:hover {
  opacity: 0.8;
}

/* ===== Contact ===== */
#contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  transition: transform 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sage-50);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.contact-card a,
.contact-card span {
  font-size: 14px;
  color: var(--sage);
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-links-group h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links-group a {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: var(--sage-light);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links,
  .nav-right {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  #hero {
    padding: 130px 20px 80px;
  }

  #hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  #features,
  #services,
  #app-showcase,
  #company,
  #contact {
    padding: 64px 0;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .company-card {
    padding: 24px;
  }

  .company-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
