/* Bastion — USDT staking
   Direction: cool limestone + ink + tether green. No neon. No card stack. */

:root {
  --ink: #121614;
  --ink-soft: #2a312d;
  --stone: #e6e9e4;
  --stone-deep: #cfd5ce;
  --paper: #f3f4f1;
  --usdt: #26a17b;
  --usdt-deep: #1b7a5c;
  --mist: rgba(18, 22, 20, 0.55);
  --line: rgba(18, 22, 20, 0.12);
  --white: #f8f9f6;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

img[src*="logos/"] {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -webkit-user-drag: none;
}

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

button,
input {
  font: inherit;
}

.grain {
  pointer-events: none !important;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  display: none !important;
  pointer-events: none !important;
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.nav.is-solid {
  color: var(--ink);
  background: #f3f4f1;
  border-bottom-color: var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter 0.35s var(--ease);
}

.nav.is-solid .nav__mark {
  filter: brightness(0);
}

.nav__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 450;
  letter-spacing: 0.02em;
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.nav__links a:hover {
  opacity: 1;
}

.nav__cta {
  font-size: 0.88rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: none;
}

.btn--solid {
  background: var(--usdt);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--usdt-deep);
}

.btn--solid:active {
  transform: scale(0.97);
  background: #176b50;
}

#confirmStake:active {
  transform: scale(0.97);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(248, 249, 246, 0.4);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(248, 249, 246, 0.06);
}

.btn--wide {
  width: 100%;
}

#stakeCta {
  gap: 0.35em;
  position: relative;
  z-index: 2;
}

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

.btn--ghost-ink:hover {
  border-color: var(--ink);
  background: rgba(18, 22, 20, 0.04);
}

body.is-modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  overflow: hidden;
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(8, 12, 10, 0.28);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  color: var(--ink);
}

.modal__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--usdt-deep);
}

.modal__title {
  margin: 0;
  padding-right: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
}

.modal__figure {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.modal__figure img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.modal__figure-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.modal__figure-value {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.modal__figure-value span:last-child {
  font-size: 0.85rem;
  opacity: 0.55;
}

.modal__rows {
  margin: 0;
}

.modal__rows > div:not(.modal__pair) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.modal__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.modal__pair > div {
  display: grid;
  gap: 0.2rem;
}

.modal__rows dt {
  margin: 0;
  font-size: 0.82rem;
  color: var(--mist);
}

.modal__rows dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.modal__pair dd {
  font-size: 1.15rem;
}

.modal__rows-total dd {
  font-size: 1.3rem;
  color: var(--usdt-deep);
}

.modal__actions {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.modal__actions .btn {
  width: 100%;
  min-height: 2.75rem;
  font-size: 0.9rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 1.5rem) clamp(1.25rem, 4vw, 3.5rem) 0;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 35%;
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.08) brightness(0.92);
  animation: heroDrift 28s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 14, 12, 0.9) 0%, rgba(8, 14, 12, 0.62) 38%, rgba(8, 14, 12, 0.22) 68%, rgba(8, 14, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 14, 12, 0.45) 0%, rgba(8, 14, 12, 0.12) 42%, rgba(8, 14, 12, 0.88) 100%);
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 18% 70%, rgba(38, 161, 123, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 35% at 88% 30%, rgba(38, 161, 123, 0.12), transparent 65%);
  pointer-events: none;
}

.hero__frame {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  flex: 1;
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
  min-height: 0;
}

.hero__content {
  max-width: 40rem;
  align-self: end;
  padding-bottom: 0.25rem;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8fd9be;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s var(--ease) 0.05s forwards;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9.5vw, 7.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(40px);
  animation: rise 1.1s var(--ease) 0.15s forwards;
}

.hero__line {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s var(--ease) 0.35s forwards;
}

.hero__support {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(248, 249, 246, 0.8);
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease) 0.5s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1s var(--ease) 0.65s forwards;
}

.hero__aside {
  justify-self: end;
  width: min(100%, 19rem);
  padding: 0 0 0.35rem 1.75rem;
  border-left: 1px solid rgba(248, 249, 246, 0.22);
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1.1s var(--ease) 0.45s forwards;
}

.hero__aside-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 249, 246, 0.55);
}

.hero__aside-rate {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #9fe0c5;
  font-variant-numeric: tabular-nums;
}

.hero__aside-rate span {
  margin: 0 0.08em;
  opacity: 0.45;
  font-style: italic;
}

.hero__aside-note {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(248, 249, 246, 0.68);
}

.hero__terms {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(248, 249, 246, 0.16);
  display: grid;
  gap: 0.85rem;
}

.hero__terms li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
}

.hero__terms span {
  color: rgba(248, 249, 246, 0.62);
}

.hero__terms strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.hero__base {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.15rem 0 1.35rem;
  border-top: 1px solid rgba(248, 249, 246, 0.14);
  opacity: 0;
  animation: rise 1s var(--ease) 0.8s forwards;
}

.hero__rails {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 249, 246, 0.5);
}

.hero__rails img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.92;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.hero__rails img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero__base-copy {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 300;
  color: rgba(248, 249, 246, 0.58);
  letter-spacing: 0.02em;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    justify-content: center;
    padding-bottom: 0;
  }

  .hero__frame {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2.5rem;
    padding-bottom: 1.75rem;
  }

  .hero__support {
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
  }

  .hero__aside {
    justify-self: start;
    width: 100%;
    max-width: 22rem;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(248, 249, 246, 0.18);
    padding-top: 1.5rem;
  }

  .hero__base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Yield —— */
.yield {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(38, 161, 123, 0.07), transparent 55%),
    linear-gradient(180deg, #e9ece7 0%, var(--stone) 55%, #d8ddd6 100%);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--usdt-deep);
}

.yield__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.yield__title em {
  font-style: italic;
  color: var(--ink-soft);
}

.yield__copy {
  margin: 1.4rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--mist);
}

.yield__stage {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0 1.5rem 2.5rem;
  border-left: 1px solid var(--line);
}

.yield__grow {
  margin-top: 1.5rem;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.yield__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--usdt), var(--usdt-deep));
  transition: width 0.1s linear;
}

.yield__footnote {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  color: var(--mist);
}

.yield__footnote #apyDisplay {
  color: var(--usdt-deep);
  font-variant-numeric: tabular-nums;
}

.yield__projection {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.yield__arrow {
  opacity: 0.35;
}

#projectionFuture {
  color: var(--usdt-deep);
}

@media (max-width: 900px) {
  .yield {
    grid-template-columns: 1fr;
  }

  .yield__stage {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
    min-height: 0;
  }
}

/* —— Engine / how yield works —— */
.engine {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    linear-gradient(180deg, #d5dbd4 0%, #cfd6cd 45%, #d8ddd5 100%);
  border-top: 1px solid var(--line);
}

.engine__intro {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.engine__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.engine__title em {
  font-style: italic;
  color: var(--ink-soft);
}

.engine__lead {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--mist);
}

.engine__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.engine__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}

.engine__step:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.engine__num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--usdt-deep);
  line-height: 1;
  padding-top: 0.2rem;
}

.engine__step-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.engine__step-copy {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--mist);
}

@media (max-width: 820px) {
  .engine__steps {
    grid-template-columns: 1fr;
  }

  .engine__step:nth-child(odd) {
    border-right: 0;
  }
}

/* —— Studio —— */
.studio {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 6vw, 4.5rem);
  background:
    linear-gradient(180deg, var(--paper) 0%, #e9ece7 100%);
}

.studio__layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.92fr) minmax(22rem, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  max-width: 72rem;
}

.studio__head {
  max-width: 28rem;
  padding-top: 0.35rem;
}

.studio__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.studio__lead {
  margin: 1.25rem 0 0;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--mist);
}

.studio__points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
}

.studio__points li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
}

.studio__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 1px;
  background: var(--usdt-deep);
}

.studio__badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.studio__badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.studio__badge span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.studio__badge strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.studio__panel {
  max-width: none;
  padding: 0 0 0 clamp(1.5rem, 3vw, 2.75rem);
  border-left: 1px solid var(--line);
  border-top: 0;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .studio__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: none;
  }

  .studio__head {
    max-width: none;
  }

  .studio__panel {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.studio__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1rem;
}

.studio__figure {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.studio__coin {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.studio__currency {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4rem);
  opacity: 0.45;
}

.studio__number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

#stakeRange {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--ink);
  outline: none;
  cursor: pointer;
}

#stakeRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--usdt);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
  cursor: grab;
  transition: transform 0.2s var(--ease);
}

#stakeRange::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

#stakeRange::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--usdt);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
  cursor: grab;
}

.studio__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--mist);
}

.studio__terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.term {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.15rem 1rem;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
}

.term:last-child {
  border-right: 0;
}

.term:hover {
  background: rgba(38, 161, 123, 0.06);
}

.term.is-active {
  background: rgba(38, 161, 123, 0.1);
}

.term__name {
  font-size: 0.95rem;
  font-weight: 550;
}

.term__apy {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--usdt-deep);
}

.studio__outcome {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.studio__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--mist);
}

.studio__row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.studio__row--total strong {
  font-size: 1.85rem;
  color: var(--usdt-deep);
}

@media (max-width: 560px) {
  .studio__terms {
    grid-template-columns: 1fr;
  }

  .term {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .term:last-child {
    border-bottom: 0;
  }
}

/* —— Networks —— */
.networks {
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
  background: var(--ink);
  color: var(--white);
}

.networks__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem 3rem;
  max-width: 72rem;
}

.networks .eyebrow {
  color: #8fd9be;
  margin-bottom: 0.75rem;
}

.networks__title {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.networks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.networks__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 1.5rem;
  border-left: 1px solid rgba(248, 249, 246, 0.14);
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.networks__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.networks__item:hover {
  opacity: 1;
}

.networks__item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.networks__item span {
  display: block;
  font-size: 0.92rem;
  font-weight: 450;
}

.networks__item small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
}

@media (max-width: 700px) {
  .networks__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .networks__item {
    padding: 0.85rem 0;
    border-left: 0;
    border-top: 1px solid rgba(248, 249, 246, 0.12);
    width: 100%;
  }

  .networks__item:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* —— Close —— */
.close {
  position: relative;
  min-height: 85svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.close__media {
  position: absolute;
  inset: 0;
}

.close__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.close__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 12, 0.55), rgba(10, 14, 12, 0.78));
}

.close__content {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  padding: 4rem 1.5rem;
}

.close__mark {
  width: 42px;
  height: 42px;
  margin: 0 auto 1.35rem;
  object-fit: contain;
  opacity: 0.92;
}

.close__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
}

.close__copy {
  margin: 1.1rem 0 2rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(248, 249, 246, 0.78);
}

/* —— Footer —— */
.foot {
  background: #0a0d0b;
  color: rgba(248, 249, 246, 0.58);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem) 1.75rem;
  border-top: 1px solid rgba(248, 249, 246, 0.08);
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(16rem, 1.15fr) 2.4fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(248, 249, 246, 0.08);
}

.foot__brand {
  display: inline-block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.foot__tag {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(248, 249, 246, 0.62);
}

.foot__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin: 2rem 0 0;
}

.foot__meta dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 249, 246, 0.38);
}

.foot__meta dd {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: rgba(248, 249, 246, 0.82);
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.foot__heading {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 249, 246, 0.4);
}

.foot__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.foot__list a,
.foot__list span {
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(248, 249, 246, 0.72);
}

.foot__list a {
  transition: color 0.2s ease;
}

.foot__list a:hover {
  color: var(--white);
}

.foot__disclaimer {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(248, 249, 246, 0.08);
}

.foot__disclaimer p {
  margin: 0;
  max-width: 72rem;
  font-size: 0.72rem;
  line-height: 1.65;
  color: rgba(248, 249, 246, 0.42);
}

.foot__disclaimer strong {
  color: rgba(248, 249, 246, 0.62);
  font-weight: 550;
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
}

.foot__copy {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(248, 249, 246, 0.45);
}

.foot__refs {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 249, 246, 0.35);
}

@media (max-width: 1100px) {
  .foot__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .foot__top {
    grid-template-columns: 1fr;
  }

  .foot__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .foot__cols {
    grid-template-columns: 1fr;
  }

  .foot__meta {
    grid-template-columns: 1fr;
  }
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo,
  .cursor-glow {
    animation: none !important;
  }
  .hero__eyebrow,
  .hero__brand,
  .hero__line,
  .hero__support,
  .hero__actions,
  .hero__aside,
  .hero__base {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* —— Document / secondary pages —— */
body.is-doc {
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(38, 161, 123, 0.06), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--stone) 100%);
}

body.is-doc .nav {
  color: var(--ink);
  background: rgba(243, 244, 241, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mix-blend-mode: normal;
}

.doc {
  width: min(48rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3.5rem) 0 5rem;
}

.doc__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--usdt-deep);
}

.doc__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.doc__lead {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--mist);
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
}

.doc__body {
  margin-top: 2.75rem;
}

.doc__body h2 {
  margin: 2.5rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.doc__body h2:first-child {
  margin-top: 0;
}

.doc__body p,
.doc__body li {
  font-size: 0.98rem;
  font-weight: 350;
  line-height: 1.7;
  color: var(--ink-soft);
}

.doc__body p {
  margin: 0 0 1rem;
}

.doc__body ul,
.doc__body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.doc__body li + li {
  margin-top: 0.45rem;
}

.doc__body strong {
  color: var(--ink);
  font-weight: 550;
}

.doc__table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.92rem;
}

.doc__table th,
.doc__table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc__table th {
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.doc__table td {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.doc__callout {
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.doc__status {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
}

.doc__status-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.doc__status-row strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.doc__pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--usdt-deep);
}

.doc__foot-mini {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mist);
}

.doc__foot-mini a {
  color: var(--usdt-deep);
  border-bottom: 1px solid transparent;
}

.doc__foot-mini a:hover {
  border-bottom-color: var(--usdt-deep);
}

@media (max-width: 640px) {
  .doc__status-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
