/* ════════════════════════════════════════════════════════════
   Monitize — Shared Theme (design tokens + reset)
   Inherits the FocusedAI look: light mid-white surfaces, a blue
   cyan→indigo accent family, Plus Jakarta Sans display type.
   Linked first by every page; page styles follow.
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── surfaces (mid-white) ── */
  --c-bg: #e7edf4;
  --c-bg2: #eef3f9;
  --c-surface: #ffffff;
  --c-surface2: #f4f8fd;

  /* ── ink / text ── */
  --c-ink: #0f1b2d;
  --c-text: #1b2740;
  --c-muted: #5d6b80;
  --c-dim: #cdd8e6;

  /* ── borders ── */
  --c-border: rgba(37, 99, 235, 0.16);
  --c-border2: rgba(37, 99, 235, 0.08);

  /* ── blue accent family ── */
  --c-cyan: #0ea5e9;
  --c-blue: #2563eb;
  --c-blue2: #3b82f6;
  --c-indigo: #4f46e5;
  --c-violet: #4f46e5;
  --c-violet-deep: #4338ca;
  --c-good: #059669;

  /* ── gradients ── */
  --grad-hero: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
  --grad-blue: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
  --grad-teach: linear-gradient(135deg, #0ea5e9 0%, #0891b2 100%);
  --grad-build: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --grad-dev: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);

  /* ── elevation ── */
  --shadow-sm: 0 2px 10px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 12px 34px -12px rgba(37, 99, 235, 0.22);
  --shadow-lg: 0 26px 60px -22px rgba(37, 99, 235, 0.30);

  /* ── type & layout ── */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Courier New', monospace;
  --maxw: 1240px;
  --radius: 20px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(37, 99, 235, 0.18); color: #0f1b2d; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-cyan); border-radius: 2px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 6px; }

/* ── shared chrome: grid overlay + ambient orbs ── */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 85%);
}
.bg-orb { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }
.bg-orb-1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(14, 165, 233, 0.30), transparent 70%); top: -200px; left: -160px; }
.bg-orb-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(79, 70, 229, 0.22), transparent 70%); top: 42%; right: -200px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--c-cyan); color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 0 0 8px 8px; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── shared nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 100; padding: 14px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--grad-hero); box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .7);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  font-family: var(--font-display);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.brand-name b { background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.brand-name span { color: var(--c-muted); font-weight: 400; }

/* ── shared buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 22px; border-radius: 100px;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; transition: transform .18s, box-shadow .25s, background .25s, border-color .25s;
}
.btn-primary { background: var(--grad-hero); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { border-color: var(--c-blue); color: var(--c-blue); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ── shared eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37, 99, 235, 0.07); border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 100px; padding: 7px 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--c-blue);
  letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--c-cyan); border-radius: 50%; animation: eyebrow-pulse 2s ease-in-out infinite; }
@keyframes eyebrow-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.6); } }

/* ── shared footer ── */
.site-footer {
  border-top: 1px solid var(--c-border); margin-top: 80px; padding: 34px 0;
  position: relative; z-index: 2; background: rgba(255, 255, 255, 0.5);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--c-muted);
}
.footer-inner .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.footer-inner a { color: var(--c-blue); font-weight: 500; }
.footer-inner a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
