/* ===============================================
   GARDENERPLUS - MODERN PLANT-THEMED DESIGN
   =============================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Nature-inspired color palette */
  --primary-green: #2d5a2d;
  --secondary-green: #47af47;
  --accent-green: #7dd55c;
  --light-green: #a8e6a3;
  --sage-green: #9caf9c;
  --forest-green: #1b4332;
  --mint-green: #b8f2b8;
  
  /* Earth tones */
  --earth-brown: #8b5a3c;
  --warm-beige: #f4f1e8;
  --soft-cream: #faf8f5;
  
  /* Gradients */
  --primary-gradient: linear-gradient(-45deg, #336633, #264d26, #2d5a2d, #47af47, #7dd55c);
  --button-gradient: linear-gradient(135deg, #ffffff, #f8f9fa);
  --glow-gradient: radial-gradient(circle, rgba(125, 213, 92, 0.3), transparent);
  
  /* Shadows */
  --soft-shadow: 0 8px 32px rgba(45, 90, 45, 0.15);
  --medium-shadow: 0 12px 40px rgba(45, 90, 45, 0.2);
  --strong-shadow: 0 20px 60px rgba(45, 90, 45, 0.25);
  --inner-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Animation durations */
  --anim-fast: 0.3s;
  --anim-normal: 0.6s;
  --anim-slow: 1.2s;
  --anim-very-slow: 2.4s;
}

/* ---------- Base Reset and Global Styles ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #2d4a2d 0%, #336633 25%, #3d7a3d 50%, #336633 75%, #2d4a2d 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(125, 213, 92, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  display: none;
}

/* ---------- Keyframe Animations ---------- */
@keyframes organicPulse {
  0%, 100% { 
    opacity: 0.6;
    transform: scale(1);
  }
  25% { 
    opacity: 0.8;
    transform: scale(1.02);
  }
  50% { 
    opacity: 0.4;
    transform: scale(0.98);
  }
  75% { 
    opacity: 0.7;
    transform: scale(1.01);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(2deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes growth {
  0% { transform: scale(0.8) rotate(-5deg); opacity: 0.7; }
  50% { transform: scale(1.1) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.02) rotate(1deg); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(125, 213, 92, 0.3); }
  50% { box-shadow: 0 0 40px rgba(125, 213, 92, 0.6); }
}

/* ---------- Floating Particles Background ---------- */
.floating-particles {
  display: none;
}

/* ---------- Main Layout ---------- */
.main-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.main-container:hover::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  max-width: 600px;
  width: 100%;
  text-align: center;
}

/* ---------- Logo Section ---------- */
.logo-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle {
  position: relative;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  animation: none;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-circle::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: none;
}

.logo-svg {
  width: 320px;
  height: 160px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  opacity: 1;
  position: relative;
  z-index: 4;
}

.growth-rings {
  display: none;
}

.growth-rings::before {
  display: none;
}

/* ---------- Plant Decorations ---------- */
.plant-decorations {
  display: none;
}

/* ---------- Typography ---------- */
.text-section {
  animation: none;
  animation-delay: 0.3s;
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
  margin-top: var(--space-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  animation: none;
  animation-delay: 0.6s;
}

.app-store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-green);
  border-radius: var(--radius-full);
  padding: 18px 36px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
  overflow: hidden;
  font-weight: 500;
  font-size: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
}

.app-store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.15),
    0 6px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.98);
}

.app-store-btn:active {
  transform: translateY(-1px);
  transition: all var(--transition-fast);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 2;
}

.apple-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform var(--transition-normal);
}

.app-store-btn:hover .apple-icon {
  transform: scale(1.1) rotate(5deg);
}

.btn-glow {
  position: absolute;
  inset: -2px;
  background: var(--glow-gradient);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.app-store-btn:hover .btn-glow {
  opacity: 1;
}

/* ---------- Contact Section ---------- */
.contact-section {
  animation: none;
  animation-delay: 0.9s;
}

.help-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-lg);
}

.mail-link {
  color: var(--mint-green);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  position: relative;
}

.mail-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--accent-green);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: auto;
  padding-top: var(--space-xl);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-content a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-content a:hover {
  color: var(--mint-green);
}

.divider {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
  .main-container {
    padding: var(--space-md);
  }
  
  .content-wrapper {
    gap: var(--space-lg);
  }
  
  .logo-circle {
    width: 150px;
    height: 150px;
  }
  
  .logo-svg {
    width: 280px;
    height: 140px;
  }
  
  .leaf {
    font-size: 20px;
  }
  
  .app-store-btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .divider {
    display: none;
  }
  
  body::after {
    background-image: 
      radial-gradient(circle at 30% 30%, rgba(125, 213, 92, 0.12) 0%, transparent 40%),
      radial-gradient(circle at 70% 70%, rgba(168, 230, 163, 0.08) 0%, transparent 35%),
      radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 25%);
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: var(--space-sm);
  }
  
  .logo-circle {
    width: 120px;
    height: 120px;
  }
  
  .logo-svg {
    width: 240px;
    height: 120px;
  }
  
  .leaf {
    font-size: 16px;
  }
  
  .leaf-1 {
    left: -20px;
  }
  
  .leaf-3 {
    left: -25px;
  }
  
  body::after {
    background-image: 
      radial-gradient(circle at 40% 40%, rgba(125, 213, 92, 0.1) 0%, transparent 35%),
      radial-gradient(circle at 60% 60%, rgba(168, 230, 163, 0.06) 0%, transparent 30%);
  }
}

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

@media (prefers-color-scheme: dark) {
  .app-store-btn {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
  }
}

/* ---------- Focus Styles ---------- */
.app-store-btn:focus-visible,
.mail-link:focus-visible,
.footer-content a:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Print Styles ---------- */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  
  .floating-particles,
  .plant-decorations {
    display: none;
  }
}

/* ---------- Legal Pages (Terms & Privacy) ---------- */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  padding: var(--space-2xl);
  margin: var(--space-2xl) auto;
  max-width: 900px;
  width: 90%;
  z-index: 2;
}

.glass h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  text-align: center;
}

.glass h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--mint-green);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.glass p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
  text-align: left;
}

.glass .effective-date {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: 0.9375rem;
}

.glass ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-md);
}

.glass ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.glass ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.25rem;
  color: var(--accent-green);
}

.glass address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
}

.glass a {
  color: var(--accent-green);
  text-decoration: none;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.glass a:hover {
  color: var(--mint-green);
  border-bottom-color: var(--mint-green);
}

/* Legal page navigation */
nav {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 10;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-2px);
}

/* Legal page footer */
footer {
  position: relative;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-2xl);
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-normal);
}

footer a:hover {
  color: var(--mint-green);
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
  .glass {
    padding: var(--space-lg);
    margin: var(--space-lg) auto;
    width: 95%;
  }
  
  .glass h1 {
    font-size: 2rem;
  }
  
  .glass h2 {
    font-size: 1.25rem;
  }
  
  nav {
    top: var(--space-sm);
    left: var(--space-sm);
  }
  
  nav a {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .glass {
    padding: var(--space-md);
    margin: var(--space-md) auto;
  }
  
  .glass ul li {
    padding-left: var(--space-md);
  }
}