:root {
  --bg: #f4f4f2;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --border: #e3e2de;
  --text: #211f1c;
  --text-muted: #6f6b66;
  --accent: #C76A32;
  --accent-light: #E08A4F;
  --accent-blue: #4F8EF7;
  --accent-green: #4FB286;
  --radius: 14px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
p { color: var(--text-muted); }

.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--text); display: inline-flex; align-items: center; gap: 9px; }
.brand-accent { color: var(--accent); }
.brand-mark { flex-shrink: 0; border-radius: 7px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,244,242,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.main-nav a { color: var(--text-muted); transition: color .15s; }
.main-nav a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(199,106,50,0.09), transparent 70%),
    var(--bg);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 900px; margin: 0 auto 20px; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(199,106,50,0.18);
}
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-block { width: 100%; text-align: center; }

section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }

/* Role cards */
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(33,31,28,0.03);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.role-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(33,31,28,0.06); }
.role-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.role-avatar svg { width: 100%; height: 100%; display: block; }
.role-card h3 { font-size: 1.3rem; }
.role-card .tagline { color: var(--text-muted); font-size: .95rem; flex: 1; }

/* Use cases */
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.usecase-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: 0 1px 2px rgba(33,31,28,0.03);
}
.usecase-role { font-weight: 700; font-size: 1.02rem; margin-bottom: 12px; }
.usecase-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.usecase-card li { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.step { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff; font-weight: 700; margin-bottom: 16px; font-family: var(--font-display);
}

/* Pricing */
.pricing-card {
  max-width: 460px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center;
  box-shadow: 0 1px 2px rgba(33,31,28,0.03);
}
.price { font-family: var(--font-display); font-size: 3rem; color: var(--accent); margin: 8px 0; }
.price span { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); }
.price-note { font-size: .82rem; color: var(--text-muted); margin-top: 16px; }
.pricing-features { list-style: none; padding: 0; margin: 24px 0; text-align: left; display: inline-block; }
.pricing-features li { padding: 6px 0; color: var(--text-muted); }
.pricing-features li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, #fbeee3, #f4f4f2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
  margin: 0 24px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 20px; font-size: .9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .85rem; color: var(--text-muted); }

/* Auth forms */
.auth-wrap { max-width: 440px; margin: 80px auto; padding: 0 24px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: 0 1px 2px rgba(33,31,28,0.03); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; margin-bottom: 6px; color: var(--text-muted); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #fbfbfa; color: var(--text); font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--accent); }
.form-error { color: #c0453a; font-size: .9rem; margin-bottom: 14px; min-height: 1.2em; }
.auth-switch { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--text-muted); }
.auth-switch a { color: var(--accent); }

/* Dashboard */
.dash-header { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.dash-tabs { display: flex; gap: 10px; margin-bottom: 32px; }
.dash-tabs a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; }
.dash-tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.agent-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  box-shadow: 0 1px 2px rgba(33,31,28,0.03);
  transition: border-color .15s, transform .15s;
}
.agent-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.agent-card .avatar-wrap { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; }
.agent-card .avatar-wrap svg { width: 100%; height: 100%; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* Chat */
.chat-wrap { max-width: 760px; margin: 0 auto; padding: 32px 24px; }
.chat-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.chat-header .avatar-wrap { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; }
.chat-box {
  height: 480px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.msg { max-width: 80%; padding: 12px 16px; border-radius: 14px; font-size: .95rem; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
.msg.agent { align-self: flex-start; background: #fbfbfa; border: 1px solid var(--border); }
.chat-input-row { display: flex; gap: 10px; margin-top: 16px; }
.chat-input-row input { flex: 1; padding: 14px; border-radius: 10px; border: 1px solid var(--border); background: #fbfbfa; color: var(--text); font-size: 1rem; }
.chat-input-row input:focus { outline: none; border-color: var(--accent); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.legal h2 { margin-top: 2em; }
.legal p, .legal li { color: var(--text-muted); }

@media (max-width: 640px) {
  .main-nav { gap: 14px; font-size: .85rem; }
  .main-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 56px; }
}
