:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #dbe3ef;
    --success: #0f766e;
    --error: #b91c1c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 38px clamp(20px, 5vw, 72px);
    color: #fff;
    background: linear-gradient(135deg, #172554, #2563eb);
}

.hero h1 {
    margin: 6px 0 10px;
    font-size: clamp(32px, 5vw, 56px);
}

.hero p {
    max-width: 760px;
    margin: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    opacity: .78;
}

.db-stack {
    display: grid;
    align-content: center;
    gap: 10px;
    min-width: 220px;
}

.db-stack span,
.use-cases h3 span {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .12);
    font-size: 13px;
}

main {
    width: min(1440px, calc(100% - 32px));
    margin: 24px auto 48px;
}

.grid {
    display: grid;
    gap: 20px;
}

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

.grid.compact {
    gap: 12px;
}

.card {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    background: var(--card);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

label small {
    color: var(--muted);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 12px;
    color: var(--text);
    background: #fff;
    font: inherit;
}

select[multiple] {
    min-height: 132px;
}

button {
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    color: #fff;
    background: var(--primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: var(--primary-dark);
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check input {
    width: auto;
}

.alert {
    margin-bottom: 16px;
    border-radius: 14px;
    padding: 14px 16px;
    background: #e0f2fe;
    color: #075985;
    font-weight: 700;
}

.alert.success {
    background: #ccfbf1;
    color: var(--success);
}

.alert.error,
.error {
    background: #fee2e2;
    color: var(--error);
}

.notice {
    border-radius: 10px;
    padding: 10px 12px;
    color: #92400e;
    background: #fef3c7;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
}

.inline {
    min-width: 260px;
}

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

.use-cases article {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: #f8fafc;
    overflow-x: auto;
}

.use-cases h3 span {
    margin-left: 8px;
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    border-bottom: 1px solid var(--border);
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

th {
    color: #334155;
    background: #eef2ff;
}

code {
    border-radius: 6px;
    padding: 2px 6px;
    background: #e2e8f0;
}

@media (max-width: 980px) {
    .hero,
    .section-heading {
        display: grid;
    }

    .grid.two,
    .use-cases {
        grid-template-columns: 1fr;
    }
}
