@import url("variables.css");
@import url("animation.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

.container {
    width: min(var(--container), 90%);
    margin: auto;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 11, 18, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--text);
    background: linear-gradient(135deg, var(--text) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    position: relative;
    padding: 4px 0;
}

nav a:hover, nav a.active {
    color: var(--text);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 99px;
    box-shadow: 0 0 8px var(--primary);
}

/* Mobile Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 99px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero Section */
.hero {
    max-width: 900px;
    margin: 180px auto 100px auto;
    text-align: center;
    padding: 0 30px;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 76px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-top: 32px;
    background: linear-gradient(to bottom, #FFFFFF 60%, #A1A8B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.button {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 36px;
    background: var(--primary);
    color: #04060A;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.25);
}

.button:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 15px 30px rgba(74, 222, 128, 0.4);
}

/* Card Grids */
.apps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: min(1200px, 90%);
    margin: 80px auto 140px auto;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-content h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--text);
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 24px;
}

.card .app-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: auto;
}

.card-link:hover {
    color: var(--primary-hover);
    gap: 10px;
}

/* Inner Page Template */
.page {
    max-width: 900px;
    margin: 160px auto 120px auto;
    padding: 0 40px;
}

.page h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFF 0%, #B9C2D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page > p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Support Page Styles */
.support-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 36px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.support-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.support-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.support-card p:last-child {
    margin-bottom: 0;
}

.support-card ul {
    margin-left: 20px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 20px;
}

.support-card ul li::marker {
    color: var(--primary);
}

.support-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.support-card a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Privacy Page Tabs Layout */
.tab-container {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 16px;
    margin-bottom: 32px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: var(--primary);
    color: #04060A;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.2);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.policy-block {
    margin-bottom: 36px;
}

.policy-block h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.policy-block p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 15px;
}

.policy-block ul {
    margin-left: 20px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}

.policy-block ul li::marker {
    color: var(--primary);
}

/* Footer */
footer {
    padding: 80px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--card-border);
    font-size: 14px;
    margin-top: 100px;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--text);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .navbar .container {
        padding: 16px 20px;
    }

    .hamburger-menu {
        display: flex;
    }

    /* Mobile Navigation Drawer */
    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 100px);
        background: rgba(8, 11, 18, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 24px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.5);
    }

    nav.open {
        right: 20px;
    }

    /* Hamburger Animation to 'X' */
    .hamburger-menu.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        margin: 140px auto 60px auto;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 18px;
    }

    .apps {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 80px;
    }

    .page {
        margin: 120px auto 60px auto;
        padding: 0 24px;
    }

    .page h1 {
        font-size: 38px;
    }
}