/* ============================================
   FINANCEMA - Custom Styles
   Modern, Elegant & Professional Design
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1e3a5f;
    --primary-light: #2c4a6e;
    --primary-dark: #152a45;
    --secondary: #f97316;
    --secondary-light: #fb923c;
    --secondary-dark: #ea580c;
    --accent: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #152a45 50%, #0f172a 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius-sm: 0.375rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keyframe Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 0 40px rgba(249, 115, 22, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scale-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Livewire Navigation Loading Bar */
[wire\:loading].wire-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-secondary);
    z-index: 9999;
    animation: shimmer 1s infinite;
}

/* Page transition effect */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

/* Animation Utility Classes */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-bounce-subtle {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

/* Hover Animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-glass {
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-lg);
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    letter-spacing: -0.025em;
}

/* Logo Styles */
.navbar-logo {
    height: 45px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    background: white;
    padding: 4px;
}

.navbar-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.footer-logo {
    height: 60px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    background: white;
    padding: 6px;
}

.footer-logo:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: white;
}

.navbar-nav .nav-link.active {
    color: var(--secondary-light);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.btn-primary-gradient {
    background: var(--gradient-secondary);
    background-size: 200% 200%;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-gradient:hover::before {
    left: 100%;
}

.btn-primary-gradient:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.5);
    color: white;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.btn-primary-gradient:active {
    transform: translateY(0) scale(0.98);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.hero-decoration-1 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    top: -200px;
    right: -200px;
}

.hero-decoration-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 50px;
    color: var(--secondary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--gradient-secondary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(249, 115, 22, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.hero-phone-mockup {
    position: relative;
    z-index: 1;
}

.phone-frame-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.phone-frame.main-phone {
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.phone-frame.main-phone:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.phone-frame img {
    width: 100%;
    border-radius: 35px;
    display: block;
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, #333, #444);
    border-radius: 3px;
}

.phone-notch::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #1e3a5f 30%, #0a1628 70%);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(30, 58, 95, 0.5);
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    z-index: -1;
}

/* Download Section Phone Mockups */
.download-phones-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    perspective: 1500px;
}

.download-phone {
    position: absolute;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 35px;
    padding: 8px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-phone img {
    width: 100%;
    border-radius: 28px;
    display: block;
}

.download-phone .phone-notch {
    width: 80px;
    height: 22px;
    top: 14px;
    border-radius: 0 0 15px 15px;
}

.download-phone .phone-notch::before {
    width: 40px;
    height: 4px;
    top: 8px;
}

.download-phone .phone-notch::after {
    width: 7px;
    height: 7px;
    top: 6px;
    right: 10px;
}

.download-phone.center-phone {
    width: 200px;
    z-index: 3;
    transform: translateZ(50px);
}

.download-phone.left-phone {
    width: 160px;
    z-index: 2;
    transform: translateX(-140px) translateZ(-30px) rotateY(15deg);
    opacity: 0.85;
}

.download-phone.right-phone {
    width: 160px;
    z-index: 2;
    transform: translateX(140px) translateZ(-30px) rotateY(-15deg);
    opacity: 0.85;
}

.download-phones-container:hover .download-phone.center-phone {
    transform: translateZ(70px) scale(1.05);
}

.download-phones-container:hover .download-phone.left-phone {
    transform: translateX(-160px) translateZ(-20px) rotateY(10deg);
    opacity: 0.9;
}

.download-phones-container:hover .download-phone.right-phone {
    transform: translateX(160px) translateZ(-20px) rotateY(-10deg);
    opacity: 0.9;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 0;
    background: white;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 58, 95, 0.1);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-icon.primary {
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary);
}

.feature-icon.secondary {
    background: rgba(249, 115, 22, 0.1);
    color: var(--secondary);
}

.feature-icon.accent {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.feature-icon i {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon i {
    animation: bounce-subtle 0.5s ease;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    padding: 100px 0;
    background: var(--gray-100);
    position: relative;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-card:hover .step-number {
    animation: bounce-subtle 0.6s ease;
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.3);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(30, 58, 95, 0.3);
}

.step-connector {
    position: absolute;
    top: 60px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    z-index: 0;
}

.step-card:last-child .step-connector {
    display: none;
}

.step-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.step-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ============================================
   FORMULAS SECTION
   ============================================ */
.formulas-section {
    padding: 100px 0;
    background: white;
}

.formula-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    border: 2px solid var(--gray-200);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.formula-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.formula-card.featured {
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.2);
}

.formula-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 35px 70px rgba(249, 115, 22, 0.3);
}

.formula-card.featured::before {
    content: 'Populaire';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.formula-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.formula-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.formula-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.formula-icon.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
    color: white;
}

.formula-icon.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
    color: white;
}

.formula-icon.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: white;
}

.formula-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.formula-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.formula-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

.formula-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.formula-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
}

.formula-features li:last-child {
    border-bottom: none;
}

.formula-features li i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 100px 0;
    background: var(--gray-100);
}

.accordion-item {
    background: white;
    border: none;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.5rem;
    background: white;
    color: var(--dark);
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-size: 1rem;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-section {
    padding: 100px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.download-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.download-stores {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.store-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}

.store-button i {
    font-size: 2rem;
}

.store-button .store-text {
    text-align: left;
}

.store-button .store-text small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-button .store-text span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
    background: var(--dark);
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.store-badge {
    opacity: 0.8;
    transition: var(--transition);
}

.store-badge:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-dark);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--radius);
    }

    .hero-phone-mockup {
        margin-top: 3rem;
    }

    .phone-frame {
        max-width: 220px;
    }

    .step-connector {
        display: none;
    }

    .formula-card.featured {
        transform: none;
    }

    .formula-card.featured:hover {
        transform: translateY(-10px);
    }

    .download-phones-container {
        height: 400px;
    }

    .download-phone.center-phone {
        width: 160px;
    }

    .download-phone.left-phone {
        width: 120px;
        transform: translateX(-100px) translateZ(-30px) rotateY(15deg);
    }

    .download-phone.right-phone {
        width: 120px;
        transform: translateX(100px) translateZ(-30px) rotateY(-15deg);
    }
}

@media (max-width: 767.98px) {
    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .download-stores {
        justify-content: center;
    }

    .download-phones-container {
        height: 350px;
    }

    .download-phone.center-phone {
        width: 140px;
    }

    .download-phone.left-phone,
    .download-phone.right-phone {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-stat {
        flex: 1;
    }

    .store-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-header {
    background: var(--gradient-hero);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.legal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
}

.legal-updated {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    position: relative;
}

.legal-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.legal-nav {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.legal-nav ul li {
    margin-bottom: 0.5rem;
}

.legal-nav ul li:last-child {
    margin-bottom: 0;
}

.legal-nav a {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.legal-nav a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.legal-article {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.legal-article:last-of-type {
    border-bottom: none;
}

.legal-article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.legal-article h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.5rem 0 0.75rem;
}

.legal-article p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-article ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-article ul li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cookie-type {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.cookie-type h5 {
    margin-top: 0;
}

.cookie-type .table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-type .table code {
    background: var(--gray-200);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-info-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-item h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-item a,
.contact-info-item p {
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--secondary);
}

.social-link-contact {
    width: 45px;
    height: 45px;
    border-radius: var(--radius);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.25rem;
}

.social-link-contact:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateY(-3px);
}

.contact-form-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.contact-form-card .form-label {
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.contact-form-card .form-check-label {
    color: var(--gray-600);
}

.contact-form-card .form-check-label a {
    color: var(--secondary);
}

.faq-quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-quick-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.faq-quick-link i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.faq-quick-link span {
    font-weight: 500;
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* ============================================
   RESPONSIVE LEGAL & CONTACT
   ============================================ */
@media (max-width: 767.98px) {
    .legal-card {
        padding: 1.5rem;
    }

    .legal-nav {
        padding: 1rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .faq-quick-link {
        padding: 0.75rem 1rem;
    }

    .faq-quick-link i {
        font-size: 1.25rem;
    }
}
