/* CSS Variables (Design System) */
:root {
    /* Colors (HSL format) */
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --primary: 263 70% 50%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 5% 26%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 5% 26%;
    --muted-foreground: 240 5% 65%;
    --accent: 217 91% 60%;
    --accent-foreground: 240 10% 3.9%;
    --border: 240 5% 26%;
    --vpn-primary: 263 70% 50%;
    --vpn-secondary: 217 91% 60%;
    --vpn-accent: 280 100% 70%;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(263 70% 50%), hsl(217 91% 60%));
    --gradient-secondary: linear-gradient(135deg, hsl(280 100% 70%), hsl(263 70% 50%));
    --gradient-hero: linear-gradient(135deg, hsl(240 10% 3.9%), hsl(240 5% 6%));
    --gradient-card: linear-gradient(135deg, hsl(240 5% 6%), hsl(240 10% 3.9%));
    
    /* Shadows */
    --shadow-primary: 0 10px 40px -10px hsl(263 70% 50% / 0.4);
    --shadow-glow: 0 0 40px hsl(217 91% 60% / 0.3);
    --shadow-card: 0 8px 32px -8px hsl(240 10% 3.9% / 0.8);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--secondary));
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: hsl(var(--foreground));
    border: 2px solid hsl(var(--border));
}

.btn-secondary:hover {
    background: hsl(var(--secondary));
    border-color: hsl(var(--vpn-primary));
}

.btn-outline {
    background: transparent;
    color: hsl(var(--vpn-primary));
    border: 2px solid hsl(var(--vpn-primary));
}

.btn-outline:hover {
    background: hsl(var(--vpn-primary));
    color: hsl(var(--primary-foreground));
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--vpn-primary));
}

.logo-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: hsl(var(--vpn-primary));
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: hsl(var(--foreground));
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: hsl(var(--foreground));
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-menu {
    display: none;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.9;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: hsl(var(--accent));
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--accent));
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--gradient-card);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon-wrapper {
    padding: 0.75rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
}

.feature-card .feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.feature-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: hsl(var(--background));
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.pricing-card.popular {
    border-color: hsl(var(--vpn-primary));
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: hsl(var(--vpn-primary));
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.save-badge {
    display: inline-block;
    background: hsl(var(--vpn-accent) / 0.2);
    color: hsl(var(--vpn-accent));
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: hsl(var(--foreground));
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--vpn-primary));
    font-weight: bold;
}

.pricing-btn {
    width: 100%;
}

.support-section {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.support-text {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--gradient-card);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--gradient-hero);
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: hsl(var(--vpn-primary));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.copyright {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Pages */
.legal-page {
    padding: 6rem 0 2rem;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-updated {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.legal-section p {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: hsl(var(--muted-foreground));
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: hsl(var(--vpn-primary));
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Error Page */
.error-page {
    padding: 6rem 0 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
    color: hsl(var(--vpn-primary));
}

.error-icon svg {
    width: 100%;
    height: 100%;
}

.error-title {
    font-size: 4rem;
    font-weight: 700;
    color: hsl(var(--vpn-primary));
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.error-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav,
    .desktop-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 0 1rem;
    }
    
    .error-title {
        font-size: 3rem;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .feature-card,
    .pricing-card {
        padding: 1.5rem;
    }
}