/* ═══════════════════════════════════════════
   GROWLYTICS — Landing Page Styles
   ═══════════════════════════════════════════ */

:root {
  --g900: #1b4332;
  --g800: #2d6a4f;
  --g700: #40916c;
  --g600: #52b788;
  --g400: #74c69d;
  --g300: #95d5b2;
  --g200: #b7e4c7;
  --g100: #d8f3dc;
  --g50:  #f0faf3;
  --text:   #1b4332;
  --muted:  #5a8374;
  --light:  #8fb5a3;
  --border: #d1e8da;
  --card:   #ffffff;
  --bg:     #f4f9f6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ── Navbar ──────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--g900);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex: 1;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--g900); }
.nav-cta { display: flex; gap: 0.625rem; align-items: center; }
.btn-nav-login {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--g800);
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.btn-nav-login:hover { background: var(--g50); }
.btn-nav-signup {
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--g700);
  border-radius: var(--radius-sm);
  transition: background .2s, transform .2s;
}
.btn-nav-signup:hover { background: var(--g900); transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--g900);
  border-radius: 2px;
}
.nav-mobile {
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.nav-mobile a { font-size: .9rem; font-weight: 600; color: var(--muted); }
.nav-mobile .btn-nav-login,
.nav-mobile .btn-nav-signup { text-align: center; width: 100%; }

/* ── Hero ────────────────────────────────── */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--g100);
  color: var(--g800);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--g200);
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--g900);
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}
.hero-accent {
  background: linear-gradient(135deg, var(--g700), var(--g400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--g800);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(45,106,79,.35);
}
.btn-hero-primary:hover {
  background: var(--g900);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,79,.45);
}
.btn-hero-secondary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--g700);
  border: 1.5px solid var(--g200);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: background .2s, border-color .2s;
  background: transparent;
}
.btn-hero-secondary:hover { background: var(--g50); border-color: var(--g300); }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hero-stat { }
.hero-stat-val { font-size: 1.5rem; font-weight: 900; color: var(--g800); line-height: 1; }
.hero-stat-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.hero-stat-div { width: 1.5px; height: 36px; background: var(--border); }

.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-svg { width: 100%; max-width: 520px; filter: drop-shadow(0 20px 60px rgba(27,67,50,.12)); }
.hero-float {
  position: absolute;
  font-size: 1.5rem;
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
}
.hero-float-1 { top: 8%; left: 8%; animation-delay: 0s; }
.hero-float-2 { top: 20%; right: 5%; animation-delay: 1.5s; font-size: 1rem; }
.hero-float-3 { bottom: 18%; left: 6%; animation-delay: 0.8s; font-size: 1.2rem; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Trust Bar ───────────────────────────── */
.trust-bar {
  background: var(--g50);
  border-top: 1px solid var(--g100);
  border-bottom: 1px solid var(--g100);
  padding: 1rem 1.5rem;
}
.trust-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-sep { color: var(--g200); font-size: 1.2rem; }

/* ── Section Shared ──────────────────────── */
.section-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-badge {
  display: inline-block;
  background: var(--g100);
  color: var(--g800);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--g900);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── Features Grid ───────────────────────── */
.features { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--g300);
}
.feature-card--large { grid-column: span 2; }
.feature-svg-wrap {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-svg-wrap svg { width: 100%; }
.feature-svg-wrap--sm svg { max-width: 180px; max-height: 130px; }
.feature-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--g900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── How It Works ────────────────────────── */
.how-it-works { background: var(--g50); }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 0 1rem;
}
.step-number {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--g300);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.step-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--g900);
  margin-bottom: 0.625rem;
}
.step p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.step-connector {
  flex-shrink: 0;
  padding-top: 60px;
  opacity: .6;
}

/* ── Community Section ───────────────────── */
.community-section {
  background: linear-gradient(135deg, var(--g900) 0%, var(--g700) 60%, var(--g600) 100%);
  position: relative;
  overflow: hidden;
}
.community-bg { position: absolute; inset: 0; pointer-events: none; }
.community-leaf-left  { position: absolute; left: -30px; top: 0; width: 200px; height: 300px; }
.community-leaf-right { position: absolute; right: -30px; top: 0; width: 200px; height: 300px; }
.community-section .section-sub { margin-bottom: 2.5rem; }
.community-cards {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}
.community-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  overflow: hidden;
  width: 220px;
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.community-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); }
.community-card--featured {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
  transform: scale(1.04);
}
.community-card--featured:hover { transform: scale(1.04) translateY(-4px); }
.cc-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.cc-body { padding: 0.875rem; }
.cc-name { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.cc-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}
.cc-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}
.cc-owner span { font-size: 0.75rem; color: rgba(255,255,255,.75); font-weight: 600; }
.cc-stats { font-size: 0.75rem; color: rgba(255,255,255,.6); }

/* ── Security Section ────────────────────── */
.security-section { background: #fff; border-top: 1px solid var(--border); }
.security-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.security-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.security-list svg { flex-shrink: 0; color: var(--g700); }
.security-visual svg { width: 220px; height: 190px; }

/* ── CTA Section ─────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--g900), var(--g800));
  overflow: hidden;
}
.cta-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  position: relative;
}
.cta-plant { width: 80px; opacity: .6; flex-shrink: 0; }
.cta-plant--right { transform: scaleX(-1); }
.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.cta-content p {
  color: var(--g300);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 460px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Footer ──────────────────────────────── */
.footer {
  background: var(--g900);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.footer-tagline { font-size: 0.875rem; color: var(--g300); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,.35); }

/* ── Auth Modal ──────────────────────────── */
.landing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.landing-modal {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.landing-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.landing-modal-close:hover { background: #f3f4f6; color: #374151; }
.lm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.75rem;
}
.lm-brand h2 { font-size: 1.2rem; font-weight: 800; color: var(--g900); }
.lm-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.lm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0.875rem;
}
.lm-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lm-field input {
  font-family: inherit;
  font-size: 0.9rem;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.875rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  outline: none;
}
.lm-field input:focus {
  border-color: var(--g600);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
}
.lm-btn {
  width: 100%;
  background: var(--g700);
  color: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.375rem;
  margin-bottom: 1rem;
  transition: background .2s;
}
.lm-btn:hover { background: var(--g900); }
.lm-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.lm-switch a { color: var(--g700); font-weight: 600; }
.lm-switch a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large { grid-column: span 2; }
  .security-inner { grid-template-columns: 1fr; }
  .security-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem 2rem;
    text-align: center;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-illustration { order: -1; }
  .hero-svg { max-width: 340px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
  .steps { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); padding-top: 0; }
  .cta-inner { flex-direction: column; }
  .cta-plant { display: none; }
  .community-cards { gap: 0.875rem; }
  .community-card { width: 180px; }
  .trust-sep { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
  .landing-modal { padding: 1.75rem 1.25rem; }
}
