:root {
  --color-brand-light: #9ac43a;
  --color-brand: #336733;
  --color-brand-dark: #124819;
  --color-accent: #f49819;
  --color-sand: #f9f19a;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #e2e8f0;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-brand-dark); text-decoration: underline; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .container { max-width: 1280px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-left { display: flex; align-items: center; gap: 0.65rem; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-logo-twoline { height: 38px; width: auto; display: block; }
.badge-pilot {
  display: inline-flex;
  align-items: center;
  background: #eaf3db;
  color: var(--color-brand-dark);
  border: 1px solid #d0e4ba;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}
.header-nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-link { font-size: 0.925rem; font-weight: 500; color: var(--color-text-muted); transition: color 0.15s ease; }
.nav-link:hover { color: var(--color-brand); text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 1.25rem; }
.lang-switch { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); user-select: none; }
.lang-active { color: var(--color-brand-dark); }
.lang-sep { color: var(--color-border); }
.lang-option { color: #94a3b8; cursor: default; }
.nav-link-login { color: var(--color-text-muted); font-weight: 600; font-size: 0.925rem; }
.nav-link-login:hover { color: var(--color-brand-dark); text-decoration: underline; }
.btn-cta { padding: 0.55rem 1.15rem; font-size: 0.9rem; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.25rem; font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius-md); border: 1px solid transparent; text-decoration: none !important;
}
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-dark); color: #fff; }
.btn-secondary { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); }
.btn-secondary:hover { background: #f1f5f9; }

/* Main & Hero */
main { flex: 1; }
.hero { padding: 4.5rem 0 3rem; text-align: center; }
.badge {
  display: inline-block; background: #eaf3db; color: var(--color-brand-dark);
  font-size: 0.825rem; font-weight: 600; padding: 0.3rem 0.85rem; border-radius: 9999px;
  margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.15; color: var(--color-brand-dark); margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.2rem; color: var(--color-text-muted); max-width: 680px; margin: 0 auto 2rem; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Features */
.section-features { padding: 2rem 0 3.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.card-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--color-brand-dark); }
.card-desc { font-size: 0.95rem; color: var(--color-text-muted); }

/* How it works */
.section-how { padding: 3.5rem 0; border-top: 1px solid var(--color-border); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--color-brand-dark); margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.05rem; color: var(--color-text-muted); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.how-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #eaf3db;
  color: var(--color-brand-dark);
  border: 1px solid #d0e4ba;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.step-title { font-size: 1.2rem; font-weight: 700; color: var(--color-brand-dark); margin-bottom: 0.5rem; }
.step-desc { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.55; }

/* About */
.section-about {
  padding: 3.5rem 0;
  background: #f1f7e9;
  border-top: 1px solid #dbead0;
  border-bottom: 1px solid #dbead0;
}
.about-card { max-width: 820px; margin: 0 auto; text-align: center; }
.about-title { font-size: 1.85rem; font-weight: 800; color: var(--color-brand-dark); margin-bottom: 1rem; line-height: 1.25; }
.about-desc { font-size: 1.1rem; color: #334155; line-height: 1.65; }

/* Contact */
.section-contact { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 4rem 0; }
.contact-content { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.contact-text { max-width: 650px; }
.contact-badge { margin-bottom: 0.75rem; }
.contact-text h2 { font-size: 1.5rem; font-weight: 800; color: var(--color-brand-dark); margin-bottom: 0.75rem; line-height: 1.3; }
.contact-text p { color: var(--color-text-muted); font-size: 1rem; }
.contact-action { flex-shrink: 0; }
.btn-contact { padding: 0.85rem 1.75rem; font-size: 1.05rem; }

/* Legal Pages */
.page-legal { padding: 3rem 0 5rem; }
.legal-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-sm); max-width: 820px; margin: 0 auto; }
.legal-card h1 { font-size: 2rem; color: var(--color-brand-dark); margin-bottom: 0.5rem; }
.legal-meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.legal-content h2 { font-size: 1.25rem; color: var(--color-brand-dark); margin: 1.75rem 0 0.5rem; }
.legal-content p, .legal-content ul { margin-bottom: 1rem; font-size: 0.975rem; color: #334155; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.35rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; font-weight: 500; margin-bottom: 1.5rem; }

/* Footer */
.footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 2.5rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 360px; }
.footer-col h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-brand-dark); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-bottom { padding-top: 1.25rem; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; color: var(--color-text-muted); font-size: 0.85rem; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-right { gap: 0.75rem; }
  .btn-cta { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
  .hero-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-card { padding: 1.5rem; }
  .contact-content { flex-direction: column; align-items: flex-start; }
}
