/* ==========================================================================
   research.css  ::  Freeport "Captain's Logbook" research / blog page
   Self-contained dark theme. Loaded ONLY by learn.html.
   Reuses freeport-foundation.css for fonts + the orange accent token.
   Does NOT touch index.html or landing.css.
   ========================================================================== */

:root {
  --rl-bg:        #07090d;
  --rl-bg-2:      #0a0c11;
  --rl-card:      #0e1016;
  --rl-card-2:    #0b0d12;
  --rl-ink:       #f4f1ec;   /* headings */
  --rl-ink-2:     #b9b3a9;   /* body */
  --rl-ink-3:     #7e7a73;   /* muted meta */
  --rl-orange:    #2f8bff;
  --rl-orange-2:  #62a8ff;
  --rl-line:      rgba(255, 255, 255, .08);
  --rl-line-2:    rgba(47, 139, 255, .22);
  --rl-glow:      rgba(47, 139, 255, .30);
  --rl-maxw:      1200px;
  --rl-ease:      cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body.rl {
  margin: 0;
  background-color: var(--rl-bg);
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgba(47, 139, 255, .16), transparent 60%),
    radial-gradient(1100px 700px at 8% 4%, rgba(47, 139, 255, .07), transparent 62%),
    linear-gradient(180deg, #06070b 0%, #07090d 30%, #08090d 70%, #070709 100%);
  color: var(--rl-ink-2);
  font-family: var(--fp-font-body, "Raleway", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.rl-wrap { width: min(100% - 2.5rem, var(--rl-maxw)); margin-inline: auto; }

body.rl a, .rl-nav a, .rl-footer a { color: inherit; text-decoration: none; }

/* ----------------------------------------------------------------- NAV --- */
.rl-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .9rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(7, 9, 13, .72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--rl-line);
}
.rl-logo { display: inline-flex; align-items: center; gap: .6rem; }
.rl-logo img {
  width: 34px; height: 34px; border-radius: 8px; object-fit: cover;
  filter: invert(1); mix-blend-mode: screen;
}
.rl-logo svg { width: 28px; height: 30px; color: var(--rl-ink); flex: none; }
.rl-logo span {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  font-weight: 600; font-size: .82rem; line-height: 1.02;
  letter-spacing: .01em; color: var(--rl-ink);
}
.rl-nav__links { display: flex; align-items: center; gap: 1.6rem; }
.rl-nav__links a {
  font-size: .9rem; font-weight: 500; color: var(--rl-ink-2);
  transition: color .2s var(--rl-ease);
}
.rl-nav__links a:hover { color: var(--rl-ink); }
.rl-nav__links a.is-active { color: var(--rl-orange); }
.rl-nav__cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: 999px;
  background: linear-gradient(180deg, #7db4ff 0%, #2a84f7 60%, #1f70e0 100%); color: #ffffff;
  border: 1px solid rgba(140,194,255,.5);
  font-family: var(--fp-font-display, sans-serif);
  font-weight: 600; font-size: .86rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 22px rgba(47, 139, 255, .35);
  transition: transform .2s var(--rl-ease), box-shadow .2s var(--rl-ease);
}
.rl-nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(47, 139, 255, .5); }
.rl-nav__ctas { display: flex; align-items: center; gap: .55rem; }
.rl-nav__cta--ghost {
  background: rgba(255, 255, 255, .04); color: var(--rl-ink);
  border: 1px solid var(--rl-line); box-shadow: none;
}
.rl-nav__cta--ghost:hover { background: rgba(47, 139, 255, .08); border-color: var(--rl-line-2); box-shadow: none; }
@media (max-width: 760px) { .rl-nav__links { display: none; } }
@media (max-width: 540px) { .rl-nav__cta--ghost { display: none; } }

/* ---------------------------------------------------------------- HERO --- */
.rl-hero {
  position: relative;
  padding: clamp(5.5rem, 3rem + 6vw, 9rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.rl-hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: min(92%, var(--rl-maxw)); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--rl-line-2), transparent);
}
.rl-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--fp-font-display, sans-serif);
  font-size: .72rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--rl-orange);
  margin-bottom: 1.3rem;
}
.rl-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rl-orange); box-shadow: 0 0 12px 2px var(--rl-glow);
}
.rl-hero h1 {
  margin: 0 auto;
  font-family: var(--fp-font-display, sans-serif);
  font-weight: 600; color: var(--rl-ink);
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.02em;
  max-width: 16ch;
}
.rl-hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--rl-orange-2), var(--rl-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rl-hero p {
  margin: 1.5rem auto 0; max-width: 56ch;
  font-size: clamp(1rem, .95rem + .3vw, 1.18rem); line-height: 1.6;
  color: var(--rl-ink-2);
}
.rl-hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.2rem; }
.rl-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-family: var(--fp-font-display, sans-serif); font-weight: 600; font-size: .95rem;
  transition: transform .2s var(--rl-ease), box-shadow .25s var(--rl-ease), border-color .25s var(--rl-ease), background .25s var(--rl-ease);
}
.rl-btn--primary { background: linear-gradient(180deg, #7db4ff 0%, #2a84f7 55%, #1f70e0 100%); color: #ffffff; border: 1px solid rgba(140,194,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 10px 28px -10px rgba(47,139,255,.5); }
.rl-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 42px -6px rgba(47, 139, 255, .6), 0 4px 12px rgba(47,139,255,.2); }
.rl-btn--ghost { background: rgba(255, 255, 255, .03); color: var(--rl-ink); border: 1px solid var(--rl-line); }
.rl-btn--ghost:hover { border-color: var(--rl-line-2); background: rgba(47, 139, 255, .08); transform: translateY(-3px); }
.rl-btn svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------- FILTERS --- */
.rl-section { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.rl-section__head { text-align: center; margin-bottom: 2.4rem; }
.rl-section__head h2 {
  margin: .2rem 0 0;
  font-family: var(--fp-font-display, sans-serif); font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.02em; color: var(--rl-ink);
}
.rl-section__head h2 span {
  background: linear-gradient(180deg, var(--rl-orange-2), var(--rl-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rl-section__head p { margin: .7rem auto 0; max-width: 48ch; color: var(--rl-ink-3); font-size: .98rem; }
/* hero removed: research is now the first section, so clear the fixed site header */
.rl-section--top { padding-top: clamp(7rem, 6rem + 4vw, 10rem); }
/* big blue all-caps page heading, matching the landing FAQ / Why Freeport titles */
.rl-section__head h2.rl-bighead {
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.6rem); line-height: 1.1; margin: 0;
  text-transform: uppercase; letter-spacing: .015em; white-space: nowrap;
  color: var(--fp-accent); -webkit-text-fill-color: var(--fp-accent); background: none;
}

.rl-filters {
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center;
  margin-bottom: 2.6rem;
}
.rl-chip {
  appearance: none; cursor: pointer;
  padding: .5rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--rl-line);
  color: var(--rl-ink-2); font-family: var(--fp-font-body, sans-serif);
  font-size: .85rem; font-weight: 500;
  transition: all .2s var(--rl-ease);
}
.rl-chip:hover { color: var(--rl-ink); border-color: var(--rl-line-2); }
.rl-chip.is-active {
  color: #ffffff; background: var(--rl-orange); border-color: var(--rl-orange);
  box-shadow: 0 4px 16px rgba(47, 139, 255, .35);
}

/* ---------------------------------------------------------------- GRID --- */
.rl-grid {
  display: grid; gap: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
}

.rl-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.7rem 1.6rem 1.5rem;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(47, 139, 255, .07), transparent 60%),
    linear-gradient(180deg, var(--rl-card) 0%, var(--rl-card-2) 100%);
  border: 1px solid var(--rl-line-2);
  box-shadow: 0 0 0 1px rgba(47, 139, 255, .04), 0 1px 0 rgba(255, 255, 255, .03) inset;
  overflow: hidden;
  transition: transform .3s var(--rl-ease), border-color .3s var(--rl-ease), box-shadow .35s var(--rl-ease);
}
/* glowing orange outline that intensifies on hover */
.rl-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(47, 139, 255, .55), rgba(47, 139, 255, .05) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .6; transition: opacity .35s var(--rl-ease);
}
.rl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 139, 255, .65);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 32px rgba(47, 139, 255, .28);
}
.rl-card:hover::before { opacity: 1; }
.rl-card__link { position: absolute; inset: 0; z-index: 3; }

.rl-card__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 1.15rem;
  background: radial-gradient(circle at 30% 25%, rgba(47, 139, 255, .25), rgba(47, 139, 255, .06));
  border: 1px solid rgba(47, 139, 255, .4);
  box-shadow: 0 0 22px rgba(47, 139, 255, .22), inset 0 0 12px rgba(47, 139, 255, .1);
  color: var(--rl-orange-2);
  transition: box-shadow .35s var(--rl-ease), transform .35s var(--rl-ease);
}
.rl-card:hover .rl-card__ico { box-shadow: 0 0 30px rgba(47, 139, 255, .45), inset 0 0 14px rgba(47, 139, 255, .18); transform: translateY(-2px); }
.rl-card__ico svg { width: 25px; height: 25px; }

.rl-card__tag {
  font-family: var(--fp-font-display, sans-serif);
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rl-orange); margin-bottom: .6rem;
}
.rl-card__title {
  margin: 0 0 .65rem;
  font-family: var(--fp-font-display, sans-serif); font-weight: 600;
  font-size: 1.28rem; line-height: 1.22; letter-spacing: -.01em; color: var(--rl-ink);
}
.rl-card__excerpt { margin: 0 0 1.4rem; font-size: .95rem; line-height: 1.55; color: var(--rl-ink-2); }
.rl-card__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--rl-line);
}
.rl-card__meta { font-size: .78rem; color: var(--rl-ink-3); letter-spacing: .01em; }
.rl-card__read {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--fp-font-display, sans-serif); font-weight: 600; font-size: .82rem;
  color: var(--rl-orange);
}
.rl-card__read svg { width: 13px; height: 13px; transition: transform .25s var(--rl-ease); }
.rl-card:hover .rl-card__read svg { transform: translate(3px, -3px); }

.rl-card.is-hidden { display: none; }
/* progressive disclosure: show the first six, reveal the rest behind "See more" */
.rl-grid:not(.is-expanded) .rl-card.is-more { display: none; }
.rl-more-wrap { display: flex; justify-content: center; margin-top: 2.4rem; }
.rl-more-btn { cursor: pointer; font-size: 1.1rem; }
.rl-more-btn svg { width: 16px; height: 16px; margin-left: .15rem; vertical-align: -2px; }

/* ----------------------------------------------------------------- CTA --- */
.rl-cta {
  position: relative; text-align: center;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(47, 139, 255, .2), transparent 65%),
    linear-gradient(180deg, #0e1016, #0a0c11);
  border: 1px solid var(--rl-line-2);
  box-shadow: 0 0 40px rgba(47, 139, 255, .12);
}
.rl-cta h2 {
  margin: 0 auto; max-width: 22ch;
  font-family: var(--fp-font-display, sans-serif); font-weight: 600;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; color: var(--rl-ink);
}
.rl-cta p { margin: 1rem auto 0; max-width: 46ch; color: var(--rl-ink-2); }
.rl-cta__btns { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.9rem; }

/* -------------------------------------------------------------- FOOTER --- */
.rl-footer { border-top: 1px solid var(--rl-line); margin-top: clamp(3rem, 6vw, 5rem); padding: 2.8rem 0 2.4rem; }
.rl-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.rl-footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.rl-footer__links a { font-size: .88rem; color: var(--rl-ink-2); transition: color .2s var(--rl-ease); }
.rl-footer__links a:hover { color: var(--rl-orange); }
.rl-footer__legal { margin: 1.8rem 0 0; font-size: .76rem; line-height: 1.6; color: var(--rl-ink-3); max-width: 90ch; }

/* -------------------------------------------------------------- REVEAL --- */
.rl-reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--fp-ease-out, cubic-bezier(.16,1,.3,1)), transform .75s var(--fp-ease-out, cubic-bezier(.16,1,.3,1)); will-change: opacity, transform; }
.rl-reveal.is-in { opacity: 1; transform: none; }
.rl-grid .rl-reveal.is-in { transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  .rl-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .rl-card, .rl-card__ico, .rl-card__read svg, .rl-btn, .rl-nav__cta { transition: none; }
}

@media (max-width: 600px) {
  .rl-grid { grid-template-columns: 1fr; }
  .rl-footer__top { flex-direction: column; align-items: flex-start; }
}

/* ===================================================== IMAGE CARDS ===== */
.rl-card { padding: 0; }
.rl-card__img {
  aspect-ratio: 16 / 9; overflow: hidden;
  border-bottom: 1px solid var(--rl-line-2);
  background: #0b0d12;
}
.rl-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--rl-ease);
}
.rl-card:hover .rl-card__img img { transform: scale(1.05); }
.rl-card__pad { display: flex; flex-direction: column; flex: 1; padding: var(--fp-card-pad, 1.75rem); }

/* ===================================================== ARTICLE PAGE ==== */
.rl-article { width: min(100% - 2.5rem, 760px); margin: 0 auto; padding: clamp(2rem, 5vw, 3.4rem) 0 6rem; }
.rl-article__back {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--rl-ink-3); font-size: .85rem; font-weight: 500; font-family: var(--fp-font-display, sans-serif);
  margin-bottom: 1.8rem; transition: color .2s var(--rl-ease);
}
.rl-article__back:hover { color: var(--rl-orange); }
.rl-article__back svg { width: 15px; height: 15px; }
.rl-article .rl-card__tag { display: block; margin-bottom: .7rem; }
.rl-article__title {
  margin: 0; font-family: var(--fp-font-display, sans-serif); font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; color: var(--rl-ink);
}
.rl-article__meta { margin-top: 1rem; color: var(--rl-ink-3); font-size: .85rem; letter-spacing: .02em; }
.rl-article__hero {
  margin: 2rem 0 2.6rem; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--rl-line-2); box-shadow: 0 0 38px rgba(47, 139, 255, .14); aspect-ratio: 16 / 9; background: #0b0d12;
}
.rl-article__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-article__body { font-size: 1.08rem; line-height: 1.85; color: var(--rl-ink-2); }
.rl-article__body p { margin: 0 0 1.4rem; }
.rl-article__body h2 {
  font-family: var(--fp-font-display, sans-serif); color: var(--rl-ink);
  font-size: 1.5rem; letter-spacing: -.01em; margin: 2.6rem 0 1rem;
}
.rl-lead { font-size: 1.26rem; line-height: 1.72; color: var(--rl-ink); }
.rl-pull {
  margin: 2.2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 2px solid var(--rl-orange);
  font-family: var(--fp-font-serif, Georgia, serif); font-style: italic;
  font-size: 1.24rem; line-height: 1.6; color: var(--rl-ink);
}
.rl-stat {
  display: flex; flex-direction: column; gap: .4rem; margin: 2.2rem 0; padding: 1.4rem 1.6rem; border-radius: 14px;
  background: radial-gradient(140% 120% at 0 0, rgba(47, 139, 255, .12), transparent 60%), var(--rl-card);
  border: 1px solid var(--rl-line-2);
}
.rl-stat strong { font-family: var(--fp-font-display, sans-serif); font-size: 1.55rem; letter-spacing: -.01em; color: var(--rl-orange-2); }
.rl-stat span { color: var(--rl-ink-2); font-size: .95rem; line-height: 1.55; }
.rl-article__cta { margin-top: 3rem; padding-top: 2.2rem; border-top: 1px solid var(--rl-line); text-align: center; }
.rl-article__cta p { color: var(--rl-ink-3); margin: 0 0 1.1rem; font-size: .95rem; }
.rl-article__cta .rl-btn svg { width: 15px; height: 15px; }

/* ===================================================== MOBILE TUNING ==== */
@media (max-width: 720px) {
  .rl-section { padding: 2rem 0 3rem; }
  .rl-section--top { padding-top: 6.5rem; }
  .rl-section__head { margin-bottom: 1.8rem; }
  .rl-filters { gap: .45rem; margin-bottom: 1.8rem; }
  .rl-chip { padding: .45rem .85rem; font-size: .8rem; }
}
@media (max-width: 640px) {
  .rl-wrap { width: min(100% - 2rem, var(--rl-maxw)); }
  .rl-nav { padding: .7rem 1rem; gap: .5rem; }
  .rl-nav__cta { padding: .55rem .85rem; font-size: .8rem; }
  .rl-logo span { font-size: .74rem; }
  .rl-logo svg { width: 24px; height: 26px; }
  .rl-hero { padding: 2.4rem 0 1.8rem; }
  .rl-hero h1 { max-width: 100%; }
  .rl-hero__cta { gap: .65rem; }
  .rl-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .rl-card__pad { padding: 1.2rem 1.2rem 1.3rem; }
  .rl-card__title { font-size: 1.18rem; }
  .rl-article { padding: 1.4rem 0 2.6rem; }
  .rl-article__body { font-size: 1.02rem; line-height: 1.78; }
  .rl-article__body h2 { font-size: 1.28rem; margin: 2rem 0 .8rem; }
  .rl-lead { font-size: 1.12rem; line-height: 1.62; }
  .rl-pull { font-size: 1.08rem; padding-left: 1rem; margin: 1.6rem 0; }
  .rl-stat { padding: 1.1rem 1.15rem; margin: 1.6rem 0; }
  .rl-stat strong { font-size: 1.28rem; }
  .rl-cta { padding: 2.2rem 1.1rem; border-radius: 18px; }
  .rl-btn { padding: .78rem 1.15rem; font-size: .9rem; }
  .rl-article__cta { margin-top: 2.2rem; }
}
@media (max-width: 380px) {
  .rl-nav__cta { padding: .5rem .7rem; font-size: .75rem; }
  .rl-logo span { display: none; }
}

/* ===================================================== CORNER BRAND ===== */
.rl-brand {
  position: absolute; top: 1.05rem; left: clamp(1rem, 4vw, 2.25rem); z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45));
}
.rl-brand svg { width: 26px; height: 28px; color: #fff; flex: none; }
.rl-brand span {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  font-weight: 600; font-size: .8rem; line-height: 1.02; color: #fff; letter-spacing: .01em;
}
.rl-article { padding-top: clamp(6.5rem, 4.5rem + 5vw, 8.5rem); }
@media (max-width: 640px) {
  .rl-brand span { display: none; }
  .rl-brand svg { width: 24px; height: 26px; }
}

/* =====================================================================
   UNIFIED SITE FOOTER  (used on every page)
   Self-contained: all custom props have literal fallbacks so it also
   works on the legacy Webflow pages that don't load freeport-foundation.
   ===================================================================== */
.site-footer {
  position: relative; overflow: hidden;
  background: #02060c; /* cool near-black — matches the landing's section blacks */
  color: #aeb6c2;
  padding: clamp(3rem, 2rem + 4vw, 5rem) clamp(1.25rem, 4vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-family: var(--fp-font-body, "Raleway", "Space Grotesk", system-ui, sans-serif);
  font-size: 16px;
}
/* footer ambience: a warm orange glow rising from the bottom up */
.site-footer__curves {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(160% 92% at 50% 104%, rgba(47,139,255,.60) 0%, rgba(47,139,255,.30) 18%, rgba(47,139,255,.11) 38%, rgba(47,139,255,.03) 55%, transparent 68%),
    radial-gradient(78% 48% at 50% 108%, rgba(104,172,255,.55), transparent 50%);
}
.site-footer__curves svg { display: none; }

.site-footer__inner { position: relative; z-index: 1; max-width: var(--fp-container, 1200px); margin: 0 auto; }
.site-footer__top {
  display: grid; grid-template-columns: minmax(0, 1.9fr) 1fr 1.4fr;
  gap: clamp(1.5rem, 3vw, 3.25rem); align-items: start;
}
.site-footer__brand svg { width: 30px; height: 32px; color: #fff; display: block; margin-bottom: 1.15rem; }
.site-footer__brand h3 {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  color: #fff; font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 1rem;
}
.site-footer__brand p { font-size: .82rem; line-height: 1.75; color: #7f8896; margin: 0 0 1rem; max-width: 48ch; }
.site-footer__brand p:last-child { margin-bottom: 0; }

.site-footer__col { display: flex; flex-direction: column; gap: .75rem; }
.site-footer__label { font-family: var(--fp-font-display, "Space Grotesk", sans-serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.site-footer__col a {
  color: #c7cdd7; text-decoration: none; font-size: .92rem; width: fit-content;
  transition: color .2s ease;
}
.site-footer__col a:hover { color: #fff; }
.site-footer__col .site-footer__email { color: #fff; font-weight: 500; }
.site-footer__col .site-footer__email:hover { color: #2f8bff; }

.site-footer__social { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .35rem; }
.site-footer__social a {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  color: #ccd2db; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.site-footer__social a:hover {
  background: rgba(47,139,255,.16); border-color: rgba(47,139,255,.55); color: #fff; transform: translateY(-2px);
}
.site-footer__social svg { width: 17px; height: 17px; fill: currentColor; }

.site-footer__bottom {
  position: relative; z-index: 1; max-width: var(--fp-container, 1200px);
  margin: clamp(2.5rem, 4vw, 4rem) auto 0; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
  font-size: .82rem; color: #6e7785;
}
.site-footer__legal { display: flex; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap; }
.site-footer__legal a { color: #c4cbd5; text-decoration: none; transition: color .2s ease; }
.site-footer__legal a:hover { color: #fff; }
.site-footer__top-link { color: #c4cbd5; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; transition: color .2s ease; }
.site-footer__top-link:hover { color: #2f8bff; }

@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__social { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-footer__top { grid-template-columns: 1fr; }
}

/* =====================================================================
   CONTACT PAGE  (rebuilt in the landing aesthetic)
   ===================================================================== */
.ct-main { position: relative; z-index: 1; }
.ct-wrap {
  width: 100%; max-width: var(--fp-container, 1200px);
  margin-inline: auto; padding-inline: var(--fp-gutter, clamp(1.25rem, 4vw, 3rem));
}
.ct-hero { padding-top: clamp(8.5rem, 11vw, 12rem); padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem); }
.ct-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 4.5rem); align-items: start;
}
/* --- left: info --- */
.ct-info__eyebrow {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600;
  color: var(--fp-accent, #2f8bff);
}
.ct-info h1 {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  font-weight: 600; line-height: 1.02; letter-spacing: -.02em;
  font-size: clamp(2.6rem, 1.8rem + 4vw, 4.4rem);
  color: var(--fp-on-dark, #f7f5f1); margin: .6rem 0 1.1rem;
}
.ct-info h1 .lp-accent, .ct-info h1 span { color: var(--fp-accent, #2f8bff); }
.ct-info__sub {
  font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); line-height: 1.6;
  color: var(--fp-on-dark-2, #b9c2cc); max-width: 38ch; margin: 0 0 2.2rem;
}
.ct-info__email { margin-bottom: 2.4rem; }
.ct-label {
  display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fp-on-dark-2, #8a949e); margin-bottom: .5rem;
}
.ct-info__email a {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); color: var(--fp-on-dark, #fff);
  text-decoration: none; transition: color .2s ease;
}
.ct-info__email a:hover { color: var(--fp-accent, #2f8bff); }

/* --- social "Stay Connected" list --- */
.ct-social { display: flex; flex-direction: column; gap: .65rem; }
.ct-social__head { margin-bottom: 1rem; }
.ct-social__head h2 {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  font-size: 1.15rem; font-weight: 600; color: var(--fp-on-dark, #fff); margin: 0;
}
.ct-social a {
  display: flex; align-items: center; gap: .8rem; text-decoration: none;
  padding: .75rem .95rem; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: var(--fp-on-dark-2, #cfd6dd); transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ct-social a:hover { background: rgba(47,139,255,.10); border-color: rgba(47,139,255,.45); transform: translateX(3px); }
.ct-social__ico {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: #fff;
}
.ct-social__ico svg { width: 18px; height: 18px; fill: currentColor; }
.ct-social__txt { display: flex; flex-direction: column; line-height: 1.25; }
.ct-social__txt b { color: var(--fp-on-dark, #fff); font-weight: 600; font-size: .92rem; }
.ct-social__txt span { font-size: .82rem; color: var(--fp-on-dark-2, #8a949e); }

/* --- right: form card --- */
.ct-form {
  background: rgba(16,22,30,.55); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--fp-radius-lg, 20px);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: 0 24px 70px -30px rgba(0,0,0,.85);
}
.ct-form h2 {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  font-size: 1.5rem; font-weight: 600; color: var(--fp-on-dark, #fff); margin: 0 0 1.4rem;
}
.ct-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ct-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.ct-field label { font-size: .78rem; color: var(--fp-on-dark-2, #aab3bc); letter-spacing: .01em; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; font-family: var(--fp-font-body, "Raleway", sans-serif); font-size: .95rem;
  color: var(--fp-on-dark, #f4f6f8); background: rgba(8,12,18,.6);
  border: 1px solid rgba(255,255,255,.12); border-radius: 11px;
  padding: .78rem .9rem; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ct-field textarea { resize: vertical; min-height: 276px; }
.ct-field select { appearance: none; -webkit-appearance: none;
  background-image: 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='%23889' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #6b7480; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus {
  outline: none; border-color: rgba(47,139,255,.6);
  box-shadow: 0 0 0 3px rgba(47,139,255,.14); background: rgba(8,12,18,.8);
}
.ct-consent { display: flex; align-items: flex-start; gap: .6rem; margin: .4rem 0 1.4rem; }
.ct-consent input { margin-top: .15rem; accent-color: var(--fp-accent, #2f8bff); flex: none; width: 16px; height: 16px; }
.ct-consent label { font-size: .8rem; color: var(--fp-on-dark-2, #9aa3ac); line-height: 1.45; }
.ct-form .fp-btn { width: 100%; }
.ct-form__note { margin: .9rem 0 0; font-size: .76rem; color: var(--fp-on-dark-2, #7e8893); text-align: center; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* --- "From Tweets to Trades" CTA band --- */
.ct-cta { padding: 2rem 0 3.5rem; }
@media (max-width: 760px) { .ct-cta { padding-bottom: 2rem; } }
.ct-cta__features { justify-content: center; margin: 2.2rem 0 2.6rem; }
.ct-cta__inner {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid rgba(255,255,255,.10); border-radius: clamp(20px, 3vw, 32px);
  background: radial-gradient(120% 140% at 50% -10%, rgba(47,139,255,.16), transparent 55%), rgba(10,14,20,.6);
  padding: clamp(2rem, 3vw, 3.25rem) clamp(1.5rem, 4vw, 4rem);
}
.ct-cta h2 {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 600; letter-spacing: -.02em;
  color: var(--fp-on-dark, #fff); margin: 0 0 .8rem;
}
.ct-cta p { font-size: 1.1rem; color: var(--fp-on-dark-2, #b9c2cc); margin: 0 0 2rem; }
.ct-cta__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 820px) {
  .ct-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ct-info__sub { max-width: none; }
}
@media (max-width: 460px) {
  .ct-form__row { grid-template-columns: 1fr; }
}

/* =====================================================================
   UNIFIED SITE HEADER  (minimal top bar on every page)
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  background: linear-gradient(180deg, rgba(5,9,15,.62) 0%, rgba(5,9,15,.32) 55%, transparent 100%);
  transition: background .4s ease, backdrop-filter .4s ease;
}
.site-header__inner {
  max-width: none; width: 100%; margin: 0;
  padding: clamp(1.15rem, 2vw, 1.85rem) clamp(1.1rem, 1.5vw, 2rem);
  /* logo hugs the top-left corner, download badges hug the top-right, nav stays centered */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.6rem;
}
.site-header__left { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.4rem); justify-self: start; }
.site-header__brand {
  display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex: none;
  justify-self: start;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
}
.site-header__brand svg { width: 34px; height: 36px; color: #fff; flex: none; }
.site-header__brand span {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  font-weight: 600; font-size: clamp(1rem, .9rem + .4vw, 1.24rem); color: #fff; letter-spacing: .01em; line-height: 1;
}
.site-header__badges { display: flex; align-items: center; gap: .7rem; justify-self: end; }
/* partner CTA — a white, softly glowing pill to the right of the store badges */
.site-header__novadax {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  padding: .62rem 1.15rem; border-radius: 999px;
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif); font-weight: 700;
  font-size: clamp(.9rem, .82rem + .35vw, 1.12rem); letter-spacing: .01em;
  color: #0b1018; text-decoration: none; white-space: nowrap;
  background: #ffffff; border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 0 16px rgba(255,255,255,.4), 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .3s ease;
}
.site-header__novadax:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(255,255,255,.75), 0 8px 26px rgba(0,0,0,.42); }
@media (prefers-reduced-motion: no-preference) {
  .site-header__novadax { animation: nova-glow 3s ease-in-out infinite; }
  @keyframes nova-glow {
    0%, 100% { box-shadow: 0 0 14px rgba(255,255,255,.35), 0 6px 20px rgba(0,0,0,.35); }
    50%      { box-shadow: 0 0 28px rgba(255,255,255,.7), 0 6px 20px rgba(0,0,0,.35); }
  }
}
.site-header__badges a { display: block; flex: none; line-height: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); transition: transform .2s ease; }
.site-header__badges a:hover { transform: translateY(-1px); }
/* max-width:none guards against landing.css's generic `img { max-width:100% }`,
   which squashed the fixed-height badges on pages that load both stylesheets */
.site-header__badges img { display: block; width: auto; max-width: none; }
.site-header__badges .is-appstore { height: 46px; }
.site-header__badges .is-gplay { height: 66px; margin: -10px -8px; }
.site-header__nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); flex: none; justify-self: center; }
.site-header__nav a {
  font-family: var(--fp-font-display, "Space Grotesk", sans-serif);
  font-size: clamp(1rem, .9rem + .4vw, 1.24rem); font-weight: 600; color: rgba(255,255,255,.82);
  text-decoration: none; transition: color .2s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.site-header__nav a:hover { color: #fff; }
@media (max-width: 860px) {
  .site-header__badges { display: none; }
  .site-header__brand span { display: none; }
}
@media (max-width: 520px) {
  .site-header__nav { gap: 1.1rem; font-size: .85rem; }
}
@media (max-width: 400px) {
  .site-header__inner { gap: .6rem; padding-left: .9rem; padding-right: .9rem; }
  .site-header__nav { gap: .8rem; font-size: .8rem; }
}
/* legacy Webflow legal pages need clearance under the absolute header + hide their old nav */
body.has-site-header { padding-top: 5.6rem; }
/* the Webflow wrapper cleared the old navbar (now display:none) — collapse that dead space */
body.has-site-header .blog-post-wrapper { padding-top: 2.5rem; }
.navbar, .navbar-wrapper { display: none !important; }
/* those pages have a light background, so give the header a solid dark bar for legible white text */
body.has-site-header .site-header {
  background: rgba(10,13,18,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* research hero: no orphan/floating last words */
.rl-hero h1 { text-wrap: balance; }
.rl-hero p  { text-wrap: pretty; }

/* footer: gentle scrim behind the legal bar so its text stays legible over the
   bottom-up orange glow (semi-transparent, so the glow still bleeds through) */
.site-footer__bottom::before {
  content: ""; position: absolute; z-index: -1;
  top: -8px; bottom: -240px; left: -50vw; right: -50vw;
  background: linear-gradient(to top, rgba(7,6,5,.82) 30%, rgba(7,6,5,.35) 72%, transparent);
}

/* =====================================================================
   DARK THEME for the legacy Webflow legal pages (privacy / cookies / terms)
   — white text on near-black with orange accents, matching the new site
   ===================================================================== */
body.has-site-header {
  background-color: #06070b !important;
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgba(47,139,255,.14), transparent 60%),
    radial-gradient(1100px 700px at 8% 4%, rgba(47,139,255,.06), transparent 62%),
    linear-gradient(180deg, #06070b 0%, #07090d 30%, #08090d 70%, #070709 100%) !important;
  color: #b3bcc6 !important;
}
body.has-site-header .page-wrapper,
body.has-site-header .section,
body.has-site-header .w-layout-blockcontainer.container,
body.has-site-header .blog-post-wrapper,
body.has-site-header .article-wrapper,
body.has-site-header .policy-wrap { background: transparent !important; }

/* title + meta */
body.has-site-header .h1-article { color: #fff !important; }
body.has-site-header .policy-wrap > p { color: #8d96a0 !important; }
/* orange accent tag (e.g. "Privacy") — Webflow hides it; surface it as an eyebrow */
body.has-site-header .tag {
  display: inline-block !important;
  background: rgba(47,139,255,.14) !important;
  color: #2f8bff !important;
  border: 1px solid rgba(47,139,255,.35) !important;
  padding: .3rem .75rem !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  margin-bottom: 1rem !important;
}
/* back-to-home link */
body.has-site-header .back-link { color: #cfd6dd !important; }
body.has-site-header .back-link:hover { color: #fff !important; }
body.has-site-header .back-link svg path { stroke: currentColor !important; }

/* policy body content */
body.has-site-header .policy-body,
body.has-site-header .policy-body p,
body.has-site-header .policy-body li,
body.has-site-header .policy-body td,
body.has-site-header .policy-body span { color: #b3bcc6 !important; }
body.has-site-header .policy-body h1,
body.has-site-header .policy-body h2,
body.has-site-header .policy-body h3,
body.has-site-header .policy-body h4,
body.has-site-header .policy-body h5,
body.has-site-header .policy-body h6 { color: #fff !important; }
body.has-site-header .policy-body strong,
body.has-site-header .policy-body b { color: #e7ebef !important; }
body.has-site-header .policy-body a { color: #2f8bff !important; }
body.has-site-header .policy-body a:hover { color: #88baff !important; }
body.has-site-header .policy-body hr { border-color: rgba(255,255,255,.12) !important; }

/* cookie consent banner — match the dark theme (keep the orange Accept button) */
body.has-site-header .cookie-container {
  background: #0f1319 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 24px 70px -20px rgba(0,0,0,.85) !important;
}
body.has-site-header .cookie-title-container,
body.has-site-header .cookie-container h1,
body.has-site-header .cookie-container h2,
body.has-site-header .cookie-container h3 { color: #fff !important; }
body.has-site-header .cookie-text-container,
body.has-site-header .cookie-text-container * { color: #99a2ac !important; }
body.has-site-header .cookie-manage,
body.has-site-header .cookie-manage * { background: transparent !important; color: #e7ebef !important; }
body.has-site-header .cookie-manage { border: 1px solid rgba(255,255,255,.28) !important; }
body.has-site-header .cookie-close { color: #cfd6dd !important; }


/* Card hover lift (Azura-style: rise + accent border) */
@media (prefers-reduced-motion: no-preference) {
  .rl-card:hover { transform: translateY(-6px); border-color: rgba(47,139,255,.55); }
}
/* nav links: extra breathing room */
.site-header__nav a { padding-inline: .85rem; letter-spacing: .01em; }
