/* =========================================================
   PROOF-OF-WORK CAREER LAUNCH — DESIGN TOKENS
   ========================================================= */

:root {
  /* Color */
  --bg: #F3F4F7;
  --bg-dot: rgba(23, 48, 200, 0.16);
  --ink: #14161B;
  --heading: #1730C8;           /* rich cobalt */
  --heading-deep: #101F94;      /* deeper cobalt, for emphasis */
  --body: #5B6472;              /* muted grey-blue */
  --body-soft: #838EA0;
  --border: #DFE2E8;
  --border-strong: #C7CCD6;

  --charcoal: #24262B;
  --charcoal-hover: #34363D;
  --white: #FFFFFF;

  --tint-blue: #F1F4FC;         /* soft blue-grey */
  --tint-warm: #F8F5F0;         /* pale warm grey */
  --tint-flat: #FBFBFC;

  --success: #1A7F5A;
  --muted-neg: #6B7280;

  /* Type */
  --font-sans: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --page-max: 1180px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --gutter: clamp(18px, 5vw, 56px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(var(--bg-dot) 1.3px, transparent 1.3px);
  background-size: 20px 20px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  position: relative;
}

/* ---------- Type scale ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--heading);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 650;
}

.h1 strong {
  color: var(--heading);
  font-weight: 650;
}

.h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 640;
  color: var(--ink);
}

.h2 .accent { color: var(--heading); }

.h3 {
  font-size: 19px;
  font-weight: 620;
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--body);
  font-weight: 420;
  max-width: 46ch;
  line-height: 1.55;
}

p {
  margin: 0;
  color: var(--body);
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 480px) {
  .section-head { margin-bottom: 20px; gap: 8px; }
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 560;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--charcoal-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-small {
  padding: 9px 16px;
  font-size: 13.5px;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.37s; }

/* ---------- Chips / tags ---------- */

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--body);
  white-space: nowrap;
}

/* ---------- Utility ---------- */

.muted { color: var(--body-soft); }
.center-text { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--heading);
  outline-offset: 3px;
  border-radius: 4px;
}
