:root {
    --bg: #07111f;
    --panel: rgba(8, 20, 38, 0.72);
    --panel-strong: rgba(10, 24, 45, 0.92);
    --border: rgba(177, 213, 255, 0.18);
    --text: #eef6ff;
    --muted: #9cb6d5;
    --accent: #57d9a3;
    --accent-2: #7ab8ff;
    --danger: #ff6b6b;
    --danger-bg: rgba(255, 107, 107, 0.14);
    --success: #57d9a3;
    --success-bg: rgba(87, 217, 163, 0.14);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --heading: "Outfit", sans-serif;
    --body: "Space Grotesk", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(122, 184, 255, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(87, 217, 163, 0.14), transparent 35%),
        linear-gradient(135deg, #07111f 0%, #0c1d33 55%, #081424 100%);
}

.shell {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.hero-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    padding: 40px;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(122, 184, 255, 0.12);
    color: #d9ecff;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    font-family: var(--heading);
}

h1 {
    margin-top: 18px;
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    line-height: 0.95;
}

.lede {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 18px 0 30px;
}

.grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 20px;
}

.panel {
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
}

.label,
.hint,
.meta,
.score-band,
.confidence-label,
.lede,
#resultMessage {
    font-family: var(--body);
}

.label {
    display: block;
    margin-bottom: 12px;
    color: #d6e8ff;
    font-size: 0.95rem;
}

textarea {
    width: 100%;
    min-height: 240px;
    resize: vertical;
    border-radius: 18px;
    border: 1px solid rgba(177, 213, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 18px;
    font: inherit;
    line-height: 1.6;
    outline: none;
    transition: border-color 180ms ease, transform 180ms ease;
}

textarea:focus {
    border-color: rgba(122, 184, 255, 0.7);
    transform: translateY(-1px);
}

textarea::placeholder {
    color: #7e9bbe;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

button {
    border: 0;
    border-radius: 14px;
    padding: 14px 20px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

button:hover {
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.72;
    cursor: progress;
    transform: none;
}

.primary-btn {
    flex: 1;
    color: #04111d;
    background: linear-gradient(135deg, #7ab8ff 0%, #57d9a3 100%);
    box-shadow: 0 12px 30px rgba(87, 217, 163, 0.22);
}

.ghost-btn {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(177, 213, 255, 0.14);
}

.hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.score-band {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #d8eaff;
}

.output-panel h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#resultMessage {
    color: var(--muted);
    line-height: 1.7;
    min-height: 76px;
}

.confidence-wrap {
    margin-top: 28px;
}

.confidence-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #d8eaff;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.confidence-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.confidence-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #7ab8ff 0%, #57d9a3 100%);
    transition: width 240ms ease;
}

.meta {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.status-fake {
    background: var(--danger-bg);
    color: #ffd5d5;
}

.status-real {
    background: var(--success-bg);
    color: #d8fff0;
}

.fill-fake {
    background: linear-gradient(135deg, #ffa29f 0%, #ff6b6b 100%);
}

.fill-real {
    background: linear-gradient(135deg, #7ab8ff 0%, #57d9a3 100%);
}

@media (max-width: 840px) {
    .hero-card {
        padding: 24px;
    }

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

@media (max-width: 560px) {
    .shell {
        width: min(100% - 20px, 1100px);
        padding: 20px 0;
    }

    .actions {
        flex-direction: column;
    }
}
