/* ==========================================================
   TechMagpies design system
   Palette is lifted from the logo: ink navy, signal blue, sky cyan.
   Display: Bricolage Grotesque  ·  Body: Manrope  ·  Code: JetBrains Mono
   ========================================================== */
:root {
  --ink: #0b1a3e;
  --ink-2: #13265a;
  --ink-3: #1b3377;
  --night: #071230;
  --blue: #1f6ff2;
  --blue-2: #1558d6;
  --sky: #18b4ff;
  --sky-2: #7fd6ff;
  --ice: #eef5ff;
  --mist: #dce9fb;
  --line: #d6e3f6;
  --text: #17254a;
  --muted: #566a90;
  --amber: #ffb020;
  --ok: #12a672;
  --white: #fff;

  --f-display: "Bricolage Grotesque", "Inter Display", "Inter", system-ui, sans-serif;
  --f-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --shadow-1: 0 1px 2px rgba(11, 26, 62, .06), 0 8px 24px -12px rgba(11, 26, 62, .18);
  --shadow-2: 0 2px 4px rgba(11, 26, 62, .06), 0 24px 48px -20px rgba(11, 26, 62, .34);
  --nav-h: 80px;
  --gut: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ic { flex: none; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky); color: var(--night); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--white); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--ink); --fg: #fff; --bd: var(--ink); box-shadow: 0 10px 22px -10px rgba(11, 26, 62, .7); }
.btn--primary:hover { --bg: var(--blue); --bd: var(--blue); box-shadow: 0 14px 26px -10px rgba(31, 111, 242, .8); }
.btn--glow { --bg: var(--sky); --fg: var(--night); --bd: var(--sky); box-shadow: 0 10px 30px -8px rgba(24, 180, 255, .7); }
.btn--glow:hover { --bg: #4cc7ff; --bd: #4cc7ff; }
.btn--ghost:hover { --bd: var(--blue); --fg: var(--blue); }
.btn--onDark { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .28); }
.btn--onDark:hover { --bd: var(--sky); --fg: var(--sky-2); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn .ic { transition: transform .18s ease; }
.btn:hover .ic:last-child { transform: translateX(3px); }

/* ---------- shared section helpers ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 58ch; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 176, 32, .7); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
/* ---------- forms ---------- */
.fld { display: grid; gap: 7px; margin-bottom: 16px; }
.fld label { font-weight: 700; font-size: 14px; color: var(--ink); }
.fld label em { font-style: normal; font-weight: 500; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 111, 242, .14); }
.fld__err { color: #c0312d; font-weight: 600; font-size: 14px; margin: -4px 0 14px; }

