/* ── Hero ── */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 4rem 2rem; text-align: center; }
.hero-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; max-width: 620px; margin: 0 auto 1rem; }
.hero-quote { font-size: 15px; color: var(--muted); max-width: 540px; margin: 0 auto 2rem; font-style: italic; line-height: 1.6; }

/* ── Buttons ── */
.btn-primary-custom {
  background: var(--text); color: #fff; border: none;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity 0.15s;
}
.btn-primary-custom:hover { opacity: 0.85; color: #fff; }

.btn-secondary-custom {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.btn-secondary-custom:hover { background: var(--bg); color: var(--text); }

/* ── Sections ── */
.section          { padding: 3rem 0; }
.section-label    { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem; }
.section-title    { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.section-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 1.5rem; }

.source-tag {
  font-size: 11px; font-family: 'SFMono-Regular', Consolas, monospace;
  color: var(--muted); background: var(--bg); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: var(--radius-sm);
  margin-left: 6px; vertical-align: middle;
}

/* ── Demo notice ── */
.demo-notice {
  font-size: 11px;
  color: var(--mid-text);
  background: var(--mid-bg);
  border: 1px solid #f5d97a;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  margin-bottom: 10px;
}

/* ── Search ── */
.search-input {
  width: 100%; padding: 9px 14px; font-size: 13.5px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  outline: none; transition: border-color 0.15s; margin-bottom: 1rem;
}
.search-input:focus       { border-color: var(--text); }
.search-input::placeholder { color: var(--muted); }

/* ── Company cards ── */
.company-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.company-card:hover              { border-color: var(--text); background: var(--bg); color: var(--text); }
.company-card[data-hidden="true"] { display: none; }
.company-card-left   { display: flex; align-items: center; gap: 12px; }
.company-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--muted); flex-shrink: 0;
}
.company-card-name   { font-size: 14px; font-weight: 600; }
.company-card-domain { font-size: 12px; color: var(--muted); margin-top: 2px; }
.company-card-arrow  { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.no-results-msg      { display: none; font-size: 13.5px; color: var(--muted); padding: 1rem 0; text-align: center; }

/* ── Contact list ── */
.contact-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.contact-name   { font-size: 13.5px; font-weight: 500; }
.contact-id     { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ── Top users widget ── */
.top-users-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.top-user-item {
  display: grid;
  grid-template-columns: 18px 30px 1fr 60px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.top-user-item:last-child { border-bottom: none; }

.top-user-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.top-user-item:first-child .top-user-rank { color: var(--high-text); }

.top-user-info { min-width: 0; }
.top-user-info .contact-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-user-bar-wrap {
  height: 4px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
}
.top-user-bar {
  height: 100%;
  background: var(--high-dot);
  border-radius: 100px;
  transition: width 0.3s ease;
}

/* ── Entry cards ── */
.entry-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; height: 100%;
}
.entry-tag { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 10px; border-radius: 100px; margin-bottom: 1rem; }
.tag-html  { background: var(--high-bg); color: var(--high-text); }
.tag-api   { background: var(--mid-bg);  color: var(--mid-text);  }
.entry-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 0.4rem; }
.entry-card p  { font-size: 13.5px; color: var(--muted); margin-bottom: 1rem; line-height: 1.55; }
.code-pill {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; display: block; color: var(--text); margin-bottom: 6px; word-break: break-all;
}

/* ── Steps ── */
.step      { display: flex; gap: 1rem; align-items: flex-start; }
.step-num  { width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.step-desc  { font-size: 13px; color: var(--muted); line-height: 1.5; }
.step-ref   {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.step-ref a { color: var(--muted); text-underline-offset: 2px; }
.step-ref a:hover { color: var(--text); }

/* ── Auth notice ── */
.auth-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.auth-notice strong { color: var(--text); }
.auth-notice-icon  { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Score table ── */
.score-table        { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.score-table table  { width: 100%; font-size: 13.5px; border-collapse: collapse; }
.score-table th     { background: var(--bg); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.score-table td     { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.score-table tr:last-child td { border-bottom: none; }
.pts { font-weight: 700; color: var(--high-text); white-space: nowrap; }

/* ── Stack ── */
.stack-item  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 13.5px; }
.stack-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.stack-value { font-weight: 500; }

/* ── JSON preview ── */
.json-preview {
  background: #1a1916; color: #e2e0da; border-radius: var(--radius);
  padding: 1.25rem 1.5rem; font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px; line-height: 1.7; overflow-x: auto;
}
.json-key   { color: #93c5fd; }
.json-str   { color: #86efac; }
.json-num   { color: #fca5a5; }
.json-label { color: #fde68a; }

/* ── Score pills ── */
.pill-high   { background: var(--high-bg); color: var(--high-text); padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.pill-medium { background: var(--mid-bg);  color: var(--mid-text);  padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.pill-low    { background: var(--low-bg);  color: var(--low-text);  padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
