@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/inspector/assets/inter-latin.woff2') format('woff2');
}

:root {
  --bg: #020617;
  --surface: rgb(15 23 42 / 0.6);
  --surface-solid: #0f172a;
  --surface-hover: #1e293b;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --brand: #ff9900;
  --brand-hover: #ffa51e;
  --brand-ink: #0b0f19;
  --brand-tint: rgb(255 153 0 / 0.1);
  --brand-line: rgb(255 153 0 / 0.3);
  --ok: #4ade80;
  --warn: #fb923c;
  --sns: #ff4f8b;
  --eventbridge: #b48cff;
  --http: #7dd3fc;
  --tok-key: #7dd3fc;
  --tok-str: #86efac;
  --tok-num: #fdba74;
  --tok-lit: #c4b5fd;
  --radius: 14px;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.glow {
  position: absolute;
  inset: 0 0 auto;
  height: 1200px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent calc(100% - 320px), var(--bg)),
    linear-gradient(to bottom right, var(--bg), var(--surface-solid), var(--bg));
}

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

a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.topbar {
  position: relative;
  z-index: 10;
}

.topbar-inner,
.footer-inner,
main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding-left: 32px;
  padding-right: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  border-radius: 4px;
}

.brand-sep {
  color: var(--faint);
  font-weight: 400;
}

.brand-tool {
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.nav a:hover {
  color: #fff;
}

.topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--brand-hover);
  color: var(--brand-ink);
}

.powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.powered:hover {
  border-color: var(--brand-line);
  color: var(--text);
}

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

main {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 48px;
}

.footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding-top: 24px;
  padding-bottom: 32px;
  color: var(--faint);
  font-size: 13px;
}

.footer p {
  margin: 0 0 6px;
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 0 40px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgb(255 153 0 / 0.6);
  }

  80%,
  100% {
    box-shadow: 0 0 0 7px rgb(255 153 0 / 0);
  }
}

.hero h1 {
  margin: 32px 0 24px;
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

.highlight {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin-left: 0.1em;
  color: var(--brand-ink);
  white-space: nowrap;
}

.highlight::before {
  content: '';
  position: absolute;
  inset: 0.1em -0.12em 0.02em;
  z-index: -1;
  border-radius: 6px;
  background: var(--brand);
  transform: rotate(-1deg);
}

.lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.lead strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.status-line {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.btn:hover {
  border-color: var(--faint);
  background: var(--surface-hover);
  color: var(--text);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.hero-actions .btn {
  padding: 13px 26px;
  font-size: 16px;
}

.btn-primary:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  color: var(--brand-ink);
}

.btn-small {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.section-label {
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

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

.feature {
  padding: 22px 24px;
  transition: border-color 0.15s;
}

.feature:hover {
  border-color: var(--border-strong);
}

.feature .aws-icon {
  display: block;
  margin-bottom: 14px;
  border-radius: 8px;
}

.agent-stack {
  display: flex;
  margin-bottom: 14px;
}

.agent-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  background: #1e293b;
}

.agent-badge + .agent-badge {
  margin-left: -9px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 56px;
}

.demo-step {
  height: 100%;
  padding: 16px 16px 20px;
}

.demo-step b {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-step b,
.demo-step p {
  padding: 0 8px;
}

.demo-step p {
  margin: 0;
  color: var(--text-soft);
}

.demo-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 136px;
  margin-bottom: 16px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgb(2 6 23 / 0.6);
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 600 13px var(--mono);
  opacity: 0.85;
}

.is-sns {
  --kind: var(--sns);
  --kind-tint: rgb(255 79 139 / 0.12);
}

.is-eventbridge {
  --kind: var(--eventbridge);
  --kind-tint: rgb(180 140 255 / 0.12);
}

.is-http {
  --kind: var(--http);
  --kind-tint: rgb(125 211 252 / 0.12);
}

.demo-chip.is-sns,
.demo-chip.is-eventbridge,
.demo-chip.is-http {
  color: var(--kind);
}

.demo-chip.is-firing {
  animation: chip-fire 0.9s ease-out;
}

@keyframes chip-fire {
  0% {
    opacity: 1;
    background: var(--kind-tint);
    box-shadow: 0 0 0 0 var(--kind-tint);
  }

  100% {
    opacity: 0.85;
    background: transparent;
    box-shadow: 0 0 0 12px transparent;
  }
}

.demo-link {
  position: relative;
  height: 2px;
  margin: 0 6px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
}

.demo-packet {
  position: absolute;
  top: -5px;
  left: 0;
  width: 14px;
  height: 12px;
  border-radius: 3px;
  background: var(--brand);
  opacity: 0;
}

.demo-packet[data-kind='sns'] {
  background: var(--sns);
  box-shadow: 0 0 14px var(--sns);
}

.demo-packet[data-kind='eventbridge'] {
  background: var(--eventbridge);
  box-shadow: 0 0 14px var(--eventbridge);
}

.demo-packet[data-kind='http'] {
  background: var(--http);
  box-shadow: 0 0 14px var(--http);
}

.demo-packet.is-moving {
  animation: packet-x 0.9s ease-in-out;
}

@keyframes packet-x {
  0% {
    left: 0;
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 14px);
    opacity: 0;
  }
}

.demo-url {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-solid);
  color: var(--muted);
  font: 12px var(--mono);
  white-space: nowrap;
}

.demo-url-host {
  color: var(--text-soft);
}

.demo-url-id {
  color: var(--brand);
}

.demo-url.is-hit {
  animation: url-hit 0.8s ease-out;
}

@keyframes url-hit {
  0% {
    border-color: var(--brand);
    box-shadow: 0 0 0 0 rgb(255 153 0 / 0.45);
  }

  100% {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 14px rgb(255 153 0 / 0);
  }
}

.demo-rows {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  gap: 6px;
  width: 100%;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-solid);
  font-size: 12.5px;
  animation: row-in 0.45s ease-out;
}

.demo-chip .aws-icon,
.demo-tag .aws-icon {
  border-radius: 4px;
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 1px 7px 1px 3px;
  border-radius: 999px;
  background: var(--kind-tint);
  color: var(--kind);
  font: 600 11px var(--mono);
}

.demo-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-detail {
  margin-left: auto;
  color: var(--faint);
  font: 11px var(--mono);
  white-space: nowrap;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.page-head {
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 12px 0 4px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

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

.url-card {
  padding: 18px 20px;
}

.url-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.url-top label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.url-row {
  display: flex;
  gap: 10px;
}

.url {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 14px var(--mono);
}

.url:focus {
  border-color: var(--brand);
  outline: none;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}

.live[data-state='live'] {
  border-color: rgb(74 222 128 / 0.3);
  color: var(--ok);
}

.live[data-state='live']::before {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgb(74 222 128 / 0.6);
  animation: pulse 2s infinite;
}

.live[data-state='down'] {
  color: var(--warn);
}

.live[data-state='down']::before {
  background: var(--warn);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgb(74 222 128 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(74 222 128 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live[data-state='live']::before,
  .eyebrow::before,
  .demo-row {
    animation: none;
  }

  .demo-packet {
    display: none;
  }

  .btn,
  .feature {
    transition: none;
  }
}

.setup {
  margin-top: 16px;
  padding: 14px 20px;
}

.setup summary {
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.setup p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.list-pane,
.detail-pane {
  min-width: 0;
  overflow: hidden;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.count {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--text-soft);
  font-size: 12px;
}

.event-list {
  margin: 0;
  padding: 6px;
  max-height: 70vh;
  overflow-y: auto;
  list-style: none;
}

.event-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.event-item:hover {
  background: var(--surface-hover);
}

.event-item[aria-current='true'] {
  border-color: var(--brand-line);
  background: var(--brand-tint);
}

.dot {
  grid-row: span 2;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--http);
}

.dot-sns {
  background: var(--sns);
}

.dot-eventbridge {
  background: var(--eventbridge);
}

.event-title {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.event-meta {
  color: var(--faint);
  font-size: 12px;
}

.empty {
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.detail {
  padding: 20px 24px;
}

.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.detail-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.detail .muted {
  margin: 6px 0 0;
  font-size: 14px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 2px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
}

.badge-sns {
  border-color: rgb(255 79 139 / 0.35);
  background: rgb(255 79 139 / 0.1);
  color: var(--sns);
}

.badge-eventbridge {
  border-color: rgb(180 140 255 / 0.35);
  background: rgb(180 140 255 / 0.1);
  color: var(--eventbridge);
}

.badge-http {
  border-color: rgb(125 211 252 / 0.35);
  background: rgb(125 211 252 / 0.1);
  color: var(--http);
}

.badge-ok {
  border-color: rgb(74 222 128 / 0.35);
  color: var(--ok);
}

.badge-warn {
  border-color: rgb(251 146 60 / 0.35);
  color: var(--warn);
}

.tabs {
  display: flex;
  gap: 2px;
  margin: 18px 0 12px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.tab {
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected='true'] {
  background: var(--surface-hover);
  color: var(--text);
}

.code-wrap {
  position: relative;
}

.code-wrap > .btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.code {
  margin: 0;
  padding: 16px 18px;
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-soft);
  font: 13px/1.65 var(--mono);
  white-space: pre;
}

.tok-key {
  color: var(--tok-key);
}

.tok-str {
  color: var(--tok-str);
}

.tok-num {
  color: var(--tok-num);
}

.tok-lit {
  color: var(--tok-lit);
}

@media (max-width: 860px) {
  .split,
  .demo {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-link {
    width: 2px;
    height: 40px;
    margin: 6px auto;
    background: repeating-linear-gradient(180deg, var(--border-strong) 0 6px, transparent 6px 12px);
  }

  .demo-packet {
    top: 0;
    left: -6px;
  }

  .demo-packet.is-moving {
    animation-name: packet-y;
  }

  @keyframes packet-y {
    0% {
      top: 0;
      opacity: 0;
    }

    20%,
    80% {
      opacity: 1;
    }

    100% {
      top: calc(100% - 12px);
      opacity: 0;
    }
  }

  .topbar-inner,
  .footer-inner,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-name,
  .brand-sep {
    display: none;
  }

  .topbar-inner {
    display: flex;
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  .powered-label {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

  .url-row {
    flex-direction: column;
  }

  .detail {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .nav a[rel] {
    display: none;
  }

  .powered {
    padding: 6px;
  }

  .powered-text {
    display: none;
  }

  .brand-tool {
    font-size: 15px;
  }
}
