/*
 * Budget Hub Landing Page External CSS
 * Replaces Tailwind CDN to fix intermittent loading issues
 * All styles are self-contained and CSP-compliant
 */

/* ================================================== 
   CSS CUSTOM PROPERTIES (VARIABLES)
   Replaces the inline Tailwind config 
   ================================================== */
:root {
    /* Primary Theme Colors - Updated for Beta Launch */
    --primary: #22C55E;  /* Subtle green for beta launch */
    --primary-dark: #16A34A;  /* Darker green for hover states */
    --primary-light: #4ADE80;  /* Lighter green for accents */
    --secondary: #7e57c2;
    
    /* Background Colors */
    --background: #1a1f37;
    --background-lighter: #252e46;
    --card: #2a2f45;
    --card-hover: #313855;
    
    /* Status Colors */
    --income: #34D399;
    --expenses: #F87171;
    --savings: #7e57c2;
    --success: #34D399;
    --warning: #FBBF24;
    --error: #F87171;
    --info: #60A5FA;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --rounded-sm: 0.125rem;
    --rounded: 0.25rem;
    --rounded-md: 0.375rem;
    --rounded-lg: 0.5rem;
    --rounded-xl: 0.75rem;
    --rounded-2xl: 1rem;
    --rounded-full: 9999px;
}

/* ================================================== 
   RESET & BASE STYLES 
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: #ffffff;
    overflow-x: hidden;
}

/* ================================================== 
   KEYFRAME ANIMATIONS
   Moved from inline Tailwind config to external CSS
   ================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

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

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

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ================================================== 
   UTILITY CLASSES - LAYOUT & POSITIONING
   ================================================== */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-full { top: 100%; }
.right-6 { right: 1.5rem; }
.top-6 { top: 1.5rem; }
.top-24 { top: 6rem; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }
.z-\[999\] { z-index: 999; }

/* ================================================== 
   UTILITY CLASSES - DISPLAY & FLEXBOX
   ================================================== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Grid System */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

/* ================================================== 
   UTILITY CLASSES - SIZING
   ================================================== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }
.w-3 { width: 0.75rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-15 { width: 3.75rem; }
.w-16 { width: 4rem; }
.w-\[90\%\] { width: 90%; }
.w-\[40vw\] { width: 40vw; }
.w-\[35vw\] { width: 35vw; }

.h-auto { height: auto; }
.h-full { height: 100%; }
.h-3 { height: 0.75rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-15 { height: 3.75rem; }
.h-16 { height: 4rem; }
.h-\[40vw\] { height: 40vw; }
.h-\[35vw\] { height: 35vw; }
.h-\[250px\] { height: 250px; }

.min-h-screen { min-height: 100vh; }
.min-h-\[400px\] { min-height: 400px; }
.min-w-\[300px\] { min-width: 300px; }
.min-w-\[250px\] { min-width: 250px; }
.min-h-\[300px\] { min-height: 300px; }
.min-h-\[250px\] { min-height: 250px; }

.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-\[90\%\] { max-width: 90%; }

/* ================================================== 
   UTILITY CLASSES - SPACING
   ================================================== */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-11 { padding-left: 2.75rem; padding-right: 2.75rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-16 { padding-bottom: 4rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-11 { padding-left: 2.75rem; }
.pr-4 { padding-right: 1rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.ml-2 { margin-left: 0.5rem; }

/* ================================================== 
   UTILITY CLASSES - COLORS & BACKGROUNDS
   ================================================== */
.text-white { color: #ffffff; }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-income { color: var(--income); }
.text-expenses { color: var(--expenses); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/10 { background-color: rgba(34, 197, 94, 0.1); }
.bg-primary\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/\[0\.02\] { background-color: rgba(255, 255, 255, 0.02); }
.bg-white\/\[0\.05\] { background-color: rgba(255, 255, 255, 0.05); }
.bg-transparent { background-color: transparent; }
.bg-\[#1e2235\] { background-color: #1e2235; }
.bg-\[#F87171\] { background-color: #F87171; }
.bg-\[#FBBF24\] { background-color: #FBBF24; }
.bg-\[#34D399\] { background-color: #34D399; }
.bg-\[#1DA1F2\] { background-color: #1DA1F2; }
.bg-\[#4267B2\] { background-color: #4267B2; }
.bg-\[#0077B5\] { background-color: #0077B5; }
.bg-success\/10 { background-color: rgba(52, 211, 153, 0.1); }
.bg-error\/10 { background-color: rgba(248, 113, 113, 0.1); }

/* Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.from-primary { --tw-gradient-from: var(--primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(34, 197, 94, 0)); }
.to-secondary { --tw-gradient-to: var(--secondary); }
.from-background { --tw-gradient-from: var(--background); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(26, 31, 55, 0)); }
.to-background-lighter { --tw-gradient-to: var(--background-lighter); }
.from-transparent { --tw-gradient-from: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0)); }
.from-background-lighter { --tw-gradient-from: var(--background-lighter); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 46, 70, 0)); }
.to-background { --tw-gradient-to: var(--background); }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* ================================================== 
   UTILITY CLASSES - BORDERS
   ================================================== */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }

.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-primary { border-color: var(--primary); }
.border-success { border-color: var(--success); }
.border-error { border-color: var(--error); }
.border-warning { border-color: var(--warning); }
.border-info { border-color: var(--info); }
.border-\[#3a3f5c\] { border-color: #3a3f5c; }

.rounded { border-radius: var(--rounded); }
.rounded-sm { border-radius: var(--rounded-sm); }
.rounded-md { border-radius: var(--rounded-md); }
.rounded-lg { border-radius: var(--rounded-lg); }
.rounded-xl { border-radius: var(--rounded-xl); }
.rounded-2xl { border-radius: var(--rounded-2xl); }
.rounded-full { border-radius: var(--rounded-full); }
.rounded-b-lg { border-bottom-left-radius: var(--rounded-lg); border-bottom-right-radius: var(--rounded-lg); }

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-x > :not([hidden]) ~ :not([hidden]) { border-left-width: 1px; }
.divide-white\/10 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(255, 255, 255, 0.1); }

/* ================================================== 
   UTILITY CLASSES - SHADOWS & EFFECTS
   ================================================== */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-primary\/30 { box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.3), 0 4px 6px -2px rgba(34, 197, 94, 0.05); }

.blur-\[60px\] { filter: blur(60px); }
.blur-\[100px\] { filter: blur(100px); }

.opacity-15 { opacity: 0.15; }
.opacity-0 { opacity: 0; }
.opacity-70 { opacity: 0.7; }
.opacity-1 { opacity: 1; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* ================================================== 
   UTILITY CLASSES - TYPOGRAPHY
   ================================================== */
.font-sans { font-family: var(--font-sans); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-end { text-align: end; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.break-words { overflow-wrap: break-word; }
.whitespace-nowrap { white-space: nowrap; }

/* ================================================== 
   UTILITY CLASSES - TRANSITIONS & TRANSFORMS
   ================================================== */
.transition-all { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.duration-300 { transition-duration: 300ms; }

.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

.hover\:translate-y-\[-2px\]:hover { --tw-translate-y: -2px; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:translate-y-\[-3px\]:hover { --tw-translate-y: -3px; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:translate-y-\[-5px\]:hover { --tw-translate-y: -5px; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:translate-y-\[-10px\]:hover { --tw-translate-y: -10px; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

.translate-y-5 { --tw-translate-y: 1.25rem; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

.hover\:scale-110:hover { --tw-scale-x: 1.1; --tw-scale-y: 1.1; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

/* ================================================== 
   UTILITY CLASSES - HOVER & FOCUS STATES
   ================================================== */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-primary-light:hover { color: var(--primary-light); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-primary-dark:hover { background-color: var(--primary-dark); }
.hover\:bg-primary\/10:hover { background-color: rgba(34, 197, 94, 0.1); }
.hover\:bg-card-hover:hover { background-color: var(--card-hover); }
.hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/\[0\.05\]:hover { background-color: rgba(255, 255, 255, 0.05); }
.hover\:border-primary:hover { border-color: var(--primary); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-primary:focus { border-color: var(--primary); }
.focus\:ring-2:focus { box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); }
.focus\:ring-primary\/20:focus { --tw-ring-color: rgba(34, 197, 94, 0.2); }

/* ================================================== 
   UTILITY CLASSES - ANIMATION CLASSES
   ================================================== */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-in { animation: fadeIn 0.8s ease-in-out; }
.animate-fade-up { animation: fadeInUp 0.8s ease-in-out; }
.animate-fade-down { animation: fadeInDown 0.8s ease-in-out; }
.animate-fade-left { animation: fadeInLeft 0.8s ease-in-out; }
.animate-fade-right { animation: fadeInRight 0.8s ease-in-out; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ================================================== 
   UTILITY CLASSES - FORM ELEMENTS
   ================================================== */
input[type="email"], input[type="text"], input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #1e2235;
    border: 1px solid #3a3f5c;
    border-radius: var(--rounded-lg);
    color: #ffffff;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="email"]:focus, input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

input[type="range"] {
    width: 100%;
    height: 0.5rem;
    background-color: #1e2235;
    border-radius: var(--rounded-lg);
    appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--primary);
    border-radius: var(--rounded-full);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--primary);
    border-radius: var(--rounded-full);
    cursor: pointer;
    border: none;
}

input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

button {
    cursor: pointer;
}

/* ================================================== 
   COMPONENT CLASSES - SPECIFIC TO LANDING PAGE
   ================================================== */

/* Header Positioning */
#header {
    background-color: transparent;
    transition: background-color 300ms;
}

#header.scrolled {
    background-color: rgba(26, 31, 55, 0.95);
    backdrop-filter: blur(8px);
}

/* Mobile Menu Button Styling - Beta Launch Green Theme */
#mobile-menu-button, .mobile-menu-button, .hamburger-menu, .nav-toggle {
    background: var(--primary) !important; /* Subtle green */
    color: white !important;
    border: none !important;
    padding: 0.5rem !important;
    border-radius: var(--rounded-lg) !important;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#mobile-menu-button:hover, .mobile-menu-button:hover, .hamburger-menu:hover, .nav-toggle:hover {
    background: var(--primary-dark) !important; /* Darker green hover */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3) !important;
}

#mobile-menu-button:focus, .mobile-menu-button:focus, .hamburger-menu:focus, .nav-toggle:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5) !important;
}

/* Mobile Menu Button Text/Icon - Ensure White Color */
#mobile-menu-button, .mobile-menu-button, .hamburger-menu, .nav-toggle {
    color: white !important;
}

#mobile-menu-button *, .mobile-menu-button *, .hamburger-menu *, .nav-toggle * {
    color: white !important;
}

#mobile-menu-button i, .mobile-menu-button i, .hamburger-menu i, .nav-toggle i {
    color: white !important;
}

/* Mobile Menu Dropdown */
#mobile-menu {
    background-color: var(--card) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Mobile Menu Navigation Links - Ensure White Text */
#mobile-menu nav, #mobile-menu nav *, #mobile-menu a {
    color: white !important;
}

#mobile-menu nav a:hover {
    color: white !important;
}

/* Ensure mobile menu button is hidden on desktop */
@media (min-width: 768px) {
    #mobile-menu-button, .mobile-menu-button {
        display: none !important;
    }
}

/* Background Elements */
.bg-gradient-orb {
    position: absolute;
    border-radius: var(--rounded-full);
    filter: blur(60px);
    opacity: 0.15;
    background: linear-gradient(45deg, var(--primary), transparent);
}

.bg-gradient-orb.secondary {
    background: linear-gradient(45deg, var(--secondary), transparent);
}

/* Demo Tab System */
.demo-tab {
    padding: 0.75rem 1.5rem;
    border-radius: var(--rounded-full);
    font-weight: 500;
    transition: all 150ms;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: transparent;
}

.demo-tab.active {
    background-color: var(--primary);
    color: #ffffff;
}

.demo-tab:not(.active) {
    color: rgba(255, 255, 255, 0.7);
}

.demo-tab:not(.active):hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.demo-content {
    opacity: 0;
    transition: opacity 300ms ease;
}

.demo-content.active {
    opacity: 1;
}

/* FAQ Section - Enhanced styling with beautiful effects */
.faq-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.faq-card:hover::before {
    opacity: 1;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
}

.faq-question::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c5ce7, #34D399);
    transition: width 0.4s ease;
}

.faq-card:hover .faq-question::after {
    width: 60px;
}

.faq-answer {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-size: 0.95rem;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.faq-card:hover .faq-answer {
    opacity: 1;
    color: rgba(255, 255, 255, 0.85);
}

/* FAQ Section container improvements */
.faq-section .max-w-3xl {
    position: relative;
}

/* Add subtle animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-card {
    animation: fadeInUp 0.6s ease forwards;
}

.faq-card:nth-child(2) { animation-delay: 0.1s; }
.faq-card:nth-child(3) { animation-delay: 0.2s; }
.faq-card:nth-child(4) { animation-delay: 0.3s; }
.faq-card:nth-child(5) { animation-delay: 0.4s; }
.faq-card:nth-child(6) { animation-delay: 0.5s; }

/* Footer Links Alignment - Beta Launch Fix */
footer .flex.flex-wrap {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
}

footer .flex.flex-col.md\\:flex-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

/* Desktop footer alignment */
@media (min-width: 768px) {
    footer .flex.flex-col.md\\:flex-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    footer .flex.flex-wrap {
        justify-content: flex-end !important;
        align-items: center !important;
    }
}

/* Mobile footer alignment */
@media (max-width: 767px) {
    footer .flex.flex-wrap {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    footer .flex.flex-col.md\\:flex-row {
        text-align: center !important;
        align-items: center !important;
    }
}

/* Footer link styling improvements */
footer a {
    display: inline-block !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
}

/* Message System */
#messagesContainer .animate-fade-in {
    animation: fadeInRight 0.5s ease forwards;
}

.message-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    transition: color 150ms;
    cursor: pointer;
}

.message-close:hover {
    color: #ffffff;
}

/* Reveal Animation System */
.reveal-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================== 
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ================================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .md\:text-left { text-align: left; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:justify-between { justify-content: space-between; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:items-center { align-items: center; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:max-w-md { max-width: 28rem; }
    .md\:divide-y-0 > :not([hidden]) ~ :not([hidden]) { border-top-width: 0; }
    .md\:divide-x > :not([hidden]) ~ :not([hidden]) { border-left-width: 1px; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .mobile-stack {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-center {
        text-align: center;
        justify-content: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
}

/* ================================================== 
   ACCESSIBILITY & REDUCED MOTION
   ================================================== */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-fade-in,
    .animate-fade-up,
    .animate-fade-down,
    .animate-fade-left,
    .animate-fade-right,
    .animate-spin,
    .animate-pulse,
    .reveal-element {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Focus visible for better keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .focus-visible:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-white\/70 { color: #ffffff; }
    .text-white\/80 { color: #ffffff; }
    .border-white\/10 { border-color: rgba(255, 255, 255, 0.3); }
    .bg-white\/5 { background-color: rgba(255, 255, 255, 0.1); }
}

/* ================================================== 
   PRINT STYLES
   ================================================== */
@media print {
    .fixed, .sticky { position: static !important; }
    .bg-gradient-to-r, .bg-gradient-to-b { background: none !important; }
    .shadow-lg, .shadow-xl { box-shadow: none !important; }
    .animate-float, .animate-fade-in, .animate-fade-up, .animate-fade-down, .animate-fade-left, .animate-fade-right {
        animation: none !important;
    }
}