/* ============================================================
   Global Styles
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--t-med), color var(--t-med);
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.8; }
a  { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-dark); }

/* ---- Gradient text utility ---- */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { padding: var(--section-py) 0; }

/* ---- Section label ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
  border: 1px solid var(--accent-mid);
}

.section-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--grad);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-header        { margin-bottom: 3rem; }
.section-header h2     { margin-bottom: 0.6rem; }
.section-header p      { max-width: 560px; }

/* ---- Gradient divider ---- */
.grad-divider {
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  width: 48px;
  margin: 1rem 0 1.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent), 0 4px 16px rgba(0,0,0,0.12);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* ---- Tags / Pills ---- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all var(--t-fast);
}

/* ---- Card base ---- */
.card {
  background: var(--bg);
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  box-shadow: var(--card-shadow);
}
.card:hover {
  box-shadow: var(--card-shadow-h);
  border-color: var(--card-border-h, var(--border-dark));
  transform: translateY(-3px);
}

/* ---- Divider ---- */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ---- Utilities ---- */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.mono         { font-family: var(--font-mono); }
.hidden       { display: none !important; }
.sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- Scroll-reveal base (set by GSAP in main.js — not CSS) ---- */
/* If GSAP fails, elements are visible by default */
