/* ============================================================
   CleverGames — homepage dark landing design
   Loaded only on the home page (Styles section).
   Relies on tokens from theme.css (page background, Tailwind overrides).
   ============================================================ */

.home {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: clip;
}

.home section {
    scroll-margin-top: 84px;
}

.home__eyebrow {
    display: inline-block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cg-accent);
    margin-bottom: 0.8rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 800;
    color: var(--cg-text);
    margin: 0;
}

.section-head p {
    color: var(--cg-muted);
    margin: 0.3rem 0 0;
    font-size: 0.92rem;
}

.section-link {
    color: var(--cg-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.section-link:hover { text-decoration: underline; }

/* ---------------- HERO ---------------- */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 1rem 2rem;
}

@media (min-width: 900px) {
    .hero { grid-template-columns: 1.05fr 0.95fr; padding: 3.5rem 1rem 2.5rem; }
}

.hero__title {
    font-size: clamp(2.3rem, 5.2vw, 3.6rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #fff;
}

.hero__title .grad {
    background: linear-gradient(90deg, var(--cg-accent), var(--cg-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__desc {
    color: var(--cg-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 34rem;
    margin: 0 0 1.6rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero__badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--cg-muted);
}

.hero__badge b {
    color: var(--cg-text);
    display: block;
    font-size: 0.9rem;
}

.hero__badge span {
    display: block;
    font-size: 0.76rem;
    color: var(--cg-muted-2);
}

.hero__badge .ic {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--cg-accent-soft);
    color: var(--cg-accent);
    flex: none;
}

/* hero collage from existing game images */
.hero__art {
    position: relative;
    min-height: 320px;
}

.collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 96px;
    gap: 0.8rem;
    position: relative;
}

.collage__tile {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--cg-border-strong);
    box-shadow: var(--cg-shadow);
    background: var(--cg-surface-2);
    animation: floaty 6s ease-in-out infinite;
}

.collage__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage__tile:nth-child(1) { grid-row: span 2; animation-delay: 0s; }
.collage__tile:nth-child(2) { animation-delay: 0.6s; }
.collage__tile:nth-child(3) { grid-row: span 2; animation-delay: 1.2s; }
.collage__tile:nth-child(4) { animation-delay: 0.9s; }
.collage__tile:nth-child(5) { grid-column: span 2; animation-delay: 0.3s; }
.collage__tile:nth-child(6) { animation-delay: 1.5s; }

.collage__chip {
    position: absolute;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(8, 20, 28, 0.7);
    border: 1px solid var(--cg-border-strong);
    color: var(--cg-text);
    backdrop-filter: blur(6px);
    box-shadow: var(--cg-shadow);
}

.collage__chip--tl { top: 0.4rem; left: 0.4rem; color: var(--cg-accent); }
.collage__chip--br { bottom: 0.4rem; right: 0.4rem; color: var(--cg-cyan); }

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

@media (prefers-reduced-motion: reduce) {
    .collage__tile { animation: none; }
}

/* ---------------- CARD GRIDS ---------------- */
.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .card-grid--5 { grid-template-columns: repeat(3, 1fr); } }

.gcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--cg-surface-2), var(--cg-surface));
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius);
    padding: 1.1rem;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.gcard:hover {
    transform: translateY(-4px);
    border-color: var(--cg-border-strong);
    box-shadow: var(--cg-shadow);
}

.gcard__icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    overflow: hidden;
    display: grid;
    place-items: center;
    margin-bottom: 0.85rem;
    background: var(--cg-surface-3);
    border: 1px solid var(--cg-border);
    font-size: 1.5rem;
}

.gcard__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gcard__title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--cg-text);
    margin: 0 0 0.25rem;
}

.gcard__desc {
    font-size: 0.85rem;
    color: var(--cg-muted);
    line-height: 1.5;
    margin: 0 0 1rem;
    flex: 1;
}

.gcard__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cg-accent);
}

.gcard:hover .gcard__cta { gap: 0.55rem; }

.gcard__cta::after {
    content: "→";
    transition: transform 0.15s ease;
}

.badge-live {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(251, 113, 133, 0.16);
    border: 1px solid rgba(251, 113, 133, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.badge-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cg-live);
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.6);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(251, 113, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0); }
}

/* ---------------- BENEFITS ---------------- */
.benefits {
    background: linear-gradient(180deg, var(--cg-surface-2), var(--cg-surface));
    border: 1px solid var(--cg-border);
    border-radius: 22px;
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

.benefit {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.benefit__ic {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--cg-accent-soft);
    color: var(--cg-accent);
    flex: none;
    font-size: 1.3rem;
}

.benefit h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--cg-text);
    margin: 0 0 0.25rem;
}

.benefit p {
    font-size: 0.83rem;
    color: var(--cg-muted);
    line-height: 1.5;
    margin: 0;
}

/* ---------------- FAQ ---------------- */
.faq {
    display: grid;
    gap: 0.7rem;
    max-width: 52rem;
}

.faq__item {
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    border-radius: 14px;
    overflow: hidden;
}

.faq__item[open] {
    border-color: var(--cg-border-strong);
}

.faq__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--cg-text);
    list-style: none;
    font-size: 0.95rem;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q .sign {
    color: var(--cg-accent);
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.18s ease;
    flex: none;
}

.faq__item[open] .faq__q .sign { transform: rotate(45deg); }

.faq__a {
    padding: 0 1.2rem 1.1rem;
    color: var(--cg-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* FAQ two-column section (home) */
.faq-section {
    display: grid;
    gap: 1.5rem 2.5rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 900px) {
    .faq-section { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    .faq-intro { position: sticky; top: 90px; }
}

.faq-intro h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--cg-text);
    margin: 0.4rem 0 0;
}

.faq-intro p {
    color: var(--cg-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.7rem 0 0;
    max-width: 26rem;
}

.faq-section .faq { max-width: none; }

/* why-blurbs (kept from original content) */
.why {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 820px) { .why { grid-template-columns: repeat(3, 1fr); } }

.why p {
    color: var(--cg-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--cg-accent-soft);
}

.home__section { margin: 3rem 0; }
.home__section--tight { margin: 2rem 0; }

/* Tailwind light-palette overrides now live globally in theme.css. */
