/* =============================================================================
   index.css — Styles specific to the BlyxoParty landing page (index.php)
   ========================================================================== */


/* -----------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 40px 20px;
    overflow: visible;
}

/* Ambient glow — blue */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: calc(50% - 200px);
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(41, 151, 255, .13) 0%, transparent 68%);
    pointer-events: none;
}

/* Ambient glow — purple */
.hero::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(191, 90, 242, .09) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1080px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 28px;
    padding: 5px 14px;
    background: rgba(41, 151, 255, .1);
    border: 1px solid rgba(41, 151, 255, .22);
    border-radius: 100px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .25; }
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(46px, 7.5vw, 80px);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1.06;
    background: linear-gradient(160deg, #f5f5f7 35%, #6e6e73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    max-width: 440px;
    margin-bottom: 38px;
    color: var(--text-sec);
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 400;
    line-height: 1.72;
}


/* -----------------------------------------------------------------------------
   Store buttons
   -------------------------------------------------------------------------- */

.store-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 158px;
    padding: 11px 20px;
    background: var(--surface2);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    color: var(--text);
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}

.store-btn svg { flex-shrink: 0; }

.store-btn:hover {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

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

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-btn-sub  { color: var(--text-sec); font-size: 10px; font-weight: 400; line-height: 1.3; }
.store-btn-name { font-size: 15px; font-weight: 600; letter-spacing: -.2px; line-height: 1.3; }


/* -----------------------------------------------------------------------------
   Interactive game scene (canvas)
   -------------------------------------------------------------------------- */

.game-scene {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
    transition: transform .18s ease-out;
}

#gameCanvas {
    display: block;
    width: 380px;
    height: 420px;
    border-radius: 20px;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .65));
}


/* -----------------------------------------------------------------------------
   Section separator
   -------------------------------------------------------------------------- */

.sep {
    width: 100%;
    height: 1px;
    border: none;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border) 30%,
        var(--border) 70%,
        transparent
    );
}


/* -----------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 25px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat-item {
    position: relative;
    padding: 15px 24px;
    text-align: center;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 1px;
    background: var(--border);
}

.stat-num {
    margin-bottom: 9px;
    font-size: clamp(44px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1;
    color: var(--text);
}

.stat-num.is-null {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -1px;
    color: var(--text-sec);
}

.stat-label {
    color: var(--text-sec);
    font-size: 13px;
    font-weight: 400;
}


/* -----------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
    max-width: 960px;
    margin: 0 auto;
    padding: 25px 24px;
}

.features-label {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.features h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
}

.features-sub {
    max-width: 560px;
    margin-bottom: 20px;
    color: var(--text-sec);
    font-size: 17px;
    line-height: 1.7;
}

.feat-list { display: flex; flex-direction: column; }

.feat-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.feat-row:last-child { border-bottom: none; }

.feat-num {
    min-width: 22px;
    padding-top: 4px;
    color: var(--text-sec);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    opacity: .4;
}

.feat-body h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.3px;
}

.feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(41, 151, 255, .1);
    border: 1px solid rgba(41, 151, 255, .15);
    border-radius: 9px;
    color: var(--accent);
    font-size: 13px;
}

.feat-body p {
    color: var(--text-sec);
    font-size: 15px;
    line-height: 1.68;
}


/* -----------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */

.cta-wrap {
    max-width: 960px;
    margin: 0 auto 25px;
    padding: 0 24px;
}

.cta-box {
    margin-top: 5vh;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(41, 151, 255, .07) 0%, rgba(191, 90, 242, .07) 100%);
    border: 1px solid rgba(41, 151, 255, .14);
    border-radius: 24px;
    text-align: center;
}

.cta-box h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -1.5px;
}

.cta-box p {
    margin-bottom: 32px;
    color: var(--text-sec);
    font-size: 17px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--accent);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

.cta-btn:hover  { opacity: .85; transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }


/* -----------------------------------------------------------------------------
   Beta modal
   -------------------------------------------------------------------------- */

.modal-bg {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.modal-bg.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    position: relative;
    max-width: 400px;
    width: 100%;
    padding: 38px 32px 32px;
    background: var(--surface2);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 26px;
    text-align: center;
    transform: scale(.93) translateY(14px);
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}

.modal-bg.open .modal-box { transform: scale(1) translateY(0); }

.modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, .07);
    border: none;
    border-radius: 50%;
    color: var(--text-sec);
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
}

.modal-x:hover { background: rgba(255, 255, 255, .13); }

.modal-emoji {
    display: block;
    margin-bottom: 18px;
    font-size: 52px;
}

.modal-box h3 {
    margin-bottom: 10px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.modal-box p {
    margin-bottom: 28px;
    color: var(--text-sec);
    font-size: 15px;
    line-height: 1.68;
}

.modal-box strong { color: var(--text); }

.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
    padding: 13px 26px;
    background: #5865F2;
    border-radius: 100px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}

.discord-btn:hover { opacity: .88; transform: translateY(-1px); }

.modal-close {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 100px;
    color: var(--text-sec);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}

.modal-close:hover { background: rgba(255, 255, 255, .11); }


/* -----------------------------------------------------------------------------
   Games grid section
   -------------------------------------------------------------------------- */

.games-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 35px 24px 25px;
}

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

.games-label {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.games-title {
    margin-bottom: 14px;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
}

.games-sub {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-sec);
    font-size: 17px;
    line-height: 1.7;
}

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

.game-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    min-height: 200px;
    border-radius: 18px;
    cursor: pointer;
    transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}

.game-card-bg {
    position: absolute;
    inset: 0;
    background: var(--card-gradient);
    transition: opacity .2s;
}

.game-card:hover .game-card-bg { opacity: .9; }

.game-card-border {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    pointer-events: none;
    transition: border-color .2s;
}

.game-card:hover .game-card-border { border-color: var(--card-color-alpha); }

.game-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 16px 16px;
}

.game-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: auto;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
}

.game-card-name {
    margin-bottom: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.2px;
    line-height: 1.2;
}

.game-card-desc {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .55);
    font-size: 11.5px;
    line-height: 1.5;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-card-players {
    color: rgba(255, 255, 255, .35);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.game-card-play {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--card-color);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s, transform .2s;
}

.game-card:hover .game-card-play {
    opacity: 1;
    transform: translateX(0);
}


/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
    .hero             { padding: 25px 24px 15px; }
    .hero-inner       { flex-direction: column-reverse; gap: 44px; }
    .hero-text        { max-width: 100%; text-align: center; }
    .hero p           { max-width: 100%; }
    .store-btns       { justify-content: center; }
    #gameCanvas       { width: 300px; height: 332px; }
    .cta-box          { padding: 20px 24px; }
    .games-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }

    .stat-item + .stat-item::before {
        top: 0;
        bottom: auto;
        left: 15%;
        right: 15%;
        width: auto;
        height: 1px;
    }

    .stat-item { padding: 12px 16px; }
}

@media (max-width: 480px) {
    #gameCanvas   { width: 250px; height: 276px; }
    .feat-row     { gap: 20px; }
    .games-grid   { grid-template-columns: 1fr 1fr; }
}
