/* =========================================================
   COMPONENTS — buttons, chips, icon boxes, logo chip, spotlight cards
   Poori site mein reuse hote hain. Colours active theme (--accent) se.
   ========================================================= */

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -12px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 18px 36px -14px var(--accent-glow); }

.btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }

.btn--outline { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--dark { background: var(--c-dark-900); color: #fff; }
.btn--dark:hover { background: var(--c-dark-700); }

.btn--white { background: #fff; color: var(--c-ink); }
.btn--white:hover { box-shadow: 0 14px 32px -14px rgba(0, 0, 0, .45); }

.btn--sm { padding: .68rem 1.2rem; font-size: .88rem; }

/* ---------- Text link with arrow ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--c-ink); transition: color .2s; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Icon box ---------- */
.icon-box {
  width: 52px; height: 52px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-box svg { width: 26px; height: 26px; }

/* ---------- Chip / pill ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .9rem; border-radius: 999px;
  font-size: .82rem; font-weight: 500;
  border: 1px solid var(--c-line); color: var(--c-text); background: var(--c-surface);
}
.chip--dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .78); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

/* ---------- Logo chip (company logo on a white plate, dark backgrounds par) ---------- */
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.3rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.logo-chip img { max-height: 64px; width: auto; }

/* ---------- Spotlight hover (js/spotlight.js sets --mx / --my) ---------- */
.spotlight { position: relative; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.spotlight:hover::before { opacity: 1; }
