/* ── RESET & BASE ─────────────────────────────────────────── */

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

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --surface-3: #2a2a2a;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text-primary: #f0ede8;
  --text-secondary: #9e9b96;
  --text-tertiary: #5a5855;
  --accent: #d4622a;
  --accent-dim: rgba(212,98,42,0.15);
  --accent-bright: #e8723c;
  --green: #1D9E75;
  --green-dim: rgba(29,158,117,0.15);

  /* dot colors per category */
  --dot-board-session: #7F77DD;
  --dot-strategic:     #1D9E75;
  --dot-marketing:     #D85A30;
  --dot-linkedin:      #378ADD;
  --dot-social:        #D4537E;
  --dot-content:       #BA7517;
  --dot-tools:         #9B59B6;
  --dot-workflow:      #1D9E75;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── LAYOUT ───────────────────────────────────────────────── */

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ───────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-bottom: 48px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-divider {
  width: 1px;
  height: 14px;
  background: var(--border-hover);
  display: block;
}

.brand-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skill-total {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--mono);
}

.header-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.header-link:hover { color: var(--accent-bright); }

/* ── MAIN ─────────────────────────────────────────────────── */

.main { padding-bottom: 80px; }

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  margin-bottom: 40px;
}

.hero-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* ── TOOLBAR ──────────────────────────────────────────────── */

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 10px 40px 10px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.search-wrap input::placeholder { color: var(--text-tertiary); }
.search-wrap input:focus { border-color: var(--border-hover); }

.search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.search-clear:hover { color: var(--text-primary); }

.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── RESULTS BAR ──────────────────────────────────────────── */

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-count {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-tertiary);
}

.results-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ── SECTIONS ─────────────────────────────────────────────── */

.skill-section { margin-bottom: 40px; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── CARDS ────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color 0.15s;
}

.card.copied {
  border-color: var(--green);
}

.card-copied-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--green);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.card.copied .card-copied-badge { opacity: 1; }

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.dot-board-session { background: var(--dot-board-session); }
.dot-strategic     { background: var(--dot-strategic); }
.dot-marketing     { background: var(--dot-marketing); }
.dot-linkedin      { background: var(--dot-linkedin); }
.dot-social        { background: var(--dot-social); }
.dot-content       { background: var(--dot-content); }
.dot-tools         { background: var(--dot-tools); }
.dot-workflow      { background: var(--dot-workflow); }

/* Workflow step badges */
.card[data-workflow-step] .card-role::before {
  content: attr(data-step-label);
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--green-dim);
  color: var(--green);
  margin-right: 6px;
  vertical-align: middle;
}

.card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}

.card-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
  margin-top: 1px;
}

.card-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.card-dl-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
  margin-top: 1px;
}

.card-dl-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}

.card-role {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  padding-left: 16px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ── TRIGGERS ─────────────────────────────────────────────── */

.triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.trigger {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s;
  text-align: left;
  line-height: 1.4;
}

.trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.trigger.trigger-copied {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}

/* ── EMPTY STATE ──────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-tertiary);
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 16px;
}

.empty-reset {
  font-family: var(--font);
  font-size: 13px;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.empty-reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── TOAST ────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--mono);
  padding: 10px 18px;
  border-radius: 24px;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 9999;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── FOOTER ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 640px) {
  .page { padding: 0 16px; }
  .site-header { margin-bottom: 32px; }
  .header-meta { display: none; }
  .results-hint { display: none; }
  .hero { margin-bottom: 28px; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .filter-btn { font-size: 11px; padding: 5px 10px; }
}

/* ── PAGE NAV ─────────────────────────────────────────────── */

.page-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.page-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.15s;
  flex: 1;
  min-width: 0;
}

.page-nav-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--surface-2);
}

.page-nav-btn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-primary);
  pointer-events: none;
}

.page-nav-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.page-nav-label {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  display: block;
  line-height: 1.2;
}

.page-nav-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
}

.page-nav-btn.active .page-nav-sub { color: var(--accent); opacity: 0.7; }

@media (max-width: 500px) {
  .page-nav { flex-direction: column; }
}

/* ── DOWNLOADS ────────────────────────────────────────────── */

.downloads {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.downloads-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.downloads-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dl-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 200px;
}

.dl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dl-btn-primary {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-bright);
}

.dl-btn-primary:hover {
  background: rgba(212,98,42,0.2);
}

.dl-btn-template {
  border-color: #378ADD;
  background: rgba(55,138,221,0.1);
  color: #378ADD;
}

.dl-btn-template:hover {
  background: rgba(55,138,221,0.2);
  color: #5aa0e8;
}

.dl-btn-template .dl-sub { color: #378ADD; opacity: 0.7; }

.dl-icon {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 2px;
}

.dl-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.dl-btn:hover .dl-sub { color: var(--accent); opacity: 0.7; }
.dl-btn-primary .dl-sub { color: var(--accent); opacity: 0.7; }

.downloads-note {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.downloads-note code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--code-color);
}

/* ── BOARD SHOWCASE ───────────────────────────────────────── */

.boards-section {
  margin-bottom: 48px;
}

.boards-intro {
  margin-bottom: 28px;
}

.boards-heading {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.boards-sub {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.boards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.board-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.board-card-body {
  padding: 20px;
}

.board-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.board-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.board-members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-chip {
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ── BUILD YOUR OWN CTA ───────────────────────────────────── */

.build-cta {
  margin-bottom: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.build-cta-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
}

.build-cta-text {
  padding: 32px;
  border-right: 1px solid var(--border);
}

.build-cta-heading {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.build-cta-body {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.build-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.build-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

.step-content p:last-child { margin-bottom: 0; }

.step-content code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--code-color);
}

.step-prompt {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
}

.prompt-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 6px;
}

.prompt-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
  margin: 0 !important;
}

.prompt-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.15s;
}

.prompt-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.build-cta-action {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.build-dl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s;
  width: 100%;
}

.build-dl-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.build-dl-icon {
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}

.build-dl-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.build-dl-sub {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-tertiary);
  line-height: 1.6;
}

.step-install-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
  transition: all 0.15s;
}

.step-install-btn:hover {
  background: rgba(212,98,42,0.22);
}

.step-install-icon { font-size: 18px; flex-shrink: 0; }

.step-install-text { display: flex; flex-direction: column; gap: 2px; }

.step-install-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-bright);
}

.step-install-sub {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--accent);
  opacity: 0.8;
}

/* ── RESPONSIVE — BOARDS & CTA ────────────────────────────── */

@media (max-width: 900px) {
  .build-cta-inner { grid-template-columns: 1fr; }
  .build-cta-text { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .boards-grid { grid-template-columns: 1fr; }
}

/* ── SCROLLBAR ────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── SELECTION ────────────────────────────────────────────── */

::selection {
  background: var(--accent-dim);
  color: var(--text-primary);
}
