:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #ecfdf5;
    --accent: #6366f1;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 35px -10px rgba(5, 150, 105, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: var(--slate-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* TOP LOADING BAR */
.top-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #6366f1);
    z-index: 9999;
    transition: width 0.3s ease, opacity 0.3s ease;
}

/* NAVIGATION BAR */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-auth-actions {
    display: none;
}

/* HAMBURGER BUTTON (Hidden on Desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--slate-800);
    cursor: pointer;
    padding: 0.5rem;
}

/* BUTTONS */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    color: var(--slate-800);
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: var(--slate-100);
    border-color: var(--slate-400);
}

/* HERO SECTION */
.hero {
    padding: 5rem 1.5rem 4rem;
    background: radial-gradient(circle at top, #ecfdf5 0%, #f8fafc 70%);
    text-align: center;
    border-bottom: 1px solid var(--slate-200);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--slate-600);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* MODULE SECTIONS */
.module-section {
    padding: 5rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.module-section.bg-alt {
    background-color: var(--white);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--slate-600);
    font-size: 1.1rem;
}

/* GRID LAYOUT */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* FEATURE CARDS */
.feature-card {
    background: var(--white);
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* TRACKER WIDGET */
.tracker-container {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    color: var(--white);
    margin-top: 4rem;
    box-shadow: var(--shadow-lg);
}

.tracker-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.tracker-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.tracker-content p {
    color: var(--slate-400);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tracker-form-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.input-group {
    display: flex;
    gap: 0.75rem;
}

.input-group input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.95rem;
    min-width: 0;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* FOOTER STYLING & GRID ALIGNMENT */
.site-footer {
    background: var(--slate-950, #090d16);
    color: var(--slate-400);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.footer-col h3 span {
    color: var(--primary);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-col p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--slate-400);
}

.footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    list-style: none !important;
}

.footer-col ul li a {
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .tracker-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .tracker-container {
        padding: 2rem 1.5rem;
    }
    .desktop-actions {
        display: none;
    }
    .hamburger {
        display: block;
    }
    
    /* MOBILE NAV DROPDOWN MENU */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-auth-actions {
        display: flex;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--slate-200);
    }
    .mobile-auth-actions a {
        flex: 1;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
