/* Premium Welcome Page Redesign */
body {
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--off-white);
  transition: opacity 0.3s ease;
}

/* Abstract Topo Background */
.topo-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.ambient-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10vh; left: -10vw;
  width: 50vw; height: 50vw;
  background: var(--brand-green-pale);
  animation-delay: 0s;
}

.blob-2 {
  bottom: 10vh; right: -10vw;
  width: 40vw; height: 40vw;
  background: var(--accent-terracotta-pale);
  animation-delay: -5s;
}

.blob-3 {
  top: 40vh; left: 30vw;
  width: 30vw; height: 30vw;
  background: rgba(223, 215, 201, 0.4);
  animation-delay: -10s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.95); }
}

/* Layout Wrapper */
.welcome-wrapper {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  text-align: center;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-center-logo {
  width: auto;
  max-width: 90vw;
  /* Ensure the logo shrinks dynamically on shorter screens to keep everything above the fold */
  height: clamp(150px, 35vh, 480px); 
  object-fit: contain;
  margin-bottom: clamp(16px, 4vh, 32px);
  filter: drop-shadow(0 20px 40px rgba(44, 94, 59, 0.15));
  animation: floatLogo 8s ease-in-out infinite;
}

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

.hero-subtitle-top {
  font-family: var(--font-fancy);
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--charcoal);
  margin-bottom: clamp(12px, 2vh, 20px);
  letter-spacing: -0.5px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--accent-terracotta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted-gray);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto clamp(24px, 5vh, 40px) auto;
  font-weight: 500;
}

/* Premium Button */
.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-green);
  color: var(--off-white);
  border: none;
  padding: 18px 40px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(44, 94, 59, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-premium:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(44, 94, 59, 0.35);
  background: var(--brand-green-light);
}

.btn-premium:hover::after {
  opacity: 1;
}

.btn-premium svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.btn-premium:hover svg {
  transform: translateX(4px);
}

/* Premium Glass Cards */
.premium-card {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(36, 41, 37, 0.05), inset 0 0 0 1px rgba(255,255,255,0.5);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(0.1s * var(--stagger)) both;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(36, 41, 37, 0.08), inset 0 0 0 1px rgba(255,255,255,0.8);
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--off-white);
  box-shadow: var(--shadow-sm);
}

.icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.bg-green { background: var(--brand-green); }
.bg-terracotta { background: var(--accent-terracotta); }
.bg-charcoal { background: var(--charcoal); }

.feature-content h3 {
  font-family: var(--font-fancy);
  color: var(--brand-green);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-content p {
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 40px;
  margin-bottom: 60px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.section-title {
  font-family: var(--font-fancy);
  font-size: 2rem;
  color: var(--brand-green);
  margin-bottom: 32px;
  text-align: center;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item h4 {
  color: var(--accent-terracotta-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--charcoal);
  line-height: 1.6;
}

/* Footer */
.welcome-footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted-gray);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.legal-links a:hover {
  color: var(--brand-green);
}

.dot {
  color: var(--border-color);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Legal & Policy Pages (Shared Styles) */
.legal-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 24px;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(36, 41, 37, 0.05), inset 0 0 0 1px rgba(255,255,255,0.5);
}

.legal-content h1 {
  font-family: var(--font-fancy);
  color: var(--brand-green);
  margin-bottom: 24px;
  font-size: 2.5rem;
}

.legal-content h2 {
  font-family: var(--font-fancy);
  color: var(--accent-terracotta-dark);
  margin: 32px 0 16px 0;
  font-size: 1.5rem;
}

.legal-content p, .legal-content li {
  color: var(--charcoal);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--brand-green);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--brand-green-light);
}

.back-btn {
  margin-bottom: 24px;
  display: inline-block;
  color: var(--muted-gray) !important;
  text-decoration: none !important;
  font-weight: bold;
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--brand-green) !important;
}
