:root {
    color-scheme: dark;
    --background: #050807;
    --surface: rgba(14, 24, 20, 0.92);
    --surface-strong: #101b17;
    --border: rgba(91, 255, 174, 0.2);
    --green: #5bffae;
    --green-bright: #9affcb;
    --text: #f3fff8;
    --muted: #9bb2a6;
    --danger: #ff6d7a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(34, 255, 145, 0.12),
            transparent 32rem
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(26, 120, 83, 0.12),
            transparent 30rem
        ),
        var(--background);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: 0.28;
    background-image:
        linear-gradient(
            rgba(91, 255, 174, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(91, 255, 174, 0.035) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
}

.page-shell {
    display: grid;
    min-height: 95vh;
    place-items: center;
    padding: 48px 20px;
}

.hero,
.exit-card {
    width: min(880px, 100%);
    padding: clamp(28px, 6vw, 72px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(20, 36, 29, 0.95),
            rgba(7, 13, 11, 0.96)
        );
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 54px;
    color: var(--green-bright);
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(91, 255, 174, 0.5);
    border-radius: 12px;
    background: rgba(91, 255, 174, 0.08);
    box-shadow: 0 0 30px rgba(91, 255, 174, 0.12);
    font-size: 0.78rem;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.19em;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h1 span {
    display: block;
    color: var(--green);
}

.intro {
    max-width: 620px;
    margin: 26px 0;
    color: #dff7e9;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1.55;
}

.truths {
    margin: 34px 0;
    padding-left: 20px;
    border-left: 2px solid var(--green);
    color: var(--muted);
    line-height: 1.4;
}

.truths p {
    margin: 7px 0;
}

.message {
    max-width: 690px;
    color: var(--muted);
    line-height: 1.7;
}

.scanner {
    margin-top: 36px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.2);
}

.scanner label {
    display: block;
    margin-bottom: 10px;
    color: var(--green-bright);
    font-size: 0.82rem;
    font-weight: 700;
}

.search-row {
    display: flex;
    gap: 10px;
}

input {
    min-width: 0;
    flex: 1;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    outline: none;
    background: #080e0b;
    color: var(--text);
    font-family: ui-monospace, monospace;
    font-size: 0.92rem;
}

input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(91, 255, 174, 0.1);
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: var(--surface-strong);
    color: var(--text);
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

button:hover,
.button:hover {
    transform: translateY(-1px);
    border-color: var(--green);
}

button,
.button.primary {
    border-color: transparent;
    background: var(--green);
    color: #03120b;
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.button.danger {
    border-color: rgba(255, 109, 122, 0.35);
    color: #ffadb5;
}

.error {
    margin-top: 14px;
    color: #ffadb5;
    line-height: 1.5;
    white-space: pre-wrap;
}

.loading {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.88rem;
}

.loading.visible {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 2px solid rgba(91, 255, 174, 0.2);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.closing {
    margin: 30px 0 8px;
    color: var(--green-bright);
    font-weight: 700;
}

.disclaimer,
.affiliation {
    color: #71877c;
    font-size: 0.76rem;
    line-height: 1.55;
}

body > .affiliation {
    width: min(880px, calc(100% - 40px));
    margin: -70px auto 32px;
    text-align: center;
}

.report-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 64px;
}

.report-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 28px;
}

.report-header .brand {
    margin: 0;
}

.report-header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.report-address {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-family: ui-monospace, monospace;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.report-card {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(5, 11, 8, 0.94);
    box-shadow: var(--shadow);
}

pre {
    min-width: 720px;
    margin: 0;
    padding: clamp(22px, 4vw, 46px);
    color: #dff7e9;
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono",
        monospace;
    font-size: 0.86rem;
    line-height: 1.62;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.exit-card {
    text-align: center;
}

.exit-card .brand,
.exit-card .report-actions {
    justify-content: center;
}

.exit-card h1 {
    margin: 28px auto;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.exit-card p {
    color: var(--muted);
}

@media (max-width: 700px) {
    .search-row {
        flex-direction: column;
    }

    .report-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-actions .button,
    .report-actions button {
        width: 100%;
    }

    pre {
        min-width: 0;
        font-size: 0.74rem;
    }
}
.brand-mark {
    border-color: rgba(190, 255, 60, 0.72);
    background: rgba(190, 255, 60, 0.1);
    color: #00c805;
    box-shadow: 0 0 28px rgba(190, 255, 60, 0.18);
}

#scan-button {
    background: #00c805;
    color: #071004;
    box-shadow: 0 8px 30px rgba(190, 255, 60, 0.18);
}

#scan-button:hover {
    background: #20dc32;
}
.brand-mark {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.brand > span:not(.brand-mark) {
    background: linear-gradient(90deg, #beff3c, #39f6a2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 850;
    letter-spacing: -0.04em;
}
/* SIMPLE RESULTS PAGE */

.report-page {
    width: min(1100px, calc(100% - 32px));
    margin: 32px auto;
    padding: 42px;
    border: 1px solid rgba(83, 230, 205, 0.28);
    border-radius: 28px;
    background: rgba(8, 25, 35, 0.92);
}

.report-header {
    margin-bottom: 28px;
}

.report-header .brand {
    margin-bottom: 42px;
}

.report-header h1 {
    margin: 8px 0;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
}

.token-heading {
    margin: 22px 0 6px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
}

.report-address {
    margin: 0;
    color: #9cb0ba;
    font-family: monospace;
    overflow-wrap: anywhere;
}

.assessment-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.overview-item {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.overview-item span {
    display: block;
    margin-bottom: 8px;
    color: #9cb0ba;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.overview-item strong {
    font-size: 1.2rem;
}

.overview-item.pass {
    border-color: rgba(0, 200, 5, 0.55);
}

.overview-item.warning {
    border-color: rgba(255, 184, 77, 0.65);
}

.overview-item.danger {
    border-color: rgba(255, 92, 122, 0.7);
}
.overview-item.limited {
    border-color: #6b7280;
    background: rgba(107, 114, 128, 0.12);
    color: #d1d5db;
}

.summary-card,
.download-card {
    margin-top: 22px;
    padding: 28px;
    border: 1px solid rgba(83, 230, 205, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.summary-card h2,
.download-card h2 {
    margin: 0 0 8px;
    color: #ffffff;
}

.summary-intro,
.download-card p {
    margin: 0 0 24px;
    color: #9cb0ba;
    line-height: 1.6;
}

.check-list {
    display: grid;
    gap: 10px;
}

.check-row {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.check-row.pass {
    border-left: 4px solid #00c805;
}

.check-row.warning {
    border-left: 4px solid #ffb84d;
}

.check-row.danger {
    border-left: 4px solid #ff5c7a;
}

.check-row.info {
    border-left: 4px solid #53e6cd;
}

.check-number,
.check-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: 900;
}

.check-number {
    color: #9cb0ba;
    background: rgba(255, 255, 255, 0.07);
}

.check-icon {
    color: #07130f;
}

.check-row.pass .check-icon {
    background: #00c805;
}

.check-row.warning .check-icon {
    background: #ffb84d;
}

.check-row.danger .check-icon {
    color: #ffffff;
    background: #ff5c7a;
}

.check-row.info .check-icon {
    background: #53e6cd;
}

.check-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.check-label {
    color: #ffffff;
    font-weight: 800;
}

.check-value {
    color: #b9c8cf;
    text-align: right;
}

.download-card {
    text-align: center;
}

.download-card .button {
    display: inline-block;
}

.report-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 30px;
}

.report-disclaimer,
.report-page .affiliation {
    color: #71858f;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 720px) {
    .report-page {
        width: min(100% - 16px, 1100px);
        margin: 8px auto;
        padding: 22px 14px;
        border-radius: 18px;
    }

    .assessment-overview {
        grid-template-columns: 1fr;
    }

    .summary-card,
    .download-card {
        padding: 18px 14px;
    }

    .check-row {
        grid-template-columns: 34px 1fr 34px;
        gap: 10px;
        padding: 12px 10px;
    }

    .check-copy {
        display: block;
    }

    .check-label,
    .check-value {
        display: block;
        text-align: left;
    }

    .check-value {
        margin-top: 5px;
        font-size: 0.9rem;
    }
}
/* COMPACT DESKTOP LAYOUT */

@media (min-width: 700px) {
    .page-shell {
        width: min(1180px, calc(100% - 20px));
        min-height: calc(100vh - 12px);
        margin: 6px auto;
        padding: 14px 42px 10px;
    }

    .hero {
        max-width: none;
    }

    .hero .brand {
        margin-bottom: 12px;
    }

    .hero .eyebrow {
        margin: 0 0 6px;
    }

    .hero h1 {
        margin: 0 0 8px;
        font-size: clamp(2.8rem, 5.2vw, 4.6rem);
        line-height: 0.92;
    }

    .hero .intro {
        margin: 0 0 8px;
        font-size: 1.05rem;
    }

    .truths {
        margin: 6px 0 8px;
        padding: 4px 0 4px 16px;
        line-height: 1.35;
    }

    .message {
        margin: 6px 0 8px;
        line-height: 1.35;
    }

    .scanner {
        margin: 8px 0;
        padding: 12px 16px;
    }

    .search-row {
        gap: 10px;
    }

    .search-row input,
    .search-row button {
        min-height: 48px;
    }

    .loading {
        margin-top: 8px;
    }

    .closing {
        margin: 8px 0 2px;
    }

    .disclaimer {
        margin: 2px 0 5px;
    }

    .affiliation {
        margin: 5px 0 0;
        padding-top: 4px;
    }

    .report-page {
        width: min(1240px, calc(100% - 16px));
        margin: 4px auto;
        padding: 10px 20px 8px;
        border-radius: 18px;
    }

    .report-header {
        display: grid;
        grid-template-columns: 170px 210px 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 18px;
        margin-bottom: 6px;
    }

    .report-header .brand {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0;
    }

    .report-header .eyebrow {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin: 0 0 2px;
        font-size: 0.65rem;
    }

    .report-header h1 {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        margin: 0;
        font-size: 2rem;
        line-height: 1;
    }

    .token-heading {
        grid-column: 3;
        grid-row: 1;
        align-self: end;
        margin: 0 0 2px;
        font-size: 1rem;
    }

    .report-address {
        grid-column: 3;
        grid-row: 2;
        align-self: start;
        font-size: 0.68rem;
    }

    .assessment-overview {
        gap: 7px;
        margin: 6px 0;
    }

    .overview-item {
        padding: 7px 12px;
        border-radius: 10px;
    }

    .overview-item span {
        margin-bottom: 1px;
        font-size: 0.62rem;
    }

    .overview-item strong {
        font-size: 0.9rem;
    }

    .summary-card {
        margin-top: 6px;
        padding: 9px 12px;
        border-radius: 14px;
    }

    .summary-card h2 {
        display: inline;
        margin: 0 10px 0 0;
        font-size: 1rem;
    }

    .summary-intro {
        display: inline;
        margin: 0;
        font-size: 0.72rem;
    }

    .check-list {
        grid-template-rows: repeat(5, 1fr);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: column;
        gap: 5px 8px;
        margin-top: 7px;
    }

    .check-row {
        grid-template-columns: 30px 1fr 30px;
        gap: 8px;
        min-height: 48px;
        padding: 8px 10px;
    }

    .check-number,
    .check-icon {
        width: 30px;
        height: 30px;
    }

    .check-copy {
        display: block;
    }

    .check-label,
    .check-value {
        display: block;
        text-align: left;
    }

    .check-label {
        font-size: 0.76rem;
    }

    .check-value {
        margin-top: 2px;
        font-size: 0.68rem;
    }

    .download-card {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
        margin-top: 6px;
        padding: 8px 12px;
    }

    .download-card h2 {
        margin: 0;
        font-size: 0.95rem;
    }

    .download-card p {
        margin: 0;
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .download-card .button {
        padding: 9px 12px;
    }

    .report-actions {
        gap: 8px;
        margin: 6px 0;
    }

    .report-actions .button {
        padding: 7px 11px;
        font-size: 0.72rem;
    }

    .report-disclaimer,
    .report-page .affiliation {
        font-size: 0.67rem;
        line-height: 1.35;
    }
}
/* WIDE SINGLE-SCREEN HOMEPAGE */

@media (min-width: 700px) {
    .hero {
        display: grid;
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(280px, 0.92fr);
        grid-template-areas:
            "brand brand"
            "eyebrow intro"
            "title truths"
            "title message"
            "scanner scanner"
            "closing disclaimer"
            "affiliation affiliation";
        width: 100%;
        padding: 26px 38px 14px;
        column-gap: 34px;
        row-gap: 7px;
    }

    .hero .brand {
        grid-area: brand;
        margin: 0 0 8px;
    }

    .hero .eyebrow {
        grid-area: eyebrow;
        align-self: end;
        margin: 0;
    }

    .hero h1 {
        grid-area: title;
        align-self: start;
        margin: 0;
        font-size: clamp(2.8rem, 5vw, 4.8rem);
        line-height: 0.94;
    }

    .hero .intro {
        grid-area: intro;
        align-self: end;
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .hero .truths {
        grid-area: truths;
        align-self: center;
        margin: 5px 0;
        padding: 3px 0 3px 16px;
    }

    .hero .truths p {
        margin: 4px 0;
    }

    .hero .message {
        grid-area: message;
        align-self: start;
        margin: 0;
        line-height: 1.45;
    }

    .hero .scanner {
        grid-area: scanner;
        margin: 8px 0 2px;
    }

    .hero .closing {
        grid-area: closing;
        align-self: center;
        margin: 4px 0;
    }

    .hero .disclaimer {
        grid-area: disclaimer;
        align-self: center;
        margin: 4px 0;
        text-align: right;
    }

    .hero .affiliation {
        grid-area: affiliation;
        margin: 3px 0 0;
        padding-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        text-align: center;
    }
}
@media (min-width: 700px) {
    body > .affiliation {
        margin: -46px auto 6px;
    }
}
@media (max-width: 699px) {
    body > .affiliation {
        width: calc(100% - 40px);
        margin: 14px auto 22px;
        padding: 0;
        text-align: center;
        line-height: 1.5;
    }
}
