/* Homepage-only styles. Everything shared with the content pages (fonts, variables, reset,
   top bar, buttons, footer, and their breakpoints) lives in site.css, which loads first. */

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 20px 0 48px;
}

.hero .eyebrow {
    display: inline-block;
    margin-top: 0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-hover);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 24px;
}

.hero h1 {
    font-weight: 200;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.1;
    margin: 0 auto 20px;
    max-width: 760px;
    letter-spacing: -0.5px;
}

.hero h1 strong {
    font-weight: 400;
    color: var(--accent-hover);
}

.hero .lead {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 32px;
}

.hero .cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 0 0 56px;
}

.hero-figure {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}

.hero-figure img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s ease;
}

.hero-figure:hover img {
    transform: translateY(-4px) scale(1.005);
}

/* ---------- Section scaffolding ---------- */
section {
    padding: 64px 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.section-head h2 {
    font-weight: 200;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 17px;
    margin: 0;
}

/* ---------- Modes ---------- */
.modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mode-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.mode-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--bg-elevated);
}

.mode-card .icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(72, 158, 93, 0.14);
    margin-bottom: 18px;
    font-size: 22px;
}

.mode-card h3 {
    font-weight: 400;
    font-size: 21px;
    margin: 0 0 8px;
}

.mode-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 16px;
}

.mode-card .arrow {
    color: var(--accent-hover);
    font-size: 15px;
    font-weight: 400;
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.feature-media {
    height: 200px;
    overflow: hidden;
    background: #15191f;
    border-bottom: 1px solid var(--border);
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    object-position: center;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-media img {
    transform: scale(1.04);
}

.feature-body {
    padding: 22px 24px 26px;
}

.feature-body h3 {
    font-weight: 400;
    font-size: 19px;
    margin: 0 0 8px;
}

.feature-body p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* ---------- Split / puzzles CTA ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split .copy h2 {
    font-weight: 200;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

.split .copy p {
    color: var(--text-muted);
    font-size: 17px;
    margin: 0 0 28px;
}

.split .visual img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s ease;
}

.split .visual:hover img {
    transform: translateY(-4px);
}

/* ---------- Final CTA ---------- */
.final-cta {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 24px;
}

.final-cta h2 {
    font-weight: 200;
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 14px;
}

.final-cta p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto 28px;
}

/* ---------- Learn grid & FAQ ---------- */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
    text-align: left;
}

.learn-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.learn-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.learn-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 400;
}

.learn-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.faq-list {
    max-width: 780px;
    margin: 30px auto 0;
    text-align: left;
}

.faq-list details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.faq-list summary {
    cursor: pointer;
    font-size: 17px;
}

.faq-list details[open] summary {
    color: var(--accent);
    margin-bottom: 10px;
}

.faq-list p {
    margin: 0;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .learn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modes {
        grid-template-columns: 1fr;
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .split .visual {
        order: -1;
    }
}

@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }
    .learn-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 48px 0 32px;
    }
    section {
        padding: 48px 0;
    }
}
