:root {
  --bg-light: #f4f4f4;
  --bg-muted: #f5f5f5;
  --text-dark: #111827;
  --text-muted: #5d5f62;
  --white: #fff;
  --line: hsla(206, 3%, 57%, 0.33);
  --text-primary: hsl(230, 100%, 50%);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-fraktionmono);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

main { min-height: 100vh; display: flex; flex-direction: column; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  background: #002bff;
  color: var(--white);
  font-family: var(--font-fraktionbold);
  font-size: 8px;
  text-align: center;
  padding: 0 12px;
}
.banner:hover { opacity: 0.9; }
@media (min-width: 360px) { .banner { font-size: 9px; } }
@media (min-width: 390px) { .banner { font-size: 10px; } }
@media (min-width: 460px) { .banner { font-size: 12px; } }
@media (min-width: 768px) { .banner { font-size: 14px; height: 2rem; } }

.header {
  background: var(--bg-light);
  padding: 12px 16px;
  position: relative;
  z-index: 30;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 31px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo__icon { position: relative; width: 31px; height: 31px; flex-shrink: 0; }
.logo__icon > img:first-child { display: block; width: 31px; height: 31px; }
.logo__mark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 17px;
  display: block;
}
.logo__wordmark { display: none; height: 17px; width: auto; flex-shrink: 0; }
@media (min-width: 768px) { .logo__wordmark { display: block; } }

.nav-resources {
  display: none;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  font-family: var(--font-supplymonoregular);
  font-synthesis: none;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 768px) { .nav-resources { display: flex; } }
.nav-resources a {
  display: flex; align-items: center; justify-content: center;
  height: 19px; padding: 3px 7px 4px;
  background: var(--text-primary); color: var(--white);
}

.menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 31px; height: 31px; color: var(--text-primary);
  margin-left: auto;
}
@media (min-width: 768px) { .menu-btn { display: none; } }

.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.5);
}
.mobile-nav.open { display: block; }
.mobile-nav__panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-light);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.mobile-nav__close {
  align-self: flex-end;
  font-size: 24px; color: var(--text-primary);
}
.mobile-nav a {
  font-family: var(--font-supplymonoregular);
  font-synthesis: none;
  font-size: 14px;
  text-transform: uppercase;
  padding: 8px 0;
}

.hero-wrap {
  background: var(--bg-light);
  position: relative;
}
@media (min-width: 768px) {
  .hero-wrap::before {
    content: "";
    position: absolute; inset: 0;
    background: url("../img/bg/fuzzy-bg.svg") center 10px / 100% auto no-repeat;
    pointer-events: none;
  }
}
.hero {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 30px 16px 32px;
}
@media (min-width: 768px) { .hero { padding: 56px 32px 32px; } }
@media (min-width: 1024px) { .hero { padding: 64px 40px 32px; min-height: 71vh; } }
@media (min-width: 1280px) { .hero { padding: 92px 0 32px; } }

.hero__grid {
  display: flex; flex-direction: column; gap: 35px;
}
@media (min-width: 768px) {
  .hero__grid {
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 28px;
  }
}
@media (min-width: 1024px) { .hero__grid { min-height: 548px; gap: 48px; } }
@media (min-width: 1280px) { .hero__grid { min-height: 581px; gap: 72px; } }

.hero__content { display: flex; flex-direction: column; gap: 32px; }
.hero__content > * { margin: 0; }
@media (min-width: 768px) { .hero__content { width: 412px; } }
@media (min-width: 1024px) { .hero__content { width: 522px; } }
@media (min-width: 1280px) { .hero__content { width: 574px; } }

.hero__title {
  font-family: var(--font-supplymonoregular);
  font-synthesis: none;
  font-size: 35px; font-weight: 400;
  line-height: 1.2; letter-spacing: -0.0401em;
  color: var(--text-dark);
  max-width: 372px;
  text-indent: -5px;
  -webkit-text-stroke: 0.6px #f5f5f5;
}
@media (min-width: 768px) {
  .hero__title { font-size: 52px; line-height: 1.1; letter-spacing: -0.065em; max-width: 412px; }
}
@media (min-width: 1024px) { .hero__title { max-width: 522px; letter-spacing: -0.08em; } }
@media (min-width: 1280px) { .hero__title { width: 574px; max-width: none; } }

.hero__title-accent {
  font-family: var(--font-ivory);
  font-size: 44px; font-weight: 700;
  color: var(--text-primary);
  line-height: 1; letter-spacing: -0.03em;
  -webkit-text-stroke: 0.6px #f5f5f5;
}
@media (min-width: 768px) { .hero__title-accent { font-size: 52px; } }

.hero__title-line1 {
  display: block;
}
@media (min-width: 1024px) { .hero__title-line1 { white-space: nowrap; } }

.hero__title-line2 {
  display: block;
  margin-top: 0.075em;
}

.hero__subtitle {
  font-family: var(--font-inter);
  font-size: 16px; line-height: 1.1875;
  color: var(--text-muted);
  max-width: 372px;
}
@media (min-width: 768px) { .hero__subtitle { max-width: 412px; } }
@media (min-width: 1024px) { .hero__subtitle { max-width: 522px; font-size: 18px; line-height: 1.22; } }
@media (min-width: 1280px) { .hero__subtitle { width: 574px; max-width: none; } }
.hero__subtitle strong {
  font-family: var(--font-ivory);
  font-weight: 700; color: var(--text-primary);
}

.btn-bracket {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text-primary); color: var(--white);
  padding: 8px 14px; height: 38px;
  border-radius: 2px;
  font-family: var(--font-fraktionmono);
  font-size: 14px; font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-bracket:hover { opacity: 0.9; }
.btn-bracket--outline {
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}
.btn-bracket--white { background: var(--white); color: var(--text-primary); }
.btn-bracket--bold { font-family: var(--font-fraktionbold); }

.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }

.apy-row { display: flex; align-items: center; gap: 32px; }
@media (min-width: 768px) { .apy-row { gap: 40px; } }
.apy-item { display: flex; flex-direction: column; align-items: center; }
.apy-value {
  font-family: var(--font-fraktionmono);
  font-size: 20px; font-weight: 700; font-style: italic;
  color: var(--text-primary); line-height: 1;
  height: 28px; display: flex; align-items: center;
}
.apy-label {
  margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; line-height: 16px;
}
.apy-label img { width: 14px; height: 14px; border-radius: 50%; }
.apy-label img.susd3 { transform: scale(1.19); }

.hero__visual {
  width: 100%; max-width: 324px; margin: 0 auto;
}
@media (min-width: 768px) { .hero__visual { margin: 0; width: 297px; max-width: none; } }
@media (min-width: 1024px) { .hero__visual { width: 286px; } }
@media (min-width: 1280px) { .hero__visual { width: 352px; } }

.hero__art-wrap {
  position: relative;
  aspect-ratio: 358 / 406;
  overflow: hidden;
  background: var(--bg-light);
}
@media (min-width: 1280px) { .hero__art-wrap { aspect-ratio: 346 / 402; } }
.hero__art-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  mix-blend-mode: darken;
  transform: scale(1.045);
}
@media (min-width: 1280px) {
  .hero__art-wrap img { transform: scale(1.06); }
}

.backed {
  background: url("../img/bg/section05.webp") center / cover;
  padding: 12px 0;
}
.backed__desktop {
  display: none;
  align-items: center; justify-content: center;
  gap: 30rem;
}
@media (min-width: 768px) { .backed__desktop { display: flex; } }
.backed__mobile { display: block; padding: 16px 0; text-align: center; }
@media (min-width: 768px) { .backed__mobile { display: none; } }
.backed__mobile-logos {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; align-items: center;
  margin-top: 32px;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text-primary); color: var(--white);
  padding: 2px 8px; font-size: 14px;
  font-family: var(--font-fraktionmono);
  cursor: default;
}

.supply {
  background: url("../img/bg/section02.webp") center / cover;
  color: var(--white);
  padding: 12px 0;
}
@media (min-width: 768px) { .supply { padding: 80px 0; } }
.supply__inner {
  display: flex; flex-direction: column;
  padding: 12px 20px;
}
@media (min-width: 768px) {
  .supply__inner {
    flex-direction: row;
    padding: 0 96px;
    max-width: 1400px; margin: 0 auto;
  }
}
.supply__text { align-self: center; width: 100%; }
@media (min-width: 768px) { .supply__text { width: 50%; } }
.supply__tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); background: transparent;
  padding: 12px 0; font-size: 16px;
  margin-top: 12px; cursor: default;
}
.supply__heading {
  font-family: var(--font-fraktionbolditalic);
  font-size: 20px; font-style: italic; font-weight: 400;
  margin: 20px 0 24px;
}
@media (min-width: 768px) {
  .supply__heading { font-size: 2.5rem; margin: 0 0 48px; white-space: nowrap; }
}
.supply__desc { font-size: 14px; line-height: 1.5; }
@media (min-width: 768px) { .supply__desc { font-size: 16px; width: 83%; } }

.supply__bars {
  display: flex; gap: 16px; justify-content: center;
  align-items: flex-end;
  margin-top: 64px; padding-bottom: 12px;
  font-size: 12px;
}
@media (min-width: 768px) {
  .supply__bars {
    width: 600px; margin-top: 0; padding-bottom: 0;
    align-self: center; font-size: 16px;
    justify-content: flex-end;
  }
}
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar-apy {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); font-style: italic; font-size: 12px;
  padding: 4px;
}
@media (min-width: 768px) { .bar-apy { font-size: 16px; } }
.bar-box {
  width: 104px;
  border: 1px solid var(--white);
  display: flex; justify-content: center;
}
@media (min-width: 768px) { .bar-box { width: 10rem; } }
.bar-box--aave { height: 122px; }
@media (min-width: 768px) { .bar-box--aave { height: 100px; } }
.bar-box--ethena { height: 241px; }
@media (min-width: 768px) { .bar-box--ethena { height: 200px; } }
.bar-box--jane { height: 365px; background: var(--white); }
@media (min-width: 768px) { .bar-box--jane { height: 300px; } }
.bar-box img { width: 36px; height: 36px; margin-top: 8px; }
@media (min-width: 768px) { .bar-box img { width: 48px; height: 48px; margin-top: 12px; } }
.bar-info { display: flex; flex-direction: column; align-items: center; font-size: 12px; }

.borrow {
  background: var(--bg-muted) url("../img/bg/borrow.webp") center / cover;
  min-height: 675px;
  position: relative; overflow: hidden;
}
.borrow__toggle {
  position: absolute;
  left: calc(50% + 0.46px); top: 29.85px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-supplymonoregular);
  font-synthesis: none;
  font-size: 12px; line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
}
.borrow__toggle button { white-space: nowrap; }
.toggle-switch {
  position: relative;
  width: 24px; height: 12.127px;
  flex-shrink: 0;
}
.toggle-switch svg {
  pointer-events: none;
  position: absolute;
  inset: -19.18% 0 -19.18% -9.69%;
  display: block;
  overflow: visible;
}
.toggle-switch .knob {
  transition: transform 0.15s ease-out;
  transform: translateX(0);
}
.toggle-switch.on .knob { transform: translateX(11.873px); }

.borrow__inner {
  max-width: 1400px; margin: 0 auto;
  min-height: 675px;
  display: flex; flex-direction: column-reverse;
  align-items: center; justify-content: center;
  gap: 40px; padding: 80px 20px 128px;
}
@media (min-width: 768px) {
  .borrow__inner {
    display: grid;
    grid-template-columns: 420px 520px;
    gap: 151px; padding: 0 96px;
  }
}
.borrow__image img {
  width: 100%; max-width: 420px;
  border-radius: 8px;
  box-shadow: 0 0 309px rgba(0,0,0,.01), 0 0 261px rgba(0,0,0,.04),
              0 0 193px rgba(0,0,0,.07), 0 0 106px rgba(0,0,0,.08);
}
.borrow__image {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.borrow__footnote {
  position: absolute;
  left: 0;
  top: calc(100% + 1.38rem);
  z-index: 10;
  width: 100%;
  max-width: 420px;
  margin: 0;
  font-family: var(--font-inter);
  font-size: 10px;
  font-style: italic;
  line-height: normal;
  color: #8f9396;
}
.borrow__content { display: flex; flex-direction: column; gap: 24px; z-index: 10; }
.borrow__tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-primary); font-size: 16px; padding: 0;
  cursor: default;
}
.borrow__title {
  max-width: 520px;
  font-size: 34px; line-height: 0.98;
}
@media (min-width: 768px) { .borrow__title { font-size: 40px; } }
.borrow__title em {
  font-family: var(--font-ivory);
  font-style: normal; font-weight: 400;
  color: var(--text-primary);
}
.borrow__title span {
  font-family: var(--font-supplymonoregular);
  font-synthesis: none;
  color: var(--text-dark);
}
.borrow__title--crypto {
  max-width: 453px;
  white-space: pre-line;
  font-family: var(--font-fraktionbolditalic);
  font-style: italic;
  font-weight: 400;
  color: #111827;
}
.borrow__title--crypto em,
.borrow__title--crypto span { font-family: inherit; color: inherit; }

.borrow__subtitle {
  font-family: var(--font-fraktionbold);
  font-size: 16px;
  line-height: 24px;
  color: #5d5f62;
  margin: 0;
}
.borrow__desc {
  max-width: 466px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: normal;
  color: var(--text-muted);
  margin: 0;
}
.borrow__desc--crypto {
  max-width: 520px;
  font-family: var(--font-fraktionmono);
  line-height: 24px;
}
.borrow__desc-em {
  font-family: var(--font-fraktionbolditalic);
  font-style: italic;
}
.borrow__desc strong { color: var(--text-dark); font-weight: 700; font-family: var(--font-inter); }
.borrow__buttons .btn-bracket { font-family: var(--font-fraktionbold); }
.borrow__buttons .btn-bracket--outline { font-family: var(--font-fraktionmono); }

.borrow__buttons { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 12px; }

.hiw { background: var(--white); padding: 24px 0; }
@media (min-width: 768px) { .hiw { min-height: 100vh; padding-bottom: 20px; } }
.hiw__head {
  max-width: 1321px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; padding: 20px 16px;
}
@media (min-width: 768px) { .hiw__head { padding-left: 56px; margin-bottom: -20px; } }

.blog {
  background: var(--bg-muted);
  padding: 64px 16px;
}
@media (min-width: 768px) { .blog { padding: 70px 0; min-height: 587px; } }
.blog__inner { max-width: 1078px; margin: 0 auto; text-align: center; }
.blog__title {
  font-family: var(--font-fraktionbolditalic);
  font-size: 32px; line-height: 1; color: var(--text-primary);
}
@media (min-width: 768px) { .blog__title { font-size: 40px; } }
.blog__grid {
  margin-top: 56px;
  display: grid; gap: 40px;
}
@media (min-width: 768px) { .blog__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.blog-card { display: flex; flex-direction: column; gap: 36px; text-align: left; }
.blog-card__img {
  position: relative; height: 170px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-light);
}
.blog-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.blog-card__title {
  font-family: var(--font-fraktionbold);
  font-size: 24px; text-transform: uppercase;
  line-height: normal; color: var(--text-dark);
}
.blog-card__desc {
  font-family: var(--font-fraktionmono);
  font-size: 16px; line-height: normal; color: var(--text-muted);
}

.footer-cta {
  background: url("../img/bg/section06.webp") center / cover;
  color: var(--white);
  padding: 40px;
  font-size: 14px;
}
@media (min-width: 768px) { .footer-cta { font-size: 16px; } }
.footer-cta__inner {
  display: flex; flex-direction: column; align-items: center;
}
.footer-cta__hero {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; margin-top: 48px;
}
@media (min-width: 768px) { .footer-cta__hero { gap: 48px; } }
.footer-cta__hero h2 {
  font-family: var(--font-fraktionbolditalic);
  font-size: 30px; font-style: italic; font-weight: 400;
  text-align: center; white-space: nowrap;
}
@media (min-width: 768px) { .footer-cta__hero h2 { font-size: 48px; } }

.footer-cta__bottom {
  width: 100%; margin-top: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
@media (min-width: 768px) {
  .footer-cta__bottom { flex-direction: row; justify-content: space-between; }
}
.footer-links {
  display: none; flex-wrap: wrap; gap: 16px;
}
@media (min-width: 768px) { .footer-links { display: flex; } }
.footer-links a:hover { opacity: 0.8; }
.footer-links__static { cursor: default; }

.social-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
@media (min-width: 768px) { .social-row { justify-content: flex-end; } }
.social-row__link { display: flex; align-items: center; }
.social-row__link--first { margin-left: -12px; }
@media (min-width: 768px) { .social-row__link--first { margin-left: 0; } }
.social-row__link--last { margin-right: -12px; }
@media (min-width: 768px) { .social-row__link--last { margin-right: 0; } }
.social-row img {
  width: 48px;
  height: auto;
  max-width: none;
}

.footer-divider {
  width: 100%; height: 1px;
  background: #9ca3af; margin: 20px 0;
}
.footer-mobile-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  width: 100%;
}
@media (min-width: 768px) { .footer-mobile-links { display: none; } }

.footer-copy {
  width: 100%; display: flex;
  justify-content: space-between; gap: 20px;
  margin-top: 20px;
}
@media (min-width: 768px) { .footer-copy { margin-top: 0; align-items: center; } }
.footer-copy p:last-child { display: none; }
@media (min-width: 768px) { .footer-copy p:last-child { display: block; } }
