/* 
    NafaGhata.com Design System 
    Modern SaaS Aesthetics: Glassmorphism, Dark Mode, Emerald Accents
*/

:root {
    --primary: #10b981; /* Emerald 500 */
    --primary-hover: #059669;
    --accent: #f43f5e; /* Rose 500 */
    --bg-app: #020617; /* Slate 950 */
    --bg-surface: #0f172a; /* Slate 900 */
    --bg-raised: #1e293b; /* Slate 800 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* --- Layout Components --- */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(2, 6, 23, 0.95);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.logo img {
    height: 40px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* --- Hero Section --- */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.hero-content h1 span {
    display: block;
}

.text-gradient {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 1.2rem 3rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.hero-visual {
    position: relative;
}

.dashboard-mockup {
    border-radius: 2rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    width: 100%;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0);
}

/* --- Features --- */
.features {
    padding: 100px 0;
}

.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-head h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* --- Reconciliation Section --- */
.recon-section {
    padding: 100px 0;
    background: radial-gradient(circle at left, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

.recon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* --- CTA Section --- */
.cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-app));
    border: 1px solid var(--primary);
    padding: 5rem;
    border-radius: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-newsletter form:focus-within {
    border-color: var(--primary) !important;
}

/* --- Supporters Section --- */
.supporters {
    padding: 100px 0;
    background: radial-gradient(circle at right, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

.supporter-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.supporter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2rem 3rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    text-decoration: none;
}

.supporter-card:hover {
    border-color: var(--primary);
    background: var(--bg-raised);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.supporter-card i, .supporter-card img {
    height: 32px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    color: var(--primary);
    filter: grayscale(1) brightness(1.5);
    transition: all 0.3s ease;
}

.supporter-card:hover i, .supporter-card:hover img {
    filter: grayscale(0) brightness(1);
}

.supporter-card span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* --- Responsive Design --- */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .dashboard-mockup {
        transform: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recon-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .recon-grid .hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .navbar {
        height: 70px;
    }

    .nav-links {
        display: none; /* Hidden by default on mobile */
    }

    .nav-actions {
        display: none;
    }

    /* Hamburger Menu Toggle */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    .mobile-toggle span {
        width: 25px;
        height: 2px;
        background: var(--text-main);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: center;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-surface);
        padding: 100px 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main);
        text-decoration: none;
    }

    .mobile-menu .btn-nav {
        text-align: center;
        padding: 1rem;
        margin-top: 2rem;
    }

    .section-head h2 {
        font-size: 2.25rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand, .footer-newsletter {
        grid-column: span 1;
    }

    .supporter-grid {
        gap: 1.5rem;
    }

    .supporter-card {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }
}


