/* namu.farm - Y2K-futuristic aurora tree farm */
:root {
  --midnight: #0A0A1A;
  --aurora-green: #00FF87;
  --aurora-purple: #B24BF3;
  --aurora-blue: #00B4D8;
  --soft-white: #F0F0F5;
  --deep-violet: #1A0A2E;
}

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

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

body {
  background: var(--midnight);
  color: var(--soft-white);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

.grain-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 3px);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10vh 2rem 6vh;
  max-width: 900px;
  margin: 0 auto;
}
.watercolor-canopy {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 60vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,135,0.15), rgba(0,180,216,0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--soft-white);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--soft-white);
  opacity: 0.6;
  margin-bottom: 2rem;
}

/* Pill nav */
.pill-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--deep-violet);
  color: var(--soft-white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(0,255,135,0.2);
  transition: border-color 0.3s, background 0.3s;
}
.pill:hover {
  border-color: var(--aurora-green);
  background: rgba(0,255,135,0.1);
}

/* Plots grid */
.plots-section {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--soft-white);
  margin-bottom: 2rem;
  text-align: center;
}

.plots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Card flip */
.plot-card {
  perspective: 800px;
  height: 320px;
  cursor: pointer;
}
.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}
.plot-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.card-front {
  background: var(--deep-violet);
  border: 1px solid rgba(0,255,135,0.15);
  overflow: hidden;
}
.card-back {
  background: var(--deep-violet);
  border: 1px solid rgba(178,75,243,0.3);
  transform: rotateY(180deg);
}

.canopy-blob {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}
.canopy-green { background: radial-gradient(circle, var(--aurora-green), transparent 70%); }
.canopy-purple { background: radial-gradient(circle, var(--aurora-purple), transparent 70%); }
.canopy-blue { background: radial-gradient(circle, var(--aurora-blue), transparent 70%); }

.tree-icon {
  width: 60px;
  height: 80px;
}
.plot-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--soft-white);
}
.plot-species {
  font-size: 0.85rem;
  color: var(--soft-white);
  opacity: 0.5;
}

/* Stats on back */
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft-white);
  opacity: 0.5;
  align-self: flex-start;
}
.stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--aurora-green);
  align-self: flex-start;
  margin-bottom: 0.5rem;
}
.stat-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.stat-fill {
  height: 100%;
  background: var(--aurora-green);
  border-radius: 3px;
  transition: width 1s ease;
}
.fill-purple { background: var(--aurora-purple); }
.fill-blue { background: var(--aurora-blue); }

/* Hover glow */
.plot-card:hover .card-front {
  border-color: rgba(0,255,135,0.4);
  box-shadow: 0 0 30px rgba(0,255,135,0.1);
}

/* About */
.about-section {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 6rem auto;
  padding: 0 2rem;
  text-align: center;
}
.about-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--soft-white);
  margin-bottom: 1rem;
}
.about-body {
  color: var(--soft-white);
  opacity: 0.7;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem 3rem;
}
.footer-domain {
  font-size: 0.85rem;
  color: var(--soft-white);
  opacity: 0.3;
}

/* Aurora shimmer */
@keyframes auroraShimmer {
  0%, 100% { border-color: rgba(0,255,135,0.15); }
  33% { border-color: rgba(178,75,243,0.2); }
  66% { border-color: rgba(0,180,216,0.2); }
}
.card-front { animation: auroraShimmer 6s ease-in-out infinite; }

@media (max-width: 600px) {
  .plots-grid { grid-template-columns: 1fr; }
  .plot-card { height: 280px; }
}
