/* nimiq.ninja: public landing.
 * Built on @nimiq/style (legacy tokens, loaded in <head> before this file).
 * Every color, gradient and easing below resolves to a canonical --nimiq-*
 * token so the design system is the single source of truth; the semantic
 * aliases keep the marketing-page selectors readable. */

:root {
  --navy: var(--nimiq-blue);
  --light-blue: var(--nimiq-light-blue);
  --green: var(--nimiq-green);
  --gold: var(--nimiq-gold);
  --gray: var(--nimiq-gray);
  --light-gray: var(--nimiq-light-gray);

  --navy-bg: var(--nimiq-blue-bg);
  --blue-bg: var(--nimiq-light-blue-bg);
  --green-bg: var(--nimiq-green-bg);

  --text: var(--nimiq-blue);
  --text-muted: rgba(31, 35, 72, 0.6);
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.66);

  --ease: var(--nimiq-ease);

  --maxw: 1120px;
  --pad-x: clamp(20px, 5vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Override @nimiq/style's deprecated Muli default with Mulish (rule 9). */
body {
  font-family: 'Mulish', 'Muli', system-ui, sans-serif !important;
  color: var(--text);
  background: var(--light-gray);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 5.2vw, 44px);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
}

.lead {
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.55;
  max-width: 60ch;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-wrap: pretty;
}

.dot { color: inherit; }
.green { color: var(--green); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 28px;
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-blue { background-image: var(--blue-bg); }

.btn-white {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); }

.btn:focus-visible {
  outline: 2px solid var(--light-blue);
  outline-offset: 3px;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(31, 35, 72, 0.18);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-text:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgba(31, 35, 72, 0.32); }
.btn-text:active { transform: translateY(1px); }
.btn-text:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(1.1);
  border-bottom: 1px solid rgba(31, 35, 72, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hexmark { display: block; flex-shrink: 0; }

.wordmark {
  font-weight: 800;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--navy);
  letter-spacing: -0.01em;
}

.header-cta { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); padding: 11px 22px; }

.header-right { display: inline-flex; align-items: center; gap: 12px; }
.lang-select {
  font-family: 'Mulish', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 1.5px rgba(31, 35, 72, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.lang-select:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 2px; }

@media (max-width: 420px) {
  .header-cta { padding: 10px 18px; font-size: 15px; }
  .lang-select { padding: 7px 9px; font-size: 13px; }
}

/* ---------- Hero ---------- */

.hero {
  background-image: var(--navy-bg);
  color: var(--on-dark);
  padding: clamp(64px, 12vw, 132px) 0 clamp(56px, 10vw, 120px);
}

.hero-title {
  font-size: clamp(56px, 16vw, 120px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0;
}

.hero-tagline {
  margin-top: clamp(18px, 3vw, 28px);
  font-size: clamp(22px, 4.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  max-width: 22ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: clamp(14px, 2.4vw, 22px);
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: clamp(28px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.hero-actions .btn-text { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28); }
.hero-actions .btn-text:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }

/* ---------- Bands ---------- */

.band { padding: clamp(56px, 9vw, 100px) 0; }

.band-light { background: var(--light-gray); }
.band-gray { background: var(--gray); }

.band-navy {
  background-image: var(--navy-bg);
  color: var(--on-dark);
}
.band-navy h2 { color: #fff; }
.band-navy .lead { color: var(--on-dark-muted); }

/* ---------- The problem (checklist) ---------- */

.checklist { list-style: none; }

.checklist.plain li {
  position: relative;
  padding-left: 34px;
  font-size: clamp(16px, 2.3vw, 19px);
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 64ch;
  text-wrap: pretty;
}
.checklist.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-image: var(--blue-bg);
}
.checklist.plain li:last-child { margin-bottom: 0; }

/* ---------- How it works (3 cards) ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}

.feature-card {
  background: #fff;
  border: 1px solid rgba(31, 35, 72, 0.08);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 32px);
}

.feature-card h3 { margin-bottom: 12px; color: var(--navy); }
.feature-card p {
  font-size: clamp(15px, 2.1vw, 17px);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

@media (min-width: 760px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ---------- What it hides vs not ---------- */

.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}

.col {
  background: #fff;
  border: 1px solid rgba(31, 35, 72, 0.08);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 32px);
}

.col-title {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 18px;
  color: var(--navy);
}

.checklist.hide li,
.checklist.show li {
  position: relative;
  padding-left: 30px;
  font-size: clamp(15px, 2.1vw, 17.5px);
  line-height: 1.45;
  margin-bottom: 13px;
}
.checklist.hide li:last-child,
.checklist.show li:last-child { margin-bottom: 0; }

.checklist.hide li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-image: var(--green-bg);
}
.checklist.show li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(31, 35, 72, 0.4);
}

@media (min-width: 760px) {
  .cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- Proof (testnet) ---------- */

.band-navy .note { color: var(--on-dark-muted); }
.band-navy .note a,
.band-navy a.tx-link { color: #fff; font-weight: 700; text-decoration: none; }
.band-navy .note a:hover { color: var(--green); }

.proof-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 8px;
}

.proof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(14px, 2vw, 17px);
  min-width: 360px;
}
.proof-table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 18px 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.proof-table td {
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  white-space: nowrap;
}
.proof-table tr:last-child td { border-bottom: none; }

.mono {
  font-family: 'Fira Mono', 'Courier New', monospace;
  letter-spacing: -0.01em;
}
.proof-table td.mono a { color: #fff; text-decoration: none; font-weight: 500; }
.proof-table td.mono a:hover { color: var(--green); }

.proof-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 36px);
}

.proof-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: clamp(20px, 3.5vw, 28px);
}
.box-h {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.box-h.hide { color: var(--green); }
.box-h.show { color: #fff; }
.proof-box p {
  font-size: clamp(16px, 2.3vw, 19px);
  line-height: 1.4;
  color: #fff;
  font-weight: 600;
}

.note {
  margin-top: clamp(20px, 3vw, 28px);
  font-size: 14.5px;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .proof-split { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* ---------- Roadmap ---------- */

.roadmap {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
  counter-reset: none;
}

.road-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(31, 35, 72, 0.08);
  border-radius: 8px;
  padding: clamp(22px, 3.5vw, 28px);
}

.road-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: rgba(31, 35, 72, 0.35);
}
.road-step.done .road-num { background-image: var(--green-bg); }

.road-body h3 { color: var(--navy); margin-bottom: 7px; }
.road-body p {
  font-size: clamp(15px, 2.1vw, 17px);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

@media (min-width: 880px) {
  .roadmap { grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
  .road-step { flex-direction: column; }
}

/* ---------- Closing CTA ---------- */

.band-cta {
  background-image: var(--blue-bg);
  color: #fff;
  padding: clamp(56px, 9vw, 96px) 0;
}
.cta-inner { text-align: center; }
.cta-title { color: #fff; font-size: clamp(28px, 5.2vw, 44px); max-width: 18ch; margin: 0 auto 14px; }
.cta-sub {
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin: 0 auto clamp(26px, 4vw, 34px);
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--gray);
  padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 5vw, 48px);
  border-top: 1px solid rgba(31, 35, 72, 0.08);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.footer-wordmark {
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 20px;
}
.footer-links a {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}
.footer-links a:hover { opacity: 0.6; }
.footer-links a:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 3px; border-radius: 4px; }

.footer-fine {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 70ch;
}
