/* ============================================
   NIM-ACh — Base & Typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

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

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

body {
  font-family: var(--font-sans);
  background: #f4f6fb;
  color: #0d1d35;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-blue); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-coral); }

/* ── Typography scale ── */
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.2; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 500; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.4; }
h4 { font-size: 15px; font-weight: 500; }
p  { font-size: 14px; line-height: 1.75; }

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); border: none; }
input, textarea { font-family: var(--font-sans); }
img { max-width: 100%; display: block; }

/* ── Selection ── */
::selection {
  background: rgba(232, 112, 64, 0.25);
  color: var(--c-navy);
}

/* ── Layout helpers ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-pad {
  padding: 72px 0;
}

.section-pad-sm {
  padding: 48px 0;
}

/* ── Text utilities ── */
.label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--s-text-2, #8aa0b8);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  color: var(--s-text, #0d1d35);
  margin-bottom: 6px;
}

.section-desc {
  font-size: 14px;
  color: var(--s-text-2, #4a6280);
  line-height: 1.78;
  max-width: 580px;
}

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

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-active {
  background: rgba(29, 184, 132, .12);
  color: var(--c-teal);
  border: 0.5px solid rgba(29, 184, 132, .25);
}

.badge-complete {
  background: rgba(127, 179, 232, .1);
  color: var(--c-blue-light);
  border: 0.5px solid rgba(127, 179, 232, .2);
}

.badge-live {
  background: rgba(59, 122, 191, .12);
  color: var(--c-blue-light);
  border: 0.5px solid rgba(59, 122, 191, .25);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* ── Tags ── */
.tag {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,.05);
  color: #4a6280;
}

.dark-section .tag {
  background: rgba(255,255,255,.07);
  color: var(--t-muted);
}

/* ── Divider ── */
.divider {
  height: 0.5px;
  background: rgba(0,0,0,.07);
  margin: 0;
}
