/* Quobex LP — ver specs/design.md para a fonte de verdade destes valores */

@font-face {
  font-family: 'Coolvetica';
  src: url('../assets/fonts/coolvetica-lt-regular.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Coolvetica';
  src: url('../assets/fonts/coolvetica-rg.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Coolvetica';
  src: url('../assets/fonts/coolvetica-rg-bold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111111;
  --bg-warm: #0A0A08;
  --glow: #42370F;

  --gold-vivid: #F8E030;
  --gold-logo: #FEE55D;
  --yellow-pale: #f8e480;
  --gold-medium: #E8C850;

  --white: #F8F8F8;
  --gray: #AFAFAF;
  --silver-logo: #DCDCDC;

  --card-bg: #1B1B1D;
  --card-bg-2: #262629;
  --border: #303033;

  --green: #3FBF7F;
  --red: #E2564F;

  --font-display: 'Coolvetica', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-8: 8px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  --radius-card: 16px;
  --radius-badge: 10px;
  --radius-btn: 999px;
  --radius-input: 6px;

  --max-width: 1160px;
  --header-height: 79px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input,
  body.has-custom-cursor textarea,
  body.has-custom-cursor select {
    cursor: none;
  }
}

.cursor-follower {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.cursor-follower.is-visible {
  opacity: 1;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate3d(-999px, -999px, 0);
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--gold-vivid);
  box-shadow: 0 0 14px rgba(248, 224, 48, 0.34);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid rgba(248, 248, 248, 0.76);
  transition: width 0.24s ease, height 0.24s ease, margin 0.24s ease, border-color 0.24s ease;
}

.cursor-follower.is-hovering .cursor-ring {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-color: rgba(248, 224, 48, 0.92);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-follower {
    display: none;
  }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-24);
}

section {
  padding: var(--space-80, 80px) 0;
  scroll-margin-top: calc(var(--header-height) + 32px);
}

@media (min-width: 768px) {
  section { padding: 128px 0; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-16);
  letter-spacing: 0;
}

html.is-safari h1,
html.is-safari h2,
html.is-safari h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: normal;
  font-kerning: normal;
  font-synthesis: none;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }

@media (min-width: 768px) {
  h1 { font-size: 64px; }
  h2 { font-size: 44px; }
  h3 { font-size: 22px; }
}

p { color: var(--white); margin: 0 0 var(--space-16); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-medium);
  margin: 0 0 var(--space-16);
}

@media (min-width: 768px) {
  .eyebrow { font-size: 13px; }
}

.highlight { color: var(--yellow-pale); }
.accent { color: var(--gold-vivid); }

/* ---------- Section head (centered intro block) ---------- */

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-48);
}

.section-head .eyebrow,
.section-head h1,
.section-head h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-head .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  isolation: isolate;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-24);
  padding-bottom: 56px;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 8, 0.18) 0%,
    rgba(10, 10, 8, 0.10) 50%,
    rgba(10, 10, 8, 0) 100%
  );
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  backdrop-filter: blur(28px) saturate(1.35);
  border-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
}

.site-header::after {
  content: none;
}

.logo-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 46px;
  width: auto;
}

.header-nav {
  position: absolute;
  left: 46%;
  display: flex;
  align-items: center;
  gap: 28px;
  transform: translateX(-50%);
}

.header-nav a {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--yellow-pale);
}

@media (min-width: 768px) {
  :root { --header-height: 91px; }
  .logo-link img { height: 58px; }
}

.header-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.header-login {
  min-width: 82px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(18, 18, 15, 0.34);
  font-size: 13px;
}

@media (max-width: 600px) {
  .header-actions { gap: 8px; }
  .header-login { min-width: 68px; padding: 10px 12px; }
  .site-header .btn-flow { min-width: 126px; }
}

@media (max-width: 1080px) {
  .header-nav { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-vivid);
  color: #0A0A08;
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(248, 224, 48, 0.35);
}

.btn-icon-slide {
  position: relative;
  min-width: 182px;
  min-height: 48px;
  padding: 4px 54px 4px 24px;
  overflow: hidden;
  transition:
    padding 0.5s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn-icon-slide:hover {
  padding-left: 54px;
  padding-right: 24px;
}

.btn-icon-slide-text {
  position: relative;
  z-index: 1;
  transform: translateX(-16px);
  transition: transform 0.5s ease;
}

.btn-icon-slide:hover .btn-icon-slide-text {
  transform: translateX(24px);
}

.btn-icon-slide-bubble {
  position: absolute;
  right: 6px;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0A0A08;
  color: var(--gold-vivid);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    right 0.5s ease,
    transform 0.5s ease;
}

.btn-icon-slide:hover .btn-icon-slide-bubble {
  right: calc(100% - 48px);
  transform: translateY(-50%) rotate(45deg);
}

.site-header .btn-flow {
  position: relative;
  overflow: hidden;
  min-width: 142px;
  border: 1.5px solid rgba(10, 10, 8, 0.38);
  border-radius: 32px;
  transition:
    color 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    border-radius 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header .btn-flow:hover {
  color: var(--white);
  border-color: rgba(17, 17, 17, 0.95);
  border-radius: 12px;
}

.site-header .btn-flow:active {
  transform: scale(0.95);
}

.site-header .btn-flow-text {
  position: relative;
  z-index: 2;
  transform: translateX(-8px);
  transition: transform 0.8s ease;
}

.site-header .btn-flow:hover .btn-flow-text {
  transform: translateX(8px);
}

.site-header .btn-flow-circle {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 32px;
  background: #111111;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    width 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    height 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    border-radius 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.site-header .btn-flow:hover .btn-flow-circle {
  width: 220px;
  height: 220px;
  opacity: 1;
  border-radius: 12px;
}

.site-header .btn-flow-arrow {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 18px;
  line-height: 1;
  color: #111111;
  transition:
    left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    right 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-header .btn-flow-arrow-left {
  left: -25%;
}

.site-header .btn-flow-arrow-right {
  right: 12px;
}

.site-header .btn-flow:hover .btn-flow-arrow-left {
  left: 12px;
  color: var(--white);
}

.site-header .btn-flow:hover .btn-flow-arrow-right {
  right: -25%;
  color: var(--white);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--white);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold-medium);
  color: var(--gold-medium);
}

.btn-small { padding: 10px 16px; font-size: 13px; }

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

.btn-ghost:hover {
  border-color: var(--gold-medium);
  color: var(--gold-medium);
}

.btn-glass {
  background: rgba(18, 18, 15, 0.46);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.20);
  -webkit-backdrop-filter: blur(24px) saturate(0.85) brightness(0.82);
  backdrop-filter: blur(24px) saturate(0.85) brightness(0.82);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.30),
    inset -1px -1px 1px rgba(255, 255, 255, 0.10),
    inset 0 0 24px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-glass:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.035);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.38),
    inset -1px -1px 1px rgba(255, 255, 255, 0.14),
    inset 0 0 28px rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.26);
}

.btn-glass:active {
  transform: scale(0.985);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  margin-top: var(--space-48);
  transform: none;
}

/* ---------- Language select ---------- */

.lang-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.language-picker {
  position: relative;
  z-index: 3;
}

.language-trigger {
  display: inline-flex;
  min-width: 78px;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid rgba(255, 218, 111, 0.28);
  border-radius: 14px;
  background: rgba(14, 14, 12, 0.74);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  outline: none;
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.14),
    0 10px 26px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-trigger:hover,
.language-picker.is-open .language-trigger {
  border-color: rgba(255, 218, 111, 0.62);
  background: rgba(25, 23, 16, 0.88);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 218, 111, 0.10),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.language-trigger:focus-visible {
  border-color: rgba(255, 218, 111, 0.82);
  box-shadow:
    0 0 0 3px rgba(255, 218, 111, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.language-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.language-picker.is-open .language-trigger svg { transform: rotate(180deg); }

.language-menu {
  position: fixed;
  top: var(--language-menu-top, 76px);
  left: var(--language-menu-left, auto);
  z-index: 120;
  display: grid;
  width: 190px;
  max-height: min(430px, calc(100dvh - 96px));
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(255, 218, 111, 0.32);
  border-radius: 14px;
  background: rgba(13, 13, 12, 0.96);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.10),
    0 18px 36px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.language-picker.is-open .language-menu,
.language-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: 400 13px var(--font-body);
  text-align: left;
}

.language-menu::-webkit-scrollbar {
  width: 6px;
}

.language-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.language-menu button span { color: var(--yellow-pale); font-size: 11px; font-weight: 600; }
.language-menu button:hover,
.language-menu button[aria-selected="true"] { background: rgba(255, 203, 72, 0.13); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-32));
  padding-bottom: var(--space-48);
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: clamp(260px, 34vh, 420px);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 12, 0) 0%,
    rgba(11, 12, 12, 0.16) 28%,
    rgba(11, 12, 12, 0.62) 66%,
    var(--bg) 100%
  );
}

#hero-extra {
  position: relative;
  margin-top: -96px;
  padding-top: calc(var(--space-80, 80px) + 112px);
}

#hero-extra::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -180px;
  z-index: 0;
  height: 320px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(17, 17, 17, 0.18) 26%,
    rgba(17, 17, 17, 0.78) 66%,
    var(--bg) 100%
  );
}

#hero-extra > * {
  position: relative;
  z-index: 1;
}

.color-bends-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.dot-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.dot-field canvas,
.dot-field svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(clamp(-58px, -6vh, -28px));
}

.hero .eyebrow { margin-left: auto; margin-right: auto; }

/* O .section-head genérico trava em 720px (bom pra subtítulo/eyebrow das
   outras seções) — o hero precisa de mais espaço pro headline grande, senão
   o JS de fitHeroTitle encolhe de volta pro mesmo tamanho de sempre, não
   importa o teto do clamp() abaixo. */
.hero .section-head {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.hero h1 {
  position: relative;
  width: calc(100vw - 32px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-32);
  transform: none;
  /* Tamanho "preferido" (teto) — o JS (js/main.js, fitHeroTitle) mede o
     texto de verdade e encolhe por cima disso quando precisa, garantindo
     que cada .hero-line nunca quebra sozinha em nenhuma largura de tela. */
  font-size: clamp(24px, 8.5vw, 52px);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: clamp(32px, 6.2vw, 100px);
    width: calc(100vw - 96px);
    max-width: none;
  }

  html.is-safari .hero h1 {
    font-size: clamp(32px, 6.2vw, 100px);
  }
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-line.highlight {
  color: transparent;
  line-height: 1.18;
  padding-bottom: 0.08em;
  background:
    linear-gradient(
      92deg,
      #fff78f 0%,
      #ffc400 24%,
      #fff78f 58%,
      #ffc400 79%,
      #fff78f 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  max-width: 560px;
  font-size: 18px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-sub { font-size: 20px; max-width: 620px; }
}

@media (max-width: 767px) {
  .hero .container {
    transform: translateY(-28px);
  }

  .hero-actions {
    margin-top: var(--space-32);
  }
}

.hero-actions .btn {
  padding: 13px 24px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .hero-actions .btn { padding: 16px 32px; font-size: 15px; }
}

/* ---------- Market ticker ---------- */

.market-ticker-section {
  padding: var(--space-48) 0 0;
  overflow: hidden;
}

.market-ticker-title {
  margin: 0 0 var(--space-24);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.market-ticker {
  position: relative;
  width: min(100% - 64px, 980px);
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.market-ticker.is-dragging {
  cursor: grabbing;
}

.market-ticker-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 0;
  transform: translate3d(var(--ticker-x, 0px), 0, 0);
  will-change: transform;
}

.market-ticker-segment {
  display: flex;
  gap: 18px;
  flex: 0 0 auto;
}

.market-card {
  display: inline-flex;
  min-width: 184px;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 7px;
  border: 1px solid rgba(255, 203, 72, 0.60);
  border-radius: 999px;
  background: rgba(14, 15, 13, 0.76);
  box-shadow:
    inset 1px 1px 1px rgba(255, 226, 116, 0.20),
    inset -1px -1px 1px rgba(255, 174, 28, 0.14),
    0 0 0 1px rgba(255, 203, 72, 0.14),
    0 0 18px rgba(255, 180, 32, 0.20),
    0 10px 24px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.market-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.market-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.market-info {
  min-width: 0;
}

.market-name {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.market-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.2;
}

.market-change {
  color: #9cff00;
}

.market-change.is-negative {
  color: #ff007a;
}

@keyframes marketTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  .market-card {
    min-width: 170px;
  }

  .market-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .market-name {
    font-size: 14px;
  }
}

/* ---------- Lamp: transicao apos os ativos ---------- */

.lamp-container {
  position: relative;
  z-index: 0;
  display: flex;
  width: 100%;
  min-height: clamp(230px, 22vw, 330px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.lamp-effect {
  position: relative;
  z-index: 0;
  display: flex;
  width: 100%;
  flex: 1;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transform: scaleY(1.25);
}

.lamp-conic {
  position: absolute;
  width: 15rem;
  height: 14rem;
  overflow: visible;
  opacity: 0.5;
  transform: translateY(var(--lamp-light-offset));
  transition: width 0.8s ease-in-out 0.3s, opacity 0.8s ease-in-out 0.3s;
}

.lamp-conic-left {
  right: 50%;
  background-image: conic-gradient(from 70deg at center top, #ffbb24, transparent, transparent);
}

.lamp-conic-right {
  left: 50%;
  background-image: conic-gradient(from 290deg at center top, transparent, transparent, #ffbb24);
}

.lamp-mask {
  position: absolute;
  z-index: 20;
  bottom: 0;
  background: var(--bg);
}

.lamp-mask-bottom,
.lamp-mask-bottom-right {
  width: 100%;
  height: 10rem;
  -webkit-mask-image: linear-gradient(to top, #fff, transparent);
  mask-image: linear-gradient(to top, #fff, transparent);
}

.lamp-mask-bottom { left: 0; }
.lamp-mask-bottom-right { right: 0; }

.lamp-mask-left,
.lamp-mask-right {
  width: 10rem;
  height: 100%;
}

.lamp-mask-left {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #fff, transparent);
  mask-image: linear-gradient(to right, #fff, transparent);
}

.lamp-mask-right {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #fff, transparent);
  mask-image: linear-gradient(to left, #fff, transparent);
}

.lamp-background-blur {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 12rem;
  transform: translateY(calc(3rem + var(--lamp-light-offset))) scaleX(1.5);
  background: var(--bg);
  filter: blur(40px);
}

.lamp-backdrop {
  position: absolute;
  z-index: 50;
  top: 50%;
  width: 100%;
  height: 12rem;
  transform: translateY(var(--lamp-light-offset));
  background: transparent;
  opacity: 0.1;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lamp-glow-large {
  position: absolute;
  z-index: 50;
  width: 28rem;
  height: 9rem;
  transform: translateY(calc(-50% + var(--lamp-light-offset)));
  border-radius: 9999px;
  background: #e49a1a;
  opacity: 0.5;
  filter: blur(48px);
}

.lamp-glow-center {
  position: absolute;
  z-index: 30;
  width: 8rem;
  height: 9rem;
  transform: translateY(calc(-6rem + var(--lamp-light-offset)));
  border-radius: 9999px;
  background: #ffe08a;
  filter: blur(40px);
  transition: width 0.8s ease-in-out 0.3s;
}

.lamp-line {
  position: absolute;
  top: 38.6%;
  left: 50%;
  z-index: 50;
  width: 15rem;
  height: 2px;
  transform: translate(-50%, -7rem);
  background: #ffd15a;
  box-shadow: 0 0 12px rgba(255, 190, 39, 0.55);
  transition: width 0.8s ease-in-out 0.3s;
}

.lamp-top-mask {
  position: absolute;
  z-index: 40;
  width: 100%;
  height: 11rem;
  transform: translateY(-12.5rem);
  background: var(--bg);
  pointer-events: none;
}

.lamp-container.is-visible .lamp-conic {
  width: 30rem;
  opacity: 1;
}

.lamp-container.is-visible .lamp-glow-center { width: 16rem; }
.lamp-container.is-visible .lamp-line { width: 30rem; }

@keyframes lampLineMobileSweep {
  0%, 100% {
    opacity: 0.72;
    transform: translate(-50%, calc(-3.9rem + var(--lamp-light-offset))) scaleX(0.62);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, calc(-3.9rem + var(--lamp-light-offset))) scaleX(1);
  }
}

@media (max-width: 600px) {
  .lamp-conic { max-width: 50vw; }
  .lamp-container.is-visible .lamp-conic { width: 30rem; }
  .lamp-glow-large { max-width: 90vw; }
  .lamp-glow-center { max-width: 60vw; }
  .lamp-line {
    top: 50%;
    width: min(72vw, 18rem);
    transform: translate(-50%, calc(-3.9rem + var(--lamp-light-offset)));
    opacity: 0;
  }
  .lamp-container.is-visible .lamp-line {
    width: min(72vw, 18rem);
    animation: lampLineMobileSweep 2.4s ease-in-out 0.35s infinite;
  }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .lamp-container.is-visible .lamp-line {
    animation: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-ticker-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.four-ways-intro {
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.four-ways-intro h2 {
  max-width: 900px;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(38px, 5.6vw, 86px);
}

.four-ways-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
  margin-top: var(--space-64);
  padding-top: 0;
  --timeline-progress: 0;
}

.four-ways-timeline::before,
.four-ways-timeline::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 26px;
  width: 2px;
  pointer-events: none;
  z-index: 0;
}

.four-ways-timeline::before {
  background: rgba(224, 139, 24, 0.18);
}

.four-ways-timeline::after {
  background: linear-gradient(180deg, rgba(255, 213, 77, 0.98), rgba(224, 139, 24, 0.92));
  box-shadow: 0 0 20px rgba(224, 139, 24, 0.28);
  transform: scaleY(var(--timeline-progress));
  transform-origin: top center;
  transition: transform 0.04s linear;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 92px;
  padding: 0 0 0 76px;
  color: inherit;
  text-decoration: none;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  width: 52px;
  height: 1px;
  background: transparent;
}

.timeline-number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(224, 139, 24, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #111 0 58%, transparent 59%),
    var(--bg);
  color: rgba(224, 139, 24, 0.68);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-number::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: inherit;
  background: var(--bg);
}

.timeline-title {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.timeline-copy {
  display: block;
  max-width: 360px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.55;
}

.timeline-step.is-active .timeline-number,
.timeline-step:hover .timeline-number {
  border-color: rgba(255, 213, 77, 0.94);
  color: rgba(255, 213, 77, 0.98);
  box-shadow: 0 0 22px rgba(224, 139, 24, 0.24);
}

.timeline-step.is-active .timeline-title,
.timeline-step:hover .timeline-title {
  color: var(--yellow-pale);
}

@media (min-width: 900px) {
  .four-ways-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-24);
    padding-top: var(--space-24);
  }

	  .four-ways-timeline::before,
	  .four-ways-timeline::after {
	    top: 50px;
	    bottom: auto;
	    left: 52px;
	    right: 52px;
	    width: auto;
	    height: 2px;
	    transform: translateY(-50%);
	  }

	  .four-ways-timeline::after {
	    right: 58px;
    background: linear-gradient(90deg, rgba(255, 213, 77, 0.98), rgba(224, 139, 24, 0.92));
    transform: translateY(-50%) scaleX(var(--timeline-progress));
    transform-origin: left center;
  }

  .timeline-step {
    min-height: 0;
    padding: 80px 0 0;
  }

  .timeline-step::before {
    top: 50px;
    width: auto;
    right: 0;
  }
}

/* ---------- Card grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-top: var(--space-32);
}

@media (min-width: 640px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 640px) and (max-width: 959px) {
  .card-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--gold-medium);
  transform: translateY(-2px);
}

.card .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-medium);
  background: var(--card-bg-2);
  border-radius: var(--radius-badge);
  margin-bottom: var(--space-16);
}

.card h3 { color: var(--white); margin-bottom: var(--space-8); }
.card p { margin: 0; font-size: 15px; }

.card.is-market {
  text-align: center;
}

.card.is-market .market-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-16);
  background: var(--card-bg-2);
  border-radius: var(--radius-badge);
  font-size: 18px;
  color: var(--gold-medium);
}

/* ---------- Post-assets sections ---------- */

.platform-section,
.steps-section,
.social-proof,
#faq {
  position: relative;
  overflow: hidden;
}

.platform-section {
  padding-top: 72px;
}

.platform-section > .lamp-container {
  position: absolute;
  inset: 0 0 auto;
  --lamp-light-offset: -43px;
  min-height: 0;
  height: clamp(250px, 28vw, 390px);
  pointer-events: none;
}

.platform-section > .container {
  position: relative;
  z-index: 1;
}

.platform-section .split-head {
  display: block;
  text-align: center;
  transform: translateY(-32px);
}

.platform-section .split-head h2,
.platform-section .split-head > p {
  margin-left: auto;
  margin-right: auto;
}

.platform-section .split-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
}

.platform-section .split-head h2 .highlight {
  font-family: var(--font-display);
  font-weight: 700;
}

.platform-section .split-head > p {
  margin-top: var(--space-24);
}

.platform-section::before,
.steps-section::before,
.social-proof::before,
#faq::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 203, 72, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 203, 72, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 10%, #000, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 10%, #000, transparent 62%);
}

.split-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-48);
  align-items: center;
  margin-bottom: 88px;
}

.split-head h2 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
}

.split-head > p {
  max-width: 760px;
  margin: 0;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.65;
}

@media (min-width: 860px) {
  .split-head {
    grid-template-columns: 1fr 0.72fr;
  }
}

@media (max-width: 859px) {
  .split-head {
    margin-bottom: var(--space-48);
  }

  .split-head h2,
  .split-head > p {
    max-width: 620px;
  }
}

.steps-section .split-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-24);
  margin-bottom: var(--space-64);
}

.steps-section .split-head .btn {
  width: fit-content;
  min-width: 0;
  justify-self: start;
  align-self: flex-start;
  margin-top: 0;
  padding: 12px 28px;
  box-shadow: 0 0 28px rgba(248, 224, 48, 0.14);
}

.steps-section .split-head h2 {
  max-width: 620px;
}

.steps-subtitle {
  max-width: 520px;
  margin: var(--space-16) 0 0;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.55;
}

.steps-section .title-light {
  font-family: var(--font-display);
  font-weight: 300;
}

.feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
}

@media (min-width: 680px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card,
.process-item {
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 48%),
    var(--card-bg);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.055),
    0 18px 38px rgba(0, 0, 0, 0.22);
}

.feature-card {
  min-height: 250px;
  padding: 34px 32px 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover,
.process-item:hover {
  border-color: rgba(255, 203, 72, 0.42);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-40, 40px);
  border-radius: 12px;
  background: rgba(255, 203, 72, 0.10);
  color: var(--yellow-pale);
}

.feature-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.feature-card h3 {
  font-size: clamp(19px, 1.85vw, 23px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.feature-card p,
.process-item p {
  margin: 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.55;
}

.platform-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-top: var(--space-48);
  padding: var(--space-32);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.025);
}

@media (min-width: 720px) {
  .platform-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-stats div + div {
    border-left: 1px solid rgba(255, 203, 72, 0.12);
  }
}

.platform-stats div {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.platform-stats strong {
  color: var(--gold-vivid);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.platform-stats span {
  color: var(--gray);
  font-size: 13px;
}

.process-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-24);
}

.process-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--space-20);
  align-items: start;
  padding: var(--space-32);
  min-height: 132px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.process-item > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-self: start;
  justify-self: center;
  margin-top: 2px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 203, 72, 0.56);
  color: var(--yellow-pale);
  font-family: var(--font-display);
  font-size: 15px;
  box-shadow: 0 0 20px rgba(255, 184, 35, 0.10);
}

.process-item h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12;
  margin: 0 0 10px;
}

@media (max-width: 680px) {
  .feature-card {
    min-height: auto;
    padding: var(--space-24);
  }

  .feature-icon {
    margin-bottom: var(--space-24);
  }

  .process-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: var(--space-16);
    padding: var(--space-24);
  }

  .process-item > span {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 14px;
  }

  .process-item h3 {
    font-size: clamp(20px, 7vw, 24px);
  }
}

/* ---------- Social proof ---------- */

.social-proof {
  overflow: hidden;
  padding-bottom: 118px;
}

.social-proof .section-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
}

.platform-section + .social-proof,
.social-proof + .steps-section,
.steps-section + #faq,
#faq + .final-cta {
  border-top: 1px solid rgba(255, 203, 72, 0.07);
}

.testimonial-carousel {
  position: relative;
  width: 100vw;
  margin: var(--space-48) 0 0 50%;
  transform: translateX(-50%);
  padding: 48px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  contain: layout paint;
}

.testimonial-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(255, 203, 72, 0.055), transparent 62%),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.012) 18%,
      rgba(255, 255, 255, 0.032) 50%,
      rgba(255, 255, 255, 0.012) 82%,
      transparent 100%
    );
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.testimonial-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: var(--space-24) 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.testimonial-track {
  display: flex;
  gap: var(--space-24);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.testimonial-card {
  flex: 0 0 min(74vw, 286px);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 18px;
  transform: translateZ(0);
  transform-origin: center center;
  opacity: 0.86;
  backface-visibility: hidden;
  contain: layout paint;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018) 44%),
    var(--card-bg);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(0, 0, 0, 0.22);
}

.testimonial-card p {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.45;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.testimonial-author img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 203, 72, 0.46);
  object-fit: cover;
  box-shadow:
    0 0 0 3px rgba(255, 203, 72, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.testimonial-author-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.testimonial-author strong {
  color: var(--yellow-pale);
  font-size: 13px;
  line-height: 1.1;
}

.testimonial-author span {
  color: var(--gray);
  font-size: 12px;
  line-height: 1.2;
}

@media (min-width: 900px) {
  .testimonial-card {
    flex-basis: 300px;
  }
}

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16);
  margin-top: var(--space-32);
}

@media (min-width: 768px) {
  .stat-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .stat-strip.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  text-align: center;
}

.stat .value {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold-vivid);
  line-height: 1;
  margin-bottom: 8px;
}

.stat .label {
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Comparison ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-top: var(--space-32);
}

@media (min-width: 768px) {
  .compare { grid-template-columns: 1fr 1fr; }
}

.compare-col {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
}

.compare-col.is-quobex {
  border-color: var(--gold-medium);
  background: linear-gradient(180deg, rgba(232, 200, 80, 0.08), transparent 40%), var(--card-bg);
}

.compare-col h3 {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold-medium);
}

.compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-col li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: 15px;
}

.compare-col li:first-of-type { border-top: none; }

.compare-col.is-negative li::before { content: "✕ "; color: var(--red); }
.compare-col.is-quobex li::before { content: "✓ "; color: var(--gold-medium); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-top: var(--space-32);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step:hover {
  border-color: var(--gold-medium);
  transform: translateY(-2px);
}

.step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-medium);
  background: var(--card-bg-2);
  border-radius: var(--radius-badge);
  margin-bottom: var(--space-16);
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; }

/* ---------- Trader card ---------- */

.trader-card {
  margin-top: var(--space-32);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  max-width: 640px;
}

.trader-card .trader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border);
}

.trader-card .trader-head strong {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-medium);
}

.stars { color: var(--gold-vivid); letter-spacing: 2px; }

.trader-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16);
}

@media (min-width: 480px) {
  .trader-metrics { grid-template-columns: repeat(3, 1fr); }
}

.trader-metrics .metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}

/* ---------- Tables ---------- */

.table-wrap {
  margin-top: var(--space-32);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

th {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  color: var(--gold-medium);
  background: var(--card-bg);
}

td { color: var(--gray); }

tr:last-child td { border-bottom: none; }

.table-wrap.is-highlighted td.is-best,
.table-wrap.is-highlighted th.is-best {
  background: rgba(232, 200, 80, 0.08);
  color: var(--white);
}

/* mobile-friendly stacked table */
@media (max-width: 640px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr {
    border-bottom: 1px solid var(--border);
    padding: var(--space-16);
  }
  .table-stack td {
    border: none;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    gap: var(--space-16);
  }
  .table-stack td::before {
    content: attr(data-label);
    color: var(--gold-medium);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

/* ---------- Note box ---------- */

.note-box {
  margin-top: var(--space-24);
  padding: var(--space-16) var(--space-24);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: 14px;
  color: var(--gray);
}

.note-box strong { color: var(--white); }

.control-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.control-pills span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 13px;
  color: var(--gray);
}

/* ---------- FAQ ---------- */

.faq-list {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  max-width: 920px;
  margin: var(--space-56, 56px) auto 0;
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(28, 28, 30, 0.88);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.055),
    0 12px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.faq-item.is-open {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(34, 34, 36, 0.92);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.07),
    0 14px 32px rgba(0, 0, 0, 0.20);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: 66px;
  padding: 18px 24px 18px 26px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.faq-question .icon {
  flex-shrink: 0;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-question span:first-child {
  min-width: 0;
}

.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }

.faq-item.is-open .faq-question .icon {
  background: rgba(255, 255, 255, 0.10);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-answer { max-height: 400px; }

.faq-answer p {
  max-width: 780px;
  padding: 0 26px 26px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

#faq .section-head {
  max-width: 820px;
}

#faq .section-head h2 {
  font-size: clamp(42px, 5vw, 66px);
}

.faq-placeholder-note {
  font-size: 12px;
  color: var(--gold-medium);
  display: block;
  margin-top: 8px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  text-align: center;
  background: var(--bg);
}

.final-cta .container {
  max-width: 980px;
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
  border: 1px solid rgba(255, 203, 72, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 680px 260px at 50% 0%, rgba(255, 203, 72, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 203, 72, 0.055), rgba(255, 203, 72, 0.018)),
    var(--card-bg);
}

.final-cta h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.final-cta p { max-width: 520px; margin-left: auto; margin-right: auto; color: var(--gray); }

.final-cta .btn { margin-top: var(--space-16); }

/* ---------- Footer ---------- */

footer.site-footer {
  padding: var(--space-48) 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-grid img.footer-logo {
  width: clamp(180px, 22vw, 300px);
  height: auto;
  margin-bottom: var(--space-16);
}

.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-medium);
  margin: 0 0 var(--space-16);
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--gray); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: var(--gold-medium); }

.footer-legal {
  margin-top: var(--space-48);
  padding-top: var(--space-24);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: #5F5F5B;
  line-height: 1.55;
}

/* ---------- Legal pages ---------- */

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(248, 224, 48, 0.10), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(232, 200, 80, 0.07), transparent 28%),
    var(--bg);
}

.legal-header {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 8, 0.78);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.legal-header img {
  height: 48px;
  width: auto;
}

.legal-main {
  padding: 78px 0 76px;
}

.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.legal-kicker {
  display: inline-flex;
  margin-bottom: var(--space-16);
  color: var(--gold-medium);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-title {
  max-width: 760px;
  margin-bottom: var(--space-24);
  font-size: clamp(36px, 6vw, 64px);
}

.legal-content {
  display: grid;
  gap: 0;
}

.legal-text-flow {
  max-width: 760px;
}

.legal-text-flow p {
  margin-bottom: 14px;
  color: rgba(248, 248, 248, 0.74);
  font-size: 16px;
  line-height: 1.68;
}

html[dir="rtl"] .legal-header,
html[dir="rtl"] .legal-shell {
  direction: rtl;
}

.legal-note {
  margin-top: var(--space-48);
  padding: var(--space-24);
  border: 1px solid rgba(248, 224, 48, 0.22);
  border-radius: var(--radius-input);
  background: rgba(248, 224, 48, 0.06);
  color: rgba(248, 248, 248, 0.74);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    padding-top: 72px;
  }
}

/* ---------- Responsive polish ---------- */

@media (max-width: 1080px) {
  .site-header {
    padding: 14px 18px 48px;
  }

  .header-actions {
    gap: 10px;
  }
}

@media (max-width: 767px) {
  :root {
    --space-80: 64px;
    --space-56: 44px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  section {
    padding: 86px 0;
  }

  .site-header {
    min-height: 82px;
    gap: 10px;
    padding: 12px 12px 36px;
  }

  .logo-link img {
    height: 30px;
  }

  .header-actions {
    flex-shrink: 0;
    gap: 7px;
  }

  .language-trigger {
    min-width: 64px;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 12px;
  }

  .language-trigger svg {
    width: 14px;
    height: 14px;
  }

  .language-menu {
    width: 176px;
    max-height: min(380px, calc(100dvh - 86px));
  }

  .site-header .btn-flow {
    min-width: 116px;
    min-height: 38px;
    padding: 10px 34px 10px 14px;
    font-size: 12px;
  }

  .site-header .btn-flow-circle {
    right: 5px;
    width: 28px;
    height: 28px;
  }

  .site-header .btn-flow-arrow {
    font-size: 16px;
  }

  .header-login {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-top: 112px;
    padding-bottom: 72px;
  }

  .hero h1 {
    width: calc(100vw - 28px);
    margin-bottom: 24px;
    font-size: clamp(23px, 11vw, 43px);
    line-height: 1.04;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-sub {
    max-width: min(100% - 36px, 440px);
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    width: min(100% - 36px, 360px);
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
  }

  .btn-icon-slide {
    min-width: 0;
  }

  #hero-extra {
    margin-top: -78px;
    padding-top: 138px;
  }

  .four-ways-intro h2,
  .split-head h2,
  #faq .section-head h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .four-ways-intro {
    text-align: left;
  }

  .four-ways-timeline {
    margin-top: 44px;
    gap: 28px;
  }

  .timeline-step {
    padding-left: 68px;
  }

  .timeline-title {
    font-size: 19px;
  }

  .timeline-copy {
    max-width: none;
    font-size: 14px;
  }

  .market-ticker {
    width: calc(100vw - 28px);
  }

  .platform-section {
    padding-top: 76px;
  }

  .platform-section .split-head {
    transform: none;
  }

  .split-head {
    gap: 22px;
    margin-bottom: 44px;
  }

  .split-head > p,
  .steps-subtitle {
    font-size: 16px;
    line-height: 1.55;
  }

  .feature-grid {
    gap: 18px;
  }

  .platform-stats {
    padding: 24px 18px;
  }

  .social-proof {
    padding-bottom: 82px;
  }

  .testimonial-carousel {
    margin-top: 34px;
    padding: 28px 0;
  }

  .testimonial-viewport {
    padding: 18px 0;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }

  .testimonial-track {
    gap: 16px;
  }

  .testimonial-card {
    flex-basis: min(82vw, 310px);
    min-height: 186px;
    padding: 20px;
  }

  .steps-section .split-head {
    align-items: stretch;
    margin-bottom: 42px;
  }

  .steps-section .split-head .btn {
    width: 100%;
    justify-self: stretch;
    align-self: stretch;
  }

  .faq-list {
    margin-top: 36px;
    gap: 12px;
  }

  .faq-question {
    min-height: 62px;
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-answer p {
    padding: 0 18px 22px;
    font-size: 14px;
  }

  .final-cta .container {
    max-width: calc(100% - 36px);
    padding: 44px 22px;
    border-radius: 18px;
  }

  .final-cta h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

  footer.site-footer {
    padding: 44px 0;
  }

}

@media (max-width: 380px) {
  .site-header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo-link img {
    height: 27px;
  }

  .language-trigger {
    min-width: 58px;
    padding: 0 9px;
  }

  .site-header .btn-flow {
    min-width: 104px;
    padding-left: 12px;
    padding-right: 30px;
  }

  .site-header .btn-flow-text {
    font-size: 11px;
  }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

.hero .section-head,
.hero-actions {
  opacity: 0;
  animation: heroSoftUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero .section-head { animation-delay: 0.12s; }
.hero-actions { animation-delay: 0.38s; }

.hero-line {
  opacity: 0;
  transform: translate3d(0, 0.18em, 0);
  animation: heroLineIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-line:first-child { animation-delay: 0.18s; }
.hero-line.highlight { animation-delay: 0.34s; }

.hero-sub {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: heroSoftUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.54s forwards;
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.78s cubic-bezier(0.2, 0.7, 0.2, 1) var(--motion-delay, 0ms),
    transform 0.92s cubic-bezier(0.2, 0.7, 0.2, 1) var(--motion-delay, 0ms),
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  will-change: opacity, transform;
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.motion-reveal.motion-from-left {
  transform: translate3d(-28px, 26px, 0);
}

.motion-reveal.motion-from-right {
  transform: translate3d(28px, 26px, 0);
}

.motion-reveal.motion-soft-scale {
  transform: translate3d(0, 22px, 0) scale(0.975);
}

.testimonial-carousel.motion-reveal.motion-soft-scale {
  transform: translateX(-50%) translate3d(0, 22px, 0) scale(0.975);
}

.motion-reveal.motion-lift {
  transform: translate3d(0, 42px, 0);
}

.motion-reveal.is-visible.motion-from-left,
.motion-reveal.is-visible.motion-from-right,
.motion-reveal.is-visible.motion-soft-scale,
.motion-reveal.is-visible.motion-lift {
  transform: none;
}

.testimonial-carousel.motion-reveal.is-visible.motion-soft-scale {
  transform: translateX(-50%);
}

.motion-reveal.is-visible:hover,
.motion-reveal.is-visible.faq-item.is-open {
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}

@media (max-width: 900px) {
  .motion-reveal.motion-from-left,
  .motion-reveal.motion-from-right {
    transform: translate3d(0, 30px, 0);
  }
}

@keyframes heroSoftUp {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translate3d(0, 0.18em, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero .section-head,
  .hero-actions,
  .hero-line,
  .hero-sub,
  .motion-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

.hero.has-dot-field-static {
  background:
    radial-gradient(circle, rgba(248, 224, 48, 0.14) 1px, transparent 1px)
    0 0 / 16px 16px,
    var(--bg);
}
