/* =========================================================
   QCAASNET — QUANTUM-PROOF CRYPTOGRAPHY PAGE
   Uses the existing style.css for site-wide typography,
   navigation, buttons, footer, and brand styling.
   ========================================================= */

.qpc-hero {
    min-height: 670px;
    padding: 76px 0 95px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    align-items: center;
    gap: clamp(35px, 5vw, 78px);
}

.qpc-hero-copy h1 {
    max-width: 900px;
    margin: 30px 0 24px;
    font-size: clamp(3.2rem, 6.1vw, 6.6rem);
    line-height: .98;
    letter-spacing: -.075em;
    font-weight: 800;
}

.qpc-hero-copy h1 strong {
    display: block;
    margin-top: 12px;
    color: var(--accent);
}

.qpc-hero-text {
    max-width: 730px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    line-height: 1.8;
}

.qpc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.qpc-note {
    max-width: 720px;
    margin: 26px 0 0;
    color: #6f8299;
    font-size: .82rem;
    line-height: 1.7;
}

.qpc-note span {
    color: var(--accent);
    font-weight: 700;
}

.qpc-console,
.qpc-fact-panel {
    border: 1px solid #1a3a5c;
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 0%, rgba(25, 199, 183, .09), transparent 17rem),
        linear-gradient(145deg, rgba(12, 28, 47, .94), rgba(6, 17, 30, .93));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
}

.qpc-console {
    padding: 30px;
}

.qpc-console-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.qpc-kicker {
    display: block;
    color: #6e849d;
    font: 500 10px "DM Mono", monospace;
    letter-spacing: .13em;
}

.qpc-console-head h2 {
    margin: 9px 0 0;
    font-size: 1.8rem;
    letter-spacing: -.045em;
}

.qpc-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(25, 199, 183, .22);
    border-radius: 5px;
    color: var(--accent);
    white-space: nowrap;
    font: 500 9px "DM Mono", monospace;
    letter-spacing: .08em;
}

.qpc-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.qpc-console-rule {
    height: 1px;
    margin: 24px 0 10px;
    background: var(--line);
}

.qpc-console-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(24, 50, 78, .65);
}

.qpc-console-number {
    color: var(--accent);
    font: 500 12px "DM Mono", monospace;
    padding-top: 3px;
}

.qpc-console-item strong {
    display: block;
    color: #dce7f3;
    font-size: .98rem;
}

.qpc-console-item p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.65;
}

.qpc-console-foot {
    display: grid;
    gap: 8px;
    margin-top: 23px;
}

.qpc-console-foot span {
    color: #617a94;
    font: 500 9px "DM Mono", monospace;
    letter-spacing: .13em;
}

.qpc-console-foot strong {
    color: #cdd9e7;
    font-size: .92rem;
    line-height: 1.55;
}

/* SHARED PAGE HEADINGS */
.qpc-section-heading {
    max-width: 970px;
    margin-bottom: 48px;
}

.qpc-section-heading h2,
.qpc-feature-copy h2,
.qpc-editorial h2 {
    margin: 24px 0 20px;
    font-size: clamp(2.35rem, 4.8vw, 4.7rem);
    line-height: 1.03;
    letter-spacing: -.065em;
}

.qpc-section-heading h2 span,
.qpc-feature-copy h2 span {
    color: var(--accent);
}

.qpc-section-heading > p,
.qpc-feature-copy > p,
.qpc-editorial > p {
    max-width: 850px;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.85;
}

.qpc-threat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.qpc-card,
.qpc-estimate-card,
.qpc-pqc-card,
.qpc-article-card {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 20, 34, .76);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.qpc-card:hover,
.qpc-estimate-card:hover,
.qpc-pqc-card:hover,
.qpc-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(25, 199, 183, .42);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .17);
}

.qpc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.qpc-card-top > span:first-child {
    color: var(--accent);
    font: 500 12px "DM Mono", monospace;
}

.qpc-card-label {
    color: #637a93;
    text-align: right;
    font: 500 9px "DM Mono", monospace;
    letter-spacing: .1em;
}

.qpc-card h3 {
    margin: 45px 0 14px;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.18;
    letter-spacing: -.04em;
}

.qpc-card p,
.qpc-estimate-card p,
.qpc-pqc-card p,
.qpc-article-card p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.8;
}

.qpc-card a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    color: var(--accent);
    font-size: .9rem;
    font-weight: 700;
}

.qpc-card a span {
    transition: transform .2s ease;
}

.qpc-card a:hover span {
    transform: translateX(4px);
}

/* BITCOIN FEATURE */
.qpc-bitcoin {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: clamp(35px, 5vw, 75px);
    align-items: center;
}

.qpc-feature-copy > p {
    margin: 0 0 17px;
}

.qpc-takeaway {
    margin-top: 28px;
    padding: 23px 25px;
    border-left: 3px solid var(--accent);
    border-top: 1px solid rgba(25, 199, 183, .18);
    border-right: 1px solid rgba(25, 199, 183, .18);
    border-bottom: 1px solid rgba(25, 199, 183, .18);
    border-radius: 0 10px 10px 0;
    background: rgba(25, 199, 183, .045);
}

.qpc-takeaway span {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font: 500 10px "DM Mono", monospace;
    letter-spacing: .12em;
}

.qpc-takeaway strong {
    color: #d5e2ef;
    font-size: .98rem;
    line-height: 1.7;
}

.qpc-fact-panel {
    padding: 30px;
}

.qpc-fact-panel > .qpc-kicker {
    margin-bottom: 15px;
}

.qpc-fact {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 13px;
    padding: 19px 0;
    border-bottom: 1px solid rgba(24, 50, 78, .75);
}

.qpc-fact-index {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(25, 199, 183, .3);
    border-radius: 7px;
    color: var(--accent);
    font: 500 11px "DM Mono", monospace;
}

.qpc-fact strong {
    color: #dce7f3;
    font-size: .92rem;
}

.qpc-fact p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.7;
}

.qpc-panel-foot {
    margin: 20px 0 0;
    color: #72859b;
    font-size: .78rem;
    line-height: 1.65;
}

/* RESOURCE ESTIMATES */
.qpc-estimate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.qpc-estimate-card {
    padding: 25px;
}

.qpc-estimate-label {
    color: var(--accent);
    font: 500 9px "DM Mono", monospace;
    letter-spacing: .11em;
}

.qpc-estimate-card h3 {
    margin: 30px 0 11px;
    font-size: 1.15rem;
    letter-spacing: -.025em;
}

.qpc-estimate-card p {
    font-size: .84rem;
}

.qpc-caution {
    margin-top: 20px;
    padding: 27px 30px;
    border: 1px solid rgba(25, 199, 183, .22);
    border-radius: 12px;
    background: radial-gradient(circle at 90% 0%, rgba(25, 199, 183, .07), transparent 20rem), rgba(8, 20, 34, .55);
}

.qpc-caution strong {
    color: #dce7f3;
    font-size: 1.02rem;
}

.qpc-caution p {
    margin: 9px 0 0;
    max-width: 1000px;
    color: var(--muted);
    font-size: .91rem;
    line-height: 1.8;
}

/* PQC STANDARDS */
.qpc-pqc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.qpc-pqc-card {
    position: relative;
    overflow: hidden;
}

.qpc-pqc-card:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 85px;
    height: 85px;
    background: radial-gradient(circle, rgba(25, 199, 183, .1), transparent 70%);
    pointer-events: none;
}

.qpc-pqc-code {
    color: var(--accent);
    font: 500 11px "DM Mono", monospace;
    letter-spacing: .08em;
}

.qpc-pqc-card h3 {
    margin: 24px 0 10px;
    font-size: 2rem;
    letter-spacing: -.05em;
}

.qpc-pqc-type {
    display: inline-block;
    margin-top: 23px;
    padding: 6px 9px;
    border: 1px solid rgba(25, 199, 183, .2);
    border-radius: 5px;
    color: #7ea4b8;
    font: 500 9px "DM Mono", monospace;
    letter-spacing: .08em;
}

.qpc-source-note {
    margin: 25px 0 0;
    color: #72859b;
    font-size: .84rem;
    line-height: 1.8;
}

.qpc-source-note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* MIGRATION STEPS */
.qpc-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.qpc-step {
    padding: 23px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 20, 34, .7);
}

.qpc-step > span {
    display: block;
    margin-bottom: 27px;
    color: var(--accent);
    font: 500 12px "DM Mono", monospace;
}

.qpc-step strong {
    display: block;
    color: #dce7f3;
    font-size: 1rem;
}

.qpc-step p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.75;
}

.qpc-readiness-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-top: 25px;
    padding: 34px;
    border: 1px solid rgba(25, 199, 183, .3);
    border-radius: 15px;
    background: radial-gradient(circle at 90% 30%, rgba(25, 199, 183, .11), transparent 24rem), var(--panel);
}

.qpc-readiness-cta > div {
    max-width: 760px;
}

.qpc-readiness-cta h3 {
    margin: 12px 0 8px;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.qpc-readiness-cta p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.75;
}

.qpc-readiness-cta .button {
    flex: 0 0 auto;
}

/* ARTICLE ROADMAP */
.qpc-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.qpc-article-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.qpc-article-number {
    color: var(--accent);
    font: 500 10px "DM Mono", monospace;
    letter-spacing: .1em;
}

.qpc-article-card h3 {
    margin: 30px 0 13px;
    font-size: 1.25rem;
    line-height: 1.35;
    letter-spacing: -.03em;
}

.qpc-article-status {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 25px;
    color: #657d94;
    font: 500 9px "DM Mono", monospace;
    letter-spacing: .1em;
}

/* EDITORIAL NOTE */
.qpc-editorial {
    margin: 20px 0 100px;
    padding: clamp(28px, 5vw, 55px);
    border: 1px solid rgba(25, 199, 183, .25);
    border-radius: 16px;
    background: radial-gradient(circle at 90% 0%, rgba(25, 199, 183, .09), transparent 25rem), rgba(8, 20, 34, .72);
}

.qpc-editorial h2 {
    margin-top: 20px;
}

.qpc-editorial > p {
    max-width: 950px;
}

.qpc-editorial-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.qpc-editorial-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #a8bdcf;
    background: rgba(5, 11, 22, .4);
    font-size: .83rem;
    transition: border-color .2s ease, color .2s ease;
}

.qpc-editorial-links a:hover {
    color: var(--accent);
    border-color: rgba(25, 199, 183, .4);
}

.qpc-editorial-links span {
    color: var(--accent);
}

.qpc-editorial .qpc-disclaimer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #687d94;
    font-size: .78rem;
}

/* CONTACT */
.qpc-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 20, 34, .62);
}

.qpc-contact h2 {
    margin: 18px 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -.05em;
}

.qpc-contact p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.qpc-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    padding: 15px 18px;
    border: 1px solid rgba(25, 199, 183, .3);
    border-radius: 8px;
    color: #dce7f3;
    background: rgba(25, 199, 183, .05);
    font-weight: 600;
}

.qpc-contact-link strong {
    color: var(--accent);
    font-size: 1.3rem;
}

/* ACCESSIBILITY */
.qpc-card a:focus-visible,
.qpc-editorial-links a:focus-visible,
.qpc-contact-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .qpc-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 65px;
        gap: 40px;
    }

    .qpc-console {
        max-width: 760px;
    }

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

    .qpc-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qpc-readiness-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 800px) {
    .qpc-bitcoin {
        grid-template-columns: 1fr;
    }

    .qpc-pqc-grid {
        grid-template-columns: 1fr;
    }

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

    .qpc-contact {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .qpc-hero {
        padding: 38px 0 65px;
    }

    .qpc-hero-copy h1 {
        margin-top: 25px;
        font-size: clamp(2.75rem, 13vw, 4.4rem);
    }

    .qpc-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .qpc-hero-actions .button {
        width: 100%;
    }

    .qpc-console,
    .qpc-fact-panel {
        padding: 23px;
    }

    .qpc-console-head {
        flex-direction: column;
    }

    .qpc-threat-grid,
    .qpc-estimate-grid,
    .qpc-article-grid {
        grid-template-columns: 1fr;
    }

    .qpc-card,
    .qpc-estimate-card,
    .qpc-pqc-card,
    .qpc-article-card {
        padding: 24px;
    }

    .qpc-card h3 {
        margin-top: 35px;
    }

    .qpc-section-heading h2,
    .qpc-feature-copy h2,
    .qpc-editorial h2 {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .qpc-steps {
        grid-template-columns: 1fr;
    }

    .qpc-step {
        padding: 22px;
    }

    .qpc-step > span {
        margin-bottom: 15px;
    }

    .qpc-readiness-cta {
        padding: 25px;
    }

    .qpc-readiness-cta .button {
        width: 100%;
    }

    .qpc-editorial {
        margin-bottom: 65px;
    }

    .qpc-editorial-links {
        flex-direction: column;
        align-items: stretch;
    }

    .qpc-editorial-links a {
        justify-content: space-between;
    }

    .qpc-contact {
        padding: 25px;
    }

    .qpc-contact-link {
        width: 100%;
        justify-content: space-between;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qpc-card,
    .qpc-estimate-card,
    .qpc-pqc-card,
    .qpc-article-card,
    .qpc-card a span {
        transition: none;
    }

    .qpc-card:hover,
    .qpc-estimate-card:hover,
    .qpc-pqc-card:hover,
    .qpc-article-card:hover {
        transform: none;
    }
}
