/* 
 * KANASA VPN - Premium Dark Theme
 * Modern, Speedy, Secure
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --color-bg: #050505;
    --color-surface: #0f0f11;
    --color-surface-hover: #1a1a1d;

    --color-primary: #4d7cff;
    /* Electric Blue */
    --color-primary-glow: rgba(77, 124, 255, 0.5);

    --color-secondary: #00e5ff;
    /* Cyan */
    --color-accent: #7000ff;
    /* Deep Purple for gradients */

    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;

    --color-success: #00ff88;
    --color-error: #ff3b3b;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, #050505 100%);
    --gradient-glow: radial-gradient(circle at center, var(--color-primary-glow) 0%, transparent 70%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Architecture */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 32px;
    --border-radius-pill: 9999px;

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.t-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 20px rgba(77, 124, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(77, 124, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(77, 124, 255, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, height 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
    text-decoration: none;
    height: 100%;
}

.logo img {
    height: 98%;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .logo img {
        height: 80%;
        /* Slightly smaller on mobile to avoid crowding */
    }
}



.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link:hover {
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 150px 0 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    z-index: -1;
    opacity: 0.4;
    filter: blur(80px);
}

.hero-content {
    max-width: 650px;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.875rem;
    color: var(--color-secondary);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Footer BASE */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-surface);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu logic to be added in JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }


}

/* Features Section */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.feature-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    background: rgba(0, 229, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    position: relative;
}

.step-card {
    position: relative;
    padding: 2rem;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
}

/* Download CTA */
.cta-section {
    background: linear-gradient(135deg, rgba(77, 124, 255, 0.1) 0%, rgba(5, 5, 5, 0) 100%);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(77, 124, 255, 0.2);
    margin: 4rem auto;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 120px auto 4rem;
    /* Top margin to account for fixed navbar */
    padding: 0 1rem;
}

.legal-content h1 {
    margin-bottom: 2rem;
    font-size: 3rem;
}

.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--color-text-main);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}