/* Site chrome — structure mirrors iramillercom/public layout.css */

.site-body {
  --site-footer-h: 4.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  min-width: 0;
}

/* Wallet/register/login share .wallet on <main> — keep column width stable while JS remounts. */
.site-main.wallet {
  align-self: center;
  width: min(100%, 40rem);
}

.site-main.wallet.wallet--wide {
  width: min(100%, 48rem);
}

.site-main.wallet.wallet--dashboard {
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  flex: 1 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0.75rem clamp(1rem, 3vw, 1.75rem) 1.25rem;
}

.site-main.wallet.wallet--dashboard > [data-dashboard-host] {
  flex: 1 0 auto;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
}

.site-main.wallet.wallet--dashboard .wallet__status {
  flex: 0 0 auto;
  margin-bottom: 0.35rem;
}

@media (min-width: 960px) {
  /*
   * Dashboard: main grows with content; footer stays after content (not mid-page).
   * Cards use minmax floors so panels stay usable without locking body height.
   */
  .site-body:has(.wallet--dashboard) {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .site-body:has(.wallet--dashboard) > guld-header,
  .site-body:has(.wallet--dashboard) > guld-footer {
    flex: 0 0 auto;
  }

  .site-main.wallet.wallet--dashboard {
    flex: 1 0 auto;
    min-height: 0;
    overflow: visible;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--guld-primary);
  color: var(--guld-white);
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  left: 0.5rem;
}

guld-header {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

guld-header:has(.site-header--overlay) {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  width: 100%;
}

guld-header:has(.site-header--solid) {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
}

.site-header {
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
}

.site-header--overlay {
  position: relative;
}

.site-header--solid {
  background: color-mix(in srgb, var(--guld-theme) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__brand img {
  height: 2rem;
  width: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header__auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.site-header__cta--ghost {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}

.site-header__cta--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.site-header__cta--primary {
  background: var(--guld-primary);
  color: #fff;
}

.site-header__cta--primary:hover {
  background: color-mix(in srgb, var(--guld-primary) 80%, #fff);
  color: #fff;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-header__theme {
  flex-shrink: 0;
  padding: 0.4rem;
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.95);
  min-width: 2.4rem;
  min-height: 2.4rem;
  position: relative;
}

.site-header__theme:hover {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}

.site-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.site-header__theme .ui-icon--sun {
  display: none;
}

.site-header__theme[data-theme-state="dark"] .ui-icon--moon {
  display: none;
}

.site-header__theme[data-theme-state="dark"] .ui-icon--sun {
  display: block;
}

.ui-icon {
  display: block;
  flex-shrink: 0;
}

.btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  line-height: 0;
}

.site-header__profile-link--icon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-header__profile-link--icon .ui-icon {
  opacity: 0.9;
}

.site-header__register {
  flex-shrink: 0;
  font-size: 0.88rem;
  padding: 0.35rem 0.85rem;
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.95);
}

.site-header__register[hidden] {
  display: none !important;
}

.site-header__register:hover {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.site-header__profile {
  position: relative;
  flex-shrink: 0;
}

.site-header__profile[hidden] {
  display: none !important;
}

.site-header__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.site-header__account:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.site-header__account[data-state="signed-in"] {
  border-color: rgba(255, 255, 255, 0.55);
}

.site-header__account[data-state="locked"] {
  border-color: rgba(255, 255, 255, 0.45);
  opacity: 0.92;
}

.site-header__profile-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 50;
  min-width: 16rem;
  max-width: min(20rem, 92vw);
  padding: 0.65rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: color-mix(in srgb, var(--guld-theme) 96%, #000);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
}

.site-header__profile-heading {
  margin: 0 1rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.site-header__profile-error {
  margin: 0 1rem 0.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.12);
  border-radius: 0.25rem;
}

.site-header__profile-list {
  margin: 0 0 0.35rem;
  padding: 0;
  list-style: none;
  max-height: 12rem;
  overflow-y: auto;
}

.site-header__profile-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.site-header__profile-item:hover,
.site-header__profile-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.site-header__profile-item.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.site-header__profile-item-visual {
  flex-shrink: 0;
}

.site-header__profile-item-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.site-header__profile-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.site-header__profile-item-meta {
  font-size: 0.78rem;
  opacity: 0.72;
}

.site-header__profile-actions {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__profile-link {
  display: block;
  padding: 0.55rem 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-header__profile-link:hover,
.site-header__profile-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-header__profile-link--btn {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.site-header__profile-field {
  display: block;
  margin: 0 1rem 0.5rem;
}

.site-header__profile-label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}

.site-header__profile-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.site-header__profile-hint {
  margin: 0 1rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.7;
}

.site-header__profile-note {
  margin: 0 1rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.78;
}

.site-header__profile-import,
.site-header__profile-export {
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__profile-export-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-header__profile-export-reveal {
  padding: 0.35rem 0 0.5rem;
}

.site-header__profile-export-actions {
  display: flex;
  flex-direction: column;
}

.site-header__profile-export-qr {
  margin: 0.5rem 1rem 0;
  text-align: center;
}

.site-header__profile-export-qr img {
  display: inline-block;
  max-width: calc(100% - 2rem);
  height: auto;
  border-radius: 0.25rem;
  background: #fff;
}

.site-header__profile-import-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-header__profile-submit {
  margin: 0.25rem 1rem 0;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 0.25rem;
  background: var(--guld-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.site-header__profile-submit:hover {
  filter: brightness(1.08);
}

.site-header__account-icon {
  display: block;
}

.site-header__avatar {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  overflow: hidden;
  line-height: 0;
}

.site-header__avatar .guld-name-visual__icon {
  display: block;
}

guld-footer {
  display: block;
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  background: var(--guld-theme);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  margin: 0;
  font-size: 0.9rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__network {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.site-footer__network-label {
  display: inline-flex;
  margin: 0;
}

.site-footer__network-select {
  appearance: none;
  margin: 0;
  padding: 0.35rem 1.75rem 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.35rem;
  background:
    var(--guld-theme)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.75)' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    right 0.55rem center / 0.7rem no-repeat;
  color: rgba(255, 255, 255, 0.95);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  cursor: pointer;
}

.site-footer__network-select:disabled {
  cursor: default;
  opacity: 0.92;
}

.site-footer__network-select:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.site-footer__network-meta {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.site-footer__network-meta[data-mode="testnet"] {
  color: #f0b27a;
}

.site-footer__network-meta[data-mode="mainnet"] {
  color: #8fd4b5;
}

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

.site-footer__nav {
  margin-inline-start: auto;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__year {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.hero {
  /* One viewport tall; svh keeps mobile toolbars out of it. */
  --hero-h: 100vh;
  --hero-h: 100svh;
  position: relative;
  min-height: var(--hero-h);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.55) 0%, rgba(38, 65, 117, 0.75) 55%, rgba(0, 0, 0, 0.7) 100%),
    url("/assets/hero-back.jpg") center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vh, 8rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 8vh, 4rem);
  max-width: 42rem;
  animation: hero-rise 0.9s ease-out both;
}

.hero__logo {
  width: min(16rem, 70vw);
  height: auto;
  margin-bottom: 0.75rem;
}

.hero__version {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
}

.hero__title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero__lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__aside {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero__aside a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hero__aside a:hover {
  color: #fff;
}

.section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}

.section--alt {
  background: var(--guld-mist);
}

.section__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--guld-navy);
  opacity: 0.7;
}

.section__cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.landing-simba.section {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.landing-simba h2 {
  margin-bottom: 0.65rem;
}

.landing-simba__blocks {
  max-width: 48rem;
  margin-top: 0.25rem;
}

.landing-simba__blocks .explorer__table-wrap {
  max-height: 11rem;
  overflow: auto;
}

.landing-simba__blocks .explorer-table {
  font-size: 0.82rem;
}

.landing-simba__blocks .explorer-table th,
.landing-simba__blocks .explorer-table td {
  padding: 0.35rem 0.5rem;
}

.landing-simba__cta {
  margin-top: 0.85rem;
}

/* Landing bands: alternate mist/white per column (mobile stack + desktop side-by-side). */
.landing-band {
  display: block;
}

.site-body--landing .landing-band__col {
  background: var(--guld-white);
}

.site-body--landing .landing-band__col:nth-child(even) {
  background: var(--guld-mist);
}

.site-body--landing .landing-band__col:nth-child(even) .section__callout {
  background: color-mix(in srgb, var(--guld-primary) 10%, var(--guld-mist));
}

@media (min-width: 960px) {
  .landing-band--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .landing-band--split > .landing-band__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .landing-band--split > .landing-band__col > .section__cta {
    margin-top: auto;
    padding-top: 1.25rem;
  }

  .landing-band--split .landing-simba__blocks {
    max-width: none;
  }

  .landing-band--split .landing-simba__blocks .explorer__table-wrap {
    max-height: 11rem;
  }

  .landing-band--split .section__callout,
  .landing-band--split .faq-list,
  .landing-band--split .install-cmd,
  .landing-band--split .flow-steps {
    max-width: none;
  }

  /* Thesis pillars stack in the column so the pair stays readable */
  .landing-band--split .pillars {
    grid-template-columns: 1fr;
  }
}

.section__callout {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  max-width: 42rem;
  border-left: 3px solid var(--guld-primary);
  background: color-mix(in srgb, var(--guld-primary) 8%, var(--guld-white));
  border-radius: 0 0.3rem 0.3rem 0;
}

.section__callout p {
  margin: 0;
  max-width: none;
}

.section--alt .section__callout {
  background: color-mix(in srgb, var(--guld-primary) 10%, var(--guld-mist));
}

.faq-list {
  margin: 1.25rem 0 0;
  max-width: 42rem;
}

.faq-list__item {
  margin-bottom: 1.25rem;
}

.faq-list dt {
  font-weight: 600;
  color: var(--guld-navy);
  margin-bottom: 0.35rem;
}

.faq-list dd {
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.section pre,
.install-cmd {
  max-width: min(100%, 48rem);
  overflow-x: auto;
  padding: 1rem 1.15rem;
  margin: 1rem 0 0;
  background: var(--guld-theme);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.flow-steps {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
  counter-reset: flow;
}

.flow-steps li {
  position: relative;
  padding-left: 2.5rem;
  counter-increment: flow;
}

.flow-steps li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--guld-primary);
  color: var(--guld-white);
  font-size: 0.85rem;
  font-weight: 600;
}

.flow-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.flow-steps p {
  margin: 0;
}

/*
 * Landing type scale — calmer, editorial sizing on top of the site's 20px root.
 * Content only (.site-main): header/banner/footer stay consistent with other pages.
 * All rem/em, so user font-size preferences still scale everything.
 */
.site-body--landing .site-main {
  font-size: 0.85rem; /* 17px body copy */
  line-height: 1.65;
}

.site-body--landing .hero__logo {
  width: min(11rem, 55vw);
  margin-bottom: 1.25rem;
}

/* Eyebrow: small, tracked caps instead of a second headline. */
.site-body--landing .hero__version {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.site-body--landing .hero__title {
  max-width: 18ch;
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.site-body--landing .hero__lede {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.site-body--landing .site-main .btn {
  padding: 0.62rem 1.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.site-body--landing .site-main h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.site-body--landing .site-main h3,
.site-body--landing .flow-steps h3,
.site-body--landing .pillar h3 {
  font-size: 1.08em;
  letter-spacing: -0.005em;
}

.site-body--landing .pillar p,
.site-body--landing .faq-list dd {
  font-size: 1em;
}

.site-body--landing .section pre,
.site-body--landing .install-cmd {
  font-size: 0.75rem;
}

.site-body--landing .flow-steps li::before {
  font-size: 0.75rem;
}

/* ---- Hero: globe story (see src/js/lib/hero-globe.js) ---- */
.hero--globe {
  align-items: stretch;
  background: radial-gradient(120% 90% at 50% 45%, #182a52 0%, #0b1226 48%, #05070d 100%);
}

.hero__globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Final composition: mark on top, globe in the middle, thesis + actions below. */
.hero__stage {
  position: relative;
  z-index: 1;
  min-height: var(--hero-h, 100vh);
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  text-align: center;
  padding: 5.25rem clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3rem);
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 1.4s ease, transform 1.4s ease;
  pointer-events: none;
}

.hero--globe[data-phase="final"] .hero__stage {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hero__mark {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.hero__shield {
  width: 3rem;
  height: auto;
}

.site-body--landing .hero__mark .hero__version {
  margin: 0;
}

.hero__copy {
  align-self: end;
  display: grid;
  justify-items: center;
}

.site-body--landing .hero--globe .hero__title {
  max-width: 18ch;
  margin: 0;
}

.site-body--landing .hero--globe .hero__lede {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  line-height: 1.55;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: pretty;
}

.hero--globe .hero__lede strong {
  color: #fff;
  font-weight: 600;
}

.hero--globe .hero__actions {
  margin-top: 1.75rem;
}

.hero--globe .hero__aside {
  margin-top: 1.1rem;
}

/* ---- Action landing: name check + audience bands ---- */
.hero__name-check {
  margin-top: 1.75rem;
  width: min(100%, 28rem);
  display: grid;
  gap: 0.55rem;
  justify-items: stretch;
  text-align: left;
}

.hero__name-check-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero__name-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.hero__name-check-input {
  flex: 1 1 10rem;
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.25rem;
  background: rgba(8, 14, 28, 0.55);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero__name-check-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.hero__name-check-input:focus {
  outline: none;
  border-color: var(--guld-gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--guld-gold) 35%, transparent);
}

.hero__name-check .btn {
  flex: 0 0 auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero__name-check .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero__name-check-status {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  transform: translateY(0.15rem);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
}

.hero__name-check-status:not([hidden]) {
  opacity: 1;
  transform: none;
}

.hero__name-check-status[data-state="ok"] {
  color: #b8e0c2;
}

.hero__name-check-status[data-state="error"] {
  color: #f0b4b4;
}

.hero__name-check-status[data-state="pending"] {
  color: rgba(255, 255, 255, 0.55);
}

.landing-audience {
  padding: clamp(2.75rem, 7vw, 5rem) 0;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.landing-audience.is-visible {
  opacity: 1;
  transform: none;
}

.landing-audience__grid {
  width: min(100% - 2 * var(--space), 68rem);
  margin-inline: auto;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 52rem) {
  .landing-audience__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .landing-audience--alt .landing-audience__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .landing-audience--alt .landing-audience__visual {
    order: -1;
  }
}

.landing-audience__copy {
  min-width: 0;
}

.landing-audience h2 {
  margin: 0 0 0.75rem;
  max-width: 18ch;
  color: var(--guld-navy);
}

.landing-audience .section__eyebrow {
  opacity: 1;
  color: var(--guld-navy);
}

.landing-audience__lede {
  margin: 0 0 1.35rem;
  max-width: 36rem;
  line-height: 1.55;
  font-size: 1.08rem;
  color: var(--guld-ink);
}

.landing-audience__lede em {
  font-style: normal;
  font-weight: 700;
  color: var(--guld-navy);
}

.landing-audience__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.15rem;
}

.landing-audience__features > li {
  position: relative;
  padding-left: 1.15rem;
  max-width: 36rem;
}

.landing-audience__features > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--guld-gold);
}

.landing-audience__features h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--guld-navy);
}

.landing-audience__features p {
  margin: 0;
  line-height: 1.5;
  color: var(--guld-ink);
}

.landing-audience__steps {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  counter-reset: gapp-step;
  max-width: 38rem;
}

.landing-audience__steps li {
  position: relative;
  padding-left: 1.85rem;
  margin: 0;
  line-height: 1.45;
  font-size: 0.95rem;
  color: var(--guld-ink);
  counter-increment: gapp-step;
}

.landing-audience__steps li::before {
  content: counter(gapp-step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--guld-gold);
  color: var(--guld-on-gold);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
}

.landing-audience .section__cta {
  margin-top: 1.65rem;
}

.landing-audience__more {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--guld-ink);
  opacity: 0.85;
}

.landing-audience__more a {
  color: var(--guld-navy);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--guld-navy) 35%, transparent);
  text-underline-offset: 0.15em;
}

.landing-audience__more a:hover {
  text-decoration-color: var(--guld-navy);
}

.landing-audience__features a {
  color: var(--guld-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--guld-navy) 45%, transparent);
  text-underline-offset: 0.12em;
}

.landing-audience__features a:hover {
  text-decoration-color: var(--guld-navy);
}

.landing-audience code {
  color: var(--guld-navy);
  font-weight: 600;
}

.landing-audience__visual {
  margin: 0;
  justify-self: center;
  width: min(100%, 26rem);
}

.landing-audience__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
  transform: translateY(0.4rem) scale(0.98);
  opacity: 0.55;
  transition: opacity 0.85s ease 0.12s, transform 0.85s ease 0.12s;
}

.landing-audience.is-visible .landing-audience__visual img {
  opacity: 1;
  transform: none;
}

.landing-audience--alt {
  background: var(--guld-navy);
  color: #fff;
}

.landing-audience--alt h2,
.landing-audience--alt .section__eyebrow,
.landing-audience--alt .landing-audience__lede,
.landing-audience--alt .landing-audience__features h3,
.landing-audience--alt .landing-audience__features p,
.landing-audience--alt .landing-audience__steps,
.landing-audience--alt .landing-audience__steps li {
  color: #fff;
}

.landing-audience--alt .landing-audience__lede em {
  color: var(--guld-gold-bright);
}

.landing-audience--alt .section__eyebrow {
  opacity: 0.85;
  color: #fff;
}

.landing-audience--alt .landing-audience__features > li::before {
  background: var(--guld-gold);
}

.landing-audience--alt .landing-audience__steps li::before {
  background: var(--guld-gold);
  color: var(--guld-on-gold);
}

.landing-audience--alt .landing-audience__features a {
  color: var(--guld-gold-bright);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--guld-gold-bright) 55%, transparent);
}

.landing-audience--alt .landing-audience__features a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.landing-audience--alt code {
  color: var(--guld-gold-bright);
}

.landing-audience--alt .btn--outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.landing-audience--alt .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.landing-audience:not(.landing-audience--alt) {
  background: var(--guld-paper);
}

.landing-audience--alt + .landing-audience:not(.landing-audience--alt) {
  background: var(--guld-white);
}

@media (max-width: 36rem) {
  .hero__name-check-row .btn {
    width: 100%;
  }
}

/* Scrim: the globe sinks into a dark horizon behind the copy, so text never
   fights the dots. Fades in with the final composition. */
.hero--globe::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(to bottom, rgba(6, 10, 22, 0), rgba(6, 10, 22, 0.78) 55%, rgba(6, 10, 22, 0.92));
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}

.hero--globe[data-phase="final"]::after {
  opacity: 1;
}

/* Mark: an oversized shield centered on the nav row (its middle sits on the
   menu's vertical center), with the version chip right below it. */
.hero--globe .hero__mark {
  --mark-h: 3.08rem;
  position: absolute;
  top: calc(2.06rem - var(--mark-h) / 2);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transform: translateX(-50%);
}

.hero--globe .hero__stage {
  grid-template-rows: 1fr;
}

.hero--globe .hero__shield {
  width: auto;
  height: var(--mark-h);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.site-body--landing .hero--globe .hero__version {
  padding: 0.28rem 0.7rem 0.24rem;
  border-radius: 999px;
  background: rgba(6, 10, 22, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
}

.hero--globe .hero__actions {
  justify-content: center;
}

/* Transfer log — simulated, decorative (aria-hidden). Newest entry last, older ones dim. */
.hero__log {
  width: 16rem;
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
  font-size: 0.66rem;
  line-height: 1.35;
  text-align: right;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.hero__log-caption {
  margin-bottom: 0.15rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.hero__log-item {
  display: flex;
  justify-content: flex-end;
  white-space: nowrap;
  align-items: center;
  gap: 0.5rem;
  animation: log-in 0.45s ease both;
}

.hero__log-item > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Event-type glyph on the right: transfer →, tip commit #, group cosign ∞, gapp sign-in key. */
.hero__log-icon {
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.hero__log-icon--commit,
.hero__log-icon--group {
  color: var(--guld-gold-bright);
}

.hero__log-icon--login {
  color: var(--guld-name-5);
}

.hero__log code {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.85);
}

.hero__log-item:nth-last-child(2) { opacity: 0.7; }
.hero__log-item:nth-last-child(3) { opacity: 0.45; }
.hero__log-item:nth-last-child(4) { opacity: 0.25; }

.hero__log strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.hero__name {
  font-weight: 600;
  color: var(--guld-name-6);
}

.hero__name--t1 { color: var(--guld-name-1); }
.hero__name--t2 { color: var(--guld-name-2); }
.hero__name--t3 { color: var(--guld-name-3); }
.hero__name--t5 { color: var(--guld-name-5); }

@keyframes log-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
}

/* Below the lg breakpoint (64rem = 1024px, Tailwind `lg`; Bootstrap uses 992px) the log
   would collide with the copy — it is decorative, so it simply goes away. */
@media (max-width: 64rem) {
  .hero__log {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__stage {
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .hero__log {
    display: none;
  }
}

/* Monospace runs large next to Avenir; match its x-height inline. */
.site-body--landing .site-main :not(pre) > code {
  font-size: 0.86em;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__plane,
  .hero__content {
    animation: none;
  }
}

@media (max-width: 40rem) {
  .site-header {
    align-items: flex-start;
  }

  .site-header__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Keyring passphrase confirm (sign / security actions) */
.guld-pass-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.guld-pass-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 45%, transparent);
}

.guld-pass-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1.25rem 1.35rem;
  border-radius: 0.4rem;
  background: var(--guld-white);
  color: var(--guld-ink);
  box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, #000 25%, transparent);
}

.guld-pass-dialog__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--guld-navy);
}

.guld-pass-dialog__detail {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.guld-pass-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.guld-pass-dialog__error {
  margin: 0.5rem 0 0;
  color: #8b1a1a;
  font-size: 0.85rem;
}


/* Landing live feeds (#live) */
.landing-live__lede {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--guld-ink) 78%, transparent);
}
.landing-live__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .landing-live__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.landing-live__card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--guld-navy);
}
.landing-live__meta,
.landing-live__offline,
.landing-live__more {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.landing-live__offline {
  color: color-mix(in srgb, var(--guld-ink) 70%, transparent);
}
.landing-live__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.landing-live__table th,
.landing-live__table td {
  text-align: left;
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--guld-ink) 12%, transparent);
}
.landing-live__books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.landing-live__bid { color: #0f8a5f; }
.landing-live__ask { color: #c43c3c; }

/* —— Site-wide chat chrome (non-focus toast + drawer) —— */

.guld-chat-chrome__fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--guld-ink) 18%, transparent);
  background: var(--guld-white, #fff);
  color: var(--guld-navy, #1a2744);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--guld-ink) 16%, transparent);
}

.guld-chat-chrome__fab[hidden] {
  display: none !important;
}

.guld-chat-chrome__badge {
  min-width: 1.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: var(--guld-gold, #e5c04a);
  color: #111;
  font-size: 0.75rem;
  text-align: center;
}

.guld-chat-chrome__drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: color-mix(in srgb, var(--guld-ink) 35%, transparent);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.guld-chat-chrome__drawer[hidden] {
  display: none !important;
}

.guld-chat-chrome__drawer-panel {
  width: min(26rem, 100%);
  background: var(--guld-white, #fff);
  color: var(--guld-ink, #222);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px color-mix(in srgb, var(--guld-ink) 20%, transparent);
}

.guld-chat-chrome__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--guld-ink) 12%, transparent);
}

.guld-chat-chrome__title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.guld-chat-chrome__meta {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.guld-chat-chrome__head-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.guld-chat-chrome__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.guld-chat-chrome__inbox {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
}

.guld-chat-chrome__inbox button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.75rem;
  border-radius: 0.35rem;
  cursor: pointer;
  font: inherit;
  display: grid;
  gap: 0.2rem;
}

.guld-chat-chrome__inbox button:hover {
  background: color-mix(in srgb, var(--guld-ink) 6%, transparent);
}

.guld-chat-chrome__inbox span {
  font-size: 0.85rem;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guld-chat-chrome__unread {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--guld-gold, #e5c04a);
  font-size: 0.75rem;
}

.guld-chat-chrome__empty {
  padding: 1rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.guld-chat-chrome__thread {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.guld-chat-chrome__thread[hidden] {
  display: none !important;
}

.guld-chat-chrome__msgs {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.guld-chat-chrome__msgs li {
  max-width: 90%;
  padding: 0.45rem 0.65rem;
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--guld-ink) 7%, transparent);
  font-size: 0.92rem;
  line-height: 1.35;
}

.guld-chat-chrome__msgs li.is-mine {
  align-self: flex-end;
  background: color-mix(in srgb, var(--guld-gold, #e5c04a) 28%, transparent);
}

.guld-chat-chrome__from {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.guld-chat-chrome__compose {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--guld-ink) 12%, transparent);
}

.guld-chat-chrome__compose input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--guld-ink) 18%, transparent);
  border-radius: 0.3rem;
  background: transparent;
  color: inherit;
}

.guld-chat-chrome__hint {
  margin: 0 0.75rem 0.65rem;
  font-size: 0.85rem;
  color: #8b1e1e;
}

