/* ============================================================
   base.css — Reset · Variables · Typography · Utilities · Buttons
   N Gram Technologies
   ============================================================ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; overflow-x: hidden; scrollbar-gutter: stable; }
body  { font-family: var(--font-body); color: var(--text-main); background: var(--white);
        line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; display: block; }
ul    { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── DESIGN TOKENS ─── */
:root {
  /* Brand colours */
  --navy:          #0F2D6E;
  --blue:          #1A56DB;
  --blue-light:    #EBF3FF;
  --blue-mid:      #3B82F6;
  --emerald:       #059669;
  --emerald-light: #ECFDF5;
  --emerald-mid:   #10B981;
  --slate:         #64748B;
  --slate-light:   #F8FAFC;
  --white:         #FFFFFF;
  --border:        #E2E8F0;
  --text-main:     #0F172A;
  --text-sub:      #475569;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Layout */
  --nav-h: 70px;
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--blue); color: #fff; padding: 10px 20px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: top .2s; text-decoration: none;
}
.skip-link:focus { top: 16px; outline: 3px solid #fff; outline-offset: 2px; }

/* ─── UTILITIES ─── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section      { padding: 96px 0; }
.section-sm   { padding: 64px 0; }
.center       { text-align: center; }
.center .section-sub { margin: 0 auto; }

.tag {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
}
.tag-green { background: var(--emerald-light); color: var(--emerald); }

.section-title {
  font-family: var(--font-display); font-size: clamp(28px,4vw,40px);
  font-weight: 800; color: var(--text-main); line-height: 1.2; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--text-sub); max-width: 560px; width: 100%; line-height: 1.7;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  transition: all .2s ease;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 2px 10px rgba(26,86,219,.3);
}
.btn-primary:hover { background: #1547c0; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(26,86,219,.4); }

.btn-secondary {
  background: var(--white); color: var(--blue); border: 1.5px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue-light); }

.btn-emerald {
  background: var(--emerald); color: #fff;
  box-shadow: 0 2px 10px rgba(5,150,105,.3);
}
.btn-emerald:focus-visible { outline-color: var(--emerald); }
.btn-emerald:hover { background: #047857; transform: translateY(-1px); }

.btn-ghost    { color: var(--text-sub); }
.btn-ghost:hover { color: var(--blue); }

.btn-sm { padding: 9px 18px; font-size: 13px; }

.btn-white { background: #fff; color: var(--blue); }
.btn-white:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn-white:hover { background: #F0F7FF; }

.btn-outline-white {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge-dot { animation: none; }
}
