:root {
  /* Brand palette (from landing.html) */
  --green: #006400;
  --green-dark: #004d00;
  --brown: #8b4513;
  --tan: #deb887;
  --bg-1: #f8f6f3;
  --bg-2: #ede7e0;
  --ink: #1a1a1a;
  --text: #333;
  --muted: #666;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --grad: linear-gradient(120deg, #006400 0%, #2e8b2e 60%, #8b4513 140%);
  --radius: 16px;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, Montserrat, Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .eyebrow, .step__num { font-family: "Montserrat", sans-serif; }

.background-pattern {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23deb887' fill-opacity='0.3'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(248, 246, 243, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.logo__mark { width: 30px; height: 30px; color: var(--green); }
.logo__ai { color: var(--green); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--green); }
.nav__login { font-weight: 600 !important; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
}
.btn--sm { padding: 10px 20px; font-size: 0.92rem; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 20px rgba(0, 100, 0, 0.25); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 100, 0, 0.4); }
.btn--text { color: var(--green); background: transparent; padding: 14px 8px; }
.btn--text:hover { color: var(--green-dark); }

/* ---------- HERO ---------- */
.hero { padding: 72px 0 80px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__copy { animation: fadeInLeft 0.8s ease-out; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brown);
  padding: 6px 14px; background: rgba(222, 184, 135, 0.25); border-radius: 999px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.hero__sub { max-width: 540px; margin-top: 22px; color: var(--muted); font-size: 1.18rem; }
.hero__cta { display: flex; gap: 14px; align-items: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------- MOCKUP ---------- */
.mockup {
  animation: fadeInRight 1s ease-out;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.mockup__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-1); }
.mockup__bar span { width: 11px; height: 11px; border-radius: 50%; background: #d8cfc4; }
.mockup__bar p { margin-left: 12px; font-size: 0.82rem; color: var(--muted); }
.mockup__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chat { display: flex; gap: 10px; align-items: flex-end; }
.chat--user { flex-direction: row-reverse; }
.chat__avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: rgba(0, 100, 0, 0.1); display: flex; align-items: center; justify-content: center;
}
.chat__pine { width: 20px; height: 20px; color: var(--green); }
.chat__bubble { padding: 11px 16px; border-radius: 16px; font-size: 0.98rem; max-width: 78%; }
.chat--bot .chat__bubble { background: var(--bg-2); color: var(--text); border-bottom-left-radius: 4px; }
.chat--user .chat__bubble { background: var(--green); color: #fff; border-bottom-right-radius: 4px; font-weight: 500; }

/* config-panel mockup */
.mockup__body--config { gap: 18px; }
.cfg-field { display: flex; flex-direction: column; gap: 7px; }
.cfg-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cfg-input { padding: 11px 14px; border: 2px solid #e7e1d9; border-radius: 9px; background: var(--bg-1); font-size: 0.96rem; color: var(--ink); }
.cfg-input--area { line-height: 1.5; }
.cfg-row { display: flex; align-items: center; gap: 12px; font-size: 0.96rem; color: var(--text); }
.cfg-toggle { width: 38px; height: 22px; flex: none; border-radius: 999px; background: var(--green); position: relative; }
.cfg-knob { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.cfg-deploy {
  margin-top: 4px; width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: var(--green); color: #fff; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background 0.2s;
}
.cfg-deploy:hover { background: var(--green-dark); }

/* ---------- SECTIONS ---------- */
.section { padding: 92px 0; }
.section--tint { background: rgba(222, 184, 135, 0.12); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--narrow { max-width: 760px; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.center .eyebrow { margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.15rem; margin-top: 20px; }

/* ---------- STEPS ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff;
  font-weight: 700; font-size: 1.2rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--ink); }
.step p { color: var(--muted); }

/* ---------- CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 12px 30px rgba(0, 100, 0, 0.12); }
.card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--muted); }

/* ---------- QUOTE ---------- */
.quote { font-family: "Montserrat", sans-serif; font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 600; line-height: 1.4; margin: 24px 0 28px; color: var(--ink); letter-spacing: -0.01em; }
.quote__by { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.quote__avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 100, 0, 0.1); display: flex; align-items: center; justify-content: center; }
.quote__avatar .chat__pine { width: 26px; height: 26px; }
.quote__meta strong { display: block; color: var(--ink); }
.quote__meta span { color: var(--muted); font-size: 0.92rem; }
.placeholder-note { margin-top: 28px; font-size: 0.85rem; color: var(--brown); opacity: 0.9; }

/* ---------- CTA ---------- */
.cta { padding: 104px 0; }
.cta__title { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px auto 0; max-width: 480px; }
.cta__form input {
  width: 100%; padding: 15px 18px; border-radius: 10px;
  background: var(--surface); border: 2px solid #e0e0e0; color: var(--text); font-size: 1rem; font-family: inherit;
}
.cta__form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.1); }
.cta__form .btn { grid-column: 1 / -1; }
@media (max-width: 520px) { .cta__form { grid-template-columns: 1fr; } }
.cta__fine { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { color: var(--muted); font-size: 0.92rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--green); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .mockup { max-width: 560px; }
}
@media (max-width: 768px) {
  .steps, .cards { grid-template-columns: 1fr; }
  .nav__links a:not(.btn):not(.nav__login) { display: none; }
  .section { padding: 60px 0; }
}
