/* ==========================================================================
   ПАТРИКИ VPN — ULTIMATE CONVERSION DESIGN SYSTEM
   Принципы: воздух, контраст, фокус на одно действие, премиум-эстетика
   ========================================================================== */

/* ---- Design Tokens ---- */
:root {
    --bg:       #0A0A12;
    --bg-card:  rgba(255, 255, 255, 0.04);
    --bg-card-h:rgba(255, 255, 255, 0.07);

    --pink:     #FF0080;
    --pink-50:  rgba(255, 0, 128, 0.50);
    --pink-20:  rgba(255, 0, 128, 0.20);
    --pink-10:  rgba(255, 0, 128, 0.10);

    --cyan:     #00E5FF;
    --yellow:   #FFDD00;

    --white:    #FFFFFF;
    --t1:       rgba(255,255,255,0.88);
    --t2:       rgba(255,255,255,0.55);
    --t3:       rgba(255,255,255,0.30);

    --font-h:   'Unbounded', system-ui, sans-serif;
    --font-b:   'Inter', system-ui, sans-serif;

    --max-w:    960px;
    --r-lg:     20px;
    --r-md:     14px;
    --r-sm:     8px;
    --r-full:   100px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--t1);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- Layout ---- */
.wrap {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 28px);
}

/* ---- Ambient Background ---- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.30;
    animation: orbFloat 20s ease-in-out infinite alternate;
}
.ambient-orb--pink {
    width: 500px; height: 500px;
    top: -10%; left: -5%;
    background: var(--pink);
}
.ambient-orb--cyan {
    width: 400px; height: 400px;
    bottom: -10%; right: -5%;
    background: var(--cyan);
    animation-delay: -10s;
}
@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

/* ---- Scroll Reveal System ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(10, 10, 18, 0.80);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.header__logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--white);
}
.header__logo-img {
    width: 36px; height: 36px;
    border-radius: 10px; object-fit: cover;
    border: 2px solid var(--pink);
    box-shadow: 0 0 12px var(--pink-20);
}
.header__logo-text {
    font-family: var(--font-h);
    font-weight: 800; font-size: 15px;
}
.accent { color: var(--pink); }

.header__cta {
    display: inline-flex; align-items: center;
    padding: 8px 18px;
    font-size: 13px; font-weight: 700;
    color: var(--white);
    background: var(--pink-10);
    border: 1px solid var(--pink);
    border-radius: var(--r-full);
    text-decoration: none;
    transition: all 0.2s;
}
.header__cta:hover {
    background: var(--pink);
    box-shadow: 0 0 20px var(--pink-50);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    padding: clamp(48px, 8vh, 80px) 0 clamp(32px, 5vh, 48px);
    text-align: center;
}

/* Mascot Duck with Aura */
.hero__mascot {
    display: inline-block;
    margin-bottom: 24px;
    position: relative;
}
.hero__mascot::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 32px;
    background: conic-gradient(from 0deg, var(--pink), var(--cyan), var(--yellow), var(--pink));
    opacity: 0.35;
    filter: blur(18px);
    animation: auraRotate 6s linear infinite;
    z-index: -1;
}
@keyframes auraRotate {
    to { transform: rotate(360deg); }
}
.hero__duck {
    width: 100px; height: 100px;
    border-radius: 24px; object-fit: cover;
    border: 3px solid var(--pink);
    box-shadow: 0 0 40px var(--pink-50), 0 0 80px var(--pink-20);
    animation: duckHover 5s ease-in-out infinite;
    position: relative; z-index: 1;
}
@keyframes duckHover {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30%      { transform: translateY(-8px) rotate(1.5deg); }
    60%      { transform: translateY(-4px) rotate(-1deg); }
}

/* Title */
.hero__title {
    font-family: var(--font-h);
    font-weight: 900;
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.hero__title-accent {
    display: block;
    background: linear-gradient(135deg, var(--pink) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--t2);
    max-width: 540px;
    margin: 0 auto 32px;
}
.hero__counter { color: var(--cyan); font-weight: 800; }

/* Trust Pills */
.hero__trust {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
    margin-top: 16px;
}
.trust-pill {
    font-size: 12px; font-weight: 600; color: var(--t2);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 12px; border-radius: var(--r-full);
}

/* ================================================================
   CTA BUTTON (UNIVERSAL)
   ================================================================ */
.cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 18px 36px;
    font-family: var(--font-h);
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, var(--pink) 0%, #C8005F 100%);
    border: none; border-radius: var(--r-md);
    text-decoration: none;
    cursor: pointer;
    position: relative; overflow: hidden;
    box-shadow: 0 8px 32px var(--pink-50);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: ctaPulse 3s ease-in-out infinite;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 44px var(--pink-50);
}
.cta-btn:active { transform: scale(0.98); }

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 32px var(--pink-50); }
    50%      { box-shadow: 0 8px 32px var(--pink-50), 0 0 0 8px rgba(255,0,128,0.15); }
}

/* Shine sweep */
.cta-btn__shine {
    position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}
@keyframes shine {
    0%        { left: -120%; }
    20%, 100% { left: 150%; }
}

.cta-btn__arrow { flex-shrink: 0; }

.cta-btn--hero { width: 100%; max-width: 440px; }
.cta-btn--mid   { width: 100%; }
.cta-btn--sticky {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: var(--r-sm);
    animation: none;
}

/* ================================================================
   SOCIAL PROOF BAR
   ================================================================ */
.proof { padding: 0 0 clamp(32px, 4vh, 48px); }
.proof__inner {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(16px, 4vw, 32px);
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r-lg);
    padding: 20px clamp(16px, 3vw, 32px);
}
.proof__item { text-align: center; }
.proof__num {
    display: block;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--white);
}
.proof__label {
    display: block;
    font-size: 12px; color: var(--t3);
    margin-top: 2px;
}
.proof__divider {
    width: 1px; height: 32px;
    background: rgba(255,255,255,0.08);
}

/* ================================================================
   BENEFITS
   ================================================================ */
.benefits { padding: clamp(40px, 6vh, 64px) 0; }

.section-heading {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: clamp(22px, 3.5vw, 32px);
    text-align: center;
    margin-bottom: clamp(24px, 4vh, 40px);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r-lg);
    padding: 24px;
    position: relative;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.benefit-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--r-lg);
    background: radial-gradient(circle at 50% 0%, var(--pink-10), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.benefit-card:hover::before { opacity: 1; }
.benefit-card:hover {
    border-color: var(--pink);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(255,0,128,0.15), 0 0 0 1px rgba(255,0,128,0.15);
}

.benefit-card__icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: var(--pink-10);
    border: 1px solid rgba(255,0,128,0.25);
    border-radius: 12px;
    margin-bottom: 14px;
}
.benefit-card__title {
    font-family: var(--font-h);
    font-size: 15px; font-weight: 700;
    margin-bottom: 6px;
}
.benefit-card__desc {
    font-size: 13px; color: var(--t2); line-height: 1.5;
}

/* ================================================================
   MID-PAGE CTA CARD
   ================================================================ */
.mid-cta { padding: clamp(24px, 4vh, 48px) 0 clamp(40px, 6vh, 64px); }
.mid-cta__card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 20px;
    background: linear-gradient(135deg, rgba(255,0,128,0.08) 0%, rgba(0,229,255,0.05) 100%);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 44px);
    position: relative;
    isolation: isolate;
}
/* Animated gradient border */
.mid-cta__card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--r-lg);
    padding: 1px;
    background: conic-gradient(from var(--border-angle, 0deg), var(--pink), var(--cyan), var(--yellow), var(--pink));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderSpin 4s linear infinite;
    z-index: -1;
}
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes borderSpin {
    to { --border-angle: 360deg; }
}
.mid-cta__duck {
    width: 56px; height: 56px;
    border-radius: 14px; object-fit: cover;
    border: 2px solid var(--pink);
    box-shadow: 0 0 20px var(--pink-20);
}
.mid-cta__text h3 {
    font-family: var(--font-h);
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 800;
    margin-bottom: 6px;
}
.mid-cta__text p {
    font-size: 14px; color: var(--t2);
}

/* ================================================================
   LEGAL
   ================================================================ */
.legal { padding: 24px 0 8px; }
.legal__text {
    font-size: 11px; color: var(--t3); text-align: center; line-height: 1.6;
}
.legal__text a {
    color: var(--t2); text-decoration: none;
}
.legal__text a:hover { color: var(--pink); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}
.footer__inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.footer__left {
    display: flex; align-items: center; gap: 10px;
}
.footer__logo {
    width: 28px; height: 28px;
    border-radius: 7px; object-fit: cover;
}
.footer__brand {
    font-family: var(--font-h);
    font-weight: 700; font-size: 13px;
}
.footer__copy { font-size: 12px; color: var(--t3); }
.footer__link {
    font-size: 13px; color: var(--t2); text-decoration: none;
}
.footer__link:hover { color: var(--pink); }

/* ================================================================
   STICKY BOTTOM BAR
   ================================================================ */
.sticky-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    z-index: 900;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,0,128,0.25);
    padding: 10px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__inner { display: flex; }

/* ================================================================
   CURSOR GLOW (desktop wow-effect)
   ================================================================ */
.cursor-glow {
    position: fixed;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--pink-20), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
    mix-blend-mode: screen;
}
.cursor-glow.is-active { opacity: 1; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 640px) {
    .proof__divider { display: none; }
    .proof__inner { gap: 20px; }
    .proof__item { flex: 1 1 40%; }
    .header__cta { font-size: 12px; padding: 7px 14px; }
    .cta-btn--hero { padding: 16px 24px; }
    .cursor-glow { display: none; }
}

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