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

:root {
  --green: #4A7A3F;
  --green-dark: #2d5a27;
  --green-light: #e8f0e5;
  --bg: #f8faf6;
  --white: #ffffff;
  --text: #2c3e2b;
  --text-muted: #5a6e59;
  --border: #dde6da;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(45, 90, 39, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 90, 39, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(45, 90, 39, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--green-dark);
}

.logo-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  border-radius: 6px;
  margin-right: 8px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}

.lang-option {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  cursor: pointer;
}

.lang-option.active {
  color: var(--green);
  font-weight: 700;
}

.lang-option:hover {
  color: var(--green);
}

.lang-divider {
  color: var(--border);
  font-size: 0.8rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */
.hero {
  padding: 80px 0 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

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

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

/* Hero visuals */
.hero-visuals {
  flex: 1;
  min-width: 0;
}

.browser-frame {
  width: 100%;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.browser-frame-hero {
  max-width: 560px;
}

.browser-dots {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-screen {
  background: var(--bg);
}

.browser-screenshot {
  width: 100%;
  display: block;
}

.phone-frame {
  background: #1a1a1a;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  width: 200px;
  height: 410px;
  border-radius: 30px;
}

.phone-notch {
  display: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
}

/* === Features === */
.features {
  padding: 96px 0;
}

.features h2,
.how-it-works h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* Features split layout */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.features-column {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.features-column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.features-column-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.features-column-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon-sm {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Platform === */
.platform {
  padding: 96px 0;
  background: var(--bg);
}

.platform-block {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 80px;
}

.platform-block:last-child {
  margin-bottom: 0;
}

.platform-block-reverse {
  flex-direction: row-reverse;
}

.platform-visual {
  flex: 1;
  min-width: 0;
}

.platform-visual-phone {
  display: flex;
  justify-content: center;
}

.phone-frame-large {
  width: 240px;
  height: 490px;
  border-radius: 34px;
}

.phone-frame-large .phone-screen {
  border-radius: 30px;
}

.phone-frame-large .phone-screenshot {
  border-radius: 30px;
}

.platform-text {
  flex: 1;
}

.platform-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.platform-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.platform-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-list li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.platform-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--green-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234A7A3F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* === How it works === */
.how-it-works {
  padding: 96px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.step-divider {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* === Footer === */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 4px;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding: 20px 0;
  font-size: 0.85rem;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .platform-block {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-sub {
    margin: 0 auto 28px;
  }

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

  .hero-text h1 {
    font-size: 2rem;
  }

  .browser-frame-hero {
    max-width: 100%;
  }

  .platform-block,
  .platform-block-reverse {
    flex-direction: column;
    gap: 32px;
  }

  .platform-visual-phone {
    justify-content: center;
  }

  .platform {
    padding: 64px 0;
  }

  .platform-block {
    margin-bottom: 56px;
  }

  .features-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features, .how-it-works {
    padding: 64px 0;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-divider {
    width: 2px;
    height: 32px;
    margin: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.7rem;
  }

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

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .phone-frame-large {
    width: 200px;
    height: 410px;
    border-radius: 28px;
  }

  .phone-frame-large .phone-screen,
  .phone-frame-large .phone-screenshot {
    border-radius: 24px;
  }

  .features-column {
    padding: 24px 20px;
  }
}
