:root {
  --bg: #f4f2ed;
  --surface: #ffffff;
  --ink: #13231f;
  --muted: #61706b;
  --line: #dce3df;
  --green: #176b52;
  --green-dark: #0d4a38;
  --lime: #d9f36f;
  --warm: #f4b75e;
  --shadow: 0 24px 60px rgba(18, 55, 43, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 12px;
  z-index: 20;
  box-shadow: 0 12px 35px rgba(16, 49, 39, .08);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--green); color: white; font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: Manrope, sans-serif; }
.brand small { color: var(--muted); font-size: .72rem; }
.header-cta { background: var(--ink); color: white; padding: 10px 16px; border-radius: 12px; font-weight: 700; }

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  min-height: 680px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 20%, rgba(217,243,111,.5), transparent 30%),
    radial-gradient(circle at 88% 5%, rgba(244,183,94,.32), transparent 27%),
    linear-gradient(135deg, #e7f2e7, #f8f4e9 55%, #eef6ed);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
  padding: 64px;
  overflow: hidden;
}
.eyebrow, .section-kicker { color: var(--green); font-weight: 800; letter-spacing: .12em; font-size: .78rem; }
h1, h2, h3 { font-family: Manrope, sans-serif; line-height: 1.1; }
h1 { margin: 18px 0 24px; font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -.055em; }
h1 span { color: var(--green); }
.hero-lead { max-width: 690px; color: #465a53; font-size: 1.18rem; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 26px; flex-wrap: wrap; }
.button {
  border: 0; border-radius: 13px; padding: 13px 18px;
  font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--green); color: white; box-shadow: 0 12px 24px rgba(23,107,82,.2); }
.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.full { width: 100%; }
.trust-row { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.trust-row span::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 800; }

.hero-card {
  background: #102e26;
  color: white;
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.card-toolbar { display: flex; align-items: center; gap: 7px; color: #abc0b9; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.card-toolbar strong { margin-left: auto; font-size: .84rem; }
.dot { width: 8px; height: 8px; background: #7da598; border-radius: 50%; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.metric-grid > div, .insight { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); padding: 16px; border-radius: 16px; }
.metric-grid small, .insight small { color: #9db8af; display: block; margin-bottom: 4px; }
.metric-grid strong { font-size: 1.5rem; }
.status-hot { color: var(--lime); }
.insight { margin-top: 12px; }
.insight p { margin: 0; }
.message-preview { margin-top: 14px; background: var(--lime); color: #183125; padding: 18px; border-radius: 18px 18px 4px 18px; font-weight: 600; }

.section-shell { width: min(1080px, calc(100% - 32px)); margin: 110px auto; }
.section-shell h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; margin: 14px 0 24px; }
.problem { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; }
.problem-points { display: grid; gap: 12px; }
.problem-points p { margin: 0; padding: 20px; border-radius: 16px; background: white; border: 1px solid var(--line); }

.functions-section { text-align: center; }
.function-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; text-align: left; }
.function-grid article { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-height: 230px; }
.function-grid span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #e7f3ee; color: var(--green); font-weight: 800; }
.function-grid h3 { margin: 34px 0 10px; font-size: 1.2rem; }
.function-grid p { color: var(--muted); margin: 0; }

.demo-section { background: #e9efe9; border-radius: 30px; padding: 44px; }
.demo-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input-panel, .result-panel { background: white; border-radius: 20px; padding: 22px; min-height: 520px; border: 1px solid var(--line); }
.input-panel label { display: block; font-weight: 800; margin-bottom: 10px; }
textarea { width: 100%; min-height: 350px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fbfcfb; color: var(--ink); }
.helper { color: var(--muted); font-size: .78rem; }
.result-panel { display: flex; flex-direction: column; }
.result-empty { margin: auto; text-align: center; color: var(--muted); }
.result-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.badge.hot { background: #e7f6b7; color: #3e5c00; }
.badge.warm { background: #fff0cf; color: #875000; }
.badge.cold { background: #e8edf0; color: #3e5966; }
.result-block { padding: 15px 0; border-bottom: 1px solid var(--line); }
.result-block small { color: var(--muted); display: block; margin-bottom: 5px; }
.result-block p { margin: 0; }
.generated-message { background: #eef7f2; border: 1px solid #cde4d8; padding: 16px; border-radius: 14px; }

.pilot { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--ink); color: white; border-radius: 28px; padding: 40px; }
.pilot .section-kicker { color: var(--lime); }
.pilot h2 { margin-bottom: 10px; }
.pilot p { color: #b7c6c1; }
.pilot-offer { min-width: 250px; background: var(--lime); color: var(--ink); padding: 24px; border-radius: 20px; }
.pilot-offer strong, .pilot-offer span { display: block; }
.pilot-offer strong { font-family: Manrope, sans-serif; font-size: 1.6rem; }

footer { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 44px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 40px; }
  .hero-card { transform: none; }
  .function-grid { grid-template-columns: repeat(2, 1fr); }
  .problem, .demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { top: 6px; }
  .brand small, .header-cta { display: none; }
  .hero { padding: 28px 22px; border-radius: 24px; }
  h1 { font-size: 3rem; }
  .hero-actions .button { width: 100%; text-align: center; }
  .metric-grid { grid-template-columns: 1fr; }
  .section-shell { margin: 74px auto; }
  .function-grid { grid-template-columns: 1fr; }
  .function-grid article { min-height: auto; }
  .function-grid h3 { margin-top: 20px; }
  .demo-section { padding: 24px 16px; }
  .demo-heading { align-items: stretch; flex-direction: column; }
  .input-panel, .result-panel { min-height: auto; }
  textarea { min-height: 300px; }
  .pilot { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .pilot-offer { min-width: 0; }
  footer { flex-direction: column; gap: 6px; }
}
