/* =========================================================
   infiniFi — landing page
   ========================================================= */

:root {
  --bg: #f9faf9;
  --white: #ffffff;
  --ink: #00191a;
  --text: #2b2b2b;
  --muted: #666666;

  --teal: #01575a;        /* primary */
  --teal-2: #1a7271;      /* headings / tiles */
  --teal-3: #005e5d;      /* lock card */
  --teal-deep: #003133;   /* integrations */
  --teal-hover: #204531;
  --mint: #72c9b6;
  --mint-2: #a7f3e1;
  --mint-soft: #e6f4f2;
  --mist: #e5eced;
  --sage: #c9dbd7;

  --beige: #eee8da;
  --gold: #d0b77b;
  --gold-2: #a27f2a;
  --gold-3: #eadbb4;
  --orange: #f1c182;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "TASA Orbiter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --panel: 1248px;
  --gutter: 40px;
  --radius: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

/* ---------- shared ---------- */
.panel {
  position: relative;
  max-width: var(--panel);
  margin: 0 auto;
  padding: 72px var(--gutter);
}

.eyebrow {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 48px;
}
.eyebrow--gold { color: var(--gold-3); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: start;
}
.split--center { align-items: center; }

.indent { display: inline-block; text-indent: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 16px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-hover); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(1, 87, 90, .7); }
.btn--light { background: #fff; color: var(--teal); height: 50px; padding: 0 24px; gap: 20px; }
.btn--light:hover { background: var(--mint-soft); }
.btn__mark { width: 22px; height: auto; transition: transform .5s var(--ease); }
.btn:hover .btn__mark { transform: rotate(180deg); }
.plus { font-size: 18px; line-height: 1; transition: transform .3s var(--ease); }
.btn:hover .plus { transform: rotate(90deg); }

/* reveal-on-scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 32px;
  z-index: 50;
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 24px;
}
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 32px;
  background: rgba(249, 250, 249, .82);
  border: 1px solid #a8d4ca;
  border-radius: 3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.nav.is-scrolled .nav__bar { box-shadow: 0 10px 30px -18px rgba(0, 49, 51, .45); }

.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); }
.brand__logo { display: block; height: 22px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 50px; font-size: 14px; color: #3d3d3d; }
.nav__links > a, .dropdown__btn { transition: color .2s; white-space: nowrap; }
.nav__links > a:hover, .dropdown__btn:hover { color: var(--teal); }
.nav__cta { font-weight: 700; color: var(--teal) !important; }
.nav__cta:hover { color: var(--teal-hover) !important; }

.dropdown { position: relative; }
.dropdown__btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #3d3d3d; }
.dropdown__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s; }
.dropdown.is-open .dropdown__btn svg { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 200px;
  padding: 8px;
  background: #fff;
  border: 1px solid #cfe5df;
  border-radius: 6px;
  box-shadow: 0 18px 40px -20px rgba(0, 49, 51, .4);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown__menu::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.dropdown__menu a { display: block; padding: 9px 12px; border-radius: 4px; color: #333; }
.dropdown__menu a:hover { background: var(--mint-soft); color: var(--teal); }
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1025px) {
  .dropdown:hover .dropdown__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .dropdown:hover .dropdown__btn svg { transform: rotate(180deg); }
}

.nav__toggle { display: none; width: 32px; height: 32px; position: relative; }
.nav__toggle span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: var(--teal); transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle span:nth-child(1) { top: 10px; }
.nav__toggle span:nth-child(2) { top: 15.5px; }
.nav__toggle span:nth-child(3) { top: 21px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  max-width: 1280px;
  min-height: 830px;
  margin: -72px auto 0;
  padding: 248px 56px 120px;
}
.hero__copy { position: relative; z-index: 1; max-width: 620px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -.005em;
  color: var(--teal-2);
}
.hero__lede {
  margin: 28px 0 24px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.17;
  color: #555;
}
.hero__art {
  position: absolute;
  right: 0;
  top: 132px;
  width: min(62%, 790px);
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0, #000 34%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0, #000 34%);
  mask-composite: intersect;
}

.stats { display: flex; margin: 34px 0 0; }
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  min-width: 192px;
  padding: 0 40px;
  border-left: 1px solid #333;
}
.stat:first-child { padding-left: 0; border-left: 0; min-width: 192px; }
.stat dd { margin: 0; font-size: 24px; line-height: 1.2; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat dt { font-size: 14px; color: #333; }

/* =========================================================
   ABOUT + RETURNS
   ========================================================= */
.about {
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 64px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--mint-soft) 0, var(--bg) 520px);
}
.about__title {
  font-weight: 400;
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #2b2b2b;
}
.about__title .accent { display: block; color: #5a9e97; }
.about__body { padding-top: 8px; max-width: 450px; }
.about__body h3 { font-size: 14px; font-weight: 700; color: #0c2b2a; margin-bottom: 34px; }
.about__body p { font-size: 14px; line-height: 1.4; color: #222; }

.returns { margin-top: 72px; display: flex; flex-direction: column; align-items: center; }

/* slider */
.slider { --thumb: 30px; width: min(672px, 100%); }
.slider__labels { position: relative; height: 22px; font-size: 14px; }
.slider__labels button {
  position: absolute;
  top: 0;
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p));
  transform: translateX(-50%);
  color: rgba(0, 0, 0, .5);
  white-space: nowrap;
  transition: color .3s;
}
.slider__labels button:nth-child(1) { --p: 0; left: 0; transform: none; }
.slider__labels button:nth-child(2) { --p: .25; }
.slider__labels button:nth-child(3) { --p: .5; }
.slider__labels button:nth-child(4) { --p: .75; }
.slider__labels button:nth-child(5) { --p: 1; left: auto; right: 0; transform: none; }
.slider__labels button:hover { color: var(--teal-2); }
.slider__labels button.is-active { color: #000; }
.slider__labels .sm { display: none; }

.slider__track { position: relative; margin-top: 22px; height: var(--thumb); }
.tick {
  position: absolute;
  top: 50%;
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--i) / 4);
  width: 1.5px;
  height: 10px;
  margin-top: -5px;
  background: #25242d;
  pointer-events: none;
}

input[type="range"] {
  --pct: 0%;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--thumb);
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-2) 0 var(--pct), #25242d var(--pct) 100%);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: #25242d; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--teal-2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: -13px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: url("../assets/thumb.svg") center / 100% no-repeat, radial-gradient(circle at 35% 30%, #a7e5d6, var(--mint) 55%, #3f9d89);
  box-shadow: 0 2px 6px rgba(0, 49, 51, .35);
  transition: transform .2s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  border: 2px solid #fff;
  background: url("../assets/thumb.svg") center / 100% no-repeat, radial-gradient(circle at 35% 30%, #a7e5d6, var(--mint) 55%, #3f9d89);
  box-shadow: 0 2px 6px rgba(0, 49, 51, .35);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--teal); outline-offset: 2px; }

.slider__brackets {
  display: grid;
  grid-template-columns: calc(var(--thumb) / 2 + (100% - var(--thumb)) * .25) 1fr;
  margin-top: 18px;
  font-size: 12px;
  color: #7a7a7a;
}
.bracket { position: relative; display: flex; align-items: center; justify-content: center; height: 18px; }
.bracket::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid #9a9a9a;
}
.bracket::after {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  border-left: 1px solid #9a9a9a;
  border-right: 1px solid #9a9a9a;
}
.bracket--locked::after { border-left: 0; }
.bracket em { position: relative; z-index: 1; padding: 0 8px; font-style: normal; background: var(--bg); }

.returns__mode {
  margin: 40px 0 46px;
  font-size: 52px;
  line-height: 1.1;
  color: var(--teal-3);
  text-align: center;
  transition: opacity .25s;
}
.returns__mode.swap { opacity: 0; }

.returns__card {
  display: flex;
  flex-direction: column;
  width: min(512px, 100%);
  padding: 48px 64px 40px;
  background: #fff;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
}
.returns__label { font-size: 23px; color: #25242d; }
.returns__value { margin: 10px 0 14px; font-size: 54px; line-height: 1.2; color: var(--teal-3); font-variant-numeric: tabular-nums; }
.returns__card hr { width: 100%; margin: 8px 0 18px; border: 0; border-top: 1px solid #25242d; }
.returns__label--compare { margin-bottom: 16px; }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.compare button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--mist);
  font-size: 20px;
  color: #25242d;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.compare button b { font-weight: 400; }
.compare button:hover { transform: translateY(-2px); }
.compare button.is-active { border-color: var(--teal); background: #dfe8e9; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  z-index: 1;
  margin-top: -20px;
  padding-top: 124px;
  padding-bottom: 120px;
  color: #fff;
  background: linear-gradient(135deg, #00393a 0%, #004d4d 45%, #005f5c 100%);
  overflow: hidden;
}
.how::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 85% 90%, rgba(114, 201, 182, .14), transparent 70%);
  pointer-events: none;
}
.how .eyebrow { margin-bottom: 48px; }
.how__title { font-weight: 400; font-size: 48px; line-height: 1.02; letter-spacing: -.02em; }
.how__title span { color: var(--mint-2); }

.how__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 80px;
  align-items: start;
}

.flow { width: 100%; max-width: 525px; margin-left: 40px; overflow: visible; }
.flow__wires path { fill: none; stroke: rgba(114, 201, 182, .55); stroke-width: 1.2; }
.flow__pulses circle { fill: var(--mint-2); filter: drop-shadow(0 0 4px rgba(167, 243, 225, .9)); }
.node rect { fill: #e5eced; stroke: var(--mint); stroke-width: 1.2; rx: 1; transition: fill .25s; }
.node:hover rect { fill: #fff; }
.node text { font-family: var(--sans); font-size: 15px; text-anchor: middle; fill: #111; }
.node .t-gold { fill: var(--gold-2); font-size: 15.5px; }
.node .t-sm { font-size: 13.5px; }
.node--gold rect { fill: var(--gold); stroke: #e8d6a6; }
.node--gold:hover rect { fill: #dcc58e; }
.node--gold text { fill: #25220f; }
.node--gold .t-light { fill: #fff; }

.how__copy { padding-top: 0; max-width: 420px; font-size: 18px; line-height: 1.55; font-weight: 500; }
.how__copy p + p { margin-top: 28px; }
.how__copy .btn { margin-top: 32px; }

/* =========================================================
   YIELD MODES
   ========================================================= */
.modes {
  z-index: 2;
  margin-top: -20px;
  padding-top: 56px;
  padding-bottom: 80px;
  border-radius: var(--radius);
  background: var(--beige);
}
.modes .eyebrow { margin-bottom: 40px; }
.modes__title { font-weight: 400; font-size: 48px; line-height: 1.04; letter-spacing: -.02em; color: #111; }
.modes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 64px; }
.mode {
  padding: 36px 32px 44px;
  background: #fff;
  border-radius: var(--radius);
  color: var(--teal);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.mode:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(0, 49, 51, .5); }
.mode h3 { font-size: 26px; font-weight: 500; }
.mode p { margin-top: 16px; font-size: 22px; line-height: 1.5; max-width: 500px; }
.mode hr { margin: 26px 0 32px; border: 0; border-top: 2px solid currentColor; opacity: .9; }
.mode__up { display: block; font-size: 22px; }
.mode__apy { display: block; margin-top: 10px; font-size: 28px; line-height: 1; }
.mode__apy b { font-size: 52px; font-weight: 400; }
.mode--lock { background: var(--teal-3); color: #fff; }

/* =========================================================
   INTEGRATIONS
   ========================================================= */
.integrations {
  z-index: 1;
  margin-top: -20px;
  padding: 100px 0 20px;
  background: var(--teal-deep);
  color: #fff;
}
.integrations .split { padding: 0 var(--gutter); }
.integrations__title { font-weight: 400; font-size: 40px; letter-spacing: -.02em; color: var(--orange); }
.integrations__body { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .92); max-width: 540px; }

/* marquee base */
.marquee {
  --gap: 0px;
  --dur: 40s;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: marquee var(--dur) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

.marquee--logos { margin-top: 64px; }
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 200px;
  height: 120px;
  border-right: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
  white-space: nowrap;
  opacity: .92;
  transition: opacity .2s, background-color .3s;
}
.logo:hover { opacity: 1; background: rgba(255, 255, 255, .03); }
.logo::before { content: ""; flex: none; }
.logo--curve { font-size: 29px; font-weight: 700; letter-spacing: -.02em; }
.logo--curve::before { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(from 200deg, #ff4f4f, #ffd641, #30e000, #3898ff, #ff4f4f); }
.logo--gauntlet { font-size: 21px; font-weight: 500; }
.logo--gauntlet::before { width: 18px; height: 22px; border: 3px solid #fff; border-right-width: 0; }
.logo--ipor { font-size: 30px; font-weight: 400; letter-spacing: .02em; }
.logo--ipor::before { width: 34px; height: 14px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; transform: skewX(-30deg); }
.logo--lz { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.logo--lz::before { width: 16px; height: 30px; border-radius: 8px; background: #fff; }
.logo--morpho { font-size: 24px; font-weight: 400; }
.logo--morpho::before { width: 22px; height: 18px; background: linear-gradient(135deg, #fff 45%, transparent 46%), linear-gradient(225deg, #fff 45%, transparent 46%); background-size: 50% 100%; background-repeat: no-repeat; background-position: left, right; }
.logo--pendle { font-size: 14px; font-weight: 600; letter-spacing: .5em; }
.logo--pendle::before { width: 20px; height: 26px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: rgba(255, 255, 255, .85); }
.logo--silo { font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.logo--silo::before { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; }
.logo--steak { font-size: 20px; font-weight: 500; font-family: var(--serif); }
.logo--steak::before { width: 20px; height: 20px; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.logo--tau { font-size: 22px; font-weight: 500; letter-spacing: .04em; }
.logo--tau::before { content: "τ"; font-family: var(--serif); font-size: 30px; line-height: 1; }

/* =========================================================
   BACKERS
   ========================================================= */
.backers {
  z-index: 2;
  margin-top: -20px;
  padding: 64px 0 72px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, #f6f8f7 0%, #e7eeec 45%, var(--sage) 100%);
}
.backers .split { padding: 0 var(--gutter); }
.backers__title { font-weight: 400; font-size: 48px; line-height: 1.02; letter-spacing: -.02em; color: #111; }
.backers__title .muted { display: block; color: #6b6b6b; }
.backers__body { font-size: 15px; line-height: 1.6; color: #222; max-width: 530px; }

.marquee--tiles { --gap: 16px; --dur: 46s; margin-top: 16px; }
.backers .split + .marquee { margin-top: 88px; }
.marquee--tiles.marquee--reverse { --dur: 52s; }
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  min-width: 220px;
  padding: 0 40px;
  background: var(--teal-2);
  color: #fff;
  white-space: nowrap;
  transition: background-color .3s;
}
.tile:hover { background: var(--teal); }
.tile--kraynos { font-size: 26px; letter-spacing: .04em; }
.tile--newform { font-size: 26px; font-weight: 700; letter-spacing: -.05em; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tile--baboon { font-size: 23px; font-weight: 700; letter-spacing: .08em; min-width: 256px; }
.tile--gearbox { font-size: 22px; font-weight: 700; min-width: 256px; }
.tile--gearbox::before { content: "✺"; margin-right: 12px; font-size: 26px; }
.tile--alchemix { font-size: 15px; font-weight: 600; letter-spacing: .3em; min-width: 256px; }
.tile--alchemix::before { content: "◈"; margin-right: 10px; font-size: 26px; letter-spacing: 0; }
.tile--term { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.tile--term::before { content: "≡"; display: grid; place-items: center; width: 40px; height: 40px; margin-right: 8px; border-radius: 4px; background: #fff; color: var(--teal-2); font-size: 30px; line-height: 1; }
.tile--electric { font-size: 13px; letter-spacing: .2em; min-width: 256px; }
.tile--jones { font-size: 24px; font-weight: 800; font-style: italic; min-width: 256px; }
.tile--frax { font-size: 18px; letter-spacing: .3em; min-width: 168px; }
.tile--frax::before { content: ""; width: 34px; height: 34px; margin-right: 12px; border: 3px solid #fff; border-radius: 50%; box-shadow: inset 0 0 0 5px var(--teal-2), inset 0 0 0 9px #fff; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  max-width: var(--panel);
  margin: 0 auto;
  background: linear-gradient(var(--sage), var(--sage)) top / 100% 80px no-repeat;
  padding-top: 36px;
}
.cta__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 400px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, #e3f2ee 0%, #eef6f4 40%, var(--bg) 78%);
}
.cta__card::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 100%;
  height: 37px;
  background: #e3f2ee;
  clip-path: polygon(2.4% 0, 97.6% 0, 100% 100%, 0 100%);
  border-radius: 20px 20px 0 0;
}
.cta__art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(32%, 400px);
  height: auto;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
  mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.cta__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 100px 24px 120px;
  text-align: center;
}
.cta__copy h2 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.1; color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { max-width: var(--panel); margin: 0 auto 48px; }
.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.8fr 1fr auto;
  gap: 40px;
  min-height: 346px;
  padding: 64px 64px 26px;
  background: var(--teal);
  color: #fff;
  overflow: hidden;
}
.footer__watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -110px;
  font-family: var(--serif);
  font-size: clamp(160px, 31vw, 440px);
  line-height: 1;
  letter-spacing: -.02em;
  text-align: center;
  color: rgba(255, 255, 255, .045);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.footer__brand { position: relative; }
.footer__brand p { margin-top: 18px; max-width: 290px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.footer__links { position: relative; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__links h4 { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.footer__links a { width: fit-content; color: rgba(255, 255, 255, .88); transition: color .2s, transform .2s var(--ease); }
.footer__links a:hover { color: var(--mint-2); transform: translateX(3px); }
.footer__social { position: relative; display: flex; gap: 18px; }
.footer__social a { display: grid; place-items: center; width: 18px; height: 18px; color: rgba(255, 255, 255, .88); transition: color .2s, transform .2s; }
.footer__social a:hover { color: var(--mint-2); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__copy { position: absolute; right: 64px; bottom: 22px; font-size: 13px; color: rgba(255, 255, 255, .85); }

/* =========================================================
   LOGIN MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 25, 26, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 40px 36px 36px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -24px rgba(0, 25, 26, .55);
  text-align: center;
  transform: translateY(14px) scale(.98);
  transition: transform .35s var(--ease);
}
.modal.is-open .modal__card { transform: none; }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #5a6a6a;
  transition: background-color .2s, color .2s;
}
.modal__close:hover { background: var(--mint-soft); color: var(--teal); }
.modal__close svg { width: 18px; height: 18px; }

.modal__brand { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); }
.modal__logo { display: block; height: 26px; width: auto; }
.modal__title { margin-top: 20px; font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.1; color: var(--ink); }
.modal__sub { margin-top: 8px; font-size: 15px; color: var(--muted); }

.modal__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s;
}
.auth-btn:hover { transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }
.auth-btn__icon { width: 20px; height: 20px; flex: none; object-fit: contain; }
.auth-btn--google { background: #fff; color: #1f2937; border: 1px solid #d5dddc; }
.auth-btn--google:hover { background: #f5f8f7; box-shadow: 0 6px 16px -10px rgba(0, 25, 26, .5); }
.auth-btn--apple { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.auth-btn--apple:hover { background: #052423; box-shadow: 0 8px 18px -10px rgba(0, 25, 26, .8); }

body.modal-open { overflow: hidden; }

@media (max-width: 420px) {
  .modal { padding: 16px; }
  .modal__card { padding: 36px 22px 26px; }
  .modal__title { font-size: 24px; }
  .auth-btn { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal, .modal__card { transition: none; }
  .modal__card { transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav__links { gap: 28px; }
  .hero__title { font-size: 56px; }
  .hero__lede { font-size: 30px; }
  .hero__art { width: 60%; top: 170px; }
}

@media (max-width: 1024px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #a8d4ca;
    border-radius: 4px;
    box-shadow: 0 24px 40px -24px rgba(0, 49, 51, .45);
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links > a, .dropdown__btn { padding: 12px; width: 100%; font-size: 16px; }
  .dropdown__btn { justify-content: space-between; }
  .dropdown__menu { position: static; display: none; min-width: 0; padding: 0 0 6px 12px; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; }
  .dropdown__menu::before { display: none; }
  .dropdown.is-open .dropdown__menu { display: block; transform: none; }

  .hero { display: flex; flex-direction: column; padding: 180px 40px 80px; min-height: 0; }
  .hero__art { order: 2; position: relative; top: auto; right: auto; width: 100%; max-width: 680px; margin: 40px 0 0 auto; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .split, .how__grid, .modes__grid { grid-template-columns: 1fr; }
  .about__title, .how__title, .modes__title, .backers__title { font-size: 40px; }
  .flow { margin-left: 0; }
  .how__copy { max-width: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; padding: 48px 32px 64px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__copy { right: 32px; }
  .cta__art { position: relative; bottom: auto; width: 80%; margin-top: 24px; }
  .cta__copy { padding: 24px 24px 64px; }
  .cta__card::before { left: 6%; right: 6%; }
}

@media (max-width: 640px) {
  .nav { top: 12px; margin-top: 12px; padding: 0 12px; }
  .nav__bar { padding: 0 12px 0 16px; height: 48px; }
  .nav__links { left: 12px; right: 12px; }
  .hero { padding: 120px 20px 48px; margin-top: -60px; }
  .hero__title { font-size: 44px; }
  .hero__lede { font-size: 24px; }
  .br-md { display: none; }
  .stats { flex-wrap: wrap; row-gap: 16px; }
  .stat, .stat:first-child { min-width: 0; flex: 1; padding: 0 16px; }
  .stat:first-child { padding-left: 0; }
  .stat dd { font-size: 20px; }
  .panel { padding-top: 48px; padding-bottom: 48px; }
  .about__title, .how__title, .modes__title, .backers__title { font-size: 32px; }
  .integrations__title { font-size: 32px; }
  .eyebrow { margin-bottom: 28px; }
  .slider__labels { height: 34px; }
  .slider__labels button { top: auto; bottom: 0; line-height: 1.15; }
  .slider__labels button:first-child { white-space: normal; max-width: 4em; text-align: left; }
  .slider__labels .lg { display: none; }
  .slider__labels .sm { display: inline; }
  .returns__mode { font-size: 38px; margin: 28px 0 32px; }
  .returns__card { padding: 32px 24px; }
  .returns__value { font-size: 46px; }
  .returns__label { font-size: 19px; }
  .compare button { font-size: 16px; }
  .how { padding-top: 88px; padding-bottom: 72px; }
  .how__grid { margin-top: 48px; gap: 40px; }
  .how__copy { font-size: 16px; }
  .mode p, .mode__up { font-size: 18px; }
  .mode__apy b { font-size: 44px; }
  .logo { width: 170px; height: 96px; }
  .tile { height: 64px; min-width: 180px; padding: 0 24px; }
  .cta__copy h2 { font-size: 34px; }
  .footer { margin-bottom: 0; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .flow__pulses { display: none; }
}
