:root {
  --cream:        #FDFAF3;
  --green-dark:   #1A3D2B;
  --green-mid:    #2D6A4F;
  --green-light:  #52B788;
  --green-bright: #5FD97A;
  --gold:         #F4A623;
  --gold-light:   #FFD166;
  --cosmic:       #C77DFF;
  --cosmic-dark:  #7B2FBE;
  --terra:        #8B5E3C;
  --sky:          #E8F4FD;
  --text-dark:    #1A2E1E;
  --text-mid:     #4A5E52;
  --text-light:   #8A9E8E;

  --rarity-common:    #5FD97A;
  --rarity-uncommon:  #4FC3F7;
  --rarity-rare:      #B07CFF;
  --rarity-epic:      #FF9E42;
  --rarity-legendary: #F4A623;
  --rarity-cosmic:    #C77DFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--text-dark);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: 'Fraunces', serif;
  color: var(--text-dark);
  margin: 0;
}

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

.section {
  padding: 90px 24px;
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-alt { background: var(--sky); }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--green-mid);
  background: rgba(95,217,122,0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-subtitle {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 560px;
}
.section-header { margin-bottom: 46px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 32px;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.scrolled {
  background: rgba(253,250,243,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-dark);
}
.nav-logo span { color: var(--green-bright); }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dark);
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--green-bright);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--green-bright);
  color: #0A2E17;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(95,217,122,0.35);
}
.nav-cta:hover { filter: brightness(1.05); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: 92vh;
  padding: 140px 32px 80px;
  background: linear-gradient(160deg, #FDFAF3 0%, #E8F5EC 60%, #D4EDD9 100%);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  z-index: 0;
}
.hero-blob.b1 { width: 420px; height: 420px; background: radial-gradient(circle, #B7EFC5, transparent 70%); top: -80px; right: -60px; }
.hero-blob.b2 { width: 260px; height: 260px; background: radial-gradient(circle, #FFEAB5, transparent 70%); bottom: 0; left: 10%; }

.hero-leaf {
  position: absolute;
  font-size: 2.4rem;
  opacity: 0.5;
  z-index: 0;
}
.hero-leaf.l1 { top: 18%; left: 6%; transform: rotate(-15deg); }
.hero-leaf.l2 { bottom: 12%; right: 8%; transform: rotate(10deg); }
.hero-leaf.l3 { top: 55%; left: 2%; transform: rotate(20deg); font-size: 1.8rem; }

.hero-text, .hero-visual { position: relative; z-index: 1; }
.hero-text { flex: 1 1 480px; max-width: 560px; }
.hero-visual { flex: 1 1 420px; }

.hero-badge {
  display: inline-block;
  background: rgba(95,217,122,0.15);
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--green-mid); }

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 480px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green-bright);
  color: #0A2E17;
  box-shadow: 0 8px 24px rgba(95,217,122,0.4);
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-outline {
  background: transparent;
  border-color: var(--green-mid);
  color: var(--green-mid);
}
.btn-outline:hover { background: rgba(45,106,79,0.08); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-visual {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26,61,43,0.15);
  min-height: 360px;
}
.hero-video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.rarity-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 6px;
}
.rarity-common    { background: var(--rarity-common); }
.rarity-uncommon  { background: var(--rarity-uncommon); }
.rarity-rare      { background: var(--rarity-rare); }
.rarity-epic      { background: var(--rarity-epic); }
.rarity-legendary { background: linear-gradient(90deg, #F4A623, #FFD166, #F4A623); background-size: 200% auto; animation: shimmer 3s linear infinite; color: #3a2400; }
.rarity-cosmic    { background: linear-gradient(90deg, #7B2FBE, #C77DFF, #FF6BFF, #C77DFF, #7B2FBE); background-size: 200% auto; animation: shimmer 2s linear infinite; }

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps-grid-4 { grid-template-columns: repeat(4, 1fr); }
.step-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 10px 28px rgba(26,61,43,0.06);
  position: relative;
}
.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: rgba(45,106,79,0.15);
}
.step-icon { font-size: 2.4rem; margin-bottom: 14px; }
.step-icon-img { width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; }
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p { color: var(--text-mid); font-size: 0.92rem; line-height: 1.55; margin: 0 0 10px; }
.step-card .step-hint { font-size: 0.82rem; color: var(--green-mid); font-weight: 600; }

.water-callout {
  margin-top: 28px;
  background: linear-gradient(90deg, rgba(95,217,122,0.12), rgba(79,195,247,0.12));
  border-radius: 16px;
  padding: 18px 24px;
  text-align: center;
  font-weight: 600;
  color: var(--green-dark);
}

/* ---------- Plants showcase ---------- */
.rarity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.rarity-tab {
  background: #fff;
  border: 1px solid rgba(26,61,43,0.12);
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rarity-tab:hover { border-color: var(--green-mid); color: var(--green-dark); }
.rarity-tab.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.plant-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.plant-showcase-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(26,61,43,0.07);
  border: 2px solid transparent;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.plant-showcase-card img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 10px 0;
}
.plant-showcase-card .plant-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.plant-showcase-card .plant-rate { color: var(--text-mid); font-size: 0.85rem; margin-bottom: 4px; }
.plant-showcase-card .plant-range { color: var(--text-light); font-size: 0.78rem; }
.plant-showcase-card .plant-boost { color: var(--gold); font-size: 0.78rem; font-weight: 600; margin-top: 4px; }

.plant-showcase-card.cosmic {
  border: 2px solid var(--cosmic);
  animation: cosmicBorder 2s ease-in-out infinite;
}
.plant-showcase-card.cosmic .cosmic-placeholder {
  width: 130px;
  height: 130px;
  margin: 10px auto;
  border-radius: 50%;
  background: radial-gradient(circle, #2a0f3a, #0d0515);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.plant-showcase-card.cosmic .plant-note {
  font-size: 0.72rem;
  color: var(--cosmic-dark);
  font-weight: 600;
  margin-top: 6px;
}

@keyframes cosmicBorder {
  0% { border-color: #C77DFF; box-shadow: 0 0 15px rgba(199,125,255,0.3); }
  50% { border-color: #FF6BFF; box-shadow: 0 0 30px rgba(255,107,255,0.5); }
  100% { border-color: #C77DFF; box-shadow: 0 0 15px rgba(199,125,255,0.3); }
}

/* ---------- Loot boxes ---------- */
.boxes-section {
  background: linear-gradient(160deg, #1A3D2B 0%, #2D6A4F 100%);
  color: #EAF6ED;
}
.boxes-section .section-subtitle { color: rgba(234,246,237,0.75); }
.boxes-section .section-title { color: #fff; }

.boxes-grid {
  display: flex;
  gap: 26px;
  align-items: stretch;
}

.box-card {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.box-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 14px;
  border-radius: 16px;
}
.box-card .box-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.box-card .box-price { font-size: 1.6rem; font-weight: 900; font-family: 'Fraunces', serif; color: var(--gold-light); margin-bottom: 12px; }
.box-card .box-desc { color: rgba(234,246,237,0.75); font-size: 0.9rem; margin-bottom: 20px; }

.drop-rates { text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.drop-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.drop-label { width: 90px; flex-shrink: 0; }
.drop-pct { width: 44px; flex-shrink: 0; text-align: right; font-weight: 600; }
.drop-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.15); overflow: hidden; }
.drop-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; background: var(--green-bright); }

.box-card.founder {
  background: linear-gradient(160deg, rgba(244,166,35,0.18), rgba(199,125,255,0.1));
  border: 1px solid rgba(244,166,35,0.4);
  position: relative;
}
.founder-crown {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.founder-list { text-align: left; list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.founder-list li::before { content: '✓ '; color: var(--green-bright); font-weight: 700; }
.founder-cosmic-note {
  font-size: 0.78rem;
  color: var(--cosmic);
  font-weight: 600;
  margin-bottom: 16px;
}

.box-card .btn { margin-top: auto; justify-content: center; width: 100%; }

/* ---------- Tokenomics ---------- */
.tokenomics-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.tokenomics-left, .tokenomics-right { flex: 1; }

.tokenomics-item { display: flex; gap: 14px; margin-bottom: 24px; }
.tokenomics-item .icon { font-size: 1.6rem; }
.tokenomics-item h4 { font-size: 1rem; margin-bottom: 4px; }
.tokenomics-item p { margin: 0; color: var(--text-mid); font-size: 0.9rem; line-height: 1.5; }

.token-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(26,61,43,0.07);
  margin-bottom: 30px;
}
.token-table th, .token-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.86rem;
}
.token-table th {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
}
.token-table tr:nth-child(even) { background: rgba(95,217,122,0.06); }

.supply-total { font-weight: 700; margin-bottom: 12px; }
.supply-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.82rem; }
.supply-bar-label { width: 130px; flex-shrink: 0; color: var(--text-mid); }
.supply-bar { flex: 1; height: 10px; border-radius: 5px; background: rgba(26,61,43,0.08); overflow: hidden; }
.supply-bar-fill { height: 100%; border-radius: 5px; }

/* ---------- Farm mechanics ---------- */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.mechanic-card {
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 26px rgba(26,61,43,0.06);
}
.mechanic-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mechanic-card p { margin: 0; color: var(--text-mid); font-size: 0.9rem; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(26,61,43,0.08);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
}
.faq-arrow { transition: transform 0.3s ease; color: var(--green-mid); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 22px;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 22px 20px; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(160deg, #1A3D2B 0%, #0D1F15 100%);
  color: #fff;
  text-align: center;
}
.final-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 34px; }
.final-cta .hero-actions { justify-content: center; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.social-links a:hover { background: rgba(255,255,255,0.15); }

.site-footer {
  background: #0D1F15;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 30px 24px 40px;
  font-size: 0.82rem;
}
.footer-links { display: flex; justify-content: center; gap: 18px; margin: 10px 0; }
.footer-disclaimer { max-width: 560px; margin: 10px auto 0; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .plant-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .tokenomics-grid { flex-direction: column; gap: 30px; }
  .steps-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 120px; }
  .hero-visual { min-height: 280px; }
  .hero-video { min-height: 280px; }
  .steps-grid, .steps-grid-4 { grid-template-columns: 1fr; }
  .boxes-grid { flex-direction: column; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FDFAF3;
    padding: 18px 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .hamburger { display: flex; }
  .mechanics-grid { grid-template-columns: 1fr; }
}
