:root {
    color-scheme: dark;
    --bg: #0d1117;
    --bg-raised: #151b24;
    --bg-input: #0f151d;
    --line: #232c39;
    --line-strong: #2f3a4a;
    --text: #e8edf5;
    --text-dim: #9aa7b8;
    --text-faint: #6d7b8d;
    --accent: #5b8cff;
    --accent-hover: #6f9bff;
    --danger: #ff7b72;
    --ok: #4ac47a;
    --radius: 10px;
    --radius-sm: 7px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(58rem 30rem at 78% -12%, rgba(91, 140, 255, .14), transparent 62%),
        radial-gradient(44rem 26rem at 4% 104%, rgba(74, 196, 122, .07), transparent 60%);
}

.shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 74rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- top bar ---------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -.01em;
}

.brand-mark {
    width: 30px;
    height: 30px;
    color: var(--accent);
    flex: none;
}

.brand-text {
    font-size: 1.06rem;
    font-weight: 400;
    color: var(--text-dim);
}

.brand-text b {
    font-weight: 650;
    color: var(--text);
}

.topnav {
    display: flex;
    gap: 1.4rem;
    font-size: .93rem;
}

.topnav a {
    color: var(--text-dim);
    text-decoration: none;
}

.topnav a:hover,
.topnav a:focus-visible {
    color: var(--text);
}

/* ---------- layout ---------- */

.main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 4rem;
    align-items: start;
    padding: 4.5rem 0 3.5rem;
}

/* ---------- pitch ---------- */

.pitch h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 4.6vw, 3.05rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 640;
}

.lede {
    margin: 0 0 2.4rem;
    max-width: 34rem;
    color: var(--text-dim);
    font-size: 1.04rem;
}

.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    max-width: 33rem;
}

.features li {
    display: grid;
    gap: .3rem;
    padding-left: 1.1rem;
    border-left: 2px solid var(--line-strong);
}

.feature-title {
    font-weight: 600;
    font-size: .97rem;
}

.feature-body {
    color: var(--text-faint);
    font-size: .92rem;
    line-height: 1.5;
}

/* ---------- sign-in panel ---------- */

.panel {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem 1.75rem 1.6rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

.panel h2 {
    margin: 0 0 .25rem;
    font-size: 1.24rem;
    letter-spacing: -.015em;
    font-weight: 620;
}

.panel-note {
    margin: 0 0 1.6rem;
    color: var(--text-faint);
    font-size: .9rem;
}

.form {
    display: grid;
    gap: 1.05rem;
}

.field {
    display: grid;
    gap: .4rem;
}

.field-label {
    font-size: .86rem;
    color: var(--text-dim);
}

.field input {
    width: 100%;
    padding: .66rem .75rem;
    font: inherit;
    font-size: .95rem;
    color: var(--text);
    background: var(--bg-input);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}

.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, .18);
}

.field input.invalid {
    border-color: var(--danger);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .89rem;
    color: var(--text-dim);
    user-select: none;
}

.checkbox input {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
}

.submit {
    margin-top: .2rem;
    padding: .7rem 1rem;
    font: inherit;
    font-size: .96rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .12s ease;
}

.submit:hover:not(:disabled) {
    background: var(--accent-hover);
}

.submit:disabled {
    opacity: .62;
    cursor: default;
}

.form-error {
    margin: 0;
    font-size: .88rem;
    color: var(--danger);
}

.provisioning {
    margin: 1.5rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--text-faint);
    font-size: .84rem;
    line-height: 1.5;
}

/* ---------- footer ---------- */

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: 1.2rem 0 1.8rem;
    border-top: 1px solid var(--line);
    color: var(--text-faint);
    font-size: .84rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(74, 196, 122, .16);
}

.sep {
    color: var(--line-strong);
}

/* ---------- responsive ---------- */

@media (max-width: 62rem) {
    .main {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.75rem;
        padding: 3rem 0 2.5rem;
    }

    .panel {
        max-width: 27rem;
    }
}

@media (max-width: 30rem) {
    .shell {
        padding: 0 1.1rem;
    }

    .topnav {
        gap: 1rem;
        font-size: .88rem;
    }

    .panel {
        padding: 1.5rem 1.25rem 1.3rem;
    }
}

/* ---------- content pages ---------- */

.doc {
    max-width: 46rem;
    padding: 3.2rem 0 3rem;
}

.doc h1 {
    margin: 0 0 .6rem;
    font-size: clamp(1.9rem, 3.6vw, 2.4rem);
    letter-spacing: -.03em;
    font-weight: 640;
}

.doc .lede {
    margin-bottom: 2.6rem;
}

.doc h2 {
    margin: 2.4rem 0 .7rem;
    font-size: 1.12rem;
    font-weight: 620;
    letter-spacing: -.012em;
}

.doc p {
    margin: 0 0 1rem;
    color: var(--text-dim);
    font-size: .96rem;
}

.doc ul {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: var(--text-dim);
    font-size: .96rem;
}

.doc li {
    margin-bottom: .4rem;
}

.doc code {
    padding: .12em .38em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
    color: var(--text);
    background: var(--bg-input);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
}

.components {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.components li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: .82rem 1.1rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    font-size: .94rem;
    color: var(--text);
}

.components li:last-child {
    border-bottom: none;
}

.component-state {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text-dim);
    font-size: .87rem;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.metrics li {
    margin: 0;
    padding: 1rem 1.1rem;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 640;
    letter-spacing: -.02em;
    color: var(--text);
}

.metric-label {
    display: block;
    margin-top: .15rem;
    font-size: .82rem;
    color: var(--text-faint);
}
