/* ---------- Tokens (same palette as the main m92.pl site) ---------- */
:root {
  --gold: #F5A623;
  --gold-soft: #FFC15E;
  --purple: #8B5CF6;
  --purple-soft: #A78BFA;
  --bg: #0A0F1A;
  --text: #E8ECF4;
  --muted: #A3ADC2;
  --line: rgba(139, 92, 246, .3);
  --grid: rgba(148, 163, 255, .045);
  --radius: 6px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(245, 166, 35, .06), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 clamp(15px, .25vw + 14px, 18px) / 1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before { /* blueprint grid behind everything */
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Page ---------- */
.page {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding-block: clamp(48px, 9vh, 120px) 32px;
  text-align: center;
}
.logo {
  width: clamp(72px, 6vw + 40px, 112px); height: auto;
  margin-bottom: clamp(24px, 4vh, 40px);
  filter: drop-shadow(0 0 28px rgba(245, 166, 35, .22));
}
.kicker {
  margin: 0 0 1.1rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw + .5rem, 5rem); font-weight: 800;
  line-height: 1.06; letter-spacing: -.02em;
  text-wrap: balance;
}
.accent { color: var(--gold); }
.lead {
  max-width: 56ch;
  margin: 1.6rem 0 0;
  font-size: clamp(1rem, .35vw + .92rem, 1.2rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Pipeline: build steps as hexagons ---------- */
.pipeline {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0;
  margin: clamp(32px, 5vh, 48px) 0 0; padding: 0;
  list-style: none;
}
.pipeline li {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
  width: clamp(68px, 21vw, 120px);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.pipeline li + li::before { /* dashed connector to the previous step */
  content: "";
  position: absolute; top: 15px; right: calc(50% + 20px); width: calc(100% - 40px);
  border-top: 2px dashed rgba(245, 166, 35, .55);
}
.pipeline__hex {
  width: 28px; height: 32px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--line);
  display: grid; place-items: center;
}
.pipeline__hex::after, .pipeline__hex::before { content: ""; grid-area: 1 / 1; }
.pipeline__hex::after { /* inner cut-out: leaves a hexagon outline */
  width: 22px; height: 26px;
  clip-path: inherit;
  background: var(--bg);
}
.pipeline .is-done { color: var(--text); }
.is-done .pipeline__hex { background: var(--gold); }
.is-done .pipeline__hex::after { background: var(--gold); }
.pipeline .is-active { color: var(--gold); }
.is-active .pipeline__hex { background: var(--gold); }
.is-active .pipeline__hex::before { /* spinner inside the outline: "in progress" */
  z-index: 1;
  width: 13px; height: 13px;
  border: 2px solid rgba(245, 166, 35, .18); border-top-color: var(--gold); border-right-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.is-active + .is-active .pipeline__hex::before { animation-delay: -.33s; }
.is-active + .is-active + .is-active .pipeline__hex::before { animation-delay: -.66s; }
.is-active::before { border-top-color: rgba(245, 166, 35, .35); }
.pipeline .is-todo { color: var(--gold); }
.is-todo .pipeline__hex { background: var(--gold); animation: pulse 1.8s ease-in-out infinite; }
.is-todo::before { border-top-color: rgba(245, 166, 35, .35) !important; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 359.98px) { .pipeline li { font-size: .66rem; letter-spacing: .06em; } }

/* ---------- Contact ---------- */
.note { margin: clamp(36px, 6vh, 56px) 0 0; font-size: .9rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .65em 1.25em;
  border: 1px solid var(--purple); border-radius: var(--radius);
  font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--text);
  transition: background-color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: rgba(139, 92, 246, .16); border-color: var(--purple-soft); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
@media (max-width: 479.98px) {
  .actions { flex-direction: column; align-self: stretch; }
}

.footer {
  padding: 24px 16px 32px;
  text-align: center;
  font-size: .8rem; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
