/* GuildSkills design system — full visual uniformity with ClaudSkills.com
 *
 * Same palette, same fonts, same sizing, same component patterns, same DM
 * across the entire Acreator Store brand network. The only difference
 * between GuildSkills and ClaudSkills is the wordmark letter ("G" vs "C")
 * and the content positioning. Visual identity is unified.
 *
 * If you change a brand-binding value, audit:
 *   - site/favicon.svg (red square + white G)
 *   - site/manifest.json (theme_color, background_color)
 *   - all theme-color meta tags in HTML pages
 */

:root {
  --bg:      #f5f2ee;
  --surface: #eeeae6;
  --border:  #d8d2ca;
  --accent:  #c8102e;
  --accent-d: #a50d26;
  --text:    #0e0e0e;
  --muted:   #6b6259;
  --muted2:  #a09888;
  --nav-bg:  rgba(14,14,14,0.94);
  --dark:    #0e0e0e;
  --card-locked: rgba(238,234,230,0.82);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Mono', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}
.nav-logo .logo-s { color: var(--accent); }
.nav-links {
  display: flex; gap: 36px; list-style: none; align-items: center;
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.nav-cta {
  color: var(--accent);
  border-bottom: 1px solid rgba(200,16,46,0.4);
  padding-bottom: 1px;
}
.nav-links a.nav-cta:hover { color: #e03050; border-bottom-color: #e03050; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 22px; height: 1.5px; background: rgba(255,255,255,0.6); display: block; }

/* ── BRAND BAR (lockup line under nav) ── */
.brand-bar {
  margin-top: 64px;  /* fixed nav clearance */
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 10px 32px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-bar .tag { color: var(--accent); font-weight: 500; }
.brand-bar .sep { color: rgba(255,255,255,0.3); }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 90px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse, rgba(200,16,46,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 28px; height: 1px;
  background: var(--accent); opacity: 0.35;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -4px;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-title .logo-s { color: var(--accent); }
.hero-title em { font-style: italic; font-weight: 400; }

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.75;
  margin-bottom: 22px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  line-height: 2;
  letter-spacing: 0.06em;
  max-width: 580px;
  margin: 0 auto 44px;
}

/* ── HERO SEARCH BAR ── */
.hero-search {
  display: flex;
  max-width: 580px;
  margin: 0 auto 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transition: border-color 0.2s;
}
.hero-search:focus-within { border-color: var(--accent); }
.hero-search input {
  flex: 1;
  padding: 14px 20px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}
.hero-search input::placeholder { color: var(--muted2); }
.hero-search .search-gate {
  padding: 0 22px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.hero-search .search-gate:hover { background: var(--accent-d); }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1a1a1a; }

/* ── PIPELINE STRIP ── */
.pipeline {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pipeline-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.pipe-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-right: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.pipe-node:last-child { border-right: none; }
.pipe-node.lit { color: var(--accent); }
.pipe-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.pipe-dot.lit { background: var(--accent); }

/* ── STATS STRIP ── */
.stats-strip {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.stat-item {
  background: var(--bg);
  padding: 32px 28px;
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num .accent { color: var(--accent); }
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SECTIONS ── */
.section-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 32px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-label::before {
  content: ''; width: 18px; height: 1px;
  background: var(--accent); opacity: 0.45;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 14px;
}
.section-title em { font-style: italic; font-weight: 400; }
.section-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.95;
  letter-spacing: 0.05em;
  max-width: 620px;
  margin-bottom: 48px;
}

/* ── AGENT GRID (the 40+ supported clients) ── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
}
.agent-tile {
  background: var(--bg);
  padding: 22px 18px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
  text-align: center;
  transition: all 0.18s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}
.agent-tile:hover {
  background: var(--surface);
  color: var(--accent);
}
.agent-tile.featured {
  background: rgba(200,16,46,0.04);
  border-left: 2px solid var(--accent);
}
.agent-tile.featured:hover { background: rgba(200,16,46,0.08); }

/* ── FEATURE CARDS GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
}
.feature-card {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.22s;
}
.feature-card:hover { background: var(--surface); }
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}
.feature-title em { font-style: italic; font-weight: 400; }
.feature-body {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.85;
  letter-spacing: 0.03em;
}

/* ── HOW IT WORKS (dark section) ── */
.how-section { background: var(--dark); }
.how-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 32px;
}
.how-section .section-label { color: var(--accent); }
.how-section .section-label::before { background: var(--accent); }
.how-section .section-title { color: #fff; }
.how-section .section-sub { color: rgba(255,255,255,0.55); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  margin-top: 48px;
}
.how-item { background: var(--dark); padding: 44px 32px; }
.how-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.how-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.how-title em { font-style: italic; font-weight: 400; }
.how-body {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.45);
}

/* ── FAQ ── */
.faq-section { background: var(--surface); }
.faq-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 100px 32px;
}
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
details.faq-item summary {
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-family: 'DM Mono', monospace;
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item[open] summary { color: var(--accent); }
details.faq-item .faq-body {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.95;
  letter-spacing: 0.03em;
  margin-top: 16px;
  padding-right: 40px;
}
details.faq-item .faq-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,16,46,0.3);
}
details.faq-item .faq-body a:hover { color: var(--accent-d); border-bottom-color: var(--accent-d); }

/* ── INSTALL COMMAND BOX (per-agent pages) ── */
.install-cmd {
  background: var(--dark);
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}
.install-cmd code { color: var(--accent); flex: 1; overflow-x: auto; }
.install-cmd .copy-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 5px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}
.install-cmd .copy-btn:hover { background: var(--accent); color: #fff; }

/* ── SKILL CARDS (browse) ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 28px;
}
.skill-card {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.22s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.skill-card:hover { background: var(--surface); }
.skill-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
}
.skill-card:hover::after { transform: scaleX(1); }
.skill-cat {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}
.skill-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 10px;
}
.skill-desc {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.85;
  letter-spacing: 0.03em;
  flex: 1;
  margin-bottom: 16px;
}
.skill-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.skill-tag {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 99px;
}

/* ── BROWSE CONTROLS ── */
.controls {
  display: flex;
  gap: 1px;
  background: var(--border);
  margin: 28px 0 28px;
  border: 1px solid var(--border);
}
.controls input[type=search],
.controls select {
  background: var(--bg);
  padding: 14px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  border: none;
  color: var(--text);
  outline: none;
}
.controls input[type=search] { flex: 1; }
.controls input[type=search]::placeholder { color: var(--muted2); }
.controls input[type=search]:focus,
.controls select:focus { background: var(--surface); }
.controls select { background: var(--bg); cursor: pointer; }
.status {
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 18px 0;
}

/* ── FOOTER ── */
footer.site {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 80px 32px 36px;
  margin-top: 0;
}
footer.site .wrap-f {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px 32px;
}
footer.site h4 {
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
footer.site a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  line-height: 2.2;
  letter-spacing: 0.04em;
}
footer.site a:hover { color: var(--accent); }
footer.site .brand-network {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  margin-top: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 2;
}
footer.site .brand-network a { font-size: 10px; }
footer.site .tm-notice {
  grid-column: 1 / -1;
  margin-top: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.32);
  text-align: center;
  font-style: italic;
  line-height: 1.7;
  letter-spacing: 0.03em;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 96px 0 0;
  padding: 24px 32px 0;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-d); }
.breadcrumb .sep { color: var(--border); margin: 0 8px; }

/* ── PER-AGENT LANDING-PAGE HERO (left-aligned variant) ── */
.agent-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 32px 60px;
}
.agent-hero .eyebrow { margin-left: 0; }
.agent-hero .agent-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2.5px;
  color: var(--text);
  margin-bottom: 24px;
}
.agent-hero .agent-title em { font-style: italic; font-weight: 400; }
.agent-hero .agent-lead {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
  letter-spacing: 0.04em;
  max-width: 680px;
  margin-bottom: 24px;
}
.agent-hero .agent-lead a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,16,46,0.3);
}

/* ── PROSE BLOCK ── */
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 56px 0 18px;
}
.prose h2 em { font-style: italic; font-weight: 400; }
.prose p {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.prose p a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,16,46,0.3);
}
.prose p a:hover { color: var(--accent-d); }
.prose ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.prose ul li {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
  letter-spacing: 0.03em;
  padding-left: 24px;
  position: relative;
  margin-bottom: 6px;
}
.prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.prose code {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  background: var(--surface);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav.top { padding: 16px 24px; }
  .nav-links { gap: 18px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .section-wrap, .how-inner, .faq-inner { padding: 70px 24px; }
}
@media (max-width: 600px) {
  nav.top { padding: 14px 18px; }
  .nav-links { display: none; }
  .brand-bar { font-size: 9px; padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .hero { padding: 60px 18px 60px; min-height: auto; }
  .stats-strip { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .controls { flex-direction: column; }
}
