/* ============================================================
   AIMOQ — Base Reset & Global Styles
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--clr-text-1);
  background-color: var(--clr-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
}

/* ── Selection ── */
::selection {
  background: rgba(77, 95, 187, 0.35);
  color: var(--clr-white);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--clr-brand);
  border-radius: var(--radius-full);
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  padding-inline: var(--container-padding);
}

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

.section {
  padding-top: var(--sp-24);
  padding-bottom: var(--sp-24);
  padding-block: var(--sp-24);
}

/* ============================================================
   Utility — Gradient Text
   ============================================================ */

.gradient-text {
  background: linear-gradient(135deg, var(--clr-brand-lighter) 0%, var(--clr-brand) 40%, var(--clr-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text--white {
  background: linear-gradient(135deg, #fff 0%, var(--clr-brand-lighter) 60%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Utility — Section Header
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3rem var(--sp-4);
  background: rgba(77, 95, 187, 0.12);
  border: 1px solid rgba(77, 95, 187, 0.28);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-brand-lighter);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}

.section-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-brand-lighter);
  animation: pulse-dot 2s infinite;
}

.section-title {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--sp-4);
  color: var(--clr-text-1);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

/* Light background overrides */
.section--light .section-title   { color: var(--clr-light-text); }
.section--light .section-subtitle { color: var(--clr-light-text-2); }
.section--light .section-tag {
  background: rgba(77, 95, 187, 0.08);
  color: var(--clr-brand-dark);
}
.section--light .section-tag__dot { background: var(--clr-brand); }

/* ============================================================
   Utility — Grid
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

/* ============================================================
   Utility — Badge
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.6;
}

.badge--brand {
  background: rgba(77, 95, 187, 0.15);
  color: var(--clr-brand-lighter);
  border: 1px solid rgba(77, 95, 187, 0.25);
}

.badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge--accent {
  background: rgba(167, 139, 250, 0.12);
  color: #C4B5FD;
  border: 1px solid rgba(167, 139, 250, 0.25);
}
