/* ============================================================
   ZeltenLabs — Base reset & primitives
   Minimal global layer. Components stay self-contained; this is
   just element normalization + a few brand helpers.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--body-weight);
  line-height: var(--body-leading);
  color: var(--text-body);
  background: var(--surface-page);
  font-feature-settings: "ss01", "cv01";
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: var(--leading-tight);
  color: var(--text-strong);
}

p { margin: 0; }

a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

::selection {
  background: var(--red-500);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- Keyframes used by components ---- */
@keyframes zl-spin { to { transform: rotate(360deg); } }
@keyframes zl-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zl-pop-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes zl-toast-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Brand helpers (optional utilities) ---- */

.zl-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
}

/* The signature repeating arrow texture. Set `color` to tint the
   strokes. Use sparingly on dark/brand surfaces. */
.zl-arrow-texture {
  background-image: url("../assets/patterns/arrow-tile.svg");
  background-repeat: repeat;
  background-size: 32px 40px;
}

/* Metallic text/fill helper (the Z-mark look) */
.zl-metallic {
  background: var(--metallic);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
