/* ================================================================
   beta.css — PutOn Beta / Glass Upgrade Stylesheet
   Covers: beta banner, floating glass cards, hero video placeholder,
           beta community section, and glass variable upgrades.
   ================================================================ */

/* ── Glass Token Variables ────────────────────────────────────────── */
:root {
    --glass-bg:          rgba(255,255,255,0.07);
    --glass-bg-strong:   rgba(255,255,255,0.12);
    --glass-border:      rgba(255,255,255,0.16);
    --glass-border-glow: rgba(212,175,185,0.35);
    --glass-blur:        16px;
    --glass-shadow:      0 8px 40px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.08) inset;
    --glass-inner-glow:  0 0 30px rgba(212,175,185,0.12) inset;
    --accent-purple:     #9b6dff;
    --accent-pink:       #ec4899;
    --accent-rose:       #D4AFB9;
}

/* ── Beta Banner ──────────────────────────────────────────────────── */
.beta-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg,
        rgba(155,109,255,0.18) 0%,
        rgba(236,72,153,0.14) 50%,
        rgba(212,175,185,0.16) 100%);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.beta-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.beta-pill {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.beta-text {
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    flex: 1;
    min-width: 0;
}

.beta-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.beta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.beta-btn--discord {
    background: rgba(88,101,242,0.28);
    border-color: rgba(88,101,242,0.5);
    color: #b6bcff;
}
.beta-btn--discord:hover {
    background: rgba(88,101,242,0.5);
    color: #fff;
    transform: translateY(-1px);
}

.beta-btn--email {
    background: rgba(212,175,185,0.18);
    border-color: rgba(212,175,185,0.4);
    color: #e8cdd3;
}
.beta-btn--email:hover {
    background: rgba(212,175,185,0.35);
    color: #fff;
    transform: translateY(-1px);
}

.beta-btn--app {
    background: linear-gradient(135deg, rgba(155,109,255,0.3), rgba(236,72,153,0.25));
    border-color: rgba(155,109,255,0.4);
    color: #d4baff;
}
.beta-btn--app:hover {
    background: linear-gradient(135deg, rgba(155,109,255,0.5), rgba(236,72,153,0.4));
    color: #fff;
    transform: translateY(-1px);
}

.beta-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.beta-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* (beta banner removed — no body padding needed) */
@media (max-width: 768px) {
    /* reserved for future use */
}

/* ── Floating Glass Background Cards (replaces old .background-animation) ── */
.background-animation {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

/* Glass card — the floating portrait cards */
.bg-card {
    position: absolute;
    left: -260px; /* start off-screen left */
    width: 200px;
    height: 300px;
    border-radius: 28px;
    overflow: hidden;
    animation: bg-card-fly var(--dur, 18s) var(--delay, 0s) ease-in-out infinite;
    will-change: transform, opacity;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--glass-inner-glow);
}

.bg-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    border-radius: inherit;
}

/* Inner frosted overlay on top of image */
.bg-card-glass {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        165deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.03) 40%,
        rgba(212,175,185,0.08) 100%
    );
    border-top: 1px solid rgba(255,255,255,0.22);
    border-left: 1px solid rgba(255,255,255,0.14);
}

@keyframes bg-card-fly {
    0% {
        transform: translateX(0) translateY(calc(var(--y-start, 30%) * 1vh)) rotate(var(--rot-start, -8deg)) scale(0.85);
        opacity: 0;
    }
    8% { opacity: 0.6; }
    50% {
        transform: translateX(55vw) translateY(calc((var(--y-start, 30%) + var(--y-end, 60%)) / 2 * 0.5vh)) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    92% { opacity: 0.5; }
    100% {
        transform: translateX(115vw) translateY(calc(var(--y-end, 60%) * 1vh)) rotate(var(--rot-end, 8deg)) scale(0.9);
        opacity: 0;
    }
}

/* Ambient glow blobs */
.bg-blob {
    position: absolute;
    left: -400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    background: radial-gradient(circle,
        hsl(var(--hue, 290), 80%, 60%, 0.35) 0%,
        hsl(var(--hue, 290), 60%, 40%, 0.1) 60%,
        transparent 100%
    );
    animation: bg-blob-fly var(--dur, 24s) var(--delay, 0s) ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes bg-blob-fly {
    0%   { transform: translateX(0) translateY(var(--y-start, 20%)) scale(0.8); opacity: 0; }
    15%  { opacity: 0.8; }
    85%  { opacity: 0.6; }
    100% { transform: translateX(120vw) translateY(var(--y-end, 60%)) scale(1.2); opacity: 0; }
}

/* ── Hero Video Background Placeholder ───────────────────────────── */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-bg-video.loaded { opacity: 0.45; }

.hero-video-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #000000 0%,
        #050a1a 25%,
        #000510 50%,
        #0a0515 75%,
        #000000 100%
    );
    background-size: 400% 400%;
    animation: placeholder-gradient 8s ease infinite;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.hero-video-placeholder .placeholder-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(155,109,255,0.05) 45%,
        rgba(236,72,153,0.05) 50%,
        transparent 55%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

.hero-video-placeholder .placeholder-label {
    position: relative;
    z-index: 1;
    font-size: 11px;
    color: rgba(255,255,255,0.18);
    font-family: monospace;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
}

@keyframes placeholder-gradient {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Hide the placeholder dev label in production — remove this rule to keep it visible */
/* .hero-video-placeholder .placeholder-label { display: none; } */

/* ── Feature Card Video Placeholder ─────────────────────────────── */
.card video {
    /* Already has styles; add placeholder fallback */
}
.card-video-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #1a0a2e, #200d20, #0d0d14);
    background-size: 300% 300%;
    animation: placeholder-gradient 6s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: rgba(255,255,255,0.2);
    font-size: 11px;
    font-family: monospace;
}
.card-video-placeholder i {
    font-size: 24px;
    opacity: 0.3;
}

/* ── Enhanced Glass Cards (override existing .card) ──────────────── */
.card {
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.09) 0%,
        rgba(255,255,255,0.04) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow:
        0 8px 40px rgba(0,0,0,0.4),
        0 1px 0 rgba(255,255,255,0.1) inset,
        0 0 0 1px rgba(212,175,185,0.05) !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.08) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 3;
}

.card:hover {
    transform: translateY(-14px) scale(1.02) !important;
    border-color: rgba(212,175,185,0.4) !important;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 0 40px rgba(212,175,185,0.15),
        0 1px 0 rgba(255,255,255,0.15) inset !important;
}

/* ── Enhanced Glass Pricing Cards ───────────────────────────────── */
.pricing-card {
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.09) 0%,
        rgba(255,255,255,0.04) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow:
        0 8px 40px rgba(0,0,0,0.4),
        0 1px 0 rgba(255,255,255,0.1) inset !important;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
}

.pricing-card:hover {
    border-color: rgba(212,175,185,0.45) !important;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 50px rgba(212,175,185,0.12),
        0 1px 0 rgba(255,255,255,0.18) inset !important;
}

/* ── About / Creator Section Glass ──────────────────────────────── */
.creator-section {
    background: linear-gradient(
        145deg,
        rgba(20,10,40,0.82) 0%,
        rgba(30,10,30,0.75) 100%
    ) !important;
    backdrop-filter: blur(24px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow:
        0 20px 80px rgba(0,0,0,0.6),
        0 1px 0 rgba(255,255,255,0.1) inset,
        0 0 60px rgba(155,109,255,0.06) !important;
}

/* ── Beta Community Section ──────────────────────────────────────── */
.beta-section {
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.beta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 35% at 50% 0%, rgba(26,107,255,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(155,109,255,0.06) 0%, rgba(236,72,153,0.03) 40%, transparent 70%);
    pointer-events: none;
}

.beta-section-inner {
    position: relative;
    z-index: 1;
}

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

.beta-section-pill {
    display: inline-block;
    background: linear-gradient(135deg, rgba(155,109,255,0.25), rgba(236,72,153,0.2));
    border: 1px solid rgba(155,109,255,0.35);
    color: #c4a4ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.beta-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #f7f7f7;
    margin: 16px 0 16px;
    line-height: 1.15;
}

.beta-section-sub {
    color: rgba(255,255,255,0.55);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.beta-cta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.beta-cta-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 36px 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 8px 40px rgba(0,0,0,0.4),
        0 1px 0 rgba(255,255,255,0.1) inset;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.beta-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.beta-cta-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212,175,185,0.35);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 40px rgba(212,175,185,0.1),
        0 1px 0 rgba(255,255,255,0.15) inset;
}

.beta-cta-card--featured {
    background: linear-gradient(
        145deg,
        rgba(155,109,255,0.14) 0%,
        rgba(236,72,153,0.1) 100%
    );
    border-color: rgba(155,109,255,0.3);
}

.beta-cta-featured-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(155,109,255,0.15), transparent 70%);
    pointer-events: none;
}

.beta-cta-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
}

.beta-cta-card h3 {
    color: #f7f7f7;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.beta-cta-card p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.btn-beta-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn-beta--discord {
    background: rgba(88,101,242,0.2);
    border-color: rgba(88,101,242,0.45);
    color: #b6bcff;
}
.btn-beta--discord:hover {
    background: rgba(88,101,242,0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88,101,242,0.3);
}

.btn-beta--app {
    background: linear-gradient(135deg, rgba(155,109,255,0.3), rgba(236,72,153,0.25));
    border-color: rgba(155,109,255,0.5);
    color: #d4baff;
}
.btn-beta--app:hover {
    background: linear-gradient(135deg, rgba(155,109,255,0.5), rgba(236,72,153,0.4));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(155,109,255,0.3);
}

.btn-beta--email {
    background: rgba(212,175,185,0.15);
    border-color: rgba(212,175,185,0.35);
    color: #e8cdd3;
}
.btn-beta--email:hover {
    background: rgba(212,175,185,0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Nav link section offset (because of sticky banner) ──────────── */
section[id] {
    scroll-margin-top: 80px;
}
