:root {
  --bg: #0b0e17;
  --bg-soft: #10141f;
  --paper: #f6f6fb;
  --ink: #171a23;
  --ink-soft: #5b5f6e;
  --line: #e6e5f0;
  --card: #ffffff;
  --accent: #7c5cff;
  --accent-soft: #a48bff;
  --ai-tag: #22a5a0;
  --human-tag: #e2984a;
  --radius: 14px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* --- Nav --- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 14, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand .logo-mark { width: 30px; height: 30px; display: block; }
nav.links { display: flex; gap: 26px; }
nav.links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
nav.links a:hover { color: #fff; }
.nav-cta { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
nav.links.mobile { display: none; flex-direction: column; padding: 8px 28px 18px; background: var(--bg-soft); border-top: 1px solid rgba(255,255,255,0.08); }
nav.links.mobile a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
nav.links.mobile.open { display: flex; }

/* --- Hero --- */
.hero {
  background:
    radial-gradient(900px 460px at 85% -10%, rgba(124,92,255,0.25), transparent 60%),
    radial-gradient(700px 380px at 0% 10%, rgba(34,165,160,0.14), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: #fff;
  padding: 84px 0 56px;
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-soft); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.14; margin: 0 auto 18px; max-width: 18ch; font-weight: 700; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--accent-soft); }
.hero p.lead { color: rgba(255,255,255,0.72); font-size: 1.06rem; max-width: 56ch; margin: 0 auto 32px; }

.search-bar {
  max-width: 560px; margin: 0 auto 36px;
  display: flex; gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px; padding: 6px 6px 6px 20px;
}
.search-bar input {
  flex: 1; background: none; border: none; color: #fff; font-size: 0.95rem; outline: none;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.45); }
.search-bar button {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
}

.hero-stats { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.hero-stats .stat .num { color: var(--accent-soft); font-size: 1.5rem; font-weight: 700; }
.hero-stats .stat .label { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-top: 2px; }

/* --- Section shell --- */
section { padding: 64px 0; }
section.alt { background: var(--card); }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head .eyebrow { color: #6a4fe0; }
.section-head .eyebrow::before { background: var(--accent); }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* --- Directory controls --- */
.directory-controls {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin-bottom: 28px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  padding: 7px 15px; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.sort-select {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); background: var(--card);
}

/* --- Agent grid & card --- */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agent-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.agent-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,20,40,0.08); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #5433c9);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem;
  flex: none;
}
.featured-ribbon {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: #a9762a; background: #fdf3e3; padding: 4px 9px; border-radius: 999px;
}
.agent-card h3 { margin: 0 0 4px; font-size: 1.04rem; }
.agent-card .tagline { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 14px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card-tags .pill { font-size: 0.74rem; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); padding: 3px 9px; border-radius: 999px; }

.rating-row { display: flex; gap: 10px; }
.rating-box { flex: 1; border-radius: 10px; padding: 9px 11px; }
.rating-box.human { background: #fdf3e8; }
.rating-box.ai { background: #e7f7f6; }
.rating-box .k { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.rating-box.human .k { color: var(--human-tag); }
.rating-box.ai .k { color: var(--ai-tag); }
.rating-box .v { font-size: 1.05rem; font-weight: 700; margin-top: 2px; }
.rating-box .sub { font-size: 0.72rem; color: var(--ink-soft); }
.rating-box.pending { background: var(--paper); border: 1px dashed var(--line); }
.rating-box.pending .k { color: var(--ink-soft); }
.rating-box.pending .v { color: var(--ink-soft); }

.rating-cta {
  flex: 1;
  border: 1px dashed var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 12px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.rating-cta:hover { border-color: var(--accent); color: var(--accent); background: #f1edff; }
.rating-cta.full { flex: 1 1 100%; }

.signal-line {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}
.signal-line strong { color: var(--ink); }

.card-visit { display: block; margin-top: 10px; font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.card-visit:hover { text-decoration: underline; }

.empty-state { text-align: center; color: var(--ink-soft); padding: 60px 0; font-size: 0.95rem; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); border-radius: 8px; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s ease;
}
.page-btn:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,10,20,0.55); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border-radius: 18px; max-width: 620px; width: 100%;
  padding: 32px; position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 18px; border: none; background: var(--paper);
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: var(--ink-soft);
}
.modal h2 { margin: 0 0 4px; font-size: 1.3rem; }
.modal .modal-tagline { color: var(--ink-soft); margin: 0 0 18px; }
.modal .modal-desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 22px; }
.modal .rating-detail { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.modal .rating-detail h4 { margin: 0 0 10px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.modal .rating-detail.human h4 { color: var(--human-tag); }
.modal .rating-detail.ai h4 { color: var(--ai-tag); }
.modal .rating-detail.signal { background: var(--paper); border-style: dashed; }
.modal .rating-detail.signal h4 { color: var(--ink-soft); }
.modal .rating-detail.rate-widget { background: var(--paper); }
.modal .rating-detail.rate-widget h4 { color: var(--ink); text-transform: none; font-size: 1rem; letter-spacing: normal; }

.rater-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.rater-tab {
  flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 9px 12px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.rater-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.inline-rating-form { display: flex; flex-direction: column; gap: 10px; }
.star-input { display: flex; gap: 4px; }
.star-btn {
  background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer;
  color: var(--line); padding: 0;
}
.star-btn.filled { color: #e2984a; }
.inline-rating-form textarea,
.inline-rating-form input[type="email"] {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
  font-family: inherit; font-size: 0.9rem; resize: vertical;
}
.btn-small { padding: 9px 16px; font-size: 0.86rem; }
.form-msg { margin: 8px 0 0; font-size: 0.85rem; color: var(--ai-tag); font-weight: 600; }
.modal .website-btn { display: inline-block; margin-top: 6px; }

/* --- Methodology --- */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.method-card .num { color: var(--accent); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.method-card h3 { margin: 0 0 8px; font-size: 1rem; }
.method-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* --- FAQ --- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

/* --- Submit form --- */
.submit-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: #fff;
}
.submit-section .section-head p { color: rgba(255,255,255,0.7); }
.submit-section .section-head .eyebrow { color: var(--accent-soft); }
.submit-section .section-head .eyebrow::before { background: var(--accent); }
.submit-form {
  max-width: 560px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 4px;
}
.submit-form label { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 12px; }
.submit-form input, .submit-form select, .submit-form textarea {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
  padding: 10px 12px; color: #fff; font-size: 0.95rem; font-family: inherit; margin-top: 6px; resize: vertical;
}
.submit-form input:focus, .submit-form select:focus, .submit-form textarea:focus { outline: none; border-color: var(--accent); }
.submit-form button { margin-top: 20px; }
.hp-field { position: absolute; left: -9999px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

footer { background: var(--bg-soft); color: rgba(255,255,255,0.5); font-size: 0.85rem; padding: 24px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* --- Responsive --- */
@media (max-width: 880px) {
  nav.links:not(.mobile) { display: none; }
  .menu-toggle { display: block; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}
@media (max-width: 560px) {
  .agent-grid { grid-template-columns: 1fr; }
  .directory-controls { flex-direction: column; align-items: stretch; }
}
