@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --tea-green: #c4d6b0;
  --thistle: #beb2c8;
  --sea-green: #0c8346;
  --blushed-brick: #c14953;
  --blue-slate: #495867;
  --ink: #17201c;
  --paper: #f7f8f3;
  --paper-deep: #edf1e8;
  --line: #d8ded2;
  --muted: #68736b;
  --shadow: 0 18px 60px rgba(73, 88, 103, .11);
  --font: "IBM Plex Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .32; background-image: linear-gradient(rgba(73,88,103,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(73,88,103,.035) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 9px; border-radius: 9px; background: var(--ink); color: var(--tea-green); }
nav { display: flex; align-items: center; gap: 24px; }
nav > a:not(.button) { color: var(--blue-slate); }
nav > a:hover { color: var(--sea-green); }
.identity { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-form { margin: 0; }
main { flex: 1; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: white; padding: 12px 18px; cursor: pointer; font-weight: 600; box-shadow: 3px 3px 0 var(--tea-green); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tea-green); background: var(--sea-green); border-color: var(--sea-green); }
.button-small { padding: 8px 13px; box-shadow: none; }
.button-large { padding: 15px 20px; }
.button-full { width: 100%; }
.button-secondary { background: transparent; color: var(--ink); box-shadow: 3px 3px 0 var(--thistle); }
.button-quiet { padding: 7px 11px; background: transparent; color: var(--blue-slate); border-color: var(--line); box-shadow: none; font-size: 12px; }
.button-quiet:hover { color: white; box-shadow: none; transform: none; }
.text-link { font-weight: 600; color: var(--sea-green); }
.eyebrow { color: var(--blue-slate); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 99px; background: var(--sea-green); box-shadow: 0 0 0 4px rgba(12,131,70,.12); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 72px; align-items: center; min-height: 580px; padding: 72px 0 60px; }
.hero > .eyebrow, .hero > h1, .hero > .hero-copy, .hero > .hero-actions { grid-column: 1; }
h1 { margin: 18px 0; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.065em; }
h1 em { color: var(--sea-green); font-style: normal; }
.hero-copy { max-width: 690px; margin: 4px 0 28px; color: var(--blue-slate); font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-terminal { grid-column: 2; grid-row: 1 / span 4; width: 100%; border: 1px solid var(--blue-slate); border-radius: 12px; background: #202b2f; color: #eaf0e3; box-shadow: 14px 14px 0 var(--thistle); overflow: hidden; transform: rotate(1deg); }
.terminal-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #2d3a40; border-bottom: 1px solid #415057; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--blushed-brick); }
.terminal-bar span:nth-child(2) { background: var(--tea-green); }
.terminal-bar span:nth-child(3) { background: var(--sea-green); }
.terminal-bar b { margin-left: auto; color: #9faead; font-size: 10px; font-weight: 500; }
.hero-terminal code { display: block; padding: 30px; line-height: 2; font-size: 13px; }
.hero-terminal i { color: var(--thistle); font-style: normal; }
.hero-terminal strong { color: var(--tea-green); }
.hero-terminal code span { color: #82908e; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 0 96px; }
.service-card { min-height: 255px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-top: 5px solid var(--sea-green); border-radius: 9px; background: rgba(255,255,255,.7); box-shadow: var(--shadow); }
.service-card.accent-purple { border-top-color: var(--thistle); }
.service-card.accent-red { border-top-color: var(--blushed-brick); }
.card-index { color: var(--muted); font-size: 11px; }
.service-card h2 { margin: 28px 0 8px; font-size: 22px; letter-spacing: -.04em; }
.service-card p { color: var(--blue-slate); margin: 0 0 28px; }
.service-card a, .service-card .muted { margin-top: auto; color: var(--sea-green); font-weight: 600; font-size: 12px; }
.service-card .muted { color: var(--muted); }
.principles { margin-bottom: 96px; padding: 56px; border-radius: 12px; background: var(--tea-green); }
.principles > p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.principles h2 { max-width: 780px; margin: 18px 0 38px; font-size: clamp(28px, 4vw, 48px); line-height: 1.12; letter-spacing: -.055em; }
.principles > div { display: flex; gap: 12px; flex-wrap: wrap; }
.principles span { padding: 8px 12px; border: 1px solid rgba(23,32,28,.25); border-radius: 99px; font-size: 11px; }
.auth-wrap { display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: center; min-height: calc(100vh - 190px); padding: 64px 0; }
.auth-intro h1 { max-width: 580px; }
.auth-intro p { color: var(--blue-slate); font-size: 16px; }
.auth-sigil { margin-top: 48px; width: 116px; height: 116px; display: grid; place-items: center; border-radius: 24px; background: var(--tea-green); color: var(--sea-green); font-size: 42px; font-weight: 700; transform: rotate(-5deg); box-shadow: 10px 10px 0 var(--thistle); }
.auth-card { padding: 34px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.auth-card label { display: block; margin-bottom: 22px; font-size: 12px; font-weight: 600; color: var(--blue-slate); }
.auth-card input { width: 100%; margin-top: 8px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); outline: none; }
.auth-card input:focus { border-color: var(--sea-green); box-shadow: 0 0 0 3px rgba(12,131,70,.12); }
.form-error { margin-bottom: 20px; padding: 12px 14px; border-left: 4px solid var(--blushed-brick); background: rgba(193,73,83,.08); color: #8f2630; }
.form-note, .form-switch { margin: 20px 0 0; color: var(--muted); font-size: 11px; }
.form-switch a { color: var(--sea-green); font-weight: 700; }
.page-heading { padding: 80px 0 42px; }
.page-heading h1 { font-size: clamp(32px, 5vw, 58px); }
.page-heading p { color: var(--blue-slate); }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; background: white; }
.account-grid div { padding: 28px; border-right: 1px solid var(--line); }
.account-grid div:last-child { border-right: 0; }
.account-grid span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.account-grid strong { display: block; margin-top: 10px; font-size: 18px; }
.account-actions { display: flex; gap: 16px; padding: 32px 0 90px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 58px 0 34px; }
.dashboard-heading h1 { margin: 12px 0 6px; font-size: clamp(34px, 6vw, 64px); }
.dashboard-heading p { margin: 0; color: var(--blue-slate); }
.refresh-box { text-align: right; }
.refresh-box span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.refresh-box strong { font-size: 12px; }
.dashboard-error { margin-bottom: 18px; padding: 12px 15px; border: 1px solid var(--blushed-brick); border-radius: 7px; background: rgba(193,73,83,.08); }
.metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.metric-card { min-height: 140px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.metric-card > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.metric-card strong { display: block; margin-top: 20px; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.05em; }
.metric-card small { color: var(--sea-green); font-size: 10px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.82); box-shadow: 0 8px 30px rgba(73,88,103,.06); overflow: hidden; }
.panel.span-2 { grid-column: span 1; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-title h2 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.panel-title span { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.container-row { display: grid; grid-template-columns: 1.3fr .8fr .8fr .8fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 11px; }
.container-row:first-child { border-top: 0; }
.state-healthy, .state-running, .status-200, .status-success { color: var(--sea-green); }
.state-unhealthy, .status-failed, .status-error { color: var(--blushed-brick); }
.big-number { font-size: 54px; font-weight: 700; letter-spacing: -.08em; color: var(--sea-green); }
.big-number small { display: block; font-size: 10px; letter-spacing: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-align: left; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
.run-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 11px; }
.run-item:first-child { border-top: 0; }
.run-item small { grid-column: 1 / -1; color: var(--muted); }
.log-window { height: 320px; margin: 0; padding: 16px; overflow: auto; border-radius: 6px; background: #202b2f; color: #dce8d4; font: 10px/1.65 var(--font); white-space: pre-wrap; }
.loading { color: var(--muted); }
.error-stage { min-height: calc(100vh - 190px); display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; }
.error-code { color: var(--thistle); font-size: clamp(100px, 18vw, 220px); font-weight: 700; line-height: 1; letter-spacing: -.12em; }
.error-stage h1 { font-size: clamp(32px, 5vw, 58px); overflow-wrap: anywhere; }
.error-stage p { max-width: 630px; margin-bottom: 28px; color: var(--blue-slate); }
.error-trace { display: block; margin-top: 28px; color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-terminal { grid-column: 1; grid-row: auto; margin-top: 54px; }
  .service-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; gap: 36px; }
  .auth-intro h1 { font-size: 48px; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { height: 72px; }
  nav { gap: 10px; }
  nav > a:not(.button), .identity { display: none; }
  h1 { font-size: 42px; }
  .hero { padding-top: 52px; }
  .principles { padding: 30px; }
  .auth-card { padding: 24px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .refresh-box { text-align: left; }
  .error-stage { grid-template-columns: 1fr; gap: 20px; }
  .error-code { font-size: 110px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  footer { flex-direction: column; }
}
