:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --ink: #172026;
  --muted: #5c6873;
  --line: #d8dee4;
  --blue: #0969da;
  --green: #1a7f37;
  --gold: #9a6700;
  --red: #b42318;
  --shadow: 0 16px 40px rgba(23, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links,
.hero-actions,
.auth-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark,
.agent-avatar,
.feature-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #172026;
  color: #fff;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.button-secondary {
  background: #fff;
  color: var(--blue);
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 64px 28px 96px;
}

.hero-copy h1,
.dashboard-head h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  gap: 12px;
  margin-top: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-snapshot,
.panel,
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-snapshot {
  padding: 22px;
}

.snapshot-header,
.panel-title,
.dashboard-head,
.identity-panel,
.agent-card,
.status-list div,
.site-item {
  display: flex;
  align-items: center;
}

.snapshot-header {
  justify-content: space-between;
  font-weight: 900;
  margin-bottom: 18px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 127, 55, 0.14);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snapshot-grid div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.metric-label,
.muted,
.snippet-meta,
.site-item small {
  color: var(--muted);
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.agent-card {
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #eef6ff;
}

.agent-avatar,
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.agent-card p,
.feature-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: -58px auto 72px;
  padding: 0 28px;
}

.feature-item {
  padding: 22px;
  border-top: 3px solid var(--blue);
  background: #fff;
}

.feature-item:nth-child(2) {
  border-top-color: var(--green);
}

.feature-item:nth-child(3) {
  border-top-color: var(--gold);
}

.feature-item h2,
.panel h2,
.auth-panel h2 {
  margin: 12px 0 0;
  font-size: 20px;
  letter-spacing: 0;
}

.dashboard-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 72px;
}

.dashboard-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-head h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.identity-panel {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.auth-panel {
  max-width: 560px;
  padding: 24px;
}

.auth-panel p {
  color: var(--muted);
}

.auth-actions {
  gap: 10px;
  margin: 18px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.panel {
  padding: 20px;
}

.sites-panel,
.snippet-panel {
  grid-column: 1 / -1;
}

.panel-title {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

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

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.compact-field {
  margin-top: 12px;
}

.result-box,
.snippet-box {
  overflow: auto;
  min-height: 90px;
  max-height: 280px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1720;
  color: #f6f8fa;
  font-size: 13px;
  line-height: 1.45;
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.status-list div {
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.status-list dt {
  color: var(--muted);
  font-weight: 800;
}

.status-list dd {
  margin: 0;
  font-weight: 900;
}

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

.site-item {
  width: 100%;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.site-item.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.site-item span:first-child {
  display: grid;
  gap: 3px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.snippet-meta {
  margin-bottom: 10px;
  font-weight: 800;
}

.handoff-layout {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

@media (max-width: 820px) {
  .topbar,
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    padding: 16px 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-band,
  .dashboard-grid,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: auto;
    padding: 42px 18px 72px;
  }

  .feature-band {
    margin: -42px auto 44px;
    padding: 0 18px;
  }

  .dashboard-layout {
    padding: 28px 18px 54px;
  }

  .identity-panel {
    align-items: flex-start;
    width: 100%;
  }
}
