:root {
    --bg: #f4f6f8;
    --bg-elevated: #ffffff;
    --ink: #0b1220;
    --muted: #5b6575;
    --line: #e4e8ee;
    --line-strong: #d5dbe3;
    --accent: #0f766e;
    --accent-hover: #0d5f59;
    --accent-soft: #e7f5f3;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --ok: #067647;
    --ok-soft: #ecfdf3;
    --warn: #b54708;
    --warn-soft: #fffaeb;
    --info-soft: #eef4ff;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.04);
    --radius: 14px;
    --header-h: 64px;
    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 500px at 10% -10%, #e7f5f3 0%, transparent 55%),
        radial-gradient(900px 400px at 100% 0%, #eef2ff 0%, transparent 50%),
        var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(440px, calc(100% - 40px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
    font-size: 0.98rem;
}
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
}
.nav a:hover,
.nav a.is-active { color: var(--ink); background: #eef1f4; }
.nav a.nav-cta {
    background: var(--ink);
    color: #fff;
    margin-left: 4px;
}
.nav a.nav-cta:hover { background: #1c2533; color: #fff; }

main { flex: 1; padding: 40px 0 72px; }
.site-footer {
    color: var(--muted);
    font-size: 0.82rem;
    padding: 0 0 32px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
}
.page-head h1 { margin: 0; }
.page-head .lede { margin: 6px 0 0; }

.hero { max-width: 640px; padding: 24px 0 8px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
h1 {
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
    letter-spacing: -0.045em;
    line-height: 1.12;
    margin: 0 0 12px;
    font-weight: 700;
}
h2, h3 { letter-spacing: -0.03em; margin: 28px 0 10px; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin-top: 0; }
.lede, .muted { color: var(--muted); }
.lede { font-size: 1.05rem; }

.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin: 36px 0 8px;
}
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.feature h2 { margin: 12px 0 6px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
}
.feature-icon svg { width: 18px; height: 18px; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.hero .actions { margin-top: 28px; }

.btn, button, input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover, button:hover, input[type=submit]:hover {
    text-decoration: none;
    background: #1c2533;
    color: #fff;
}
.btn:active, button:active { transform: translateY(1px); }
.btn.secondary, a.btn.secondary, button.btn.secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: none;
}
.btn.secondary:hover, a.btn.secondary:hover, button.btn.secondary:hover {
    background: #f8fafc;
    color: var(--ink);
}

label { display: block; font-weight: 600; font-size: 0.86rem; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus, button:focus-visible, .btn:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}
.hint { color: var(--muted); font-size: 0.84rem; margin: 8px 0 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; }
.checkbox input { margin-top: 3px; accent-color: var(--accent); }
.checkbox label { margin: 0; font-weight: 500; font-size: 0.9rem; color: var(--muted); }

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.flash-success { background: var(--ok-soft); color: var(--ok); border-color: #abefc6; }
.flash-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecdca; }
.flash-info { background: var(--warn-soft); color: var(--warn); border-color: #fedf89; }

.table-wrap { padding: 0; overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
    background: #fafbfc;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfc; }
.table a { font-weight: 600; color: var(--ink); }
.table a:hover { color: var(--accent); }

.inline-password {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    min-width: 220px;
}
.inline-password input[type=password] {
    margin: 0;
    padding: 8px 10px;
}
.inline-password button {
    padding: 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #eef1f4;
    color: #344054;
}
.badge.success { background: var(--ok-soft); color: var(--ok); }
.badge.failed, .badge.cancelled { background: var(--danger-soft); color: var(--danger); }
.badge.running { background: var(--info-soft); color: #3538cd; }
.badge.pending { background: var(--warn-soft); color: var(--warn); }

.meta {
    display: grid;
    gap: 0;
}
.meta > div:nth-child(odd) {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 12px;
}
.meta > div:nth-child(even) {
    padding: 4px 0 12px;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}
.meta > div:nth-child(odd):first-child { padding-top: 0; }
.meta > div:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }

.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }

.auth-alt { margin-top: 20px; text-align: center; }
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

@media (max-width: 800px) {
    .grid { grid-template-columns: 1fr; }
    .page-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .wrap { width: min(1040px, calc(100% - 24px)); }
    .header-inner { gap: 10px; }
    .brand-text { display: none; }
    .nav { gap: 0; justify-content: flex-end; }
    .nav a { padding: 7px 9px; font-size: 0.82rem; }
    main { padding: 24px 0 56px; }
    h1 { font-size: 1.7rem; }
}
