/* ================================
   PlusVPN Landing - Liquid Glass Design
   ================================ */

/* CSS Variables */
:root {
    --bg-dark: #0b0f14;
    --neon-purple: #8a2be2;
    --neon-cyan: #22d3ee;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --shadow-glow: 0 0 20px rgba(138, 43, 226, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Background Layer with Gradient and Grain */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
        var(--bg-dark);
    background-attachment: fixed;
}

.bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo:hover {
    filter: drop-shadow(0 0 8px var(--neon-purple));
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1rem 4rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-pulse 3s ease-in-out infinite;
    padding: 0 1rem;
    max-width: 100%;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.4)); }
    50% { filter: drop-shadow(0 0 30px rgba(138, 43, 226, 0.6)); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.hero-trial {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    color: white;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

/* QR Code */
.qr-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.qr-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), rgba(34, 211, 238, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
    transform: translateY(-4px);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card Content */
.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Locations */
.location-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.flag-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Pricing */
.pricing-card {
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
}

.pricing-featured {
    border-color: var(--neon-purple);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
}

.pricing-featured .pricing-title {
    margin-top: 2.5rem;
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.pricing-features {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Referral */
.referral-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.referral-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.5));
}

.referral-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Support */
.support-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.support-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
}

.support-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.support-text a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--neon-cyan);
}

.footer-divider {
    color: var(--text-tertiary);
}

.footer-copyright {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Sticky Bar (Mobile) */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    z-index: 999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.sticky-bar .btn {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Hint Modal */
.hint-modal {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.hint-modal.visible {
    opacity: 1;
    visibility: visible;
}

.hint-content {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--neon-purple);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.4);
    max-width: 300px;
    position: relative;
}

.hint-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.hint-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hint-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-right: 1rem;
}

.hint-modal .btn {
    width: 100%;
    min-width: auto;
}

/* Legal Pages */
.legal-page {
    padding: 8rem 0 4rem;
}

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

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.legal-content a:hover {
    color: var(--neon-purple);
    text-decoration: underline;
}

.legal-updated {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        min-width: unset;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .sticky-bar {
        display: block;
    }
    
    .hint-modal {
        right: 10px;
        bottom: 90px;
    }
    
    .hint-content {
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
        padding: 0.75rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-card {
        border-color: var(--text-primary);
    }
    
    .btn-secondary {
        border-width: 2px;
    }
}

/* Print Styles */
@media print {
    .header,
    .sticky-bar,
    .hint-modal,
    .hero-buttons,
    .qr-container {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        border: 1px solid #ccc;
        background: white;
    }
}

