/* nimiq.life hub styles. @nimiq/style sets html { font-size: 62.5% } (1rem =
   6.25px) and defines the brand gradient/color custom properties on html{} —
   we use px here to avoid rem confusion, and var(--nimiq-*) for brand colors. */

:root {
  --ink: #1f2348;
  --ink-soft: #5f6370;
  --line: #e7e8ef;
  --page: #f8f8f9;
  --ease: cubic-bezier(0.25, 0, 0, 1);
  --navy-bg: radial-gradient(100% 100% at bottom right, #260133, #1f2348);
  --blue-bg: radial-gradient(100% 100% at bottom right, #265dd7, #0582ca);
  --gold-bg: radial-gradient(100% 100% at bottom right, #ec991c, #e9b213);
  --green-bg: radial-gradient(100% 100% at bottom right, #41a38e, #21bca5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Mulish', 'Muli', system-ui, sans-serif !important;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { text-wrap: balance; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid #0582ca;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 28px;
  background-image: var(--navy-bg);
}
.site-header__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
}
.site-header__logo { display: block; height: 24px; width: auto; }
.site-header__suffix {
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  opacity: 0.92;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #1f2348;
  color: #fff;
  text-align: center;
}
.hero__sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__sky-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The 60px blur pulls the sky transparent at the edges (navy base shows),
     so the hero's top edge melts into the navy header, like nimiq.com. */
  filter: blur(60px) brightness(0.85);
}
.hero__globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero__hex {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  /* Flat left/right points, Nimiq orientation. */
  clip-path: polygon(0% 50%, 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%);
  background: linear-gradient(135deg, rgba(124, 120, 220, 0.55), rgba(74, 86, 190, 0.3));
  filter: blur(1.5px);
}
.hero__hex--a { left: 7%;  top: 15%; width: 20px; height: 17px; opacity: 0.5; }
.hero__hex--b { left: 88%; top: 12%; width: 22px; height: 19px; opacity: 0.5; }
.hero__hex--c { left: 91%; top: 52%; width: 26px; height: 22px; opacity: 0.45; }
.hero__hex--d { left: 11%; top: 44%; width: 48px; height: 41px; opacity: 0.2; filter: blur(2.5px); }

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  /* Big bottom pad reserves room for the globe dome cresting below the copy. */
  padding: clamp(56px, 9vh, 104px) 24px clamp(200px, 32vh, 300px);
}
.hero__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.2px;
  color: #fff;
}
.hero__sub {
  margin: 18px auto 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.hero__actions { margin-top: 30px; }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background-image: var(--blue-bg);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(13, 11, 36, 0.4);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(13, 11, 36, 0.45); }
.hero__cta:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(13, 11, 36, 0.4); }
.hero__cta-arrow { font-size: 14px; line-height: 1; transform: translateY(-1px); }
.hero__pick {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__pick-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Funnel ───────────────────────────────────────────────── */
.funnel {
  scroll-margin-top: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 8px;
  text-align: center;
}
.funnel__heading {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  color: var(--ink);
}
.funnel__sub {
  margin: 10px auto 0;
  max-width: 42ch;
  font-size: 16px;
  color: var(--ink-soft);
}
.funnel__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 12px;
}
.funnel__tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.funnel__tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 35, 72, 0.1);
}
.funnel__tile.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 12px 28px rgba(31, 35, 72, 0.12);
}
.funnel__tile-label { flex: 1; min-width: 0; }
.funnel__reset {
  margin-top: 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 500px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
.funnel__reset:hover { background: #f4f5f9; }

/* ── Fleet ────────────────────────────────────────────────── */
.fleet {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}
.nq-group { margin-bottom: 48px; scroll-margin-top: 24px; }
.nq-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.nq-group__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.nq-group__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #eef0f5;
  border-radius: 500px;
  padding: 2px 11px;
}

/* Nimiq hexagon mark (the brand shape), used as a category + card accent. */
.nq-hex {
  flex-shrink: 0;
  width: 26px;
  height: 23px;
  clip-path: polygon(0% 50%, 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%);
}
.nq-hex--sm { width: 17px; height: 15px; }
.nq-hex--blue { background-image: var(--blue-bg); }
.nq-hex--gold { background-image: var(--gold-bg); }
.nq-hex--green { background-image: var(--green-bg); }
.nq-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ── Card ─────────────────────────────────────────────────── */
.nq-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 18px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 35, 72, 0.1);
}
.nq-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.nq-card__name {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
}
.nq-card__tagline {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
}
.nq-card__badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 500px;
  color: #fff;
}
.nq-card__badge--live {
  background-image: var(--green-bg);
  color: var(--ink);
}
.nq-card__badge--preview {
  background-image: var(--gold-bg);
  color: var(--ink);
}
.nq-card__badge--building {
  background: #eef0f5;
  color: var(--ink-soft);
}

/* Live apps are the ones a visitor can open today: lift them with a soft green
   ring (green = shipped / established), not a glow. */
.nq-card--live {
  border-color: rgba(33, 188, 165, 0.4);
  box-shadow: 0 0 0 1px rgba(33, 188, 165, 0.25), 0 10px 30px rgba(31, 35, 72, 0.06);
}
.nq-card--live:hover {
  box-shadow: 0 0 0 1px rgba(33, 188, 165, 0.35), 0 16px 38px rgba(31, 35, 72, 0.1);
}

.nq-card__links { display: flex; gap: 10px; }
.nq-card__link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 500px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
    background-color 0.15s var(--ease);
}
.nq-card__link--open {
  background-image: var(--blue-bg);
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 35, 72, 0.18);
}
.nq-card__link--open:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 35, 72, 0.22);
}
.nq-card__link--open:active { transform: translateY(1px); }
.nq-card__link--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.nq-card__link--ghost:hover { background: #f4f5f9; }

/* ── About ────────────────────────────────────────────────── */
.about {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.about__card {
  position: relative;
  overflow: hidden;
  background-image: var(--navy-bg);
  color: #fff;
  border-radius: 20px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 64px);
  text-align: center;
  box-shadow: 0 24px 60px rgba(31, 35, 72, 0.18);
}
.about__hex { width: 40px; height: 35px; margin: 0 auto 22px; }
.about__heading {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
}
.about__bio {
  margin: 18px auto 0;
  max-width: 60ch;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.about__stats {
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
}
.about__stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.about__stat-num {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.about__stat-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.about__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.about__btn {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 500px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
    background-color 0.15s var(--ease);
}
.about__btn--primary {
  background-image: var(--blue-bg);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 11, 36, 0.35);
}
.about__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13, 11, 36, 0.4); }
.about__btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; }
.about__btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background-image: var(--navy-bg);
  color: rgba(255, 255, 255, 0.72);
}
.site-footer__cta {
  text-align: center;
  padding: clamp(56px, 9vw, 88px) 24px clamp(40px, 6vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__cta-heading {
  margin: 0 auto;
  max-width: 20ch;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
}
.site-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 15px 30px;
  border-radius: 999px;
  background-image: var(--blue-bg);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(13, 11, 36, 0.4);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.site-footer__cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(13, 11, 36, 0.45); }
.site-footer__cta-btn:active { transform: translateY(1px); }
.site-footer__cta-arrow { font-size: 14px; line-height: 1; transform: translateY(-1px); }

.site-footer__base {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.site-footer__builton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.15s var(--ease);
}
.site-footer__builton .nq-hex { width: 18px; height: 16px; }
.site-footer__builton:hover { opacity: 0.85; }
.site-footer__tagline {
  margin: 0;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.5;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 4px;
}
.site-footer__link {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s var(--ease);
}
.site-footer__link:hover { opacity: 0.7; }

/* The shell's connect button sits in the navy header — give it the blue pill. */
.nq-btn--connect {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-image: var(--blue-bg);
  border: none;
  border-radius: 500px;
  padding: 9px 20px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: 0 6px 14px rgba(31, 35, 72, 0.18);
}
.nq-btn--connect:hover { transform: translateY(-2px); }
.nq-btn--connect:active { transform: translateY(1px); }
.nq-btn--connect:disabled { opacity: 0.7; cursor: default; transform: none; }

/* The profile widget renders on navy — lift its text to white for contrast. */
.site-header__wallet .nq-profile__label { color: #fff; }
.site-header__wallet .nq-profile__addr { color: rgba(255, 255, 255, 0.7); }
.site-header__wallet .nq-profile__bal { color: #fff; }

/* ── Motion ───────────────────────────────────────────────── */
/* Sections fade + rise into view on first scroll; the hero hexagons drift.
   Both are disabled wholesale by the reduced-motion guard below. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hexFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.hero__hex { animation: hexFloat 7s var(--ease) infinite; }
.hero__hex--b { animation-duration: 8.5s; animation-delay: -2s; }
.hero__hex--c { animation-duration: 9.5s; animation-delay: -1s; }
.hero__hex--d { animation-duration: 11s; animation-delay: -3s; }

@media (max-width: 560px) {
  .site-header { justify-content: center; }
  .fleet { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Never leave a reveal stuck hidden if the observer never fires. */
  .reveal { opacity: 1 !important; transform: none !important; }
}
