:root {
  --primary: #5b7c54;
  --primary-dark: #4a6443;
  --primary-light: #82a67d;
  --accent: #e8a87c;
  --accent-dark: #d4956a;
  --bg: #FDFCF0;
  --bg-warm: #F9F7E8;
  --card: #ffffff;
  --text: #3d402f;
  --text-light: #5a5e4d;
  --text-muted: #9a9e8b;
  --border: rgba(130, 166, 125, 0.2);
  --success: #85b79c;
  --warning: #f9c784;
  --error: #e07a7a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: white;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, 30px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.float-bg {
  animation: float 15s infinite ease-in-out;
}

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-decor::before,
.bg-decor::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.bg-decor::before {
  top: -5%;
  left: -5%;
  width: 45%;
  height: 45%;
  background: rgba(130, 166, 125, 0.15);
  animation: float 15s infinite ease-in-out;
}

.bg-decor::after {
  bottom: 5%;
  right: -5%;
  width: 40%;
  height: 40%;
  background: rgba(232, 168, 124, 0.15);
  animation: float 15s infinite ease-in-out reverse;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.5s ease;
  padding: 1.5rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

.navbar-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.navbar-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: 0 4px 6px rgba(91, 124, 84, 0.3);
  transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: rotate(12deg);
}

.navbar-brand-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #2d3a28;
  letter-spacing: -0.025em;
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
}

.navbar-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-link:hover {
  color: var(--primary);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-cta {
  background: var(--primary);
  color: white;
  padding: 0.625rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(91, 124, 84, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar-cta:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.navbar-cta:active {
  transform: scale(0.95);
}

.navbar-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.mobile-menu-close {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.footer {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

.footer-brand-text {
  text-align: left;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #2d3a28;
}

.footer-brand-slogan {
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 3rem;
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--text-light);
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-weight: 500;
}

.footer-tagline {
  font-size: 0.875rem;
  font-style: italic;
  font-weight: bold;
  color: var(--primary-light);
}

.glass-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 2.5rem;
  transition: all 0.5s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
}

.magnetic-card {
  transition: transform 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 15px rgba(91, 124, 84, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-0.25rem);
  box-shadow: 0 15px 20px rgba(91, 124, 84, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--primary);
}

.btn-secondary:hover {
  background: white;
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.section {
  padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 1.5rem;
  }
}

.container {
  max-width: 80rem;
  margin: 0 auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #2d3a28;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 40rem;
}

.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.icon-box-green {
  background: rgba(130, 166, 125, 0.1);
  color: var(--primary);
}

.icon-box-orange {
  background: rgba(232, 168, 124, 0.1);
  color: var(--accent);
}

.icon-box-stone {
  background: rgba(120, 113, 108, 0.1);
  color: #78716c;
}

.parallax-leaf {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.parallax-leaf.visible {
  opacity: 0.3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}
