/* ===== VARIABLES ===== */
:root {
  --bg: #f5f0e8;
  --bg-alt: #ede8de;
  --fg: #1a1a1a;
  --fg-muted: #6b6b6b;
  --accent: #e8622a;
  --accent-dark: #c4521e;
  --green: #1a3c2a;
  --green-light: #2d5c42;
  --green-bg: #e8f0ec;
  --panel-bg: #ffffff;
  --border: #d4cfc6;
  --radius: 6px;
  --radius-lg: 12px;
}

/* ===== RESET + BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--green);
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-cta {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ===== HERO ===== */
.hero {
  padding: 80px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 60px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--green);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: var(--green);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--green); background: var(--green-bg); }

/* Demo panel */
.demo-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(26, 60, 42, 0.08);
}
.demo-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.demo-dot.online { background: #22c55e; }
.demo-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
}
.demo-header-bar {
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-header-bar span { margin-left: auto; font-size: 12px; opacity: 0.7; }

/* Chat container */
.chat-container {
  background: #fff;
  height: 360px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-container::-webkit-scrollbar { width: 4px; }
.chat-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Chat bubbles */
.msg { display: flex; gap: 10px; max-width: 85%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.bot { align-self: flex-start; }
.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg.user .msg-avatar { background: var(--accent); }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.msg.bot .msg-bubble {
  background: var(--bg-alt);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}
.msg.user .msg-bubble {
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Chat input */
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}
.chat-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-row input:focus { border-color: var(--green); }
.chat-send {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--accent-dark); }
.chat-send:disabled { opacity: 0.6; cursor: not-allowed; }

/* Typing indicator */
.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.typing span {
  width: 6px;
  height: 6px;
  background: var(--fg-muted);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ===== FEATURES ===== */
.features { padding: 60px 24px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
}
.section-headline {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--green);
  text-align: center;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--green);
  padding: 80px 24px;
  color: #fff;
}
.hiw-inner { max-width: 1100px; margin: 0 auto; }
.hiw-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #a7dcc4; margin-bottom: 12px; }
.hiw-headline {
  font-size: clamp(26px, 3vw, 36px);
  color: #fff;
  margin-bottom: 48px;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(232, 98, 42, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}
.step-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ===== CTA BAND ===== */
.cta-band {
  padding: 80px 24px;
  text-align: center;
  background: var(--bg-alt);
}
.cta-headline {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--green);
  margin-bottom: 16px;
}
.cta-sub { font-size: 17px; color: var(--fg-muted); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
.footer {
  background: var(--green);
  color: rgba(255,255,255,0.6);
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
}
.footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .nav-tagline { display: none; }
  .nav-cta { margin-left: auto; }
}