:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-strong: #f8f9fc;
  --ink: #1a1a2e;
  --muted: #5c6370;
  --line: #d6dbe4;
  --accent: #001385;
  --accent-dark: #00085a;
  --accent-light: #1a3aad;
  --blue-mid: #2952cc;
  --blue-soft: rgba(15, 27, 76, 0.08);
  --shadow: 0 4px 24px rgba(15, 27, 76, 0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,700;1,900&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Roboto", sans-serif;
  font-weight: 500;
}

a {
  color: var(--accent-light);
}

.landing-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.hero {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.sidebar,
.content,
.actor-card,
.card,
.table-card,
.header-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
  border-radius: 16px;
  padding: 32px;
}

.hero-copy h1,
.brand,
.header-card h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.95;
  margin: 12px 0 20px;
}

.hero-copy p,
.sidebar-copy,
.header-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.metric-card,
.card {
  border-radius: 12px;
  padding: 20px;
}

.metric-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.metric-card strong,
.card strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 6px;
  color: var(--accent);
}

.metric-label,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--blue-mid);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 700;
  font-family: "Roboto", sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-light);
}

.button-secondary,
.button:not(.button-primary) {
  color: var(--accent);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.button-secondary:hover,
.button:not(.button-primary):hover {
  background: var(--blue-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}

.sidebar {
  border-radius: 0;
  border-right: 1px solid var(--line);
  border-top: none;
  border-bottom: none;
  border-left: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  background: var(--surface);
}

.brand {
  margin: 6px 0 14px;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--accent);
}

.nav {
  display: grid;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  font-weight: 500;
}

.nav a:hover {
  background: var(--blue-soft);
  color: var(--accent);
}

.actor-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-strong);
}

.actor-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.content {
  border-radius: 0;
  padding: 28px 32px;
  border: none;
  box-shadow: none;
  background: var(--bg);
}

.header-card,
.table-card {
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
}

.header-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.section-heading,
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.meta-row {
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

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

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--blue-soft);
  color: var(--accent);
}

.pill-ready,
.pill-active {
  background: rgba(34, 139, 34, 0.12);
  color: #1a6b1a;
}

.pill-processing,
.pill-queued {
  background: rgba(59, 91, 219, 0.12);
  color: var(--blue-mid);
}

.pill-closed,
.pill-archived,
.pill-retry {
  background: rgba(220, 53, 69, 0.10);
  color: #a02030;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.split-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
}

.stack-form {
  display: grid;
  gap: 12px;
}

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

input,
textarea,
select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--blue-mid);
  outline-offset: 1px;
  border-color: var(--blue-mid);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash {
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
}

.flash-success {
  background: rgba(34, 139, 34, 0.10);
  color: #1a6b1a;
}

.flash-error {
  background: rgba(220, 53, 69, 0.10);
  color: #a02030;
}

@media (max-width: 960px) {
  .page-shell,
  .hero,
  .split-layout,
  .header-card {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 0;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 16px;
  }
}
