/* ================================================================
   BASE — Reset, Typography, Layout Utilities (Editorial Light v7)
   ================================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: auto; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--g1);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accG); color: var(--w); }

/* ---- Layout ---- */
.container    { max-width: 1120px; margin: 0 auto; padding: 0 var(--container-pad); }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 var(--container-pad); }
.container-lg { max-width: 1320px; margin: 0 auto; padding: 0 var(--container-pad); }
.section      { padding: var(--section-pad) 0; }
.section-md   { padding: var(--section-pad-md) 0; }

/* ---- Flex ---- */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }

/* ---- Grid ---- */
.grid { display: grid; }

/* ---- Gaps ---- */
.gap-1  { gap: 4px; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.gap-12 { gap: 48px; }

/* ---- Misc utilities ---- */
.text-center { text-align: center; }
.relative    { position: relative; }
.w-full      { width: 100%; }

/* ---- Typography (Editorial + Apple polish) ---- */
.t-display {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--w);
}
.t-hero {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
  color: var(--w);
}
.t-xl {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--w);
}
.t-lg {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--w);
}
.t-md {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--w2);
}
.t-sm {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.t-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--g2);
}
.t-body-lg {
  font-size: 19px;
  line-height: 1.7;
  color: var(--g2);
}

/* ---- Text utilities ---- */
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 12px; }
.text-muted   { color: var(--g2); }
.text-dim     { color: var(--g3); }
.text-faint   { color: var(--g4); }
.text-white   { color: var(--w); }
.text-accent  { color: var(--acc); }
.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc);
}

.text-gradient {
  background: linear-gradient(135deg, #0066cc, #4f46e5 50%, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Dividers & Decorative ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: .15;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  display: none; /* hidden in light mode by default */
}
[data-theme="dark"] .glow-orb { display: block; }
.stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 14px;
}
