:root {
  --primary: #1a5f3c;
  --primary-light: #2d8a5e;
  --bg: #f5f7f6;
  --text: #1a1a1a;
  --border: #dde3df;
  --bot-bg: #eef5f1;
  --user-bg: #1a5f3c;
  --user-text: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.subtitle { opacity: 0.9; margin-top: 0.5rem; max-width: 600px; margin-inline: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.card h3 { color: var(--primary); margin-bottom: 0.5rem; }

.chat-section { display: flex; justify-content: center; }

.chat-widget {
  width: 100%;
  max-width: 480px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.chat-header {
  background: var(--primary);
  color: white;
  padding: 0.875rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
}

.chat-messages {
  height: 360px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  max-width: 85%;
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  font-size: 0.9375rem;
}

.message.bot {
  background: var(--bot-bg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message.user {
  background: var(--user-bg);
  color: var(--user-text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message.loading { opacity: 0.6; font-style: italic; }

.chat-input {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 0.75rem;
  gap: 0.5rem;
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
}

.chat-input button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
}

.chat-input button:hover { background: var(--primary-light); }

footer {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.875rem;
}

footer a { color: var(--primary); }

.hidden { display: none !important; }
