:root {
  --surface: #FCFAF5;
  --surface-dim: #EBE9E4;
  --surface-bright: #FFFFFF;
  --surface-container-lowest: #FFFFFF;
  --surface-container-low: #F6F4EF;
  --surface-container: #F1EFEA;
  --surface-container-high: #ECEAE5;
  --surface-container-highest: #E6E4DF;
  
  --on-surface: #1F201D;
  --on-surface-variant: #4A4D46;
  --inverse-surface: #2E312D;
  --inverse-on-surface: #F4F3ED;
  --outline: #777C72;
  --outline-variant: #C7CBC2;
  
  --primary: #4B633D;
  --on-primary: #FFFFFF;
  --primary-container: #D1E8C1;
  --on-primary-container: #15200D;
  
  --secondary: #8E513A;
  --on-secondary: #FFFFFF;
  --secondary-container: #FFDBD0;
  --on-secondary-container: #3A1406;
  
  --tertiary: #3A6070;
  --on-tertiary: #FFFFFF;
  --tertiary-container: #CDE5F3;
  --on-tertiary-container: #0A1E28;

  --reward: #D99C3B;
  --on-reward: #FFFFFF;
  --reward-container: #FFEBC4;
  
  --error: #B33939;
  --on-error: #FFFFFF;
  --error-container: #FFD9D9;
  --on-error-container: #400000;
  
  --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography Classes */
.display-lg {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: -0.02em;
}
.headline-lg {
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.01em;
}
.title-md {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}
.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}
.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
.label-sm {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.02em;
}

/* Utils */
.text-primary { color: var(--primary); }
.text-variant { color: var(--on-surface-variant); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-high { background-color: var(--surface-container-high); }

.bg-primary-container { background-color: var(--primary-container); }
.text-on-primary-container { color: var(--on-primary-container); }
.bg-secondary-container { background-color: var(--secondary-container); }
.text-on-secondary-container { color: var(--on-secondary-container); }
.bg-tertiary-container { background-color: var(--tertiary-container); }
.text-on-tertiary-container { color: var(--on-tertiary-container); }
.bg-reward-container { background-color: var(--reward-container); }
.text-reward { color: var(--reward); }
.bg-secondary { background-color: var(--secondary); }
.text-on-secondary { color: var(--on-secondary); }

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
  border: none;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(75, 99, 61, 0.35);
  transform: translateY(-2px);
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--outline);
  color: var(--on-surface);
}
.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}
.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Navbar Glassmorphism Enhancement */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(252, 250, 245, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid rgba(235, 233, 228, 0.5);
  transition: padding 0.3s ease, background-color 0.3s ease;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  height: auto;
  width: auto;
  max-height: 90px;
  object-fit: contain;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--on-surface);
  cursor: pointer;
  padding: 8px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-links {
  display: flex;
  gap: 48px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-actions {
  display: flex;
  align-items: center;
}
.lang-switch {
  font-weight: 600;
  font-size: 16px;
  color: var(--on-surface-variant);
  margin-right: 20px;
  transition: color 0.2s;
  text-transform: uppercase;
}
.lang-switch:hover {
  color: var(--primary);
}

/* Hero Section Enhanced */
.hero {
  position: relative;
  padding: 140px 0 80px 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--surface);
}

/* Aurora Dynamic Background */
.aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  opacity: 0.8;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 15s infinite ease-in-out alternate;
  opacity: 0.6;
}
.aurora-1 {
  width: 600px;
  height: 600px;
  background: var(--primary-container);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}
.aurora-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary-container);
  bottom: -150px;
  left: -50px;
  animation-delay: -5s;
}
.aurora-3 {
  width: 400px;
  height: 400px;
  background: var(--tertiary-container);
  top: 30%;
  left: 30%;
  animation-delay: -10s;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.9); }
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.hero-content {
  flex: 1;
  max-width: 550px;
}
.hero-logo-wrapper {
  margin-bottom: 24px;
}
.hero-big-logo {
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  animation: fadeUp 0.8s ease-out forwards;
}

.glass-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  margin: 24px 0 40px 0;
  font-size: 20px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.btn-glow {
  box-shadow: 0 8px 32px rgba(75, 99, 61, 0.3);
}
.btn-glow:hover {
  box-shadow: 0 12px 40px rgba(75, 99, 61, 0.4);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-image-container {
  position: relative;
}
.hero-image {
  max-width: 320px;
  border-radius: 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 0 0 12px rgba(255,255,255,0.4);
  z-index: 2;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero-image:hover {
  transform: scale(1.02) rotate(-1deg);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: bobble 4s infinite ease-in-out;
}
.badge-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}
.badge-1 {
  bottom: 20%;
  left: -50px;
  animation-delay: -2s;
}
.badge-2 {
  bottom: 10%;
  right: -40px;
  animation-delay: -3s;
}
.badge-3 {
  top: 15%;
  left: -30px;
  animation-delay: -1s;
}
.badge-4 {
  top: 45%;
  right: -50px;
  animation-delay: -0.5s;
}

@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Intro Animations */
.fade-up-1 { opacity: 0; animation: fadeUp 0.8s ease-out 0.2s forwards; }
.fade-up-2 { opacity: 0; animation: fadeUp 0.8s ease-out 0.4s forwards; }
.fade-up-3 { opacity: 0; animation: fadeUp 0.8s ease-out 0.6s forwards; }
.fade-in-scale { opacity: 0; animation: fadeInScale 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Section Common */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}
.section-header p {
  margin-top: 16px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  background-color: var(--surface-bright);
  padding: 32px 24px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(75, 99, 61, 0.04);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.interactive-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(75, 99, 61, 0.08);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-card h3 {
  margin-bottom: 12px;
}

/* Showcase */
.showcase-gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 40px 0;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.showcase-gallery::-webkit-scrollbar {
  display: none;
}
.showcase-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.showcase-item img {
  height: 500px;
  border-radius: 32px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.showcase-item img:hover {
  transform: scale(1.03);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background-color: var(--surface-bright);
  padding: 40px 24px;
  border-radius: 24px;
  border: 1px solid var(--outline-variant);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.pricing-card.highlight {
  background: linear-gradient(145deg, #1A1F16, #0A0E08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(75, 99, 61, 0.2);
}
.pricing-card.highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(75, 99, 61, 0.3);
}
.pricing-card.highlight .title-md {
  color: #FFFFFF;
}
.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.price {
  margin: 16px 0 32px 0;
}
.price span {
  color: var(--on-surface-variant);
}
.pricing-card.highlight .price span {
  color: rgba(255, 255, 255, 0.6);
}
.pricing-features {
  flex: 1;
  margin-bottom: 32px;
}
.pricing-features li {
  margin-bottom: 16px;
  position: relative;
  padding-left: 28px;
  color: var(--on-surface);
}
.pricing-card.highlight .pricing-features li {
  color: rgba(255, 255, 255, 0.9);
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}
.pricing-card.highlight .pricing-features li::before {
  color: var(--primary-container);
}
.pricing-card .btn {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--surface-container-highest);
  padding: 40px 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-logo {
  height: auto;
  width: auto;
  max-height: 60px;
  object-fit: contain;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-links a {
  color: var(--on-surface-variant);
}
.footer-links a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    padding: 120px 0 60px 0;
    min-height: auto;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    margin-bottom: 60px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .floating-badge {
    display: none; /* Hide floating badges on mobile for cleaner look */
  }
  .pricing-card.highlight {
    transform: scale(1);
  }
  .pricing-card.highlight:hover {
    transform: scale(1.02) translateY(-8px);
  }
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--surface-bright);
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    clip-path: circle(0% at top right);
    transition: clip-path 0.4s ease-in-out;
  }
  .nav-menu.active {
    clip-path: circle(150% at top right);
  }
  .nav-links {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    text-align: center;
  }
  .nav-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .display-lg {
    font-size: 36px;
    line-height: 44px;
  }
  .headline-lg {
    font-size: 24px;
    line-height: 32px;
  }
  .showcase-item img {
    height: 400px;
  }
  .hero-image {
    max-width: 260px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

/* Legal Pages */
main.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 160px 20px 80px 20px;
}
.legal-content h1 {
  font-size: 32px;
  margin-bottom: 24px;
}
.legal-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--primary);
}
.legal-content h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 12px;
}
.legal-content p, .legal-content li {
  line-height: 1.7;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
}
.legal-content ul {
  padding-left: 20px;
  margin-bottom: 24px;
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}
.legal-content hr {
  border: none;
  border-top: 1px solid var(--outline-variant);
  margin: 40px 0;
}
