/* demo.heyidentity.dev — style.css */
/* Shares design tokens with heyidentity.dev */

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #dbe3ee;
  --accent: #0b5fff;
  --accent-soft: #e8f0ff;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --error: #dc2626;
  --error-soft: #fee2e2;
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navigation ── */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 250, 251, 0.95);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 12px; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; }
.nav-github {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ── Hero ── */
.hero { padding: 72px 0 34px; }
.hero-kicker { color: var(--accent); font-weight: 600; margin-bottom: 8px; }
h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-sub { color: var(--text-muted); max-width: 700px; }

/* ── Sections ── */
.section { padding: 28px 0 44px; }
.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
h2 { font-size: 1.55rem; margin-bottom: 14px; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
.section-lead { color: var(--text-muted); margin-bottom: 16px; }

/* ── Cards ── */
.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card p { color: var(--text-muted); }
.card-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* ── Code blocks ── */
pre {
  background: #0f172a;
  color: #dbeafe;
  border-radius: var(--radius);
  padding: 14px;
  overflow-x: auto;
  border: 1px solid #1e293b;
  margin-top: 12px;
}
code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}
.inline-code {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
}

/* ── Demo panel ── */
.demo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}
.demo-form { display: grid; gap: 12px; }
.field-row { display: grid; gap: 4px; }
.field-row label { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.field-row input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: Consolas, "Courier New", monospace;
  background: var(--bg);
  color: var(--text);
}
.field-row input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ── Status badge ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.status-badge.success { background: var(--success-soft); color: var(--success); }
.status-badge.error   { background: var(--error-soft);   color: var(--error); }
.status-badge.pending { background: var(--accent-soft);  color: var(--accent); }

/* ── Result / claims ── */
.result-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.result-header h3 { margin: 0; font-size: 1rem; }
.claims-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.claims-table th, .claims-table td {
  padding: 9px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.claims-table th {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.claims-table tr:last-child td { border-bottom: none; }
.claim-key {
  font-family: Consolas, "Courier New", monospace;
  color: var(--accent);
}
.claim-value { color: var(--text); word-break: break-all; }

/* ── Note / callout ── */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-inner { flex-direction: column; height: auto; padding: 12px 0; align-items: flex-start; }
  .nav-links { flex-wrap: wrap; }
  .hero { padding-top: 36px; }
}
