:root {
    color-scheme: dark light;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #020617;
    color: #e2e8f0;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.hero {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    margin-bottom: 3rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #38bdf8;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin: 0.5rem 0;
}

.strap {
    color: #cbd5f5;
    max-width: 36ch;
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.button {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.button.primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    border: none;
    color: #0f172a;
    font-weight: 600;
}

.button.ghost {
    background: transparent;
}

.button.small {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hero-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
}

.divider {
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    margin: 0.5rem 0;
}

.label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.value {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.sub {
    margin: 0;
    color: #94a3b8;
}

.palette {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.swatch {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

section {
    margin-bottom: 3rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-head h2 {
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 1.25rem;
    padding: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.35);
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: #cbd5f5;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form textarea {
    width: 100%;
    margin-top: 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.8);
    color: #e2e8f0;
    padding: 0.75rem;
    resize: vertical;
    font-family: inherit;
}

.form-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.status {
    margin: 0;
    font-size: 0.9rem;
    color: #38bdf8;
}

.diagnostics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

#init-data {
    width: 100%;
    min-height: 180px;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.8);
    color: #e2e8f0;
    padding: 0.75rem;
    font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

#diagnostics-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#diagnostics-list li {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .page {
        padding: 2rem 1rem 3rem;
    }

    .card,
    .hero-card {
        padding: 1rem;
    }
}

