/* =========================================================
   INDEX.CSS (FULL) - clean + safe scroll + app helpers
   Paste whole file. Save. Hard refresh (Ctrl+Shift+R).
   ========================================================= */

/* RESET + SCROLL GUARANTEED */
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Root must be allowed to grow */
#root {
  width: 100%;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}

/* MEDIA NEVER OVERFLOWS */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* OPTIONAL: smoother touch scroll on iOS */
.app-container {
  -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------
   Helpers your app uses (missing index.css breaks visuals)
   --------------------------------------------------------- */

/* Gradients */
.bg-gradient-soft {
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(124, 58, 237, 0.20), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 243, 255, 0.80));
}

.bg-gradient-purpose {
  background-image: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 45%, #f59e0b 100%);
}

.text-gradient-purpose {
  background-image: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 40%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Shadows */
.shadow-card {
  box-shadow: 0 10px 30px -15px rgba(2, 6, 23, 0.25);
}
.shadow-glow {
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.35);
}

/* Icon colors */
.text-coral { color: #fb7185; }
.text-solar { color: #f59e0b; }

/* Animations */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-slide-up {
  animation: slideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.animate-fade-in {
  animation: fadeIn 0.30s ease-out both;
}

/* Scrollbar optional */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------------------------------------------------------
   FORCE SCROLL (hotfix to kill "half page" / no scroll bugs)
   This overrides any accidental overflow-hidden / height locks
   --------------------------------------------------------- */
html, body {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#root {
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

.app-container, main, section, header, footer, article, aside, div {
  overflow: visible;
}

/* Kill common lock classes */
.h-full, .h-screen, .min-h-screen {
  height: auto !important;
  min-height: 100vh !important;
}

.overflow-hidden {
  overflow: visible !important;
}

/* If any container sets fixed height, prevent clipping */
[style*="height: 100vh"], [style*="height:100vh"] {
  height: auto !important;
  min-height: 100vh !important;
}
