@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;700;800&family=Figtree:wght@400;500;600;700&display=swap');

:root {
    --bg-light: #F2F6FE;
    --navy: #0B1F3A;
    --primary: #2458E6;
    --primary-hover: #1b45b8;
    --accent-gold: #F2A623;
    --white: #FFFFFF;
    --text-main: #1e293b;
    --text-muted: #475569;
    --border: #e2e8f0;
    
    /* New Vibrant Gradients */
    --gradient-primary: linear-gradient(135deg, #2458E6 0%, #6366f1 100%);
    --gradient-gold: linear-gradient(135deg, #F2A623 0%, #f59e0b 100%);
    --gradient-dark: linear-gradient(135deg, #0B1F3A 0%, #1e1b4b 100%);
    --gradient-text: linear-gradient(135deg, #0B1F3A 0%, #2458E6 100%);
    
    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Figtree', sans-serif;
    
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 15px 30px -5px rgba(0,0,0,0.1), 0 8px 10px -5px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--text-main); background-color: var(--white); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; margin-bottom: 0.75rem; }

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Utility */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.bg-navy { background: var(--gradient-dark); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; background: var(--gradient-primary); color: var(--white); font-weight: 700; padding: 0.8rem 1.5rem; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-family: var(--font-body); font-size: 1rem; box-shadow: 0 4px 14px 0 rgba(36, 88, 230, 0.39); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(36, 88, 230, 0.23); }
.btn:active { transform: scale(0.98); }
.btn-block { display: flex; width: 100%; }

.btn-gold { background: var(--gradient-gold); color: var(--navy); box-shadow: 0 4px 14px 0 rgba(242, 166, 35, 0.39); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 166, 35, 0.4); color: var(--navy); }

/* Cards & Chips */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.chip { display: inline-block; background: rgba(36, 88, 230, 0.08); color: var(--primary); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin: 4px; border: 1px solid rgba(36, 88, 230, 0.2); transition: all 0.3s ease; }
.chip:hover { background: var(--primary); color: var(--white); transform: scale(1.05); }

.placeholder-chip { background: #fff8e1; color: #b7791f; padding: 2px 8px; border-radius: 6px; font-size: 0.85em; font-weight: 700; border: 1px solid #fef08a; display: inline-block; line-height: 1.2; box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1); }

/* Colorful Categories */
.category-card { border-left: 4px solid var(--primary); position: relative; overflow: hidden; z-index: 1; }
.category-card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%; background: var(--bg-light); z-index: -1; transition: width 0.3s ease; }
.category-card:hover::before { width: 100%; }
.category-card:hover { border-left-color: var(--accent-gold); padding-left: 1.5rem; }

/* Sections */
section { padding: 4.5rem 0; position: relative; }
.hero { padding: 6rem 0 4rem; background: radial-gradient(circle at top right, rgba(36, 88, 230, 0.15), transparent 500px), radial-gradient(circle at bottom left, rgba(242, 166, 35, 0.15), transparent 500px), var(--bg-light); overflow: hidden; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,88,230,0.1); }
.form-control[aria-invalid="true"] { border-color: #ef4444; }

/* Legal Footer */
.legal-footer { text-align: center; padding: 2rem 1.5rem; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); background: var(--white); }
.legal-footer a { color: var(--text-muted); text-decoration: none; margin: 0 0.5rem; transition: color 0.2s; }
.legal-footer a:hover { color: var(--primary); text-decoration: underline; }

/* Sticky CTA */
.sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 1rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 50; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-top: 1px solid var(--border); }
.sticky-cta.hidden { transform: translateY(150%); }
@media(min-width: 768px) { .sticky-cta { display: none; } }

/* Carousel */
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.5rem; padding-bottom: 1.5rem; scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg-light); }
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-track { background: var(--bg-light); border-radius: 4px; }
.carousel::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.carousel-item { scroll-snap-align: center; min-width: 280px; width: 75%; max-width: 350px; flex-shrink: 0; transition: transform 0.3s ease; }
.carousel-item:hover { transform: scale(1.03); }
@media(min-width: 768px) { .carousel-item { width: 30%; } }

/* =========================================
   ANIMATIONS & DYNAMIC EFFECTS
   ========================================= */

/* Floating element */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* Pulse Glow for CTA */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(36, 88, 230, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(36, 88, 230, 0); }
    100% { box-shadow: 0 0 0 0 rgba(36, 88, 230, 0); }
}
.btn-glow { animation: pulseGlow 2.5s infinite; }

/* Scroll Fade In Up */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, visibility;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Staggered children animation */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Background Shine effect for offer card */
@keyframes shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
.offer-highlight {
    background: linear-gradient(90deg, var(--white) 0%, #fef3c7 50%, var(--white) 100%);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}
