/* ═══════════════════════════════════════════════════════════
   global.css — SPLIDU DESIGN SYSTEM (Single Source of Truth)
   Contains: Variables, Resets, Typography, Nav, Footer,
   Shared Sections, Buttons, Dropdowns, Animations, Responsive
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
    /* Brand Primary Gradient Stops */
    --splidu-pink: #ff08c9;
    --splidu-purple: #ae00ff;
    --splidu-blue: #00aeff;
    --splidu-teal: #00ffee;
    --splidu-pink-dark: #c3069a;
    --splidu-purple-dark: #8500c3;
    --splidu-blue-dark: #0085c3;

    /* Brand Gradients */
    --gradient-primary: linear-gradient(135deg, var(--splidu-pink), var(--splidu-purple), var(--splidu-blue));
    --gradient-horizontal: linear-gradient(90deg, var(--splidu-pink), var(--splidu-purple), var(--splidu-blue));
    --gradient-cta: linear-gradient(135deg, var(--splidu-pink), var(--splidu-purple));
    --gradient-subtle: linear-gradient(135deg, rgba(255,8,201,0.08), rgba(174,0,255,0.08), rgba(0,174,255,0.08));

    /* Neutrals */
    --black: #000000;
    --dark: #0D0D12;
    --dark-surface: #16161E;
    --dark-card: #1E1E2A;
    --gray-dark: #6D6E71;
    --gray-mid: #BEBEC0;
    --gray-light: #E6E7E8;
    --gray-lightest: #F1F2F2;
    --white: #FFFFFF;

    /* Text */
    --text-dark: #000000;
    --text-gray: #666666;
    --text-light: #FFFFFF;
    --text-muted: rgba(255,255,255,0.65);

    /* Borders */
    --border: rgba(255,255,255,0.06);
    --border-h: rgba(255,255,255,0.12);

    /* Accent */
    --orange: #FFB800;

    /* Spacing */
    --section-pad: 100px;
    --container-width: 1200px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(174,0,255,0.15);
}


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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}


/* ── NAVIGATION ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(13,13,18,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.nav-links li { list-style: none; }

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Nav CTA button */
.nav-cta {
    background: var(--gradient-cta) !important;
    -webkit-text-fill-color: var(--white) !important;
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700 !important;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.3s !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(174,0,255,0.35);
}

/* Login/Register dropdown (CSS hover-based) */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-dropdown-toggle:hover { color: var(--white); }
.nav-dropdown-toggle .caret {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%; right: 0;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .caret { transform: rotate(180deg); }

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: rgba(255,255,255,0.75) !important;
    font-size: 13px;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--white) !important;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 6px 8px;
}

/* Download App dropdown (JS click-toggle with CSS hover fallback) */
.dd-w { position: relative; }

.dd-t {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.dd-t:hover { color: #fff; }
.dd-t svg {
    width: 10px; height: 10px;
    fill: none; stroke: currentColor; stroke-width: 2;
}

.dd-m {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--dark-card);
    border: 1px solid var(--border-h);
    border-radius: 12px;
    padding: 6px;
    min-width: 210px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    animation: ddSlide 0.2s ease;
}
.dd-m.open { display: block; }

.dd-m a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    transition: all 0.15s;
}
.dd-m a:hover { background: rgba(255,255,255,0.04); color: #fff; }

.dd-m a small {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
    margin-top: 1px;
}

.dd-m a svg.dd-icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.6;
}

.dd-m .sp { height: 1px; background: var(--border); margin: 4px 8px; }
.dd-m a.ho { color: var(--orange); }
.dd-m a.ho small { color: rgba(255,184,0,0.5); }

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

/* Download App pill (CTA style) */
.dl-pill {
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    background: var(--gradient-cta);
    color: #fff;
    transition: all 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dl-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(174,0,255,0.3); }
.dl-pill svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Hamburger — gradient rounded square */
.nav-hamburger {
    display: none;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 40px; height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(174,0,255,0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.nav-hamburger:hover  { transform: scale(1.08); box-shadow: 0 6px 20px rgba(174,0,255,0.6); }
.nav-hamburger:active { transform: scale(0.95); }


/* ── SHARED BUTTONS ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--gradient-cta);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(174,0,255,0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}


/* ── SHARED SECTION PATTERNS ── */
.section-light {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.section-cream {
    padding: var(--section-pad) 0;
    background: var(--gray-lightest);
}

.section-dark {
    padding: var(--section-pad) 0;
    background: var(--dark);
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    background: var(--gradient-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-dark .section-label {
    background: var(--gradient-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.section-dark .section-title { color: var(--white); }

.section-subtitle {
    font-size: 17px;
    color: var(--text-gray);
    max-width: 560px;
    line-height: 1.7;
}

.section-dark .section-subtitle { color: var(--text-muted); }

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

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


/* ── FOOTER ── */
.footer {
    background: var(--dark);
    padding: 60px 0 0;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.footer .container .footer-grid-wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    max-width: 280px;
    line-height: 1.6;
}

.footer h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }

.footer ul li a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer ul li a:hover { color: var(--white); }

.footer-bottom {
    padding: 24px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.footer-social-links { display: flex; gap: 14px; }

.footer-social-links a {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    color: rgba(255,255,255,0.5);
}

.footer-social-links a:hover {
    background: var(--gradient-cta);
    color: #fff;
}

/* Footer Download App section */
.footer-app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.footer-app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-app-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
}

.footer-app-link svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.7;
}

.footer-social-links a{width:36px;height:36px;border-radius:50%;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;transition:all 0.2s;color:var(--muted);}

.footer-social-links a:hover{border-color:var(--border-h);color:#fff;transform:translateY(-2px);background:var(--card);}

.footer-social-links a svg{width:16px;height:16px;fill:currentColor;}



/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeUp 0.7s ease forwards; }

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ── TABLET (1024px) ── */
@media (max-width: 1024px) {
    .footer .container .footer-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── MOBILE (768px) ── */
@media (max-width: 768px) {
    :root { --section-pad: 64px; }

    .container { padding: 0 20px; }

    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 15px; }
    .section-header { margin-bottom: 32px; }

    .btn-primary,
    .btn-outline {
        padding: 14px 28px;
        font-size: 14px;
    }

    /* Nav: show hamburger, hide desktop links */
    .nav-hamburger { display: flex !important; }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0; right: 0; 
        /*  bottom: 0;*/
        background: var(--dark-surface);
        flex-direction: column;
        padding: 15px 20px;
        gap: 25px;
        align-items: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
        height: 557px;
        overflow: scroll;
    }

    .nav-links.mobile-open { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { font-size: 14px; display: block; padding: 0; }

    /* Mobile Login/Register dropdown */
    .nav-links .nav-dropdown { width: 100%; }
    .nav-links .nav-dropdown-toggle { justify-content: center; font-size: 14px; padding: 0; }
    .nav-links .nav-dropdown-menu {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        background: transparent; border: none; box-shadow: none;
        padding: 12px 0 0; min-width: auto;
    }
    .nav-links .nav-dropdown-menu a {
        text-align: center; display: block;
        color: rgba(255,255,255,0.5) !important;
        font-size: 14px; padding: 8px 0;
    }
    .nav-links .nav-dropdown-divider { margin: 4px 60px; }

    /* Mobile Download App dropdown */
    .nav-links .dd-w { width: 100%; text-align: center; }
    .nav-links .dl-pill { width: auto; max-width: 280px; margin: 0 auto; justify-content: center; }
    .nav-links .dd-m {
        position: static; display: none;
        box-shadow: none; border: none; background: transparent;
        animation: none; padding: 12px 0 0; min-width: auto;
    }
    .nav-links .dd-m.open { display: block; }
    .nav-links .dd-m a { justify-content: center; font-size: 14px; padding: 8px 0; }
    .nav-links .dd-m .sp { margin: 4px 60px; }

    /* Footer mobile */
    .footer .container .footer-grid-wrap { grid-template-columns: 1fr 1fr; }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px 20px;
    }
}

/* ── SMALL MOBILE (480px) ── */
@media (max-width: 480px) {
    .footer .container .footer-grid-wrap { grid-template-columns: 1fr; }
}
