/* ============================================
   SHARED STYLES – Header, Footer, Variables
   ============================================ */
:root {
    --primary: #5B3CE1;
    --primary-dark: #4A2EC4;
    --primary-light: #7B5FF5;
    --secondary: #FF5E3A;
    --secondary-dark: #E8492B;
    --accent: #FFB830;
    --success: #10B981;
    --dark: #0F0E17;
    --dark-light: #1A1928;
    --gray-900: #1E1E2E;
    --gray-800: #2A2A3D;
    --gray-700: #3D3D55;
    --gray-600: #5C5C7A;
    --gray-500: #7C7C9A;
    --gray-400: #A0A0B8;
    --gray-300: #C5C5D8;
    --gray-200: #E2E2EF;
    --gray-100: #F0F0F8;
    --gray-50: #F8F8FC;
    --white: #FFFFFF;
    --danger: #E63946;
    --gradient-1: linear-gradient(135deg, #5B3CE1 0%, #7B5FF5 50%, #4F8CF7 100%);
    --gradient-2: linear-gradient(135deg, #FF5E3A 0%, #FF8C5A 50%, #FFB830 100%);
    --gradient-dark: linear-gradient(135deg, #0F0E17 0%, #1A1928 50%, #1E1E2E 100%);
    --shadow-sm: 0 2px 8px rgba(15,14,23,0.06);
    --shadow-md: 0 4px 20px rgba(15,14,23,0.10);
    --shadow-lg: 0 8px 40px rgba(15,14,23,0.15);
    --shadow-xl: 0 16px 60px rgba(15,14,23,0.20);
    --shadow-glow: 0 0 40px rgba(91,60,225,0.35);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* ========== ANNOUNCEMENT BAR ========== */
.announcement-bar {
    background: var(--gradient-2);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1001;
    letter-spacing: 0.02em;
    animation: shimmerBg 3s ease-in-out infinite;
}
@keyframes shimmerBg {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
}
.announcement-bar .ann-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.announcement-bar .badge {
    background: var(--white);
    color: var(--secondary-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.announcement-bar a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 700;
}
.announcement-bar .close-ann {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: var(--transition-fast);
}
.announcement-bar .close-ann:hover { opacity: 1; }

/* ========== HEADER ========== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}
.nav a:hover { color: var(--primary); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
    border-radius: 2px;
}
.nav a:hover::after { width: 100%; }
.header-cta {
    background: var(--gradient-1);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: var(--transition-normal) !important;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}
.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.header-cta::after { display: none !important; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-fast);
}
.mobile-menu-btn:hover { color: var(--primary); }

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-light);
    color: var(--gray-400);
    padding: 60px 24px 30px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}
.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1rem;
}
.footer-col a {
    display: block;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 0;
    transition: var(--transition-fast);
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-500);
}
.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray-600);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition-fast);
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

/* ========== FLOATING CTA ========== */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-2);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 35px rgba(255, 94, 58, 0.5);
    animation: floatBounce 2.5s ease-in-out infinite;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: var(--transition-normal);
}
.floating-cta:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 45px rgba(255, 94, 58, 0.65);
    animation: none;
}
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
    25% { transform: translateY(0); }
    70% { transform: translateY(-6px); }
    85% { transform: translateY(0); }
}
.floating-cta .float-badge {
    background: var(--white);
    color: var(--secondary-dark);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    animation: glowBadge 1.5s ease-in-out infinite;
}
@keyframes glowBadge {
    0%, 100% { box-shadow: 0 0 0px rgba(255,255,255,0.4); }
    25% { box-shadow: 0 0 16px rgba(255,255,255,0.8); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .header-inner { height: 60px; }
    .nav { gap: 16px; }
    .nav a { font-size: 0.85rem; }
    .header-cta { padding: 8px 16px; font-size: 0.85rem; }
}
@media (max-width: 768px) {
    .announcement-bar { font-size: 0.75rem; padding: 8px 14px; }
    .announcement-bar .close-ann { right: 8px; }
    .header-inner { height: 56px; padding: 0 16px; }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 28px 30px;
        gap: 20px;
        box-shadow: var(--shadow-xl);
        transition: right 0.35s ease;
        z-index: 1001;
    }
    .nav.active { right: 0; }
    .nav a { font-size: 1rem; }
    .mobile-menu-btn { display: block; z-index: 1002; }
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15,14,23,0.6);
        z-index: 1000;
    }
    .mobile-overlay.active { display: block; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .floating-cta { bottom: 12px; right: 8px; left: 8px; justify-content: center; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}