:root {
  color-scheme: light;
  --bg: #f3f7fb;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --border: #d6e2ee;
  --text: #0f172a;
  --muted: #526071;
  --brand: #2d5bff;
  --brand-dark: #2146cc;
  --success: #16794d;
  --warning: #9a5d00;
  --error: #b42318;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(
      circle at top left,
      rgba(45, 91, 255, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(18, 184, 134, 0.12),
      transparent 24%
    ),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Canva Sans", "Avenir Next", system-ui, sans-serif;
}

body {
  padding: 28px;
}

a {
  color: inherit;
}

.site-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.hero-panel {
  padding: 28px;
}

.eyebrow,
.card-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.95;
  max-width: 12ch;
}

h2 {
  font-size: 1.65rem;
  line-height: 1.05;
  margin-bottom: 12px;
}

h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.lede,
.card p,
.helper-text,
.inline-status,
.empty-state {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  font-size: 1.08rem;
  max-width: 62ch;
  margin: 18px 0 0;
}

.hero-actions,
.console-actions,
.inline-form,
.packs-grid,
.section-grid,
.console-grid,
.code-grid,
.health-grid {
  display: grid;
  gap: 14px;
}

.hero-actions {
  margin-top: 24px;
  grid-auto-flow: column;
  justify-content: start;
  grid-auto-columns: max-content;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #4b74ff 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(45, 91, 255, 0.25);
}

.button-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px dashed rgba(45, 91, 255, 0.35);
}

.hero-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.health-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.health-pill-ok {
  color: var(--success);
  background: rgba(22, 121, 77, 0.12);
}

.health-pill-error {
  color: var(--error);
  background: rgba(180, 35, 24, 0.12);
}

.health-pill-pending {
  color: var(--warning);
  background: rgba(154, 93, 0, 0.12);
}

.health-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-grid dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.health-grid dd {
  margin: 0;
  font-weight: 700;
}

.content {
  display: grid;
  gap: 24px;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 26px;
}

.feature-card {
  min-height: 100%;
}

.detail-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.packs-grid {
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.pack-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(45, 91, 255, 0.04), #ffffff);
}

.pack-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}

.agent-console .console-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.field-label {
  display: block;
  margin: 18px 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.inline-form {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.text-input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}

.console-actions {
  margin: 18px 0 12px;
  grid-auto-flow: column;
  justify-content: start;
  grid-auto-columns: max-content;
}

.inline-status {
  padding: 10px 0;
}

.inline-status.muted {
  color: var(--muted);
}

.inline-status.ok {
  color: var(--success);
}

.inline-status.error {
  color: var(--error);
}

.console-grid {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.console-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel-solid);
}

.console-panel-wide {
  grid-column: 1 / -1;
}

.empty-state {
  min-height: 72px;
}

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

.stack-item {
  padding: 14px;
  border-radius: 18px;
  background: #f7fafc;
  border: 1px solid #e6edf4;
}

.stack-item-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.stack-item-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.stack-item-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid #dde6ef;
  background: #0f172a;
  color: #dbeafe;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .hero,
  .section-grid,
  .console-grid,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .console-actions {
    grid-auto-flow: row;
    grid-auto-columns: unset;
  }

  .agent-console .console-header {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  body {
    padding: 14px;
  }

  .hero-copy,
  .hero-panel,
  .card {
    border-radius: 22px;
    padding: 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}
