/* Greenhouse Master — Landing palette from app Assets/Colors */

:root {
  --harvest-gold: #ffd700;
  --growth-orange: #ff8c00;
  --leaf-green: #4caf50;
  --canopy-green: #2e7d32;
  --forest-green: #1b5e20;
  --sky-glass: #4cc9f0;
  --berry-pink: #e91e63;
  --berry-purple: #9c27b0;
  --deep-earth: #2b2b2b;
  --panel-dark: #1a2e1a;
  --glass-white: #fdfdfd;
  --mist-green: #76c893;
  --soil-brown: #8d6e63;
  --alert-red: #e53935;

  --bg-deep: #0d1f0d;
  --bg-card: rgba(26, 46, 26, 0.88);
  --border-glow: rgba(76, 201, 240, 0.25);
  --gold-glow: rgba(255, 215, 0, 0.35);

  --font-display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.45);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--glass-white);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(76, 175, 80, 0.12), transparent),
    radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.06), transparent),
    radial-gradient(circle at 10% 60%, rgba(76, 201, 240, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-glass); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--harvest-gold); }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Navigation ── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(13, 31, 13, 0.82);
  border-bottom: 1px solid var(--border-glow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--glass-white);
}

.brand img { width: 44px; height: 44px; border-radius: 12px; }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(253, 253, 253, 0.75);
  transition: background 0.25s, color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, var(--harvest-gold), var(--growth-orange));
  color: var(--deep-earth);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--harvest-gold);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ── Hero ── */

.hero {
  padding: calc(var(--nav-h) + 48px) 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(76, 201, 240, 0.12);
  border: 1px solid var(--border-glow);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sky-glass);
  margin-bottom: 20px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf-green);
  box-shadow: 0 0 8px var(--leaf-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--harvest-gold), var(--growth-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.12rem;
  color: rgba(253, 253, 253, 0.78);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--harvest-gold), var(--growth-orange));
  color: var(--deep-earth);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--glass-white);
  border: 1.5px solid rgba(76, 201, 240, 0.4);
}

.btn-outline:hover {
  border-color: var(--sky-glass);
  box-shadow: 0 0 20px rgba(76, 201, 240, 0.15);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glow);
}

.hero-float {
  position: absolute;
  bottom: -16px;
  left: -16px;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.hero-float img { width: 36px; height: 36px; }

.hero-float-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--harvest-gold);
}

.hero-float-text span {
  font-size: 0.75rem;
  color: rgba(253, 253, 253, 0.65);
}

/* ── Stats strip ── */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0 0;
}

.stat-card {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-glow);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--harvest-gold), var(--sky-glass));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card span {
  font-size: 0.82rem;
  color: rgba(253, 253, 253, 0.6);
}

/* ── Sections ── */

section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-glass);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  color: rgba(253, 253, 253, 0.72);
  max-width: 640px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ── Feature cards (GHCard style) ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gh-card {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(145deg, rgba(46, 125, 50, 0.15), var(--bg-card));
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.gh-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--leaf-green));
}

.gh-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.3);
}

.gh-card img {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.gh-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.gh-card p {
  font-size: 0.92rem;
  color: rgba(253, 253, 253, 0.72);
  line-height: 1.55;
}

/* ── Pipeline ── */

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glow);
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  min-width: 100px;
}

.pipeline-step img { width: 40px; height: 40px; }

.pipeline-step span {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(253, 253, 253, 0.8);
}

.pipeline-arrow {
  color: var(--harvest-gold);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* ── Privacy & Support ── */

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-nav a {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(253, 253, 253, 0.65);
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
  background: rgba(76, 201, 240, 0.08);
  color: var(--sky-glass);
  border-left-color: var(--harvest-gold);
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--harvest-gold);
}

.legal-content h3:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: rgba(253, 253, 253, 0.78);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li { margin-bottom: 8px; }

.legal-panel {
  padding: 36px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glow);
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.support-card {
  padding: 24px;
  background: rgba(43, 43, 43, 0.5);
  border-radius: 16px;
  border: 1px solid var(--border-glow);
}

.support-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--sky-glass);
}

.support-card p {
  font-size: 0.88rem;
  color: rgba(253, 253, 253, 0.7);
}

.support-card a {
  font-weight: 600;
  word-break: break-all;
}

.faq-item {
  border-bottom: 1px solid rgba(76, 201, 240, 0.12);
  padding: 16px 0;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--glass-white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--harvest-gold);
  transition: transform 0.3s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  font-size: 0.92rem;
  color: rgba(253, 253, 253, 0.72);
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-top: 12px;
}

/* ── Footer ── */

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-glow);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img { width: 36px; height: 36px; border-radius: 10px; }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(253, 253, 253, 0.45);
}

/* ── Reveal animation ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .support-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 31, 13, 0.96);
    padding: 16px;
    border-bottom: 1px solid var(--border-glow);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
  .legal-panel { padding: 24px 20px; }
}
