.home-page {
    background: var(--bg);
}

.home-shell {
    max-width: 1120px;
    padding-bottom: var(--sp-10);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    gap: var(--sp-6);
    align-items: start;
    min-height: auto;
    margin-bottom: var(--sp-8);
}

.home-hero-copy {
    display: grid;
    gap: var(--sp-4);
}

.home-page .home-hero::after {
    display: none;
}

.home-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid var(--b1);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--green);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.home-title {
    max-width: 11ch;
    font-size: clamp(2.25rem, 5vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.home-lead {
    max-width: 620px;
    color: var(--text-2);
    font-size: 0.98rem;
    line-height: 1.75;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--b1);
}

.home-stat {
    display: grid;
    gap: 4px;
}

.home-stat strong {
    font-size: 1.8rem;
    line-height: 1;
}

.home-stat span {
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.home-preview {
    padding: var(--sp-4);
}

.home-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--b1);
}

.home-preview-body {
    display: grid;
}

.home-preview-row {
    display: grid;
    gap: 6px;
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--b1);
}

.home-preview-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.home-preview-row span {
    color: var(--text-3);
    font-size: var(--fs-2xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-preview-row p {
    color: var(--text-2);
    font-size: var(--fs-sm);
    line-height: 1.65;
}

.home-section {
    display: grid;
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
}

.home-section-head,
.home-section-copy {
    display: grid;
    gap: var(--sp-2);
}

.home-section-head h3,
.home-section-copy h3,
.home-system-card h3,
.home-cta-band h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.home-section-copy p,
.home-cta-band p {
    color: var(--text-2);
    font-size: var(--fs-sm);
    line-height: 1.75;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-panel {
    display: grid;
    gap: var(--sp-2);
    padding: var(--sp-5);
    border-right: 1px solid var(--b1);
    background: var(--surface);
}

.home-card-grid .home-panel:last-child {
    border-right: 0;
}

.home-panel-kicker {
    color: var(--green);
    font-size: var(--fs-2xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-panel h3 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
}

.home-panel p,
.home-system-card p,
.home-rule-card p {
    color: var(--text-2);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.home-section--split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: start;
}

.home-link-stack {
    display: grid;
    gap: var(--sp-2);
}

.home-link-card {
    display: grid;
    gap: 6px;
    padding: var(--sp-4);
    border: 1px solid var(--b1);
    border-radius: var(--r);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: background var(--dur), border-color var(--dur);
}

.home-link-card:hover {
    background: var(--surface-h);
    border-color: var(--b2);
}

.home-link-card strong {
    font-size: var(--fs-md);
}

.home-link-card span {
    color: var(--text-2);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.home-system-card {
    display: grid;
    gap: var(--sp-4);
    padding: var(--sp-5);
    margin-bottom: var(--sp-8);
}

.home-dice-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--sp-2);
}

.home-die-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--b1);
    border-radius: var(--r);
    background: var(--surface-h);
    color: var(--text);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.home-rule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
}

.home-rule-card {
    display: grid;
    gap: var(--sp-2);
    padding: var(--sp-4);
    border: 1px solid var(--b1);
    border-radius: var(--r);
    background: var(--surface-h);
}

.home-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
    padding: var(--sp-6);
    background: var(--green);
    color: #17230d;
}

.home-cta-band p {
    color: rgba(23, 35, 13, 0.82);
}

.home-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.home-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 144px;
    padding: 10px 14px;
    border: 1px solid var(--b1);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-decoration: none;
    transition: background var(--dur), border-color var(--dur), color var(--dur);
}

.home-action-link:hover {
    background: var(--surface-h);
    border-color: var(--b2);
}

.home-action-link--solid {
    background: var(--green);
    border-color: var(--green);
    color: #17230d;
}

.home-action-link--solid:hover {
    background: var(--green-d);
    border-color: var(--green-d);
    color: #17230d;
}

.home-cta-band .home-action-link {
    background: #f6f4f0;
    border-color: #f6f4f0;
    color: #17230d;
}

.home-cta-band .home-action-link:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #17230d;
}

.home-footer {
    border-top: 1px solid var(--b1);
    padding: var(--sp-8) var(--sp-4) var(--sp-6);
    background: var(--bg);
}

.home-footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    gap: var(--sp-6);
}

.home-footer-grid strong {
    display: block;
    margin-bottom: var(--sp-3);
    font-size: var(--fs-md);
}

.home-footer-grid p,
.home-footer-grid a,
.home-footer-note {
    color: var(--text-3);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

.home-footer-grid a {
    display: block;
    text-decoration: none;
}

.home-footer-grid a:hover,
.home-footer-note a:hover {
    color: var(--text);
}

.home-footer-note {
    max-width: 1120px;
    margin: var(--sp-6) auto 0;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--b1);
}

@media (max-width: 980px) {
    .home-hero,
    .home-section--split,
    .home-card-grid,
    .home-rule-grid,
    .home-footer-grid {
        grid-template-columns: 1fr;
    }

    .home-card-grid .home-panel {
        border-right: 0;
        border-bottom: 1px solid var(--b1);
    }

    .home-card-grid .home-panel:last-child {
        border-bottom: 0;
    }

    .home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-cta-band {
        display: grid;
    }
}

@media (max-width: 860px) {
    .home-dice-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-shell {
        padding-left: var(--sp-3);
        padding-right: var(--sp-3);
    }

    .home-title {
        max-width: none;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }

    .home-system-card,
    .home-cta-band,
    .home-footer {
        padding: var(--sp-4);
    }
}
