:root {
    color-scheme: light dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111318;
    color: #eef2f7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #23385f 0, transparent 34rem), #111318;
}

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

.hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.eyebrow {
    color: #9fb7e7;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin: 0 0 8px;
}

h1 {
    font-size: clamp(2.4rem, 8vw, 5rem);
    line-height: 1;
    margin: 0;
}

h2 {
    margin-top: 0;
}

.lead {
    max-width: 650px;
    font-size: 1.08rem;
    color: #c7d2e4;
}

.card {
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 24px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.form {
    display: grid;
    gap: 18px;
}

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

label {
    display: grid;
    gap: 8px;
    font-weight: 650;
}

input,
select,
button {
    width: 100%;
    font: inherit;
    border-radius: 14px;
}

input,
select {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.22);
    color: inherit;
}

button {
    border: 0;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 800;
    background: #8db5ff;
    color: #061226;
}

button:hover {
    filter: brightness(1.05);
}

details {
    color: #c7d2e4;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

.result img {
    display: block;
    width: min(100%, 850px);
    height: auto;
    margin: 12px auto 0;
    border-radius: 16px;
    background: #05070a;
}

pre {
    overflow-x: auto;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.32);
    padding: 14px;
    border-radius: 14px;
}

.error {
    border-color: rgba(255, 120, 120, 0.45);
}

@media (max-width: 700px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}

select:focus,
input:focus,
textarea:focus {
    color: #111827;
    background-color: #ffffff;
}