/* ============================================================
   BarmaleyVPN — Landing Page Styles
   Aesthetic: Pirate-noir. Dark navy, crimson red, gold accents.
   ============================================================ */

:root {
    --bg: #0F0F1A;
    --bg-elevated: #16213E;
    --bg-card: #1E1E30;
    --bg-card-hover: #2A2A40;
    --border: rgba(211, 47, 47, 0.1);
    --border-hover: rgba(211, 47, 47, 0.25);
    --accent: #D32F2F;
    --accent-light: #FF5252;
    --accent-dim: rgba(211, 47, 47, 0.15);
    --accent-glow: rgba(211, 47, 47, 0.4);
    --gold: #FFD700;
    --gold-dark: #D4AF37;
    --gold-dim: rgba(255, 215, 0, 0.12);
    --green: #4CAF50;
    --text: #FFFFFF;
    --text-dim: #B0B0C0;
    --text-muted: #6B6B80;
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --max-w: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ---- Noise overlay ---- */
.noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* ---- Grid background ---- */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(211, 47, 47, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(211, 47, 47, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 70%);
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 72px;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    transition: color 0.2s;
}

.nav-logo:hover {
    color: var(--gold);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 8px 20px;
    border-radius: 8px;
    background: var(--accent-dim);
    color: var(--accent-light) !important;
    font-weight: 600 !important;
    border: 1px solid rgba(211, 47, 47, 0.2);
    transition: all 0.2s;
}

.nav-cta:hover {
    background: rgba(211, 47, 47, 0.25);
    border-color: rgba(211, 47, 47, 0.35);
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.15);
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-burger.active span:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-burger.active span:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* ---- Mobile menu ---- */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 24px 40px;
    gap: 20px;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dim);
    padding: 8px 0;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--accent-light);
}

/* ---- Sections shared ---- */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    background: var(--gold-dim);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 600;
    line-height: 1.2;
}

/* ---- Hero ---- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 160px 24px 100px;
    min-height: 100vh;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease both;
    box-shadow: 0 8px 40px rgba(211, 47, 47, 0.2);
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-dim);
    padding: 8px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    margin-bottom: 36px;
    animation: fadeUp 0.8s ease both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.1s;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.2s;
}

.hero-sub {
    max-width: 560px;
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 44px;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.3s;
}

/* ---- Store / download buttons ---- */
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.4s;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.25s;
    cursor: pointer;
}

.store-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.store-btn svg {
    flex-shrink: 0;
    color: var(--text-dim);
}

.store-text {
    text-align: left;
    line-height: 1.3;
}

.store-text small {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 500;
}

.store-text strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.apk-btn {
    border-color: rgba(211, 47, 47, 0.15);
    background: rgba(211, 47, 47, 0.06);
}

.apk-btn:hover {
    background: rgba(211, 47, 47, 0.12);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.1);
}

.apk-btn svg {
    color: var(--accent-light);
}

/* ---- Hero stats ---- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.5s;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ---- Features ---- */
.features {
    padding: 100px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent-dim);
    color: var(--accent-light);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ---- Pricing ---- */
.pricing {
    padding: 100px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
}

.price-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.price-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.popular-card {
    border-color: rgba(211, 47, 47, 0.25);
    background: linear-gradient(180deg, rgba(211, 47, 47, 0.08) 0%, var(--bg-card) 100%);
}

.popular-card:hover {
    border-color: rgba(211, 47, 47, 0.4);
    box-shadow: 0 12px 40px rgba(211, 47, 47, 0.12);
}

.trial-card {
    border-color: rgba(76, 175, 80, 0.2);
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.06) 0%, var(--bg-card) 100%);
}

.price-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    background: var(--accent-dim);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.trial-card .price-badge {
    color: var(--green);
    background: rgba(76, 175, 80, 0.12);
}

.price-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 24px;
}

.price-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.price-features {
    margin-bottom: 28px;
}

.price-features li {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.price-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.trial-card .price-features li::before {
    background: var(--green);
}

.price-btn {
    display: block;
    text-align: center;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.25s;
}

.price-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.price-btn-accent {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
}

.price-btn-accent:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: 0 4px 24px rgba(211, 47, 47, 0.35);
    color: var(--text);
}

/* ---- How it works ---- */
.how {
    padding: 100px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step {
    flex: 1;
    max-width: 320px;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.step:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.step-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 16px;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.step-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ---- CTA ---- */
.cta {
    padding: 80px 24px;
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 64px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.08), rgba(255, 215, 0, 0.04));
    border: 1px solid rgba(211, 47, 47, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(211, 47, 47, 0.06), transparent 50%);
    pointer-events: none;
}

.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.cta-inner p {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 32px;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 24px rgba(211, 47, 47, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-light);
}

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

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---- Animations ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal — elements start hidden, JS adds .visible */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-wrap: wrap;
    }

    .step-arrow {
        display: none;
    }

    .step {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .hero {
        padding: 140px 20px 80px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 28px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .steps {
        flex-direction: column;
        gap: 16px;
    }

    .cta-inner {
        padding: 44px 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .price-card {
        padding: 24px 20px;
    }

    .price-value {
        font-size: 1.6rem;
    }
}
