/* ==========================================================================
   COMPONENTS — buttons, cards, chips, tags (reusable across pages)
   ========================================================================== */

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  border-color: transparent;
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { box-shadow: 0 20px 50px -14px rgba(124,58,237,.6); }

.btn--soft {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn--soft:hover { border-color: var(--border-strong); background: var(--surface-3); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }

.btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* On dark "ink" blocks */
.on-ink .btn--soft { background: rgba(255,255,255,.08); border-color: var(--ink-border); color: #fff; }
.on-ink .btn--soft:hover { background: rgba(255,255,255,.14); }

/* ---------------- Card ---------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}
.card.is-hoverable:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

/* ---------------- Icon chip (colored, like reference) ---------------- */
.chip {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #fff;
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 24px; height: 24px; }
/* Warm, orange-aligned palette so chips harmonize with the brand */
.chip--brand  { background: linear-gradient(135deg,#c2410c,#f97316); }
.chip--blue   { background: linear-gradient(135deg,#f59e0b,#d97706); }
.chip--teal   { background: linear-gradient(135deg,#fb923c,#ea580c); }
.chip--green  { background: linear-gradient(135deg,#f97316,#c2410c); }
.chip--amber  { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.chip--rose   { background: linear-gradient(135deg,#fb7185,#e11d48); }
.chip--violet { background: linear-gradient(135deg,#fdba74,#f97316); }

/* ---------------- Tag / badge ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.tag svg { width: 14px; height: 14px; color: var(--green-500); }

/* ---------------- Link with arrow ---------------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-600);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: gap var(--dur-fast) var(--ease-out);
}
[data-theme="dark"] .arrow-link { color: var(--brand-400); }
.arrow-link svg { width: 16px; height: 16px; }
.arrow-link:hover { gap: 12px; }

/* Browser window mockup (shared) */
.window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.window__dots { display: flex; gap: 7px; }
.window__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window__dots i:nth-child(1){ background:#ff5f57; }
.window__dots i:nth-child(2){ background:#febc2e; }
.window__dots i:nth-child(3){ background:#28c840; }
.window__url {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
}
.window__body { padding: var(--sp-5); }
