:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --primary: #2f4efd;
  --secondary: #4f5cff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
}

header p {
  margin: 12px 0 24px;
  color: var(--muted);
}

.agent-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  border-radius: 14px;
  font-weight: 600;
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--muted);
}

.search-panel {
  background: var(--surface);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.search-panel input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  margin-bottom: 16px;
}

.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  font-weight: 700;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.card.highlight {
  background: #eef4ff;
  border-color: #c7d5ff;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.note {
  color: #555;
  margin-top: 16px;
  font-size: 0.95rem;
}

.table-wrapper {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.table-wrapper h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

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

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

@media (max-width: 760px) {
  .agent-steps {
    grid-template-columns: 1fr;
  }

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