/* =========================
   GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: Inter, system-ui, sans-serif;
    color: white;

    background:
        radial-gradient(circle at top left,
            rgba(59, 130, 246, .15),
            transparent 35%),
        radial-gradient(circle at bottom right,
            rgba(168, 85, 247, .15),
            transparent 35%),
        #050816;

    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    align-items: stretch; /* was center — caused sections to clip on narrow viewports */

    font-size: clamp(14px, 0.4vw + 12px, 18px);
    line-height: 1.6;
}

/* =========================
   CENTER LAYOUT SYSTEM
========================= */

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);

    width: min(1200px, calc(100% - 2rem));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    padding: .8rem 1.2rem;

    background: rgba(10, 15, 25, .6);
    backdrop-filter: blur(22px);

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;

    z-index: 1000;

    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

/* =========================
   LOGO
========================= */

.logo {
    height: clamp(28px, 2.2vw, 40px);
    width: auto;
    object-fit: contain;
    display: block;
}

/* =========================
   NAV LINKS
========================= */

.nav-link {
    position: relative;
    padding: .5rem .75rem;
    border-radius: 10px;

    color: #cbd5e1;
    transition: .2s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, .05);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;

    width: 0%;
    height: 2px;

    transform: translateX(-50%);

    background: linear-gradient(90deg, #3b82f6, #a855f7);
    transition: width .25s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 70%;
}

/* =========================
   BUTTON SYSTEM
========================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;

    padding: .9rem 1.25rem;

    border-radius: 14px;

    font-weight: 600;

    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.button-secondary {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
}

/* =========================
   SECTION SYSTEM
========================= */

.section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: clamp(3rem, 6vw, 8rem) clamp(1rem, 4vw, 2rem);
}

/* =========================
   HERO
========================= */

.hero {
    width: 100%;
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;

    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;

    position: relative;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 7rem 1.5rem 4rem;
        gap: 2.5rem;
        min-height: unset;
    }

    .hero-panel {
        max-width: 100%;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 560px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.hero-copy {
    color: #94a3b8;
    font-size: clamp(.9rem, 1.2vw, 1.05rem);
    line-height: 1.7;
    max-width: 480px;
}

/* HERO STATS */
.hero-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, .08);
    border: 1px solid rgba(59, 130, 246, .15);
    border-radius: 16px;
    margin: 0.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-value {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .stat-item {
        flex: 1;
        min-width: 100px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

.hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

/* HERO PANEL */
.hero-panel {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    color: #4ade80;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #4ade80; }
    50% { opacity: .6; box-shadow: 0 0 16px #4ade80; }
}

.metric-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: background .2s;
}

.metric-row:hover {
    background: rgba(59, 130, 246, .07);
    border-color: rgba(59, 130, 246, .2);
}

.metric-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #3b82f6;
}

.metric-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.metric-text strong {
    font-size: .9rem;
    font-weight: 700;
    color: white;
}

.metric-text small {
    font-size: .78rem;
    color: #64748b;
    line-height: 1.4;
}



/* =========================
   GRID FIX (IMPORTANT)
========================= */

/* 🔥 FIXED SIZE GRID - NO MORE HUGE CARDS */

.games-container {
    width: 100%;
    max-width: 1200px;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-content: center;

    gap: 2rem;
}

.game-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.game-content h3 {
    font-size: .95rem;
    font-weight: 700;
}

.play-button {
    margin-top: auto;
}

/* GROUP GRID FIX */
.game-desc {
    color: #94a3b8;
    font-size: .9rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    min-height: 2.8em;
}

.group-grid {
    width: 100%;
    display: grid;

    grid-template-columns: repeat(auto-fit, 220px);
    justify-content: center;

    gap: 1.5rem;
}

/* =========================
   GAME CARD
========================= */

.game-card {
    width: 260px;
    max-width: 260px;
    position: relative;
    display: flex;
    flex-direction: column;

    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;

    overflow: hidden;

    transition: .3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, .6);
}

.game-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .78rem;
    color: #94a3b8;
}

.game-stats span {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: .15rem .45rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* GAME IMAGE */

.game-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;

    transition: transform .6s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

/* GROUP CARD */

.group-card {
    width: 220px;
    max-width: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;

    padding: 1.25rem 1rem;

    position: relative;

    transition: .3s ease;
}

.group-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, .6);
}

.group-card img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.group-info {
    padding: .75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.group-info h3 {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
}

.group-info > span {
    font-size: .75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.group-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .4rem;
}

.stat-pill {
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
    color: #cbd5e1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.game-stats span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

/* =========================
   SECTION HEADING
========================= */

.section-heading {
    width: min(1200px, calc(100% - 4rem));
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 3vw, 0px) 1rem;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-top: .4rem;
}

.eyebrow {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #3b82f6;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

    padding: 2rem 2rem;

    border-top: 1px solid rgba(255, 255, 255, .08);

    color: #94a3b8;
    font-size: .82rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: .7;
}

.footer-copy {
    color: #475569;
}

.footer-tagline {
    color: #334155;
    font-size: .78rem;
}

.popular-badge {
    position: absolute;
    top: 12px;
    left: 12px;

    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;

    font-size: .75rem;
    font-weight: 700;

    padding: .35rem .6rem;
    border-radius: 999px;

    z-index: 5;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
}

/* ICON */
.play-icon {
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: .2rem;
}

/* MAIN TEXT */
.play-text {
    font-weight: 700;
    font-size: 1rem;
}

/* SUBTEXT */
.play-sub {
    font-size: .75rem;
    opacity: .8;
    margin-top: .15rem;
}

/* subtle shine effect */
.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    padding: .55rem .9rem;

    border-radius: 12px;

    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;

    font-weight: 600;
    font-size: .85rem;

    width: 100%;
    /* keep consistent, but now controlled by flex container */

    transition: transform .2s ease, box-shadow .2s ease;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, .35);
    filter: brightness(1.05);
}

.play-button:active {
    transform: translateY(0px) scale(0.98);
}

/* icon only */
.play-icon {
    font-size: 1rem;
    line-height: 1;
}

.contact-layout {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: start;
}

/* LEFT TEXT SIDE */
.contact-copy {
    max-width: 650px;
}

.contact-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-top: .4rem;
}

.contact-copy p {
    color: #94a3b8;
    line-height: 1.7;
    margin-top: .75rem;
}

/* ACTION BUTTONS */
.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* FORM CARD */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;

    padding: 1.75rem;

    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
}

/* LABEL STRUCTURE */
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: .45rem;

    font-size: .9rem;
    font-weight: 600;
    color: #e2e8f0; /* boosted from #cbd5e1 */
}

/* INPUTS */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: .8rem .9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: white;
    font-size: .95rem;
    font-family: inherit;
    transition: .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form select option {
    background: #0f172a;
    color: white;
}

/* FOCUS STATE */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, .7);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
    background: rgba(255, 255, 255, .08);
}

/* TEXTAREA */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* SEND BUTTON — fix default browser border */
.contact-form .button {
    margin-top: .25rem;
    width: 100%;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    padding: .9rem 1.25rem;
    border-radius: 14px;
}

/* STATUS TEXT */
.form-status {
    font-size: .85rem;
    color: #94a3b8;
    min-height: 1rem;
    border-radius: 8px;
    padding: 0;
    transition: .2s ease;
}

.form-status--success {
    color: #4ade80;
    background: rgba(74, 222, 128, .08);
    border: 1px solid rgba(74, 222, 128, .2);
    padding: .6rem .9rem;
}

.form-status--error {
    color: #f87171;
    background: rgba(248, 113, 113, .08);
    border: 1px solid rgba(248, 113, 113, .2);
    padding: .6rem .9rem;
}

/* RESPONSIVE — contact */
@media (max-width: 880px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .contact-form label {
        font-size: .95rem;
    }
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;

    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;

    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .4);

    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .site-header {
        width: calc(100% - 1rem);
        top: .5rem;
    }

    .games-container {
        padding: 0 1rem;
    }

    .group-grid {
        padding: 0 1rem;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .game-card {
        width: 100%;
        max-width: 100%;
    }

    .group-card {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 1600px) {
    body {
        font-size: 18px;
    }
}

@media (min-width: 900px) {
    .games-container {
        grid-template-columns: repeat(3, 260px);
        justify-content: center;
    }
}