﻿/* Grow Mate marketing site */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8f9f8;
  --surface-soft: #e5e7eb;
  --border: #e5e7eb;
  --text: #374151;
  --text-muted: #6b7280;
  --green: #22c55e;
  --green-soft: rgba(34,197,94,0.1);
  --dark-green: #14532d;
  --yellow: #fbbf24;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  height: auto;
  overflow: visible;
}

body {
  margin: 0;
  min-height: 100%;
  height: auto;
  overflow: visible;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

main {
  position: relative;
  height: auto;
  overflow: visible;
  background: var(--bg);
}

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

button,
a {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 28px 32px 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  transition: background 0.35s ease, border-bottom 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  padding: 18px 32px 10px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand,
.brand-footer {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.brand::after {
  content: "";
  position: absolute;
  top: -25px;
  right: -37px;
  width: 125px;
  height: 125px;
  background-image: url("Grow_mate_logo.jpeg.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.15;
  filter: blur(1px) saturate(0.5);
  transform: scale(0.6);
  transform-origin: top right;
  pointer-events: none;
  z-index: -1;
}

.site-logo {
  width: 125px;
  height: 125px;
  display: block;
}

@media (max-width: 768px) {
  .brand::after {
    display: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
  color: var(--text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav button:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 8px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.button-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(34,197,94,0.39);
}

.button-outline,
.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-outline:hover,
.button-ghost:hover {
  background: var(--surface-soft);
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 44px 32px 64px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin: 0;
  max-width: 12ch;
}

.hero p {
  margin: 28px 0 0;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  background: var(--white);
  border-radius: 28px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  inset: 20px 0 0 20px;
  background: radial-gradient(circle at top left, rgba(34,197,94,0.15), transparent 45%), radial-gradient(circle at right, rgba(251,191,36,0.08), transparent 30%);
  filter: blur(60px);
}

.hero-card {
  position: relative;
  z-index: 1;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  box-shadow: var(--shadow);
}

.hero-card span {
  color: var(--green);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  font-size: 1.4rem;
  line-height: 1.35;
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.9;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 999px;
  background: rgba(34,197,94,0.18);
  box-shadow: 0 0 28px rgba(34,197,94,0.34);
}

.particle.one {
  width: 120px;
  height: 120px;
  top: 8%;
  left: 10%;
}

.particle.two {
  width: 72px;
  height: 72px;
  bottom: 18%;
  right: 8%;
}

.particle.three {
  width: 36px;
  height: 36px;
  top: 30%;
  right: 20%;
}

.particle.four {
  width: 52px;
  height: 52px;
  bottom: 10%;
  left: 28%;
}

.stats-section {
  background: var(--surface);
  padding: 60px 32px;
  margin: 0 auto;
  max-width: 1200px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.chat-demo {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #e1e5e9;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 280px;
  overflow: hidden;
}

.message {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-width: 80%;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.message.customer {
  align-self: flex-start;
}

.message.growmate {
  align-self: flex-end;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.message.customer .message-bubble {
  background: #e5e7eb;
  color: #374151;
  border-bottom-left-radius: 4px;
}

.message.growmate .message-bubble {
  background: var(--green);
  color: white;
  border-bottom-right-radius: 4px;
}

.typing-indicator {
  display: flex;
  align-self: flex-end;
  gap: 4px;
  padding: 12px 16px;
  background: var(--green);
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.typing-indicator.show {
  opacity: 1;
  transform: translateY(0);
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.calendar-event {
  margin-top: 16px;
  padding: 12px 16px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #1e40af;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.calendar-event.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

.section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 80px 32px;
  background: var(--bg);
  scroll-margin-top: 110px;
}

.section-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
}

.section-hero {
  background: linear-gradient(180deg, rgba(248,249,248,0.96), rgba(255,255,255,1));
  border-top: 1px solid var(--border);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-intro h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  margin: 18px 0 0;
}

.section-note {
  color: var(--text-muted);
  margin-top: 12px;
}

.problem-grid,
.steps-grid,
.features-grid,
.testimonials-grid {
  display: grid;
  gap: 24px;
}

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

.problem-card,
.step-card,
.feature-card,
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}

.problem-card h3,
.step-card h3,
.feature-card h3 {
  margin: 0;
}

.problem-card p,
.step-card p,
.feature-card p,
.testimonial-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.icon,
.feature-icon,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  font-size: 1.2rem;
}

.step-number {
  font-size: 1.1rem;
  font-weight: 800;
}

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

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

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

.testimonial-card strong {
  display: block;
  margin-top: auto;
  color: var(--white);
}

.trade-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.trade-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}

.trade-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  font-size: 1.3rem;
}

.preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.96);
  z-index: 50;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.preloader-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(34,197,94,0.16);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preloader-text {
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.waitlist-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-panel h2 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: 24px 0 0;
  line-height: 1.02;
}

.waitlist-panel p {
  margin: 22px auto 0;
  max-width: 620px;
  color: var(--text-muted);
  line-height: 1.8;
}

.waitlist-form {
  margin-top: 34px;
}

.waitlist-field {
  display: flex;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

.waitlist-field input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 18px 22px;
  background: var(--white);
  color: var(--text);
}

.waitlist-field input::placeholder {
  color: var(--text-muted);
}

.form-feedback {
  margin-top: 16px;
  min-height: 22px;
  font-size: 0.96rem;
  color: var(--green);
}

.site-footer {
  padding: 40px 32px 60px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

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

.footer-links a {
  color: var(--text-muted);
}

.footer-copy {
  margin: 24px auto 0;
  max-width: 1200px;
  color: var(--text-muted);
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.modal.active {
  display: flex;
}

.modal-panel {
  width: min(520px, calc(100% - 48px));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
}

.modal-copy h2 {
  margin: 18px 0 12px;
  font-size: 2rem;
}

.modal-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.modal-panel form {
  margin-top: 28px;
}

.modal-panel input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px;
  margin-bottom: 18px;
  background: var(--white);
  color: var(--text);
}

.section-animate,
.card-animate,
.hero-visual,
.hero-copy {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .site-nav {
    gap: 18px;
  }

  .problem-grid,
  .steps-grid,
  .features-grid,
  .testimonials-grid,
  .trade-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .features-grid,
  .testimonials-grid,
  .trade-grid {
    display: grid;
  }
}

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

  .site-nav {
    position: fixed;
    inset: 84px 24px auto;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px;
    gap: 14px;
    display: none;
    width: calc(100% - 48px);
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding-top: 36px;
  }

  .hero-card {
    min-height: 280px;
  }

  .waitlist-field {
    flex-direction: column;
  }

  .waitlist-field input,
  .waitlist-field button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 18px 20px 0;
  }

  .nav-wrap {
    gap: 14px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section {
    padding: 60px 20px;
  }

  .modal-panel {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-item {
    padding: 20px;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}
