/* =========================================================
   BROKERTEC — Design System
   Premium dark fintech. Esmeralda + vidro fumê.
   ========================================================= */

:root {
  /* backgrounds — grafite quase-preto, sóbrio */
  --bg-void:    #070809;
  --bg-base:    #0A0C0E;
  --bg-raise-1: #0E1113;
  --bg-raise-2: #121618;
  --bg-raise-3: #171C1E;

  /* accent — verde CONTIDO (CTA). Brilho forte só no bloom do gráfico */
  --accent:        #1FA463;
  --accent-bright: #2BE583;
  --accent-deep:   #18794B;
  --accent-dim:    #146045;
  --accent-glow:   rgba(31, 164, 99, 0.40);
  --accent-haze:   rgba(31, 164, 99, 0.07);

  /* quotes */
  --up:        #22C57D;
  --up-bg:     rgba(34, 197, 125, 0.12);
  --down:      #E0533D;
  --down-bg:   rgba(224, 83, 61, 0.12);
  --flat:      #5E6A68;

  /* text */
  --text:      #F2F5F4;
  --text-2:    #A7B0AE;
  --text-mut:  #5E6A68;
  --on-accent: #04140C;

  /* borders + glass — bordas NEUTRAS (branco baixíssima opacidade) */
  --bd-subtle:  rgba(255,255,255,0.06);
  --bd:         rgba(255,255,255,0.09);
  --bd-glass:   rgba(255,255,255,0.08);
  --bd-accent:  rgba(255,255,255,0.16);
  --glass:      rgba(13,16,18,0.72);
  --glass-2:    rgba(16,20,22,0.80);

  /* radius */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* blur */
  --blur: 16px; --blur-strong: 28px; --blur-sub: 8px;

  /* shadows + glow */
  --sh-card:  0 24px 60px -20px rgba(0,0,0,0.72), 0 8px 18px -8px rgba(0,0,0,0.60);
  --sh-raise: 0 36px 80px -22px rgba(0,0,0,0.78), 0 12px 24px -10px rgba(0,0,0,0.66);
  --sh-inset: inset 0 1px 0 0 rgba(255,255,255,0.10), inset 0 0 0 1px rgba(255,255,255,0.025);
  --glow:     0 8px 22px -8px rgba(31,164,99,0.50), inset 0 1px 0 rgba(255,255,255,0.20);
  --glow-lg:  0 12px 30px -8px rgba(31,164,99,0.62), inset 0 1px 0 rgba(255,255,255,0.26);
  --glow-soft:0 0 50px rgba(31,164,99,0.10);

  /* type */
  --f-display: "General Sans", "Segoe UI", sans-serif;
  --f-body:    "Satoshi", "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", monospace;

  --fs-display: clamp(2.3rem, 4.6vw, 3.65rem);
  --fs-h1:      clamp(2.25rem, 5vw, 3.25rem);
  --fs-h2:      clamp(1.9rem, 4vw, 2.5rem);

  /* motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 160ms; --d-base: 220ms; --d-slow: 400ms;

  --container: 1240px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg-void);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- ambient background ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-mesh {
  background: radial-gradient(60% 45% at 50% -6%, rgba(31,164,99,0.05) 0%, transparent 55%);
}
.bg-grain { z-index: -1; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.grain { position: relative; }

/* cursor glow (desktop) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 360px; height: 360px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(0,229,153,0.10) 0%, transparent 70%);
  transform: translate(-50%, -50%); mix-blend-mode: screen;
  transition: opacity 400ms ease;
}

/* ---------- typography helpers ---------- */
h1,h2,h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
h5 { font-family: var(--f-body); font-weight: 700; font-size: 0.95rem; }
.accent { color: var(--accent); }
.overline { display: inline-block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mut); margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  padding: var(--pad); border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-base) ease, background var(--d-fast) ease, border-color var(--d-base) ease;
}
.btn-sm { --pad: 9px 18px; font-size: 0.9rem; }
.btn-lg { --pad: 16px 32px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.btn-primary:hover { background: var(--accent-bright); box-shadow: var(--glow-lg); transform: translateY(-2px); }
.btn-primary:active { background: var(--accent-deep); transform: translateY(0); }
.btn-ghost { background: var(--glass-2); border-color: var(--bd-glass); color: var(--text);
  backdrop-filter: blur(var(--blur-sub)); }
.btn-ghost:hover { border-color: var(--bd-accent); background: var(--accent-haze); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

/* ---------- glass card ---------- */
.glass-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--bd-glass);
  border-radius: var(--r-lg);
  backdrop-filter: blur(var(--blur)) saturate(115%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(115%);
  box-shadow: var(--sh-card), var(--sh-inset);
}
.glass-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 22%);
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 30%);
          mask: linear-gradient(180deg, #000 0%, transparent 30%);
}

/* ============ NAV ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background var(--d-slow) ease, box-shadow var(--d-slow) ease, border-color var(--d-slow) ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8,12,10,0.72); backdrop-filter: blur(var(--blur-strong)); border-bottom-color: var(--bd-subtle); box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.brand-mark { display: inline-flex; filter: drop-shadow(0 0 8px rgba(0,229,153,0.4)); }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; color: var(--text); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 30px; margin-left: 18px; }
.nav-links a { position: relative; font-size: 0.95rem; color: var(--text-2); font-weight: 500; padding: 4px 0; transition: color var(--d-base) ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--accent); transition: width var(--d-base) var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-toggle { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--bd); color: var(--text-2); border-radius: var(--r-pill); padding: 5px 11px 5px 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: border-color var(--d-base) ease, color var(--d-base) ease; }
.lang-toggle:hover { border-color: var(--bd-accent); color: var(--text); }
.lang-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--d-slow) var(--ease), opacity var(--d-fast) ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 360px); z-index: 99;
  background: rgba(8,12,10,0.92); backdrop-filter: blur(var(--blur-strong)); border-left: 1px solid var(--bd-glass);
  transform: translateX(100%); transition: transform var(--d-slow) var(--ease);
  display: flex; flex-direction: column; padding: 100px 28px 28px; }
.drawer.open { transform: translateX(0); }
.drawer-links { display: flex; flex-direction: column; gap: 6px; }
.drawer-links a { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--bd-subtle); color: var(--text); }
.drawer-cta { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.drawer-cta .btn { width: 100%; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity var(--d-slow) ease, visibility var(--d-slow) ease; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }

/* ============ HERO ============ */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes ptPulse { 0%,100% { opacity: 0.95; } 50% { opacity: 0.4; } }
@keyframes glowDrift { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-53%) scale(1.05); } }

.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 150px 0 0; overflow: hidden; text-align: center;
  background:
    radial-gradient(70% 55% at 50% 6%, rgba(59,69,63,0.30) 0%, transparent 56%),
    radial-gradient(55% 45% at 84% 12%, rgba(40,60,48,0.26) 0%, transparent 60%),
    var(--bg-void); }

/* painel decorativo verde, canto superior esquerdo — dissolve no preto */
.hero-abstract { position: absolute; left: 1.5%; top: 118px; width: 340px; height: 320px; z-index: 1; pointer-events: none;
  border-top-left-radius: 30px;
  background:
    linear-gradient(155deg, rgba(184,229,194,0.10) 0%, rgba(20,30,24,0) 52%),
    repeating-linear-gradient(0deg, rgba(160,255,185,0.05) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(160,255,185,0.05) 0 1px, transparent 1px 52px);
  -webkit-mask-image: radial-gradient(125% 125% at 12% 12%, #000 0%, transparent 60%);
          mask-image: radial-gradient(125% 125% at 12% 12%, #000 0%, transparent 60%); }

.hero-inner { position: relative; z-index: 4; max-width: 840px; }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 6px 7px 6px 14px; border-radius: var(--r-pill); color: #D8D8D8; font-size: 0.82rem; font-weight: 500;
  background: linear-gradient(180deg, rgba(31,42,37,0.7), rgba(27,27,31,0.8));
  border: 1px solid rgba(150,255,180,0.18); box-shadow: 0 6px 22px rgba(0,0,0,0.45); }
.hb-ico { width: 15px; height: 15px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #B6FFCB, #1FA463); box-shadow: 0 0 8px rgba(43,229,131,0.6); }
.hb-arrow { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,0.07); color: #cfd2d0; font-size: 0.78rem; transition: transform var(--d-base) var(--ease); }
.hero-badge:hover .hb-arrow { transform: translateX(2px); }

.hero-title { font-size: var(--fs-display); font-weight: 400; line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 20px;
  background: linear-gradient(180deg, #F3F3F3 0%, #C7C7CA 52%, #8F9094 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.accent-strong { font-weight: 600;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6E8EA 58%, #BBBEC0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.05rem; color: var(--text-2); max-width: 50ch; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- visualização financeira central ---- */
.hero-stage { position: relative; width: 100%; max-width: 1040px; height: 400px; margin: 18px auto 0; }

.stage-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.5px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(66% 78% at 50% 60%, #000 0%, #000 32%, transparent 76%);
          mask-image: radial-gradient(66% 78% at 50% 60%, #000 0%, #000 32%, transparent 76%); }
.stage-glow { position: absolute; left: 50%; top: 48%; width: 560px; height: 360px; transform: translate(-50%,-50%);
  z-index: 2; pointer-events: none; filter: blur(34px); animation: glowDrift 7s ease-in-out infinite;
  background: radial-gradient(50% 50% at 50% 50%, rgba(70,230,150,0.20) 0%, rgba(70,230,150,0.05) 46%, transparent 72%); }

.stage-chart-wrap { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  -webkit-mask-image: radial-gradient(118% 108% at 50% 44%, #000 50%, transparent 86%);
          mask-image: radial-gradient(118% 108% at 50% 44%, #000 50%, transparent 86%); }
.stage-chart { width: 100%; height: 100%; display: block; }
.bg-wave { fill: none; stroke: rgba(255,255,255,0.04); stroke-width: 2.5; stroke-linecap: round; }
.area { fill: url(#areaFill); }
.crest { fill: none; stroke: url(#lineGrad); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(157,241,146,0.9)) drop-shadow(0 0 9px rgba(132,235,142,0.55)) drop-shadow(0 0 22px rgba(132,235,142,0.3)); }
.guide { stroke: rgba(167,241,160,0.35); stroke-width: 1; stroke-dasharray: 2 4; }
.pt-glow { fill: url(#ptGlow); animation: ptPulse 2.4s ease-in-out infinite; }
.pt-core { fill: #D6F485; filter: drop-shadow(0 0 5px rgba(209,242,133,0.9)) drop-shadow(0 0 12px rgba(157,241,146,0.6)); }

.stage-tip { position: absolute; z-index: 5; left: 50%; top: 22%; transform: translateX(-126%);
  display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 16px; text-align: left;
  background: rgba(40,65,48,0.55); border: 1px solid rgba(167,241,160,0.17);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08); }
.tip-date { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: #B7C2BC; }
.tip-price { font-family: var(--f-mono); font-size: 1.3rem; font-weight: 600; color: #C9F5BE; }

.stage-fade { position: absolute; left: -10%; right: -10%; bottom: -46px; height: 200px; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg-void) 84%); }

/* painéis de UI flutuantes (acima da composição) */
.stage-panel { position: absolute; z-index: 6; padding: 16px; text-align: left; background: rgba(12,13,16,0.74); }
.stage-panel-left { left: 0; top: 40%; width: 248px; }
.stage-panel-right { right: 0; top: 16%; width: 230px; }
.sp-head { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-mut); margin-bottom: 12px; }
.sp-ico { display: inline-flex; color: var(--text-mut); }
.sp-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-2); padding: 5px 0; }
.sp-row b.up { color: var(--up); } .sp-row b.down { color: var(--down); }
.sp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 11px;
  border-top: 1px solid var(--bd-subtle); font-size: 0.82rem; color: var(--text-2); }
.sp-foot b { color: var(--text); font-weight: 600; }
.sp-tabs { display: flex; gap: 6px; background: rgba(0,0,0,0.28); border-radius: var(--r-pill); padding: 4px; margin-bottom: 14px; }
.sp-tabs span { flex: 1; text-align: center; font-size: 0.8rem; padding: 7px; border-radius: var(--r-pill); color: var(--text-mut); }
.sp-tabs span.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.sp-field { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 8px;
  border-radius: var(--r-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--bd-subtle); font-size: 0.82rem; color: var(--text-mut); }
.sp-field b { color: var(--text); font-weight: 600; }
.sp-cta { text-align: center; padding: 11px; margin-top: 4px; border-radius: var(--r-sm);
  background: linear-gradient(180deg, #82E8A0, #91F3B3); color: #04140C; font-weight: 600; font-size: 0.85rem;
  box-shadow: 0 8px 22px -8px rgba(31,164,99,0.55), inset 0 1px 0 rgba(255,255,255,0.3); }

/* terminal mock reusa as classes price-line / price-area */
.price-line { fill: none; stroke: url(#accentLine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(43,229,131,0.5)); }
.price-area { fill: url(#areaFade); }

/* ============ TRUST STRIP ============ */
.trust-strip { border-top: 1px solid var(--bd-subtle); border-bottom: 1px solid var(--bd-subtle); background: var(--bg-base); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 32px 16px; position: relative; }
.trust-item:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background: var(--bd-subtle); }
.trust-num { font-family: var(--f-display); font-weight: 600; font-size: 1.8rem; color: var(--accent); }
.trust-label { font-size: 0.85rem; color: var(--text-mut); }

/* ============ SECTION base ============ */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.1rem; margin-top: 14px; }

/* ============ QUOTES WIDGET ============ */
.quotes-widget { max-width: 980px; margin: 0 auto; padding: 8px; overflow: hidden; }
.qw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.qw-tabs { position: relative; display: flex; gap: 4px; background: rgba(0,0,0,0.25); border-radius: var(--r-pill); padding: 4px; overflow-x: auto; scrollbar-width: none; }
.qw-tabs::-webkit-scrollbar { display: none; }
.qw-tab { position: relative; z-index: 2; border: 0; background: transparent; color: var(--text-2); font-family: var(--f-body); font-weight: 600; font-size: 0.9rem; padding: 9px 18px; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; transition: color var(--d-base) ease; }
.qw-tab.is-active { color: var(--on-accent); }
.qw-indicator { position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px; width: 100px; background: var(--accent); border-radius: var(--r-pill); box-shadow: var(--glow); transition: transform var(--d-slow) var(--ease), width var(--d-slow) var(--ease); }
.qw-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: var(--text-mut); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.qw-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); animation: pulse 1.6s infinite; }
.qw-live.stale .qw-live-dot { background: #F5A524; box-shadow: 0 0 8px #F5A524; }

.qw-head { display: grid; grid-template-columns: 1.6fr 1fr 0.9fr 1fr; gap: 12px; padding: 10px 22px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mut); border-bottom: 1px solid var(--bd-subtle); }
.qw-h-price, .qw-h-change { text-align: right; }
.qw-h-spark { text-align: right; }

.qw-body { min-height: 432px; }
.qw-row { display: grid; grid-template-columns: 1.6fr 1fr 0.9fr 1fr; gap: 12px; align-items: center; padding: 13px 22px; border-bottom: 1px solid var(--bd-subtle); transition: background var(--d-base) ease, box-shadow var(--d-base) ease; }
.qw-row:last-child { border-bottom: 0; }
.qw-row:hover { background: var(--accent-haze); box-shadow: inset 3px 0 0 var(--accent); }
.qw-asset { display: flex; align-items: center; gap: 13px; min-width: 0; }
.asset-chip { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--glass); border: 1px solid var(--bd-glass); box-shadow: var(--sh-inset); overflow: hidden; }
.asset-chip img { width: 24px; height: 24px; object-fit: contain; }
.asset-chip .fx-pair { position: relative; width: 26px; height: 26px; }
.asset-chip .fx-pair img { position: absolute; width: 18px; height: 18px; border-radius: 50%; }
.asset-chip .fx-pair img:first-child { top: 0; left: 0; }
.asset-chip .fx-pair img:last-child { bottom: 0; right: 0; box-shadow: -2px -2px 0 1px var(--glass); }
.asset-chip .ico-text { font-weight: 700; font-size: 0.85rem; color: var(--accent); }
.qw-names { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.qw-sym { font-family: var(--f-mono); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.qw-name { font-size: 0.78rem; color: var(--text-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qw-price { font-family: var(--f-mono); font-weight: 600; font-size: 1rem; text-align: right; color: var(--text); border-radius: var(--r-xs); padding: 2px 4px; }
.qw-change { font-family: var(--f-mono); font-weight: 600; font-size: 0.9rem; text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.qw-change.up { color: var(--up); }
.qw-change.down { color: var(--down); }
.qw-spark { display: flex; justify-content: flex-end; }
.qw-spark svg { width: 86px; height: 30px; }

/* tick flash */
@keyframes flashUp { 0% { background: var(--up-bg); color: var(--up); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: var(--down-bg); color: var(--down); } 100% { background: transparent; } }
.qw-price.tick-up { animation: flashUp 700ms ease-out; }
.qw-price.tick-down { animation: flashDown 700ms ease-out; }

/* skeleton */
.qw-row.skeleton .sk { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 37%, rgba(255,255,255,0.04) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; height: 14px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ============ MARKETS ============ */
.markets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.market-card { padding: 30px 26px; position: relative; overflow: hidden; --mc: var(--accent); transition: transform var(--d-base) var(--ease), box-shadow var(--d-slow) ease; }
.market-card[data-market="commodities"] { --mc: #F2B544; }
.market-card[data-market="acoes"] { --mc: #4D9DFF; }
.market-card[data-market="crypto"] { --mc: #00E599; }
.market-card[data-market="forex"] { --mc: #43E0D4; }
.market-card:hover { transform: translateY(-6px); box-shadow: var(--sh-raise), var(--sh-inset), 0 0 0 1px var(--mc); }
.market-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: color-mix(in srgb, var(--mc) 14%, transparent); color: var(--mc); margin-bottom: 18px; transition: transform var(--d-base) var(--ease); }
.market-card:hover .market-ico { transform: scale(1.08); }
.market-card h3 { margin-bottom: 10px; }
.market-card p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 16px; }
.market-bullet { display: block; font-size: 0.82rem; color: var(--text-mut); padding-top: 14px; border-top: 1px solid var(--bd-subtle); margin-bottom: 16px; }
.market-link { font-weight: 600; color: var(--mc); font-size: 0.9rem; transition: gap var(--d-base) ease; }
.market-link:hover { letter-spacing: 0.01em; }

/* ============ FEATURES ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 30px 26px; transition: transform var(--d-base) var(--ease), box-shadow var(--d-slow) ease; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--sh-raise), var(--sh-inset), 0 0 0 1px var(--bd-accent); }
.feature-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--accent-haze); color: var(--accent); margin-bottom: 18px; }
.feature h4 { margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 0.93rem; }

/* ============ STEPS ============ */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-line { position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--bd) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 14px; }
.step-num { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--bg-raise-2); border: 1px solid var(--bd-glass); font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--accent); margin-bottom: 20px; box-shadow: var(--glow-soft); }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.93rem; }

/* ============ SEGURANÇA ============ */
.seg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.seg-copy h2 { margin-bottom: 16px; }
.seg-copy > p { color: var(--text-2); font-size: 1.08rem; margin-bottom: 24px; }
.seg-list { display: flex; flex-direction: column; gap: 12px; }
.seg-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.seg-list li span { color: var(--accent); font-weight: 700; flex: none; }
.seg-badges { display: flex; flex-direction: column; gap: 16px; }
.reg-badge { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.reg-tag { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.reg-num { font-size: 1.6rem; font-weight: 600; color: var(--text); letter-spacing: 0.04em; }
.reg-desc { font-size: 0.85rem; color: var(--text-mut); }
.reg-addr-text { font-size: 0.95rem; color: var(--text-2); line-height: 1.5; }

/* ============ TERMINAL ============ */
.terminal-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.terminal-copy h2 { margin-bottom: 16px; }
.terminal-copy > p { color: var(--text-2); font-size: 1.08rem; margin-bottom: 22px; }
.terminal-copy .btn { margin-top: 26px; }
.terminal-visual { position: relative; }
.terminal-mock { padding: 0; overflow: hidden; }
.tm-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--bd-subtle); background: rgba(0,0,0,0.2); }
.tm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bd); }
.tm-dot:first-child { background: var(--down); }
.tm-dot:nth-child(2) { background: #F5A524; }
.tm-dot:nth-child(3) { background: var(--up); }
.tm-title { margin-left: 10px; font-size: 0.78rem; color: var(--text-mut); }
.tm-body { display: grid; grid-template-columns: 0.7fr 1.3fr; min-height: 240px; }
.tm-side { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-right: 1px solid var(--bd-subtle); }
.tm-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 8px 6px; border-radius: 6px; transition: background var(--d-base) ease; }
.tm-row:hover { background: var(--accent-haze); }
.tm-row i { color: var(--text-mut); font-style: normal; }
.tm-row b.up { color: var(--up); }
.tm-row b.down { color: var(--down); }
.tm-chart { padding: 18px; display: flex; align-items: center; }
.tm-chart svg { width: 100%; height: 180px; }
.tm-chart .price-line { stroke-width: 2; }

/* ============ STATS ============ */
.stats-section { text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 24px; }
.stat-num { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); letter-spacing: -0.02em; }
.stat-label { font-size: 0.92rem; color: var(--text-2); }
.stats-note { margin-top: 28px; font-size: 0.8rem; color: var(--text-mut); }

/* ============ FAQ ============ */
.faq-wrap { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--bd-glass); border-radius: var(--r-md); background: var(--glass); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; transition: color var(--d-base) ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform var(--d-slow) var(--ease); }
.faq-plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item[open] .faq-plus::before { transform: rotate(180deg); }
.faq-item p { padding: 0 24px 22px; color: var(--text-2); font-size: 0.96rem; }

/* ============ CTA FINAL ============ */
.cta-final { position: relative; padding: 130px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--bd-subtle); }
.cta-glow { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(50% 80% at 50% 100%, rgba(0,229,153,0.22) 0%, transparent 70%); }
.cta-inner { position: relative; z-index: 1; max-width: 720px; }
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.cta-inner p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-base); border-top: 1px solid var(--bd-subtle); padding: 70px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--bd-subtle); }
.footer-tag { color: var(--text-2); margin: 16px 0 18px; font-size: 0.95rem; }
.footer-addr { font-style: normal; font-size: 0.85rem; color: var(--text-mut); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { color: var(--text); margin-bottom: 4px; }
.footer-col a { font-size: 0.9rem; color: var(--text-mut); transition: color var(--d-base) ease; }
.footer-col a:hover { color: var(--accent); }
.footer-reg { padding-top: 28px; }
.footer-reg p { font-size: 0.78rem; color: var(--text-mut); line-height: 1.6; margin-bottom: 14px; }
.footer-reg .risk { color: #6a7670; }
.footer-reg .copy { color: var(--text-2); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--bg-raise-3); border-radius: 999px; border: 2px solid var(--bg-void); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ============ REVEAL (pre-animation state) ============ */
[data-rv] { opacity: 0; transform: translateY(40px); }
.js-ready [data-rv].is-in { opacity: 1; transform: none; }
/* fallback when JS off */
.no-js [data-rv] { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- tablet ---- */
@media (max-width: 920px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 124px; }
  .hero-stage { height: 360px; }
  .hero-abstract { width: 240px; height: 220px; top: 100px; }
  .stage-panel { padding: 13px; }
  .stage-panel-left { left: 0; top: 42%; width: 200px; }
  .stage-panel-right { right: 0; top: 12%; width: 200px; }
  .seg-grid, .terminal-grid { grid-template-columns: 1fr; gap: 40px; }
  .terminal-visual { order: -1; }
}

/* ---- celular ---- */
@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 14px 22px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head p { font-size: 1rem; }

  /* hero limpo: sem painéis flutuantes, só o gráfico + glow + tooltip */
  .hero { min-height: auto; padding: 102px 0 28px; }
  .hero-badge { font-size: 0.74rem; padding: 6px 6px 6px 12px; margin-bottom: 20px; }
  .hero-title { letter-spacing: -0.02em; }
  .hero-sub { font-size: 1rem; max-width: 36ch; margin: 0 auto 24px; }
  .hero-actions { width: 100%; flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-abstract { display: none; }
  .hero-stage { height: 210px; margin-top: 10px; }
  .stage-panel { display: none; }
  .stage-tip { left: 50%; top: 16%; transform: translateX(-50%); }

  /* trust strip */
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 22px 10px; gap: 3px; }
  .trust-item:nth-child(2)::after { display: none; }
  .trust-num { font-size: 1.5rem; }
  .trust-label { font-size: 0.8rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .glass-card { backdrop-filter: blur(12px) saturate(115%); -webkit-backdrop-filter: blur(12px) saturate(115%); }

  /* widget -> cards empilhados */
  .qw-head { display: none; }
  .qw-body { min-height: 0; }
  .qw-row { grid-template-columns: 1fr auto; grid-template-areas: "asset spark" "price change"; gap: 6px 12px; row-gap: 4px; padding: 16px 18px; }
  .qw-asset { grid-area: asset; }
  .qw-spark { grid-area: spark; align-self: center; }
  .qw-price { grid-area: price; text-align: left; font-size: 1.25rem; padding-left: 0; }
  .qw-change { grid-area: change; justify-content: flex-end; align-self: center; }
}

/* ---- celular pequeno ---- */
@media (max-width: 540px) {
  .markets-grid, .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step-line { display: none; }
  .seg-badges { gap: 12px; }
  .hero { padding-top: 96px; }
  .hero-stage { height: 188px; }
  .cta-inner h2 { font-size: 1.85rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .modal { padding: 26px 22px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  .cursor-glow { display: none; }
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 32px; background: rgba(8,12,10,0.72); backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong)); border-bottom: 1px solid var(--bd-subtle); }
.legal-nav .nav-actions { display: flex; gap: 12px; align-items: center; }
.legal { max-width: 820px; margin: 0 auto; padding: 56px 32px 96px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-mut); font-size: 0.9rem;
  margin-bottom: 22px; transition: color var(--d-base) ease; }
.legal-back:hover { color: var(--accent); }
.legal h1 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.legal-updated { color: var(--text-mut); font-size: 0.85rem; margin-bottom: 42px; }
.legal-body h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; margin: 36px 0 12px; color: var(--text); }
.legal-body p, .legal-body li { color: var(--text-2); font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.legal-body ul { padding-left: 20px; list-style: disc; margin-bottom: 14px; }
.legal-body a { color: var(--accent); }
.legal-note { margin-top: 44px; padding: 18px 20px; border-radius: var(--r-md); background: var(--accent-haze);
  border: 1px solid var(--bd-glass); color: var(--text-2); font-size: 0.9rem; line-height: 1.6; }
.legal-footer { border-top: 1px solid var(--bd-subtle); padding: 28px 32px; text-align: center; color: var(--text-mut); font-size: 0.8rem; }
@media (max-width: 600px) { .legal-nav { padding: 14px 20px; } .legal { padding: 40px 20px 70px; } }

/* =========================================================
   MODAL / FORMULARIOS
   ========================================================= */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  background: rgba(4,6,5,0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px; }
.modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; width: 100%; max-width: 460px; padding: 32px; max-height: 92vh; overflow-y: auto; }
.modal-overlay.open .modal { animation: modalIn 0.32s cubic-bezier(0.22,1,0.36,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 16px; background: transparent; border: 0; color: var(--text-mut);
  font-size: 1.7rem; line-height: 1; cursor: pointer; transition: color var(--d-base) ease; z-index: 2; }
.modal-close:hover { color: var(--text); }
.modal-title { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 8px; }
.modal-sub { color: var(--text-2); font-size: 0.95rem; margin-bottom: 22px; }
.modal-form { display: flex; flex-direction: column; gap: 15px; }
.modal [hidden] { display: none !important; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
.field input, .field textarea { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--bd-glass);
  border-radius: var(--r-sm); padding: 12px 14px; color: var(--text); font-family: var(--f-body); font-size: 0.95rem;
  transition: border-color var(--d-base) ease, background var(--d-base) ease; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mut); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bd-accent); background: rgba(255,255,255,0.05); }
.field textarea { resize: vertical; min-height: 96px; }
.radio-row { display: flex; gap: 10px; }
.radio { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px;
  border: 1px solid var(--bd-glass); border-radius: var(--r-sm); cursor: pointer; color: var(--text-2);
  transition: border-color var(--d-base) ease, background var(--d-base) ease; }
.radio input { accent-color: var(--accent); }
.radio:has(input:checked) { border-color: var(--bd-accent); background: var(--accent-haze); color: var(--text); }
.modal-submit { width: 100%; margin-top: 6px; }
.modal-form.sending .modal-submit { opacity: 0.6; pointer-events: none; }
.form-error { color: var(--down); font-size: 0.85rem; margin-top: 2px; }
.modal-success { text-align: center; padding: 16px 0 8px; }
.ms-check { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%;
  background: var(--up-bg); color: var(--up); font-size: 1.6rem; }
.modal-success h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 8px; }
.modal-success p { color: var(--text-2); margin-bottom: 22px; }
