/* ============================================
   FinanceiroZap — Design System
   ============================================ */

:root {
  /* Colors */
  --bg: #0A0E0C;
  --bg-1: #0D1411;
  --bg-2: #111B16;
  --surface: #131C18;
  --surface-2: #1A2520;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);

  --ink: #F1F4F2;
  --ink-2: #C8D2CD;
  --ink-3: #8A968F;
  --ink-4: #5A655F;

  --green: #10D670;
  --green-bright: #1FE885;
  --green-deep: #0A8A48;
  --green-soft: rgba(16, 214, 112, 0.12);
  --green-glow: rgba(16, 214, 112, 0.45);

  --gold: #E8D9A8;
  --gold-soft: rgba(232, 217, 168, 0.7);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background:
    radial-gradient(ellipse 1200px 600px at 50% -200px, rgba(16,214,112,0.10), transparent 60%),
    radial-gradient(ellipse 800px 400px at 100% 30%, rgba(16,214,112,0.04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' seed='5'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

::selection { background: var(--green); color: #052812; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #2A3530; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 7.5vw, 112px); }
h2 { font-size: clamp(40px, 5.5vw, 80px); }
h3 { font-size: clamp(28px, 3vw, 44px); }

.italic, em.accent {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}

.overline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

p { color: var(--ink-2); margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.container-wide { max-width: 1440px; }
.container-narrow { max-width: 920px; }

section { position: relative; padding: clamp(80px, 10vw, 160px) 0; z-index: 2; }

.div-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong), transparent);
  border: 0;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #032814;
  box-shadow: 0 0 0 0 var(--green-glow), 0 1px 0 rgba(255,255,255,0.25) inset;
}
.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 40px -8px var(--green-glow), 0 1px 0 rgba(255,255,255,0.35) inset;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--ink-3);
  transform: translateY(-1px);
}

.btn-lg { padding: 20px 36px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.flex { display: flex; }
.col { flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal.visible > .stagger-child { animation: revealChild 0.9s var(--ease-out) both; }
.reveal.visible > .stagger-child:nth-child(1) { animation-delay: 0.05s; }
.reveal.visible > .stagger-child:nth-child(2) { animation-delay: 0.15s; }
.reveal.visible > .stagger-child:nth-child(3) { animation-delay: 0.25s; }
.reveal.visible > .stagger-child:nth-child(4) { animation-delay: 0.35s; }
.reveal.visible > .stagger-child:nth-child(5) { animation-delay: 0.45s; }
.reveal.visible > .stagger-child:nth-child(6) { animation-delay: 0.55s; }
@keyframes revealChild { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.stagger-child { opacity: 0; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

@keyframes typing-dots {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes candleIn {
  from { opacity: 0; transform: translateY(6px) scaleY(0.4); transform-origin: center; }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.6; }
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 80%);
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
}

/* ============================================
   RICH ORBIT
   ============================================ */
.rich-orbit-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.rich-orbit-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ro-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(16,214,112,0.18);
}
.ro-ring-1 { width: 60%; height: 60%; border-style: solid; border-color: rgba(16,214,112,0.12); }
.ro-ring-2 { width: 78%; height: 78%; border-color: rgba(16,214,112,0.16); }
.ro-ring-3 { width: 96%; height: 96%; border-style: dotted; border-color: rgba(16,214,112,0.1); }
.ro-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  opacity: 0.7;
  animation: pulse 3s ease-in-out infinite;
  z-index: 2;
}
.rich-orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.bank-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: filter 0.4s;
  cursor: default;
  z-index: 4;
  filter:
    drop-shadow(0 0 14px rgba(16,214,112,0.55))
    drop-shadow(0 0 4px rgba(16,214,112,0.35))
    brightness(0) invert(1);
}
.bank-chip img,
.bank-chip svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.bank-chip:hover {
  filter:
    drop-shadow(0 0 22px rgba(16,214,112,0.85))
    drop-shadow(0 0 6px rgba(16,214,112,0.55))
    brightness(0) invert(1);
}

@media (max-width: 700px) {
  .bank-chip { width: 56px; height: 56px; }
}

/* ============================================
   TESTIMONIALS — 3 colunas rolantes
   ============================================ */

.tcols-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 64px;
  max-height: 760px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  position: relative;
}

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

.tcol {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 767px) {
  .tcol-md, .tcol-lg { display: none; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .tcol-lg { display: none; }
}

.tcol-track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation-name: tcolScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.tcol-track.reverse { animation-name: tcolScrollReverse; }

@keyframes tcolScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes tcolScrollReverse {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.tcol-card {
  background: linear-gradient(180deg, rgba(20,32,25,0.7), rgba(15,22,18,0.5));
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 360px;
  flex-shrink: 0;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.tcol-card:hover {
  border-color: rgba(16, 214, 112, 0.3);
  transform: translateY(-2px);
}

.tcol-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  padding: 5px 11px;
  border: 1px solid rgba(16, 214, 112, 0.3);
  border-radius: 999px;
  background: rgba(16, 214, 112, 0.06);
}

.tcol-text {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.tcol-text::before {
  content: '"';
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4em;
  color: var(--green);
  margin-right: 4px;
  line-height: 0;
}

.tcol-author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tcol-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.65);
  font-size: 16px;
}
.tcol-name { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tcol-role { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.04em; margin-top: 2px; }

.wall { display: none !important; }
