/* ═══════════════════════════════════════
   Chess War — Home Page Styles
   ═══════════════════════════════════════ */

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 80% at 65% 50%,
            rgba(201, 168, 76, 0.06) 0%,
            transparent 70%
        ),
        linear-gradient(135deg, #0e0c0a 0%, #1a1612 50%, #0e0c0a 100%);
}

.board-deco {
    position: absolute;
    right: -2rem;
    top: 50%;
    width: 520px;
    height: 520px;
    opacity: 0.07;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    transform: translateY(-50%) rotate(8deg);
}
.board-deco .sq {
    aspect-ratio: 1;
    background: var(--ivory);
}
.board-deco .sq.sq-dark {
    background: var(--gold);
}

.piece-deco {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    opacity: 0.12;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.hero-label {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.4rem;
    opacity: 0.9;
}

.hero-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--ivory);
    margin-bottom: 1.8rem;
}
.hero-title em {
    font-style: normal;
    color: var(--gold);
    font-weight: 600;
}

.hero-sub {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 420px;
    margin-bottom: 2.8rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ── FEATURES ── */
.features-section {
    background: var(--dark);
    border-top: 1px solid var(--border);
}
.section {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.section-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--ivory);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--border);
    border: 1px solid var(--border);
}
.feature-card {
    background: var(--dark);
    padding: 2.5rem 2rem;
    transition: background 0.25s;
}
.feature-card:hover {
    background: #171410;
}
.feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1.4rem;
    color: var(--gold);
}
.feature-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: 0.75rem;
}
.feature-desc {
    font-size: 0.87rem;
    line-height: 1.75;
    color: var(--muted);
    font-weight: 300;
}

/* ── QUICK FLOW ── */
.flow-section {
    background: linear-gradient(180deg, #0e0c0a, #13100d);
    border-top: 1px solid var(--border);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.flow-item {
    border: 1px solid var(--border);
    background: rgba(201, 168, 76, 0.04);
    padding: 1.5rem;
}

.flow-step {
    display: inline-block;
    color: var(--gold);
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
}

.flow-item h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: 0.45rem;
}

.flow-item p {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

/* ── MODE VALUE ── */
.mode-section {
    background: #0d0b09;
    border-top: 1px solid var(--border);
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mode-card {
    border: 1px solid var(--border);
    background: linear-gradient(
        170deg,
        rgba(201, 168, 76, 0.1),
        rgba(14, 12, 10, 0.95)
    );
    padding: 1.6rem;
}

.mode-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ivory);
    margin-bottom: 0.5rem;
}

.mode-card p {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero {
        padding: 0 1.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .flow-grid {
        grid-template-columns: 1fr;
    }
    .mode-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 3rem 1.5rem;
    }
}
