:root {
  --green-950: #0f1b12;
  --green-900: #162816;
  --green-800: #1f3b1d;
  --green-600: #2e6b38;
  --green-500: #3f8d47;
  --green-300: #bce5c5;
  --green-200: #ddf2e2;
  --cream-100: #f5f9f3;
  --cream-200: #eef6ed;
  --text-primary: #132218;
  --text-secondary: #4d6653;
  --accent: #3f8d47;
  --accent-soft: #e7f7ea;
  --card: #ffffff;
  --border: #d7e6d6;
  --error: #cc3d3d;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--cream-100);
  color: var(--text-primary);
}

body {
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
}

main {
  flex: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-button,
button.primary {
  background: linear-gradient(135deg, var(--accent), #5ead5f);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -18px rgba(63, 141, 71, 0.6);
}

.ghost-button,
button.secondary {
  background: rgba(63, 141, 71, 0.1);
  color: var(--green-600);
  border: 1px solid rgba(63, 141, 71, 0.25);
  border-radius: 999px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover,
button.secondary:hover {
  background: rgba(63, 141, 71, 0.2);
  transform: translateY(-2px);
}

button.secondary {
  font: inherit;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
}

button.primary:disabled,
button.secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: 0.03em;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream-200);
  object-fit: cover;
}

.brand-wordmark span:first-child,
.footer-brand .ag {
  color: var(--green-600);
}

.brand-wordmark span:last-child,
.footer-brand .rhythm {
  color: var(--green-800);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-600);
  background: rgba(63, 141, 71, 0.12);
  outline: none;
}

.nav-toggle {
  display: none;
  border: none;
  background: rgba(63, 141, 71, 0.12);
  color: var(--green-600);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero {
  padding: clamp(5rem, 10vw, 7rem) 0 4rem;
  background: radial-gradient(140% 140% at 10% 10%, #ffffff, var(--cream-200));
}

.hero-content {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0 0 1.6rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.highlight-green {
  color: var(--green-600);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-visual {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(63, 141, 71, 0.15);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 22px 60px -28px rgba(15, 27, 18, 0.25);
  color: var(--text-secondary);
  max-width: 280px;
}

.hero-card i {
  font-size: 1.35rem;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.hero-card p {
  margin: 0;
  line-height: 1.6;
}

.benefits {
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(221, 242, 226, 0.5));
}

.benefits h2 {
  text-align: center;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0;
}

.section-subtitle {
  text-align: center;
  margin: 1rem auto 2.75rem;
  max-width: 620px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.benefit-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(63, 141, 71, 0.12);
  box-shadow: 0 20px 50px -30px rgba(13, 33, 18, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 66px -34px rgba(13, 33, 18, 0.3);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(63, 141, 71, 0.12);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

.benefit-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.chat-section {
  padding: 4.5rem 0;
}

.chat-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
}

.chat-shell {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  border: 1px solid rgba(63, 141, 71, 0.12);
  box-shadow: 0 26px 72px -32px rgba(15, 27, 18, 0.32);
  overflow: hidden;
  min-height: 640px;
}

.chat-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid rgba(63, 141, 71, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.chat-header h1 {
  margin: 0;
  font-size: 1.55rem;
}

.chat-header p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.chat-header .actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-shell {
  padding: 1.25rem 2rem 1rem;
  background: rgba(245, 249, 243, 0.8);
  border-bottom: 1px solid rgba(63, 141, 71, 0.12);
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(63, 141, 71, 0.12);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #66ba6a);
  width: 0;
  transition: width 220ms ease;
}

.progress-label {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.conversation {
  flex: 1;
  overflow-y: auto;
  padding: 1.35rem 2rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.message {
  max-width: clamp(240px, 70%, 640px);
  padding: 1rem 1.25rem;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 18px 40px -22px rgba(18, 32, 15, 0.18);
}

.message.assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(63, 141, 71, 0.16);
}

.message.user {
  align-self: flex-end;
  background: #dff3ff;
  border: 1px solid rgba(29, 110, 173, 0.18);
}

.message small {
  display: block;
  margin-top: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.message small.note-line {
  margin-top: 0.35rem;
  color: #3f5740;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.empty-state {
  text-align: center;
  margin-top: 4rem;
  color: var(--text-secondary);
}

.chat-input {
  padding: 0.75rem 2rem 1.25rem;
  border-top: 1px solid rgba(63, 141, 71, 0.12);
  background: rgba(247, 251, 246, 0.94);
}

.chat-input form {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.chat-input .input-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-input .icon-button {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(63, 141, 71, 0.24);
  background: #ffffff;
  color: #2f5d33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input .icon-button .fa-solid {
  font-size: 1.05rem;
}

.chat-input .icon-button:hover {
  background: rgba(63, 141, 71, 0.12);
  border-color: rgba(63, 141, 71, 0.42);
}

.chat-input .icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.chat-input .icon-button.listening {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(63, 141, 71, 0.2);
}

.chat-input .icon-button.listening .fa-solid {
  animation: mic-pulse 1.2s ease-in-out infinite;
}

.voice-hint {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.voice-hint.listening {
  color: var(--green-700);
}

.chat-input textarea {
  flex: 1;
  resize: none;
  min-height: 58px;
  max-height: 160px;
  padding: 0.85rem 1rem;
  font: inherit;
  border-radius: 16px;
  border: 1px solid rgba(63, 141, 71, 0.2);
  background: #fff;
  line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.chat-input textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 141, 71, 0.18);
  outline: none;
}

aside.panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  border: 1px solid rgba(63, 141, 71, 0.12);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 24px 72px -32px rgba(15, 27, 18, 0.32);
}

aside.panel h2 {
  margin: 0;
  font-size: 1.35rem;
}

aside.panel p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.info-card {
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(63, 141, 71, 0.24);
}

.info-card strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--green-600);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

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

.info-card li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(63, 141, 71, 0.18);
}

.info-card li strong {
  letter-spacing: 0.04em;
  color: var(--text-primary);
  font-size: 0.8rem;
  margin: 0;
}

.info-card li span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cta-band {
  background: rgba(22, 40, 22, 0.95);
  color: #fff;
  padding: 3.5rem 0;
}

.cta-band__content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cta-band p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cta-band .ghost-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-band .ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.site-footer {
  background: #0e1a11;
  color: rgba(255, 255, 255, 0.76);
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 24px;
  background: var(--accent);
  color: white;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  box-shadow: 0 15px 35px -18px rgba(63, 141, 71, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  z-index: 20;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@media (max-width: 980px) {
  .hero-content,
  .cta-band__content,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-layout {
    gap: 1.5rem;
  }

  .cta-band__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(63, 141, 71, 0.12);
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .navbar {
    position: relative;
  }
}

@media (max-width: 720px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  aside.panel {
    border-radius: 20px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 4.5rem;
  }

  .hero-card {
    max-width: 100%;
  }

  .chat-shell,
  aside.panel {
    border-radius: 20px;
  }

  .chat-header,
  .progress-shell,
  .conversation,
  .chat-input {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .conversation {
    padding-top: 1.1rem;
    padding-bottom: 0.7rem;
  }

  .chat-input {
    padding-top: 0.65rem;
    padding-bottom: 1.05rem;
  }

  .chat-input form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .chat-input .input-actions {
    justify-content: space-between;
  }

  .chat-input .icon-button {
    width: 44px;
    height: 44px;
  }

  .chat-input .input-actions .primary {
    flex: 1;
    justify-content: center;
  }

  .chat-input button.primary {
    width: 100%;
    justify-content: center;
  }
}

@keyframes mic-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
