:root {
  --bg: #08111f;
  --bg-soft: #0f1c31;
  --surface: #ffffff;
  --surface-soft: #f0f8f4;
  --text: #142033;
  --muted: #5d6b82;
  --line: #dbe5f3;
  --primary: #1a6b3c;
  --primary-2: #2d9e5e;
  --accent: #5fcf8a;
  --accent-2: #bbf0cf;
  --white: #ffffff;
  --danger: #b91c1c;
  --success: #166534;
  --success-bg: #ecfdf3;
  --danger-bg: #fef2f2;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(10, 20, 14, 0.14);
  --hero-shadow: 0 26px 70px rgba(26, 107, 60, 0.30);
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, #edf8f2 0%, #f1fbf5 100%);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(4, 14, 9, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a6b3c, #5fcf8a);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(26, 107, 60, 0.30);
  flex: 0 0 auto;
  overflow: hidden;
}
.brand-mark span {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}
/* brand--image class kept for backwards compat but not used */
.brand-copy { min-width: 0; }
.brand-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}
.brand-title em { color: #93dfb0; font-style: normal; }
.brand-tag {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: rgba(255,255,255,0.84);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}
.nav-links a:hover { color: #fff; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn,
.menu-toggle {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1a6b3c, #5fcf8a);
  box-shadow: 0 16px 38px rgba(26, 107, 60, 0.30);
  padding: 15px 24px;
}
.btn-secondary {
  color: var(--primary);
  background: rgba(255,255,255,0.92);
  padding: 15px 22px;
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.menu-toggle svg { width: 22px; height: 22px; }

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(147,197,253,0.24), transparent 28%),
              radial-gradient(circle at left center, rgba(95,207,138,0.18), transparent 26%),
              linear-gradient(135deg, #041510 0%, #0a2e1a 50%, #1a6b3c 100%);
  color: var(--white);
  padding: 86px 0 58px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 18px 0 18px;
}
.hero h1 span { color: #93dfb0; }
.hero p {
  max-width: 650px;
  color: rgba(255,255,255,0.83);
  font-size: 1.08rem;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.92rem;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--hero-shadow);
}
.hero-card h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}
.hero-card p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.mini-card {
  background: rgba(4,12,8,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
}
.mini-card strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 6px;
}
.mini-card span { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

.stats {
  margin-top: -24px;
  position: relative;
  z-index: 2;
}
.stats-grid {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}
.stat {
  text-align: center;
  padding: 14px;
}
.stat strong {
  display: block;
  color: var(--primary);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
  margin-bottom: 8px;
}
.stat span { color: var(--muted); font-weight: 700; font-size: .95rem; }

section { padding: 84px 0; }
.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 42px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.12;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}
.cards-3, .cards-4, .steps, .testimonials, .faq-grid {
  display: grid;
  gap: 22px;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(26,107,60,0.12), rgba(147,197,253,0.20));
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  flex-shrink: 0;
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.card li + li { margin-top: 8px; }

.dark-band {
  background: linear-gradient(135deg, #041510 0%, #163b82 100%);
  color: #fff;
}
.dark-band .section-head p { color: rgba(255,255,255,0.78); }
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.check-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.check-item span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(95,207,138,0.18);
  color: #67e8f9;
  flex: 0 0 auto;
  font-weight: 900;
}
.check-item strong { display: block; margin-bottom: 3px; }
.check-item p { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.94rem; }

.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a6b3c, #5fcf8a);
  color: #fff;
  font-weight: 900;
  margin-bottom: 16px;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}
.form-panel, .info-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.form-panel { padding: 30px; }
.info-panel {
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f8f3 100%);
}
.info-panel h3, .form-panel h2 { margin-top: 0; }
.info-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.info-list .item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}
.info-list .item strong { color: var(--text); display: block; margin-bottom: 4px; }
.info-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30,125,69,0.12);
  color: var(--primary);
  flex: 0 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field,
.field-full { display: block; }
.field-full { grid-column: 1 / -1; }
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}
input, select, textarea {
  width: 100%;
  border: 1.8px solid var(--line);
  border-radius: 14px;
  background: #f2fbf6;
  padding: 14px 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,125,69,0.10);
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.form-note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 14px;
}
.alert {
  display: none;
  margin-top: 18px;
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 700;
}
.alert.success {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
}
.alert.error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #fecaca;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.badge-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 13px;
  background: #eefaf3;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.quote {
  position: relative;
  padding-top: 18px;
}
.quote::before {
  content: '“';
  position: absolute;
  top: -14px;
  left: 0;
  font-size: 4rem;
  color: rgba(30,125,69,0.12);
  font-weight: 900;
  line-height: 1;
}
.quote p { margin: 0 0 16px; }
.quote strong { color: var(--primary); }

.site-footer {
  background: #041510;
  color: rgba(255,255,255,0.75);
  padding: 34px 0 46px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #8fe5df;
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover { color: #fff; }

@media (max-width: 1024px) {
  .hero-grid,
  .form-shell,
  .cards-4,
  .check-grid,
  .cards-3,
  .steps,
  .testimonials,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-nav {
    min-height: 74px;
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    width: 100%;
    order: 10;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 0 4px;
  }
  .site-header.menu-open .nav-links { display: flex; }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
  }
  .nav-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 720px) {
  section { padding: 68px 0; }
  .hero { padding: 72px 0 48px; }
  .hero-actions,
  .badge-row,
  .footer-grid,
  .footer-links {
    justify-content: center;
  }
  .stats-grid,
  .form-grid,
  .hero-grid,
  .form-shell,
  .cards-4,
  .cards-3,
  .steps,
  .testimonials,
  .faq-grid,
  .check-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }
  .form-panel,
  .info-panel { padding: 22px; }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 20px), var(--max));
  }
  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  /* brand--image not used */
  .brand-title { font-size: 1.15rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .btn-primary,
  .btn-secondary { width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   AI CHAT POPUP STYLES
============================================================ */
#ai-chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a6b3c, #5fcf8a);
  box-shadow: 0 8px 32px rgba(26, 107, 60, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  color: #fff;
}
#ai-chat-bubble:hover,
#ai-chat-bubble:focus {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 14px 40px rgba(26, 107, 60, 0.55);
  outline: 3px solid rgba(95,207,138,0.5);
}
#ai-chat-bubble svg {
  width: 26px;
  height: 26px;
}
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: pulse-badge 2s ease infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
#ai-chat-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9998;
  width: 370px;
  max-width: calc(100vw - 40px);
  height: 530px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(10, 20, 14, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  animation: chat-slide-up .28s cubic-bezier(.34,1.56,.64,1);
}
#ai-chat-window[hidden] {
  display: none !important;
}
@keyframes chat-slide-up {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-header {
  background: linear-gradient(135deg, #1a6b3c, #2d9e5e);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chat-avatar svg { width: 20px; height: 20px; }
.chat-header strong {
  display: block;
  font-size: 0.97rem;
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  opacity: .85;
  margin-top: 2px;
}
.chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: blink-dot 2s ease infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
#ai-chat-close {
  background: rgba(255,255,255,0.16);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s;
  padding: 0;
}
#ai-chat-close:hover { background: rgba(255,255,255,0.28); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #1a6b3c, #2d9e5e);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
  padding: 0 4px;
}
.chat-msg.user .chat-time { text-align: right; }
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 15px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  opacity: .5;
  animation: typing-bounce .9s ease infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .5; }
  40% { transform: translateY(-5px); opacity: 1; }
}
.chat-input-row {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  background: #fff;
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  border: 1.8px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.93rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: auto;
  background: var(--surface-soft);
}
#chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,60,.12);
  background: #fff;
}
#chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a6b3c, #5fcf8a);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(26,107,60,.3);
}
#chat-send:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(26,107,60,.4); }
#chat-send svg { width: 18px; height: 18px; }
.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chat-quick-btn {
  background: #eefaf3;
  color: var(--primary);
  border: 1.5px solid rgba(26,107,60,0.18);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: var(--font);
}
.chat-quick-btn:hover { background: #dcf5e8; transform: translateY(-1px); }
@media (max-width: 480px) {
  #ai-chat-window {
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
  }
  #ai-chat-bubble {
    right: 16px;
    bottom: 20px;
  }
}

/* ── Language Switcher ─────────────────────────────────────── */
.nd-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  transition: background .2s, color .2s;
  letter-spacing: .03em;
}
.nd-lang-switch:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
