:root {
    color-scheme: dark;
    --background: #08080b;
    --surface: #121016;
    --text: #f8f5ff;
    --muted: #b9afca;
    --border: #4b3d5c;
    --purple: #942cff;
    --purple-light: #b56aff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
select:disabled,
textarea:disabled {
    cursor: wait;
    opacity: 0.65;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--purple-light);
    outline-offset: 4px;
}

.site-header {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 48px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    color: white;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: var(--purple-light);
}

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.site-header nav a {
    color: #d7cfe3;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: var(--purple-light);
}

.header-tagline {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

main {
    position: relative;
    isolation: isolate;
}

.hero {
    position: relative;
    padding: 94px 24px 68px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    left: 50%;
    top: 35px;
    width: min(1100px, 110vw);
    height: 620px;
    border: 28px solid #941cff;
    border-bottom: 0;
    border-radius: 900px 900px 0 0;
    transform: translateX(-50%);
    filter: blur(22px);
    opacity: 0.56;
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        rgba(0, 0, 0, 0.65) 40%,
        transparent 85%
    );
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 20%,
        rgba(111, 23, 190, 0.17),
        transparent 65%
    );
}

.eyebrow {
    margin: 0 0 15px;
    color: #bd8aff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.6;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 750;
    letter-spacing: -2.5px;
    line-height: 1.08;
}

.hero h1 span {
    color: #e2ccff;
}

.hero-description {
    max-width: 610px;
    margin: 26px auto 0;
    color: #cfc3df;
    font-size: 15px;
    line-height: 1.9;
}

.analysis-section {
    width: min(880px, calc(100% - 40px));
    margin: 0 auto;
}

.analysis-card {
    margin: 0;
    padding: 32px;
    border: 1px solid #574368;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(24, 18, 33, 0.98),
        rgba(14, 12, 19, 0.98)
    );
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.4),
        0 0 65px rgba(101, 30, 164, 0.08);
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.form-header .eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
}

.form-header h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.7px;
    line-height: 1.3;
}

.badge {
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid #50316f;
    border-radius: 999px;
    background: rgba(110, 31, 187, 0.08);
    color: #dac5ff;
    font-size: 10px;
    white-space: nowrap;
}

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

.form-field {
    min-width: 0;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    color: #e8dff3;
    font-size: 12px;
    font-weight: 600;
}

select {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #44374f;
    border-radius: 9px;
    background: #1c1724;
    color: #fff;
}

select option {
    background: #1c1724;
    color: #fff;
}

.field-hint {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

#domain-hint {
    margin: 12px 0 26px;
}

.textarea-wrapper {
    overflow: hidden;
    border: 1px solid #5c4277;
    border-radius: 11px;
    background: #0d0a12;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.textarea-wrapper:focus-within {
    border-color: var(--purple-light);
    box-shadow: 0 0 0 3px rgba(155, 62, 255, 0.12);
}

textarea {
    display: block;
    width: 100%;
    min-height: 135px;
    margin: 0;
    padding: 18px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
}

textarea:focus-visible {
    outline: none;
}

textarea::placeholder {
    color: #83758f;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 18px 13px;
    color: #b8a6cc;
    font-size: 10px;
}

#character-count {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 22px;
}

.privacy-note {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    min-height: 48px;
    padding: 12px 23px;
    border: 1px solid #a959ff;
    border-radius: 8px;
    background: linear-gradient(110deg, #780ee5, #a22fff);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(126, 21, 225, 0.2);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(126, 21, 225, 0.35);
}

.form-message {
    margin: 22px 0 0;
    padding: 14px 16px;
    border: 1px solid #8c3b59;
    border-radius: 8px;
    background: #2c1420;
    color: #ffe0e8;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.form-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 35px;
    margin-top: 25px;
    color: #b7a6ca;
    font-size: 10px;
}

.result {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid #403347;
    scroll-margin-top: 25px;
}

.result > h2 {
    margin: 0 0 8px;
    font-size: 23px;
    letter-spacing: -0.6px;
}

#result-meta {
    margin: 0 0 14px;
}

#result-claim {
    margin: 0 0 23px;
    color: #f1e7ff;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.result-block {
    padding: 23px;
    border: 1px solid #43324f;
    border-radius: 12px;
    background: rgba(8, 6, 13, 0.45);
}

.result-block + .result-block {
    margin-top: 16px;
}

.result-block h3 {
    margin: 0 0 14px;
    color: #bd8aff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.result-block p {
    margin: 10px 0 0;
    overflow-wrap: anywhere;
}

#ai-verdict,
#database-verdict {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

#result-explanation,
#database-explanation {
    color: #d7cee2;
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-wrap;
}

#database-source-wrapper {
    color: #b9a8cc;
    font-size: 12px;
}

#database-source {
    color: #c48dff;
    text-underline-offset: 3px;
}

#comparison-result {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

#comparison-result[data-status="agree"] {
    color: #83e0b0;
}

#comparison-result[data-status="disagree"] {
    color: #ff95af;
}

#comparison-result[data-status="inconclusive"],
#comparison-result[data-status="no_reference"] {
    color: #e6c688;
}

#comparison-note {
    margin-top: 12px;
}

.examples-section,
.how-it-works {
    width: min(1080px, calc(100% - 48px));
    margin: 120px auto 0;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 40px);
    letter-spacing: -1.3px;
    line-height: 1.25;
}

.section-heading h2 span {
    color: #a85bff;
}

.section-heading > p:last-child:not(.eyebrow) {
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 13px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 17px;
}

.example-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-column: span 2;
    min-width: 0;
    min-height: 210px;
    padding: 25px 23px;
    border: 1px solid #514859;
    border-radius: 12px;
    background: linear-gradient(135deg, #16121c, #111014);
    color: #fff;
    text-align: left;
    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.example-card:nth-child(4),
.example-card:nth-child(5) {
    grid-column: span 3;
}

.example-card:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: #ae6aff;
}

.example-card.is-selected,
.example-card[aria-pressed="true"] {
    border-color: #ae62ff;
    background: linear-gradient(120deg, #50109f, #7610e6);
    box-shadow: 0 8px 30px rgba(111, 15, 219, 0.18);
}

.example-category {
    padding-right: 35px;
    color: #c597ff;
    font-size: 11px;
}

.example-card.is-selected .example-category,
.example-card[aria-pressed="true"] .example-category {
    color: #eee0ff;
}

.example-arrow {
    position: absolute;
    top: 24px;
    right: 23px;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid #735091;
    border-radius: 50%;
    color: #c695ff;
    font-size: 15px;
    line-height: 1;
}

.example-card.is-selected .example-arrow,
.example-card[aria-pressed="true"] .example-arrow {
    border-color: #b777fa;
    color: #fff;
}

.example-claim {
    display: block;
    margin: 28px 0;
    font-size: 16px;
    line-height: 1.6;
}

.example-action {
    display: block;
    margin-top: auto;
    color: #d8c5ed;
    font-size: 10px;
}

.how-it-works {
    padding-bottom: 85px;
}

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

.step-card {
    padding: 25px 21px;
    border: 1px solid #493452;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        rgba(66, 17, 105, 0.3),
        rgba(20, 14, 28, 0.7)
    );
}

.step-number {
    color: #b57aff;
    font-size: 28px;
    font-weight: 600;
}

.step-card h3 {
    margin: 17px 0 10px;
    font-size: 15px;
    line-height: 1.5;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.site-footer {
    padding: 27px 24px;
    border-top: 1px solid #27202e;
    color: #a698b5;
    text-align: center;
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}

@media (min-width: 1600px) {
    .hero {
        padding-top: 110px;
    }
}

@media (max-width: 800px) {
    .site-header {
        width: calc(100% - 36px);
    }

    .header-tagline {
        display: none;
    }

    .site-header nav {
        gap: 17px;
    }

    .hero {
        padding-top: 70px;
    }

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

@media (max-width: 600px) {
    html {
        scroll-padding-top: 24px;
    }

    .site-header {
        min-height: 78px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 12px 0;
    }

    .logo {
        font-size: 26px;
    }

    .site-header nav {
        width: 100%;
        gap: 20px;
    }

    .site-header nav a {
        font-size: 11px;
    }

    .hero {
        padding: 60px 20px 38px;
    }

    .hero::before {
        top: 15px;
        height: 430px;
        border-width: 19px;
        filter: blur(18px);
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 48px);
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 13px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.8px;
    }

    .analysis-section {
        width: calc(100% - 28px);
    }

    .analysis-card {
        padding: 23px 18px;
        border-radius: 14px;
    }

    .form-header {
        align-items: flex-start;
        gap: 12px;
    }

    .form-header h2 {
        font-size: 21px;
    }

    .badge {
        padding: 6px 8px;
        font-size: 8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    textarea {
        min-height: 150px;
        padding: 15px;
    }

    .textarea-footer {
        padding-right: 14px;
        padding-left: 14px;
        font-size: 9px;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .primary-button {
        width: 100%;
    }

    .form-steps {
        gap: 10px 17px;
        font-size: 9px;
    }

    .result-block {
        padding: 18px;
    }

    #comparison-result {
        font-size: 18px;
    }

    .examples-section,
    .how-it-works {
        width: calc(100% - 32px);
        margin-top: 78px;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .example-card,
    .example-card:nth-child(4),
    .example-card:nth-child(5) {
        grid-column: auto;
        min-height: 185px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .how-it-works {
        padding-bottom: 55px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}