/* ========================================
   RESET & BASE
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #0EA5E9;
    --accent: #F59E0B;
    --bg-dark: #0F172A;
    --bg-light: #F8FAFC;
    --text-light: #F1F5F9;
    --text-dark: #334155;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* ========================================
   TYPOGRAPHY
======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    background: rgba(14, 165, 233, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    color: #94A3B8;
    max-width: 500px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-google {
    background: #3DDC84;
    color: #000;
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-google:hover {
    background: #34A853;
    transform: scale(1.05);
}

.btn-youtube {
    background: #FF0000;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-youtube:hover {
    background: #CC0000;
    transform: scale(1.05);
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
}

.btn-nav:hover {
    transform: scale(1.05);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94A3B8;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #4F46E5;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    opacity: 1;
}

.btn-nav.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.btn-nav.active::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   FOOTER
======================================== */
.footer-pro {
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid var(--glass-border);
    padding: 50px 0 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col p {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #94A3B8;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a i {
    width: 18px;
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 22px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #64748B;
}

.footer-brand {
    color: var(--text-light);
    font-weight: 600;
}

/* ========================================
   RESPONSIVE (Shared)
======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-dark);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 40px 0;
        gap: 24px;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .btn-nav {
        background: transparent;
        padding: 0;
    }

    .btn-nav::after {
        display: none;
    }

    .footer-pro {
        padding: 30px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 14px 0 18px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .footer-social a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .footer-col h4 {
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}

/* ========================================
   LIGHT MODE (Shared)
======================================== */
@media (prefers-color-scheme: light) {
    body {
        background: var(--bg-light);
        color: var(--text-dark);
    }

    .navbar {
        background: rgba(248, 250, 252, 0.85);
        border-bottom: 1px solid #e2e8f0;
    }

    .navbar.scrolled {
        background: rgba(248, 250, 252, 0.95);
    }

    .nav-link {
        color: #475569;
    }

    .nav-link:hover {
        color: #0f172a;
    }

    .nav-link.active {
        color: #4F46E5;
    }

    .hamburger span {
        background: var(--text-dark);
    }

    .section-desc {
        color: #64748b;
    }

    .section-tag {
        background: rgba(14, 165, 233, 0.1);
    }

    .btn-secondary {
        background: rgba(0, 0, 0, 0.03);
        border-color: #e2e8f0;
        color: var(--text-dark);
    }

    .btn-secondary:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .footer-pro {
        background: rgba(248, 250, 252, 0.95);
        border-top-color: #e2e8f0;
    }

    .footer-col p,
    .footer-links a,
    .footer-bottom p {
        color: #64748b;
    }

    .footer-links a:hover {
        color: #0f172a;
    }

    .footer-brand {
        color: var(--text-dark);
    }

    .footer-social a {
        background: rgba(0, 0, 0, 0.03);
        border-color: #e2e8f0;
        color: #64748b;
    }

    .footer-social a:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .nav-menu.active {
        background: var(--bg-light);
    }
}