/* ═══════════════════════════════════
   base.css  —  Reset & global styles
   ═══════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-loose);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
}

p { color: var(--color-muted); font-weight: var(--weight-light); }
p strong { color: var(--color-text); font-weight: var(--weight-medium); }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { font-family: var(--font-body); cursor: pointer; }

ul { list-style: none; }

/* ── Utilities ── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-12);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  border: none;
  height: 1px;
  background: var(--color-border-2);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Ambient blobs ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.blob--1 { width: 600px; height: 600px; background: rgba(124,106,255,0.12); top: -200px; left: -100px; }
.blob--2 { width: 400px; height: 400px; background: rgba(56,189,248,0.08);  bottom: 10%; right: -100px; }
.blob--3 { width: 300px; height: 300px; background: rgba(167,139,250,0.07); top: 50%;   left: 40%; }

/* ── Section scaffold ── */
.section {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24);
}

.section__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.section__desc {
  color: var(--color-muted);
  font-size: var(--text-base);
  max-width: 520px;
  margin-bottom: var(--space-12);
}

/* ── Tag pill ── */
.tag {
  background: rgba(124,106,255,0.1);
  border: 1px solid rgba(124,106,255,0.2);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  font-size: var(--text-sm);
  color: var(--color-accent-2);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

/* ── Save banner ── */
.save-banner {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  z-index: 600;
  display: none;
  white-space: nowrap;
  pointer-events: none;
}
.save-banner--ok  { background: #1e1e2e; border: 1px solid rgba(74,222,128,0.3); color: var(--color-green); }
.save-banner--err { background: #1e1e2e; border: 1px solid rgba(255,92,124,0.3); color: var(--color-red); }
