/* CSS is about styling the website, such as fonts, colors, pictures, etc. */

:root {
    --bg-color: #0a192f;
    --nav-bg: rgba(11, 19, 32, 0.7);
    --card-bg: rgba(17, 34, 64, 0.7);
    --border-color: rgba(100, 193, 255, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #2563eb;   
}

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

/* "Watch Demo" glides down to the video instead of jumping */
html {
    scroll-behavior: smooth;
}

/* Hover color transitions, scoped to what actually changes color.
   Don't move this to * — animating everything causes odd flashes. */
a,
button,
.benefit-card,
.supporter-banner,
.pack-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color); /* fallback */
    background-image: linear-gradient(180deg, #10254a 0%, #0a192f 45%, #060f1f 100%);
    background-repeat: no-repeat;
    
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Frosted-glass nav bar. The flat background-color and plain border
   are fallbacks for browsers without blur / gradient-border support. */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: var(--nav-bg);
    background-image: linear-gradient(180deg, rgba(14, 25, 46, 0.88) 0%, rgba(11, 19, 32, 0.62) 100%);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border-color);
    border-image: linear-gradient(90deg,
        rgba(100, 193, 255, 0.05) 0%,
        rgba(96, 165, 250, 0.45) 50%,
        rgba(100, 193, 255, 0.05) 100%) 1;
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.65);
    
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* Hidden on desktop — the phone media query below turns this into
   the hamburger menu button. */
.nav-toggle {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Poppins', 'Franklin Gothic Medium', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    user-select: none;
    text-decoration: none;
    color: var(--text-primary);
}


.logo:hover .logo-img {
    filter: drop-shadow(0 0 9px rgba(59, 130, 246, 0.6));
}


.logo-word {
    white-space: nowrap;
}

.logo-text {
    font-family: 'Poppins', 'Franklin Gothic Medium', Arial, sans-serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.1;
}

.text-accent {
    background: linear-gradient(160deg, #60a5fa 10%, #2563eb 65%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;   
    transition: filter 0.25s ease;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 4rem;
    width: 100%;
}

.main-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.main-logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(37, 99, 235, 0.45));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.tagline {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.15rem;
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}

/* Hero buttons: Download on top, the other two in a row below */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-secondary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.9rem;   
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(160deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid rgba(96, 165, 250, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(160deg, #4f8ef7 0%, #2f6ceb 55%, #2450dc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Download button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 3rem;
    font-size: 1.05rem;
    border-radius: 999px;
    background: linear-gradient(160deg, #4f8ef7 0%, #2563eb 60%, #1e50d8 100%);
    border: 1px solid rgba(147, 197, 253, 0.45);
    box-shadow: 0 0 26px rgba(59, 130, 246, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-download:hover {
    background: linear-gradient(160deg, #5f9bff 0%, #2f6ceb 60%, #2559e0 100%);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* must come after .btn so its padding wins the cascade */
.btn-pill {
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

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

.video-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

/* 16:9 wrapper so the video scales with the screen */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background-color: var(--card-bg);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-discord { background-color: #5865f2; }
.social-discord:hover { box-shadow: 0 6px 18px rgba(88, 101, 242, 0.5); }

.social-youtube { background-color: #ff0000; }
.social-youtube:hover { box-shadow: 0 6px 18px rgba(255, 0, 0, 0.45); }

.social-gmail { background-color: #ea4335; }
.social-gmail:hover { box-shadow: 0 6px 18px rgba(234, 67, 53, 0.5); }

/* One shared grid for card layouts */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

/* Contact cards */
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 260px;
    padding: 2rem 1.5rem 1.75rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* h2 in the markup (heading order), styled down to card size */
.contact-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0.5rem 0 1.5rem;
}

/* just a label the whole card is the clickable link */
.contact-action {
    display: inline-block;
    margin-top: auto;
    padding: 0.55rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.contact-discord .contact-icon,
.contact-discord .contact-action { background-color: #5865f2; }
.contact-discord:hover { border-color: rgba(88, 101, 242, 0.65); }

.contact-gmail .contact-icon,
.contact-gmail .contact-action { background-color: #ea4335; }
.contact-gmail:hover { border-color: rgba(234, 67, 53, 0.6); }

.contact-youtube .contact-icon,
.contact-youtube .contact-action { background-color: #ff0000; }
.contact-youtube:hover { border-color: rgba(255, 0, 0, 0.55); }

/* Phones */
@media (max-width: 600px) {
    nav {
        padding: 0.75rem 1rem;
    }
    .logo {
        font-size: 1.4rem;
    }
    .logo-text {
        font-size: 2.75rem;
    }
    .section-title {
        font-size: 1.75rem;
    }

    /* Mobile nav: index.js toggles .nav-open on the <nav>, everything
       else happens here. */

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-primary);
        cursor: pointer;
    }

    .nav-toggle svg {
        width: 22px;
        height: 22px;
    }

    /* hamburger when closed, X when open */
    .nav-toggle .icon-close { display: none; }
    nav.nav-open .icon-menu  { display: none; }
    nav.nav-open .icon-close { display: block; }

    /* The links become a panel glued under the bar. position: absolute
       works because the sticky nav is its positioning ancestor. Nearly
       opaque (unlike the bar) so page text can't bleed through. */
    .nav-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem 1rem 1rem;
        background-color: rgba(9, 16, 28, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.6);
    }

    nav.nav-open .nav-actions {
        display: flex;
        animation: menu-drop 0.2s ease;
    }

    @keyframes menu-drop {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }
    }

    /* bigger tap targets */
    .nav-actions .nav-link {
        padding: 0.65rem 0.25rem;
        font-size: 1.05rem;
    }

    /* the hover underline is pointless on touch */
    .nav-actions .nav-link::after {
        display: none;
    }

    .nav-actions .btn-pill {
        text-align: center;
        margin-top: 0.35rem;
    }
}

/* ================================================================
   VIGOR STATION & SUPPORTER PAGES
   ================================================================ */

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

/* animated hover underline; lives in ::after so it never shifts layout */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

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

.nav-link:hover::after {
    transform: scaleX(1);
}

.page-head {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 0 2.5rem;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.back-link:hover {
    color: var(--accent-color);
}

/* Supporter banner on the vigor page */
.supporter-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 3.5rem;
    padding: 2rem 2.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.supporter-banner:hover {
    border-color: rgba(24, 95, 248, 0.6);  
    transform: translateY(-2px);
}

.supporter-banner h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.supporter-banner p {
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.banner-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    background: rgba(37, 99, 235, 0.14);
    color: var(--accent-color);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.banner-arrow svg {
    width: 20px;
    height: 20px;
}

.supporter-banner:hover .banner-arrow {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateX(4px);
}

/* (The packs grid uses the shared .card-grid class defined up with the
   contact cards.) */

/* Whole card = the link; the Buy strip at the bottom is just a label */
.pack-card {
    position: relative;   
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 190px;
    min-height: 300px;
    padding-top: 2.6rem;
    background: linear-gradient(180deg, #0f1c38 0%, #0a1226 100%);
    border: 1.5px solid var(--accent-color);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.pack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.25);
}

.pack-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 999px;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.8);
}

.badge-gold {
    background-color: #ffd700;
    color: #191100;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.8);
}

.pack-diamond {
    width: 44px;
    height: 44px;
    fill: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.85));
    margin-bottom: 0.9rem;
}

.pack-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pack-unit {
    color: #60a5fa;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0.25rem 0 0.5rem;
}

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

.pack-buy {
    display: block;
    width: 100%;
    margin-top: auto;   
    padding: 0.7rem 0;
    text-align: center;
    font-weight: 600;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.2s ease;
}

.pack-card:hover .pack-buy {
    background-color: #1d4ed8;
}


.pack-gold {
    border-color: #ffd700;
}

.pack-gold:hover {
    box-shadow: 0 16px 38px rgba(255, 215, 0, 0.2);
}

.pack-gold .pack-diamond {
    fill: #ffd700;
    filter: drop-shadow(0 0 9px rgba(255, 215, 0, 0.9));
}

.pack-gold .pack-buy {
    background-color: #ffd700;
    color: #191100;
}

.pack-gold:hover .pack-buy {
    background-color: #e6c200;
}

/* Supporter page */
.price-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2.5rem;   /* tighter — helps keep Subscribe above the fold */
    padding: 1.75rem;
    text-align: center;
    background: linear-gradient(135deg, #1e1a0d 0%, #0a0d16 100%);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.price-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
}

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

.price-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.7rem;
    opacity: 0.8;
}


.benefits {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.benefit-card {
    width: 210px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    background-color: #0d111c;
    border: 1px solid #1e293b;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover {
    transform: scale(1.03);
    background-color: #1a160b;
    border-color: rgba(255, 215, 0, 0.5);
}

.benefit-icon {
    font-size: 1.9rem;
}

.benefit-card h3 {
    color: #ffd700;
    font-size: 1rem;
    margin: 0.6rem 0 0.4rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.subscribe {
    text-align: center;
    margin: 2.25rem 0 3.5rem;
}

.btn-gold {
    background-color: #ffd700;
    color: #050814;
    border: 1px solid rgba(255, 230, 100, 0.7);
    font-weight: 700;
    border-radius: 14px;
    padding: 0.9rem 2.5rem;
    box-shadow: 0 6px 22px rgba(255, 215, 0, 0.35);
}

.btn-gold:hover {
    background-color: #f0ca00;
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.5);
}

.fineprint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.9rem;
    opacity: 0.8;
}

/* ================================================================
   SCROLL REVEAL (tagged from index.js — nothing to add in the HTML)

   The rise is a keyframe ANIMATION, not a transition, on purpose:
   the cards already use `transition` for their hover lift, and a
   reveal transition on the same property would fight it and make
   hovering feel sluggish. An animation plays once and gets out of
   the way.
   ================================================================ */

.reveal {
    opacity: 0;
}

.reveal.visible {
    opacity: 1;
    animation: reveal-rise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
    /* `backwards` keeps staggered cards hidden while they wait their
       turn (the per-card delay comes from index.js) */
    animation-delay: var(--reveal-delay, 0s);
}

@keyframes reveal-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* reduced motion: skip the animation, everything's simply visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
    }
    .reveal.visible {
        animation: none;
    }
}