:root {
  --bg: #faf9f6;
  --bg-alt: #f2efe9;
  --surface: #ffffff;
  --text: #1c1b18;
  --muted: #5c5852;
  --border: #e2ddd4;
  --accent: #2d5a4c;
  --accent-hover: #214439;
  --accent-soft: #e7f0ec;
  --radius: 14px;
  --max-w: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.lead {
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--muted);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-metrics dt {
  font-weight: 700;
  font-size: 1rem;
}

.hero-metrics dd {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.phone-frame {
  max-width: 340px;
  margin: 0 auto;
  background: #18181b;
  border-radius: 38px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(28, 27, 24, 0.14);
}

.phone-notch {
  width: 110px;
  height: 20px;
  margin: 0 auto 10px;
  background: #09090b;
  border-radius: 12px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 26px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.persona-pill {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-dot {
  color: var(--accent);
  font-weight: 600;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.48;
}

.msg-user {
  align-self: flex-end;
  max-width: 86%;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-ai {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.app-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px 8px 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 700px;
  margin-bottom: 40px;
}

.section-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.cards-3,
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card,
.arch-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.arch-block ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.arch-block li + li {
  margin-top: 8px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-box p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 580px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.prose {
  max-width: 760px;
  padding: 56px 0 72px;
}

.prose h1 {
  font-size: 2.2rem;
}

.prose h2 {
  margin-top: 32px;
  font-size: 1.3rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 860px) {
  .hero-grid,
  .cards-3,
  .arch-grid,
  .cta-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-row {
    gap: 12px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
