:root {
  --bg: #f6f0e6;
  --surface: rgba(255, 249, 241, 0.84);
  --text: #182217;
  --muted: #576455;
  --primary: #163f31;
  --primary-soft: #2c5b48;
  --accent: #c06b43;
  --line: rgba(24, 34, 23, 0.1);
  --shadow: 0 18px 50px rgba(24, 34, 23, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: min(1120px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(226, 168, 111, 0.25), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(192, 107, 67, 0.16), transparent 20%),
    linear-gradient(180deg, #f9f4ea 0%, #eee5d7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 244, 234, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 34, 23, 0.06);
}

.header-row,
.site-shell,
.footer-panel {
  width: var(--container);
  margin: 0 auto;
}

.header-row {
  min-height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #2e7158 100%);
  color: #f8f0e1;
  font-family: "Fraunces", serif;
}

.brand-copy small {
  display: block;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(22, 63, 49, 0.12);
  background: rgba(255, 249, 241, 0.84);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary);
  background: rgba(22, 63, 49, 0.08);
  transform: translateY(-1px);
}

.site-shell {
  padding: 0 0 4rem;
}

.page-hero {
  padding: 4.4rem 0 3rem;
}

.hero-grid,
.grid,
.feature-grid,
.contact-layout,
.field-grid,
.stack,
form {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-layout {
  grid-template-columns: 0.95fr 1.05fr;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy,
.hero-panel,
.card,
.panel,
.quote-panel,
.form-panel,
.chat-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero-copy {
  padding: 2.4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary-soft);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0;
  line-height: 1.72;
  color: var(--muted);
}

.lead {
  margin-top: 1.2rem;
  max-width: 64ch;
  font-size: 1.06rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: #f9f1e2;
  box-shadow: 0 14px 28px rgba(22, 63, 49, 0.16);
}

.button-secondary {
  background: rgba(255, 249, 241, 0.8);
  color: var(--primary);
  border-color: rgba(22, 63, 49, 0.14);
}

.section {
  padding: 1.5rem 0 4rem;
}

.section-header {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}

.list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.65rem;
}

.quote-panel {
  background: linear-gradient(180deg, rgba(22, 63, 49, 0.95), rgba(14, 36, 28, 0.98));
}

.quote-panel blockquote,
.quote-panel p {
  color: #f9f1e2;
}

.quote-panel blockquote {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.22;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(22, 63, 49, 0.15);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(192, 107, 67, 0.18);
  border-color: rgba(192, 107, 67, 0.45);
}

.status {
  min-height: 1.5rem;
  color: var(--primary-soft);
}

.chat-log {
  display: grid;
  gap: 0.8rem;
  max-height: 24rem;
  overflow-y: auto;
}

.chat-message {
  max-width: 90%;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  line-height: 1.65;
}

.chat-message.assistant {
  justify-self: start;
  background: rgba(22, 63, 49, 0.08);
}

.chat-message.user {
  justify-self: end;
  background: var(--primary);
  color: #f9f1e2;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-panel {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(22, 63, 49, 0.96);
  color: #f9f1e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-panel p {
  color: rgba(249, 241, 226, 0.78);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.nav-cta {
  padding-inline: 1.1rem;
}

.home-page {
  padding-bottom: 4rem;
}

.hero-homepage {
  padding: 4.6rem 0 3.4rem;
}

.hero-grid-home {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hero-content,
.hero-stats,
.failure-card,
.solution-item,
.footer-home {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-content,
.hero-stats,
.footer-home {
  border-radius: var(--radius-lg);
}

.hero-content {
  padding: 2.6rem;
}

.hero-content h1 {
  max-width: 10ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(22, 63, 49, 0.08);
  color: var(--primary);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 1.2rem;
  max-width: 58ch;
  font-size: 1.08rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn-primary {
  background: var(--primary);
  color: #f9f1e2;
  box-shadow: 0 14px 28px rgba(22, 63, 49, 0.16);
}

.btn-secondary {
  background: rgba(255, 249, 241, 0.8);
  color: var(--primary);
  border: 1px solid rgba(22, 63, 49, 0.14);
}

.btn-primary:hover,
.btn-secondary:hover,
.footer-button:hover {
  transform: translateY(-2px);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  color: var(--primary-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
}

.stat-box {
  display: grid;
  gap: 0.4rem;
  align-content: center;
  min-height: 10rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(22, 63, 49, 0.06));
  border: 1px solid rgba(22, 63, 49, 0.08);
}

.stat-number {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.failures,
.solution {
  padding: 1.25rem 0 4rem;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.section-heading.centered {
  text-align: center;
}

.section-sub {
  font-size: 1.02rem;
}

.failure-grid,
.solution-grid,
.footer-grid-home {
  display: grid;
  gap: 1.2rem;
}

.failure-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.failure-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.failure-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: rgba(192, 107, 67, 0.14);
  font-size: 1.4rem;
}

.failure-card p,
.solution-item p,
.footer-home p {
  margin-top: 0.75rem;
}

.failure-result {
  margin-top: 1rem;
}

.result-bad {
  display: inline-flex;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(192, 107, 67, 0.12);
  color: #8f4425;
  font-size: 0.92rem;
  font-weight: 600;
}

.solution-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solution-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.check {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 63, 49, 0.08);
}

.solution-item h4,
.footer-home h4 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.footer-home {
  padding: 1.6rem;
}

.footer-grid-home {
  grid-template-columns: 1.2fr 0.9fr 1fr;
  align-items: start;
}

.footer-links {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-button {
  margin-top: 1rem;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 63, 49, 0.1);
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .feature-grid,
  .contact-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid-home,
  .failure-grid,
  .solution-grid,
  .footer-grid-home,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-row {
    position: relative;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border-radius: 24px;
    background: rgba(255, 249, 241, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid rgba(22, 63, 49, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero-copy,
  .hero-panel,
  .card,
  .panel,
  .quote-panel,
  .form-panel,
  .chat-panel,
  .footer-panel {
    padding: 1.2rem;
  }

  .hero-content,
  .failure-card,
  .footer-home {
    padding: 1.2rem;
  }
}

.home-page,
.home-page * {
  box-sizing: border-box;
}

.home-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1a1a2e;
  background: #fafafa;
  line-height: 1.6;
}

.home-page * {
  margin: 0;
  padding: 0;
}

.home-page .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4 {
  font-family: inherit;
  letter-spacing: normal;
  color: #1a1a2e;
}

.home-page p {
  color: #555;
  line-height: 1.6;
}

/* Navigation */
.home-page .navbar {
  background: white;
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.home-page .navbar .container,
.home-page .navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.home-page .logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.home-page .logo-text {
  font-size: 28px;
  font-weight: 800;
  color: #006b4d;
}

.home-page .logo-sub {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  letter-spacing: 2px;
}

.home-page .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dce2;
  background: white;
  color: #006b4d;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 600;
}

.home-page .nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.home-page .nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: color 0.2s;
}

.home-page .nav-links a:hover {
  color: #006b4d;
}

.home-page .nav-links a.active,
.home-page .nav-links a.is-active {
  color: #006b4d;
  font-weight: 600;
}

.home-page .btn-primary {
  background: #006b4d;
  color: white !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.home-page .btn-primary:hover {
  background: #00563d;
}

.home-page .btn-secondary {
  background: transparent;
  color: #006b4d !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #006b4d;
  transition: all 0.2s;
  display: inline-block;
}

.home-page .btn-secondary:hover {
  background: #006b4d;
  color: white !important;
}

/* Hero Section */
.home-page .hero {
  padding: 80px 0 60px;
  background: white;
}

.home-page .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.home-page .hero-content .badge {
  background: #e8f5e9;
  color: #006b4d;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.home-page .hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.home-page .hero-sub {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 520px;
}

.home-page .hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.home-page .trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #333;
}

.home-page .trust-badges span {
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 4px;
}

.home-page .hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.home-page .stat-box {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #eee;
}

.home-page .stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #006b4d;
}

.home-page .stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

/* Failures Section */
.home-page .failures {
  padding: 80px 0;
  background: #f8f9fa;
}

.home-page .failures h2,
.home-page .solution h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.home-page .section-sub {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 40px;
}

.home-page .failure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.home-page .failure-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-top: 4px solid #d32f2f;
}

.home-page .failure-icon {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 12px;
  background: transparent;
  color: inherit;
  font-size: 32px;
}

.home-page .failure-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.home-page .failure-card p {
  color: #555;
  font-size: 15px;
  margin-bottom: 16px;
}

.home-page .failure-result {
  background: #fef2f2;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
}

.home-page .result-bad {
  color: #d32f2f;
  font-weight: 600;
  font-size: 14px;
}

/* Solution Section */
.home-page .solution {
  padding: 80px 0;
  background: white;
}

.home-page .solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.home-page .solution-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.home-page .solution-item .check {
  width: auto;
  height: auto;
  display: block;
  flex-shrink: 0;
  background: transparent;
  font-size: 24px;
}

.home-page .solution-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.home-page .solution-item p {
  font-size: 14px;
  color: #666;
}

/* Footer */
.home-page .home-footer {
  background: #1a1a2e;
  color: white;
  padding: 60px 0 20px;
}

.home-page .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.home-page .footer-grid h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: white;
}

.home-page .footer-grid ul {
  list-style: none;
}

.home-page .footer-grid ul li {
  margin-bottom: 8px;
}

.home-page .footer-grid ul a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.home-page .footer-grid ul a:hover {
  color: white;
}

.home-page .footer-grid p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.8;
}

.home-page .footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.home-page .footer-bottom p {
  color: #666;
}

@media (min-width: 769px) and (max-width: 960px) {
  .home-page .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .home-page .navbar .container,
  .home-page .navbar-inner {
    position: relative;
  }

  .home-page .nav-toggle {
    display: inline-flex;
  }

  .home-page .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .home-page .nav-links.is-open {
    display: flex;
  }

  .home-page .nav-links li {
    width: 100%;
  }

  .home-page .nav-links a {
    display: block;
    width: 100%;
  }

  .home-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-page .hero-content h1 {
    font-size: 32px;
  }

  .home-page .failure-grid,
  .home-page .solution-grid {
    grid-template-columns: 1fr;
  }

  .home-page .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-page .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .home-page .stat-box {
    padding: 16px;
  }

  .home-page .stat-number {
    font-size: 28px;
  }
}