:root {
  --bg: #f3efe5;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #fffaf1;
  --ink: #17252e;
  --muted: #53626a;
  --line: rgba(23, 37, 46, 0.12);
  --accent: #0c6d7d;
  --accent-2: #d86c4d;
  --success: #1c7f5f;
  --danger: #b14030;
  --shadow: 0 20px 45px rgba(40, 51, 54, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(216, 108, 77, 0.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(12, 109, 125, 0.18), transparent 24%),
    linear-gradient(160deg, #f8f4eb 0%, #efe4d2 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

code,
pre,
input,
textarea,
select,
button {
  font-family: "Consolas", "SFMono-Regular", "Cascadia Mono", monospace;
}

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

.public-shell {
  min-height: 100vh;
  padding: 14px 18px 18px;
}

.sidebar {
  padding: 32px 24px;
  background: rgba(20, 33, 41, 0.92);
  color: #f7f4ee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.sidebar h1,
.content h2,
.content h3 {
  margin: 0;
  line-height: 1.05;
  font-family: "Fraunces", Georgia, serif;
}

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

.org-card {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.org-card span {
  display: block;
  color: rgba(247, 244, 238, 0.7);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.org-switch {
  margin-bottom: 12px;
}

.org-switch select {
  background: rgba(255, 255, 255, 0.08);
  color: #f7f4ee;
  border-color: rgba(255, 255, 255, 0.14);
}

.nav a {
  color: rgba(247, 244, 238, 0.88);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.nav a.active,
.nav a:hover {
  background: rgba(216, 108, 77, 0.24);
  color: white;
}

.content {
  padding: 32px;
}

.content > * {
  position: relative;
  z-index: 1;
}

.content::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(12, 109, 125, 0.11), transparent 18%),
    radial-gradient(circle at 78% 24%, rgba(216, 108, 77, 0.14), transparent 22%),
    radial-gradient(circle at 64% 86%, rgba(23, 37, 46, 0.08), transparent 18%);
}

.public-body {
  background:
    radial-gradient(circle at top left, rgba(12, 109, 125, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(216, 108, 77, 0.16), transparent 24%),
    linear-gradient(145deg, #f6efe1 0%, #fbf8f1 42%, #efe4d6 100%);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-2);
}

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

.page-head,
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.panel,
.hero-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 24px;
}

.panel,
.hero-card {
  padding: 24px;
}

.hero-card.narrow {
  max-width: 560px;
}

.public-landing {
  max-width: 1420px;
  margin: 0 auto;
}

.agent-index-link-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.public-ghost-link {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  border-color: rgba(23, 37, 46, 0.08);
}

.agent-doc-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.agent-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.agent-guide-card {
  padding: 24px;
}

.agent-guide-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.agent-guide-card.marketing {
  background: linear-gradient(180deg, rgba(26, 42, 50, 0.95), rgba(39, 58, 69, 0.92));
  color: #f7efe6;
}

.agent-guide-card.marketing .eyebrow {
  color: #f6b48f;
}

.agent-guide-card.marketing .muted {
  color: rgba(247, 239, 230, 0.74);
}

.guide-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.guide-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(12, 109, 125, 0.1);
  color: var(--accent);
  border: 1px solid rgba(12, 109, 125, 0.14);
  font-size: 0.82rem;
}

.agent-guide-card.marketing .guide-points span {
  background: rgba(255, 255, 255, 0.08);
  color: #f2d2c3;
  border-color: rgba(255, 255, 255, 0.08);
}

.guide-actions {
  display: flex;
  gap: 10px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(23, 37, 46, 0.08);
}

.guide-button.primary {
  background: linear-gradient(135deg, var(--accent), #0e8da3);
  color: white;
}

.agent-note-card {
  padding: 18px 20px;
}

.agent-doc-link {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(23, 37, 46, 0.08);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.agent-doc-link:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 109, 125, 0.24);
  background: rgba(255, 255, 255, 0.84);
}

.agent-doc-type {
  color: var(--accent-2);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.agent-doc-link strong {
  color: var(--ink);
  font-size: 1rem;
}

.agent-doc-meta {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.public-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 24px;
  margin-bottom: 16px;
}

.public-header h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.3vw, 3.7rem);
  line-height: 0.95;
}

.public-header-copy {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.landing-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.landing-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.landing-hero {
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.92), rgba(255, 255, 255, 0.7)),
    linear-gradient(135deg, rgba(12, 109, 125, 0.08), rgba(216, 108, 77, 0.08));
  overflow: hidden;
  position: relative;
}

.landing-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 108, 77, 0.22), rgba(216, 108, 77, 0));
  pointer-events: none;
}

.landing-hero h2 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.lead {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.7;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.signal-card,
.login-note,
.workflow-panel,
.explainer-card,
.hero-meter {
  border: 1px solid rgba(23, 37, 46, 0.1);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
}

.signal-card {
  padding: 16px;
}

.signal-card span,
.login-note strong {
  display: block;
  margin-bottom: 8px;
}

.signal-card span {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-card strong {
  font-size: 0.98rem;
  line-height: 1.45;
}

.workflow-panel {
  padding: 8px 18px;
  margin-bottom: 22px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(23, 37, 46, 0.1);
}

.workflow-step:last-child {
  border-bottom: 0;
}

.workflow-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.workflow-step p,
.login-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(12, 109, 125, 0.14), rgba(216, 108, 77, 0.16));
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-card {
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 246, 235, 0.94));
  border: 1px solid rgba(23, 37, 46, 0.08);
  padding: 22px;
}

.login-card h3 {
  font-size: 1.9rem;
}

.explainer-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(23, 37, 46, 0.95), rgba(35, 54, 64, 0.92));
  color: #f6efe5;
}

.explainer-card .eyebrow {
  color: #f6b48f;
}

.explainer-card .muted {
  color: rgba(246, 239, 229, 0.78);
}

.explainer-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.explainer-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.explainer-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(246, 180, 143, 0.3), rgba(12, 109, 125, 0.22));
  color: #fff4ea;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.explainer-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.explainer-row span {
  color: rgba(246, 239, 229, 0.72);
  line-height: 1.55;
  font-size: 0.95rem;
}

.showcase-card {
  padding: 24px 24px 22px;
  min-height: 0;
  background:
    linear-gradient(140deg, rgba(255, 252, 245, 0.94), rgba(255, 248, 238, 0.82)),
    linear-gradient(135deg, rgba(12, 109, 125, 0.08), rgba(216, 108, 77, 0.08));
}

.showcase-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 10px;
}

.showcase-band span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 37, 46, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-card h2 {
  max-width: 10ch;
  font-size: clamp(2.1rem, 3.4vw, 3.5rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin-bottom: 10px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 14px;
}

.showcase-panel {
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(23, 37, 46, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(12, 109, 125, 0.1);
  color: var(--accent);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.show-source {
  min-height: 0;
}

.show-source strong,
.show-flow strong,
.show-proof strong {
  display: block;
  font-size: 1.16rem;
  line-height: 1.45;
}

.show-api {
  background: linear-gradient(180deg, rgba(23, 37, 46, 0.96), rgba(34, 50, 58, 0.94));
  color: #f7f2ea;
}

.show-api .panel-kicker {
  background: rgba(255, 255, 255, 0.1);
  color: #f6b48f;
}

.api-snippet {
  margin: 0;
  border: 0;
  background: transparent;
  color: #d7efe9;
  padding: 0;
  font-size: 0.96rem;
  line-height: 1.9;
}

.show-flow {
  grid-column: 1 / span 2;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.flow-node {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(12, 109, 125, 0.13), rgba(216, 108, 77, 0.17));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.proof-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 1.4rem;
}

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

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

input,
textarea,
select,
button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(23, 37, 46, 0.14);
  padding: 12px 14px;
  background: rgba(255, 251, 244, 0.96);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

button,
.ghost-button,
.danger-button {
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

button {
  background: linear-gradient(135deg, var(--accent), #0e8da3);
  color: white;
  border: 0;
}

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

.ghost-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: 14px;
}

.danger-button {
  background: linear-gradient(135deg, var(--danger), #cf5f4f);
  color: white;
  border: 0;
}

.inline-search {
  display: flex;
  gap: 10px;
  width: min(420px, 100%);
}

.inline-search input {
  flex: 1;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 0.85rem;
}

.list {
  display: grid;
  gap: 10px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.list-row.blocky {
  display: block;
}

.list-row:last-child {
  border-bottom: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 109, 125, 0.11);
  color: var(--accent);
  border: 1px solid rgba(12, 109, 125, 0.12);
}

.checkbox {
  grid-template-columns: 24px 1fr;
  align-items: center;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

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

.public-flash-stack {
  max-width: 1420px;
  margin: 0 auto 16px;
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.flash-success {
  background: rgba(28, 127, 95, 0.12);
}

.flash-error {
  background: rgba(177, 64, 48, 0.12);
}

.callout,
pre {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  overflow-x: auto;
}

.logout {
  margin-top: auto;
}

@media (max-width: 1180px) {
  .public-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .show-flow {
    grid-column: auto;
  }

  .flow-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-bottom: 20px;
  }

  .panel-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 20px;
  }

  .public-shell {
    padding: 16px;
  }

  .landing-grid,
  .agent-index-grid,
  .agent-doc-strip,
  .signal-row,
  .flow-track {
    grid-template-columns: 1fr;
  }

  .showcase-card h2,
  .landing-hero h2 {
    max-width: none;
    font-size: 2.4rem;
  }

  .explainer-row {
    grid-template-columns: 1fr;
  }

  .explainer-index {
    width: 38px;
    height: 38px;
  }
}
