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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--txt-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ─── Utility ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--narrow {
  max-width: var(--container-md);
}

.container--wide {
  max-width: var(--container-2xl);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

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

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--txt-on-accent);
  box-shadow: 0 4px 24px rgba(124,58,255,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,255,.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1px solid var(--border-accent);
  color: var(--txt-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--bg-overlay);
  border-color: var(--clr-primary-light);
}

.btn-ghost {
  color: var(--txt-secondary);
}
.btn-ghost:hover { color: var(--txt-primary); }

.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
}

/* ─── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(124,58,255,.2);
  color: var(--clr-primary-light);
  border: 1px solid rgba(124,58,255,.3);
}

.badge-accent {
  background: rgba(255,107,53,.2);
  color: var(--clr-accent);
  border: 1px solid rgba(255,107,53,.3);
}

/* ─── Card ───────────────────────────────────────────────── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

/* ─── Section ────────────────────────────────────────────── */
.section {
  padding-block: var(--sp-24);
}

.section-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary-light);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--sp-5);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--txt-secondary);
  max-width: 56ch;
  line-height: 1.7;
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--grad-brand);
  border-radius: var(--radius-full);
  margin-block: var(--sp-6);
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary-dark); }

/* ─── Focus ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Selection ──────────────────────────────────────────── */
::selection {
  background: rgba(124,58,255,.35);
  color: var(--txt-primary);
}
