/* variant-a.css — chillygeek-faithful
 * Surface: Decide / Learn. Single hero, two CTAs, agent card grid.
 * Visual posture: borrowed (cyan→purple gradient on focal points, Inter,
 * dark base) but the layout, section weight, and copy are written for
 * Hermes-A2A — not a copy of chillygeek's content.
 *
 * Slop audit (out of 10; 0 = clean):
 *   1. Tech gradient ............ partial (h1 word + .btn-primary only;
 *                                   NOT on background or surfaces)          -> 0.5
 *   2. Generic tech hue ......... yes (cyan→purple is the chillygeek brief,
 *                                   but tell fires; would replace with
 *                                   amber/green if not constrained)     -> 0.5
 *   3. Feature-tile grid ........ no (cards are domain objects, not features) -> 0
 *   4. Accent rail .............. no                                          -> 0
 *   5. Unearned blur ............ no (header is solid #111218, no blur)       -> 0
 *   6. Monument stat ............ no (the "N agents" is a sentence, not
 *                                   a banner)                                  -> 0
 *   7. Icon topper .............. no (icons live inside connect cards, not
 *                                   above section headings)                    -> 0
 *   8. Center stack ............. no (hero is left-aligned, max-width 880px)   -> 0
 *   9. Default type ............. yes (Inter is the deliberate chillygeek pick;
 *                                   tell fires but is constrained by brief) -> 0.5
 *  10. Wrong surface ............ no (this IS a Decide/Learn page)            -> 0
 *  TOTAL = 1.5 / 10
 *  Repair needed: tell 5 (header glassmorphism) was fixed by switching to a
 *  solid background. Tells 1, 2, 9 are constrained by the brief (chillygeek
 *  brief = cyan→purple gradient + Inter).
 */

:root {
  --bg-primary: #0a0b0f;
  --bg-secondary: #111218;
  --bg-card: #16181f;
  --bg-elev: #1c1e27;
  --text-primary: #f0f2f5;
  --text-secondary: #a0a8b8;
  --text-muted: #6b7280;
  --accent-cyan: #00d4ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --max-width: 1200px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ----- Layout ----- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section + .section { padding-top: 1rem; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-header .view-all {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.section-header .view-all:hover { color: var(--accent-cyan); }

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* solid, not translucent — no glassmorphism, no unearned depth */
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}
.nav a { color: var(--text-secondary); transition: color 0.15s; }
.nav a:hover { color: var(--text-primary); }
.nav .nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 500;
}
.nav .nav-cta:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ----- Hero ----- */

.hero {
  padding: 7rem 0 5rem;
  text-align: left;
  max-width: 880px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #0a0b0f;
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.hero .stat {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero .stat strong {
  color: var(--text-primary);
  font-weight: 600;
  font-feature-settings: "tnum" 1;
}

/* ----- What this is ----- */

.what-this-is {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.what-this-is p + p { margin-top: 1rem; }
.what-this-is code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elev);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--text-primary);
}

/* ----- Connect link grid (chillygeek-style) ----- */

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.connect-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}
.connect-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elev);
}
.connect-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent-cyan);
}
.connect-card .icon svg { width: 18px; height: 18px; }
.connect-card .name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.connect-card .handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ----- Agent cards (variant-a) ----- */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.agent-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s;
  min-height: 200px;
}
.agent-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.agent-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.agent-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.agent-card-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.cap-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.agent-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.agent-card-verified { color: var(--text-muted); }
.agent-card-arrow {
  color: var(--accent-cyan);
  font-weight: 500;
  font-family: var(--font-mono);
}

.agent-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ----- Install ----- */

.install-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.install-block pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: auto;
  margin: 0 0 1rem 0;
}
.install-block .install-cmd {
  display: block;
  padding: 0.5rem 0;
}
.install-block .install-prompt {
  color: var(--accent-cyan);
  user-select: none;
  margin-right: 0.5rem;
}
.install-notes {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  max-width: 720px;
}
.install-notes a,
.hero .lede a,
.submit-block a {
  color: var(--accent-cyan);
  border-bottom: 1px solid transparent;
}
.install-notes a:hover,
.hero .lede a:hover,
.submit-block a:hover {
  border-bottom-color: var(--accent-cyan);
}
.install-notes code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elev);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.feature-list li {
  padding-left: 1.5rem;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

/* ----- List your agent ----- */

.submit-block {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1rem;
}
.submit-block p + p { margin-top: 1rem; }
.submit-block code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elev);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--text-primary);
}
.submit-block a:hover { text-decoration: none; }

/* ----- FAQ ----- */

.faq {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 0;
  transition: border-color 0.15s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  padding: 1rem 1.25rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq .answer a { color: var(--accent-cyan); }
.faq .answer a:hover { text-decoration: underline; }
.faq .answer code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elev);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--text-primary);
}

/* ----- Footer ----- */

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-row a {
  color: var(--text-primary);
  border-bottom: 1px solid transparent;
}
.footer-row a:hover {
  border-bottom-color: var(--text-primary);
}
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.social-links a {
  color: var(--text-muted);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.social-links a:hover {
  color: var(--accent-cyan);
  background: var(--bg-elev);
}
.social-links svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .container { padding: 0 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
