/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg: #FAF6F0;
  --bg-alt: #F0EBE1;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --accent: #D4A853;
  --accent-dark: #B8892E;
  --green: #1B4332;
  --green-light: #2D6A4F;
  --green-soft: #40916C;
  --border: #E2D9CC;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ──────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ─── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green);
  background: transparent;
  border: 1.5px solid var(--green);
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--green);
  color: var(--bg);
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(27,67,50,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(212,168,83,0.12) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
  z-index: 0;
}

/* Decorative geometric accent */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  border: 1px solid rgba(212,168,83,0.15);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.75rem, 6vw, 5rem);
  color: var(--green);
  margin-bottom: 1.75rem;
  font-weight: 700;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  font-weight: 300;
}

.hero-cta {
  margin-top: 2.25rem;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.hero-cta-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ─── Problem ────────────────────────────────────────── */
.problem {
  background: var(--green);
  color: var(--bg);
  padding: 6rem 2rem;
}

.problem-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.problem-label, .solution-label, .values-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.problem-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.problem-text {
  font-size: 1.125rem;
  line-height: 1.8;
  opacity: 0.85;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.stat {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.5;
}

/* ─── Solution ──────────────────────────────────────── */
.solution {
  padding: 7rem 2rem;
  background: var(--bg);
}

.solution-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.solution-headline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--fg);
  max-width: 640px;
  margin-bottom: 4rem;
  font-weight: 400;
  font-family: 'Playfair Display', Georgia, serif;
}

.solution-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  margin-bottom: 3.5rem;
}

.pillar {
  padding: 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.pillar:hover {
  border-color: var(--accent);
}

.pillar-icon {
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1.0625rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--green);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.solution-languages {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.lang-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.lang-list {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.lang-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--green);
  color: var(--bg);
  padding: 0.375rem 0.875rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* ─── Values ─────────────────────────────────────────── */
.values {
  background: var(--bg-alt);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

.values-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 5rem;
}

.value-item {
  position: relative;
  padding-left: 0;
}

.value-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.value-title {
  font-size: 1.125rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

.value-text {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ─── Closing ────────────────────────────────────────── */
.closing {
  background: var(--green);
  padding: 8rem 2rem;
  text-align: center;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
}

.closing-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--bg);
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 3.5rem;
}

.vision-statement {
  font-size: 1rem;
  color: rgba(250,246,240,0.7);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  display: block;
  margin-bottom: 0.375rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-align: right;
}

/* ─── Demo Section ───────────────────────────────────── */
.demo-section {
  background: var(--bg-alt);
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-inner {
  max-width: 780px;
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.demo-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 0.75rem;
}

.demo-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.demo-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* Widget card */
.demo-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(27,67,50,0.07);
}

/* Language bar */
.demo-lang-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.demo-lang-btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-right: 1px solid var(--border);
}

.demo-lang-btn:last-child { border-right: none; }

.demo-lang-btn.active {
  color: var(--green);
  background: #fff;
  font-weight: 600;
}

.demo-lang-btn:hover:not(.active) {
  color: var(--fg);
  background: var(--bg-alt);
}

/* Messages */
.demo-messages {
  min-height: 200px;
  max-height: 340px;
  overflow-y: auto;
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.demo-welcome-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.demo-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeUp 0.2s ease;
}

.demo-msg-user {
  flex-direction: row-reverse;
}

.demo-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #a07820 100%);
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-bubble {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  line-height: 1.65;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 560px;
}

.demo-bubble-ai {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 3px;
  color: var(--fg);
}

.demo-bubble-user {
  background: var(--green);
  color: #fff;
  border-radius: 12px 12px 3px 12px;
  margin-left: auto;
}

.demo-bubble p { margin: 0 0 6px; }
.demo-bubble p:last-child { margin-bottom: 0; }
.demo-bubble ul, .demo-bubble ol { margin: 4px 0 6px 0; padding-left: 1.3em; }
.demo-bubble li { margin-bottom: 3px; }
.demo-bubble strong { font-weight: 600; }
.demo-bubble code { background: rgba(0,0,0,0.07); border-radius: 3px; padding: 1px 4px; font-size: 0.82em; }

/* Typing dots */
.demo-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  min-width: 56px;
}

.demo-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-muted);
  animation: bounce 1.2s ease infinite;
  display: inline-block;
}

.demo-typing span:nth-child(1) { animation-delay: 0s; }
.demo-typing span:nth-child(2) { animation-delay: 0.18s; }
.demo-typing span:nth-child(3) { animation-delay: 0.36s; }

/* Quick prompts */
.demo-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 16px;
}

.demo-prompt-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.demo-prompt-btn:hover {
  background: var(--green);
  color: #fff;
}

/* Input row */
.demo-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.demo-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.4;
}

.demo-input::placeholder {
  color: var(--fg-muted);
}

.demo-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.demo-send-btn:hover { background: var(--green-light); }
.demo-send-btn:disabled { background: rgba(27,67,50,0.3); cursor: not-allowed; }

.demo-disclaimer {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--fg-muted);
  padding: 8px 16px 14px;
  background: var(--bg);
}

.demo-disclaimer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.demo-disclaimer a:hover { text-decoration: underline; }

/* "Continue in full advisor" nudge */
.demo-nudge {
  text-align: center;
  padding: 4px 0 2px;
}

.demo-nudge-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.demo-nudge-link:hover { color: var(--accent-dark); }

/* Scrollbar for demo messages */
.demo-messages::-webkit-scrollbar { width: 3px; }
.demo-messages::-webkit-scrollbar-track { background: transparent; }
.demo-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .problem-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .solution-pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-note {
    text-align: center;
  }

  .closing {
    padding: 5rem 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 1.5rem 4rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}