/*
 * ChampiDex Homepage P1
 * Page-scoped visual layer.
 * No Builder, Pokémon data, or application behavior changes.
 */

.home-page {
    --home-bg: #050b1b;
    --home-panel: #0d172b;
    --home-panel-2: #111f38;
    --home-border: rgba(83, 155, 235, .22);
    --home-text: #f3f7ff;
    --home-muted: #aab9d0;
    --home-blue: #1689ff;
    --home-cyan: #27c5e8;
    color: var(--home-text);
    overflow: hidden;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

.home-container {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.home-hero {
    position: relative;
    padding: clamp(58px, 8vw, 112px) 0 76px;
    isolation: isolate;
}

.home-hero::before {
    position: absolute;
    z-index: -1;
    top: -170px;
    right: -180px;
    width: min(760px, 80vw);
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 132, 255, .17), transparent 68%);
    content: "";
    pointer-events: none;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: clamp(36px, 6vw, 78px);
}

.home-hero-copy {
    min-width: 0;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 19px;
    color: #7fdcff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-eyebrow::before {
    width: 23px;
    height: 2px;
    background: linear-gradient(90deg, var(--home-blue), var(--home-cyan));
    content: "";
}

.home-title {
    max-width: 720px;
    margin: 0;
    color: var(--home-text);
    font-size: clamp(43px, 5.8vw, 75px);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: .99;
    text-wrap: balance;
}

.home-title .home-title-accent {
    color: #65caff;
}

.home-description {
    max-width: 630px;
    margin: 24px 0 0;
    color: var(--home-muted);
    font-size: clamp(17px, 1.65vw, 20px);
    line-height: 1.75;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 31px;
}

.home-button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button-primary {
    background: linear-gradient(110deg, #087cff, #16b9ff);
    box-shadow: 0 8px 25px rgba(8, 124, 255, .22);
    color: #fff;
}

.home-button-secondary {
    border-color: var(--home-border);
    background: rgba(17, 31, 56, .75);
    color: #e6f3ff;
}

.home-button-secondary:hover {
    border-color: rgba(81, 183, 255, .55);
    background: #132744;
}

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 23px;
    margin-top: 29px;
    color: #9aabc3;
    font-size: 12px;
    font-weight: 650;
}

.home-trust-row span::before {
    margin-right: 7px;
    color: #54d6b0;
    content: "✓";
    font-weight: 900;
}

/* Product workflow panel: conceptual explanation, not simulated analysis output. */

.home-product-panel {
    position: relative;
    min-width: 0;
    padding: clamp(20px, 3vw, 29px);
    border: 1px solid rgba(91, 163, 242, .27);
    border-radius: 23px;
    background:
        radial-gradient(circle at 95% 0%, rgba(0, 151, 255, .13), transparent 42%),
        linear-gradient(145deg, rgba(17, 34, 59, .98), rgba(8, 17, 34, .98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.home-product-panel::before {
    position: absolute;
    top: -1px;
    left: 27px;
    width: 76px;
    height: 2px;
    background: linear-gradient(90deg, var(--home-blue), var(--home-cyan));
    content: "";
}

.home-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 19px;
    border-bottom: 1px solid rgba(133, 174, 220, .15);
}

.home-panel-label {
    margin: 0;
    color: #e8f4ff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.home-panel-count {
    color: #8ca4c0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.home-workflow {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.home-workflow-step {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(104, 157, 216, .15);
    border-radius: 13px;
    background: rgba(19, 39, 67, .64);
}

.home-step-number {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(76, 177, 255, .25);
    border-radius: 10px;
    background: rgba(13, 111, 208, .15);
    color: #79d6ff;
    font-size: 11px;
    font-weight: 900;
}

.home-step-copy {
    min-width: 0;
}

.home-step-copy strong {
    display: block;
    color: #f0f6ff;
    font-size: 14px;
    font-weight: 800;
}

.home-step-copy span {
    display: block;
    margin-top: 3px;
    color: #9fb0c8;
    font-size: 11px;
    line-height: 1.5;
}

.home-step-arrow {
    color: #5dbdf4;
    font-size: 17px;
}

.home-panel-note {
    margin: 17px 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(133, 174, 220, .15);
    color: #91a5c0;
    font-size: 11px;
    line-height: 1.65;
}

/* Section structure */

.home-section {
    padding: clamp(58px, 7vw, 88px) 0;
}

.home-section-bordered {
    border-top: 1px solid rgba(83, 155, 235, .13);
}

.home-section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.home-section-heading .home-eyebrow {
    margin-bottom: 12px;
}

.home-section-title {
    margin: 0;
    color: var(--home-text);
    font-size: clamp(29px, 4vw, 43px);
    font-weight: 820;
    letter-spacing: -.04em;
    line-height: 1.1;
    text-wrap: balance;
}

.home-section-description {
    max-width: 710px;
    margin: 14px 0 0;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.75;
}

/* Capability cards */

.home-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-capability-card {
    min-width: 0;
    padding: 23px 21px;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(17, 31, 56, .94), rgba(9, 19, 37, .94));
}

.home-capability-index {
    display: inline-block;
    margin-bottom: 21px;
    color: #5ac7f4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.home-capability-card h3 {
    margin: 0;
    color: #eef6ff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.home-capability-card p {
    margin: 11px 0 0;
    color: #a8b8ce;
    font-size: 13px;
    line-height: 1.75;
}

/* Competitive intelligence explanation */

.home-intelligence-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(32px, 6vw, 76px);
}

.home-intelligence-copy > p {
    margin: 17px 0 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.8;
}

.home-principle-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-principle-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(83, 155, 235, .17);
    border-radius: 13px;
    background: rgba(13, 27, 49, .7);
}

.home-principle-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: rgba(12, 133, 222, .16);
    color: #6bd3ff;
    font-size: 12px;
    font-weight: 900;
}

.home-principle-list strong {
    display: block;
    color: #edf5ff;
    font-size: 13px;
}

.home-principle-list span {
    display: block;
    margin-top: 4px;
    color: #9eafc6;
    font-size: 12px;
    line-height: 1.65;
}

/* Explainability and decision boundaries */

.home-method-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    align-items: center;
    gap: 35px;
    padding: clamp(25px, 4vw, 43px);
    border: 1px solid rgba(79, 158, 242, .25);
    border-radius: 21px;
    background:
        radial-gradient(circle at 100% 0%, rgba(20, 137, 255, .13), transparent 50%),
        #0d192e;
}

.home-method-panel p {
    margin: 13px 0 0;
    color: #aabbd0;
    font-size: 14px;
    line-height: 1.8;
}

.home-method-points {
    display: grid;
    gap: 10px;
}

.home-method-point {
    padding: 13px 15px;
    border: 1px solid rgba(115, 164, 219, .15);
    border-radius: 11px;
    background: rgba(17, 39, 66, .65);
    color: #d9eaff;
    font-size: 12px;
    font-weight: 700;
}

/* Exploration links */

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

.home-explore-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--home-border);
    border-radius: 15px;
    background: rgba(13, 25, 45, .78);
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.home-explore-card:hover {
    transform: translateY(-3px);
    border-color: rgba(73, 184, 255, .6);
    background: #10213a;
}

.home-explore-card strong {
    color: #eff7ff;
    font-size: 16px;
    font-weight: 800;
}

.home-explore-card span {
    margin-top: 8px;
    color: #a5b6cb;
    font-size: 12px;
    line-height: 1.7;
}

.home-explore-card em {
    margin-top: 16px;
    color: #70d2ff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

/* Final call to action */

.home-final-cta {
    margin-bottom: clamp(45px, 7vw, 82px);
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(79, 169, 255, .28);
    border-radius: 22px;
    background: linear-gradient(115deg, rgba(9, 93, 170, .27), rgba(14, 28, 50, .96));
    text-align: center;
}

.home-final-cta h2 {
    margin: 0;
    color: #f2f8ff;
    font-size: clamp(27px, 3.8vw, 39px);
    font-weight: 850;
    letter-spacing: -.04em;
    line-height: 1.12;
}

.home-final-cta p {
    max-width: 650px;
    margin: 14px auto 0;
    color: #afc0d5;
    font-size: 14px;
    line-height: 1.75;
}

.home-final-cta .home-actions {
    justify-content: center;
    margin-top: 23px;
}

.home-page a:focus-visible {
    outline: 3px solid rgba(79, 190, 255, .75);
    outline-offset: 4px;
}

/* Tablet */

@media (max-width: 980px) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .home-hero-copy {
        max-width: 800px;
    }

    .home-product-panel {
        max-width: 720px;
    }

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

    .home-intelligence-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .home-container {
        width: min(100% - 26px, 1180px);
    }

    .home-hero {
        padding: 43px 0 53px;
    }

    .home-hero-grid {
        gap: 30px;
    }

    .home-eyebrow {
        margin-bottom: 15px;
        font-size: 10px;
        letter-spacing: .12em;
    }

    .home-title {
        font-size: clamp(39px, 11vw, 54px);
        line-height: 1.02;
    }

    .home-description {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.7;
    }

    .home-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 24px;
    }

    .home-button {
        width: 100%;
        min-height: 48px;
    }

    .home-trust-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        margin-top: 23px;
        font-size: 11px;
    }

    .home-product-panel {
        padding: 18px;
        border-radius: 17px;
    }

    .home-workflow-step {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 10px;
    }

    .home-step-number {
        width: 32px;
        height: 32px;
    }

    .home-step-copy strong {
        font-size: 13px;
    }

    .home-step-copy span {
        font-size: 10px;
    }

    .home-section {
        padding: 54px 0;
    }

    .home-section-heading {
        margin-bottom: 24px;
    }

    .home-section-title {
        font-size: clamp(28px, 8vw, 36px);
    }

    .home-section-description {
        font-size: 14px;
    }

    .home-capability-grid,
    .home-explore-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .home-capability-card {
        padding: 20px;
    }

    .home-capability-index {
        margin-bottom: 13px;
    }

    .home-method-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px;
        padding: 23px 19px;
        border-radius: 17px;
    }

    .home-final-cta {
        margin-bottom: 42px;
        padding: 27px 19px;
        border-radius: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* P1.1b — Cream homepage surface with readable ChampiDex typography. */
body:has(.home-page) {
    color-scheme: light;
    background: #f4f0df !important;
    color: #0b1734;
}

.home-page {
    background: #f4f0df;
    color: #0b1734;
}

.home-title,
.home-section-title {
    color: #0b1734;
}

.home-title .home-title-accent {
    color: #087cff;
}

.home-description,
.home-section-description,
.home-intelligence-copy > p {
    color: #46536a;
}

.home-eyebrow {
    color: #0870a8;
}

.home-trust-row {
    color: #4b5870;
}

.home-button-secondary {
    border-color: #d4dbea;
    background: #fff;
    color: #17304f;
}

.home-button-secondary:hover {
    border-color: #9ab8dc;
    background: #f8fbff;
}

.home-section-bordered {
    border-top-color: #ded8c7;
}

/* P1.2 — Remove hero corner glow and unify final CTA panel. */
.home-hero::before {
    display: none;
}

.home-final-cta {
    background: #0d172b;
    background-image: none;
    border-color: rgba(79, 158, 242, .28);
}

/* P1.3 — Solid navy principle cards. */
.home-principle-list li {
    background: #0d172b;
    border-color: rgba(83, 155, 235, .28);
}

/* Meta CTA spacing correction */
.home-method-panel .home-actions {
    gap: 16px;
    row-gap: 16px;
}
@media (max-width: 980px) {
    .home-method-panel .home-actions {
        gap: 16px;
    }
}
