/* Prevent transition/animation flashes before hydration */
.booting * { transition: none !important; animation: none !important; }

/* Base, nav, and hero essentials to match SSR */
html { -webkit-text-size-adjust: 100%; background: transparent; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; color: #374151; background: transparent; position: relative; }
body::before { content: ""; position: fixed; inset: 0; background: linear-gradient(135deg,#0f766e 0%,#14b8a6 100%); z-index: -1; pointer-events: none; }

.gradient-unified { background: transparent; min-height: 100vh; }
/* Ensure key wrappers don't paint solid backgrounds during SSR */
nav, header, footer, #root { background: transparent !important; }

.nav-bar { background: transparent; box-shadow: none; position: sticky; top: 0; z-index: 50; }
.nav-container { max-width: 1536px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; height: 4rem; }
.nav-logo { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: 1.5rem; color: #0f766e; text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #374151; text-decoration: none; font-weight: 500; font-family: 'Inter', system-ui, sans-serif; padding: 0.5rem 0; }

/* Hero */
.hero-section { min-height: 60vh; display: flex; align-items: center; background: transparent; position: relative; }
.hero-content { max-width: 1536px; margin: 0 auto; padding: 2rem 1rem; color: white; text-align: center; }
.hero-title { font-size: clamp(2rem,5vw,3.5rem); font-weight: 700; margin-bottom: 1rem; font-family: 'Fredoka', system-ui, sans-serif; line-height: 1.2; }
.hero-description { font-size: clamp(1rem,2.5vw,1.25rem); margin: 0 auto 2rem; opacity: 0.95; max-width: 720px; }

/* LCP/hero image container guard to stabilize layout if used */
.hero-image, .lcp-image { display: block; width: 100%; height: auto; }
/* If using background images, reserve space */
.hero-media { width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }

/* Apps section basics to avoid shifts when fonts load */
.apps-section { padding: 2rem 1rem; background: #fff; }
.apps-container { max-width: 1536px; margin: 0 auto; }

@media (max-width: 768px) {
  .nav-container { padding: 0 0.5rem; }
  .nav-links { gap: 1rem; }
}
