/* ============================================================
   TORA FINANCE — landing page
   ============================================================ */

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(13, 13, 18, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-on-dark);
  padding: 12px 32px;
}
.topbar__mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: var(--track-tight);
  color: var(--text-on-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar__mark-glyph {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-gold);
  color: var(--ink-950);
  font-size: 17px;
  box-shadow: var(--shadow-gold);
}
.topbar__links {
  display: flex; gap: 6px;
  padding: 5px; border-radius: var(--r-pill);
  background: rgba(243,234,217,0.05);
  border: 1px solid var(--line-on-dark);
}
.topbar__links a {
  padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: var(--track-wide);
  color: var(--text-on-dark-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.topbar__links a:hover { color: var(--text-on-dark); background: rgba(243,234,217,0.08); }
.topbar__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar__login {
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--track-wide);
  color: var(--text-on-dark-soft); padding: 10px 6px;
  white-space: nowrap;
}
.topbar__login:hover { color: var(--text-on-dark); }
@media (max-width: 900px) { .topbar__links { display: none; } }
@media (max-width: 480px) {
  .topbar { padding: 14px 16px; gap: 10px; }
  .topbar.is-scrolled { padding: 10px 16px; }
  .topbar__mark { font-size: 14px; gap: 8px; }
  .topbar__mark-glyph { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
  .topbar__login { display: none; }
  .topbar__actions .btn--sm .btn__label { padding: 10px 14px; font-size: 12px; }
  .topbar__actions .btn--sm .btn__icon { padding: 0 12px; }
}

/* ---------- cinematic scroll pin (slow scrub + crossfade rig) ---------- */
.cine-pin {
  position: relative;
  height: 320vh;
}
.cine-pin--tiger {
  /* height is intrinsic (sticky video + its scrolling content below), so the
     pin always has exactly enough room for whatever the recursos grid needs —
     a fixed vh guess here would either clip the content (mobile, tall single
     column) or leave a gap before the next section. The dwell phase (pure lit
     video before the mist handoff) is added as trailing space on
     .tiger-band__scroll instead. */
  height: auto;
  margin-top: -185vh;
}
.cine-pin > .hero,
.cine-pin > .tiger-band {
  position: sticky;
  top: 0;
  height: 100svh;
}
@media (max-width: 720px) {
  .cine-pin { height: 220vh; }
  .cine-pin--tiger { height: auto; margin-top: -155vh; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  background: var(--ink-950);
  overflow: hidden;
  padding-top: 90px;
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 1;
  filter: brightness(1.06) saturate(1.4) contrast(1.08);
  transform: scale(var(--hero-scale, 1)) translateY(var(--hero-shift, 0px));
  will-change: transform;
}
.hero__scrim {
  display: none;
}
.hero__fade {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(13,13,18,0) 45%, rgba(13,13,18,0.9) 88%, var(--ink-950) 100%);
  opacity: var(--hero-scrim, 0);
  pointer-events: none;
  will-change: opacity;
}
.hero__texture {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(243,234,217,0.06) 1px, transparent 0);
  background-size: 22px 22px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__wrap {
  width: 100%;
  padding: 0 clamp(24px, 6vw, 96px);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  padding: 80px 0 64px;
  transform: translateX(var(--hero-text-shift, 0px));
  opacity: var(--hero-text-opacity, 1);
  text-shadow: 0 2px 20px rgba(13,13,18,0.7), 0 1px 3px rgba(13,13,18,0.8);
  will-change: transform, opacity;
}
.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  color: var(--text-on-dark);
  margin: 22px 0 22px;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-on-dark-soft);
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-on-dark);
  letter-spacing: var(--track-tight);
}
.hero__stat span {
  font-size: 11px; text-transform: uppercase; letter-spacing: var(--track-wide);
  color: var(--text-on-dark-faint);
}
.hero__seal {
  position: absolute;
  right: 6%;
  bottom: 14%;
  width: 92px; height: 92px;
  border: 1.5px solid rgba(243,234,217,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--text-on-dark-soft);
  font-size: 11px;
  text-align: center;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(13,13,18,0.8);
  z-index: 2;
}
.hero__seal-ring {
  position: absolute; inset: -14px;
  border: 1px dashed rgba(243,234,217,0.2);
  border-radius: 50%;
  animation: tf-spin 40s linear infinite;
}
@keyframes tf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__seal-ring { animation: none; } }

.scroll-cue {
  position: absolute; left: 32px; bottom: 32px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  color: var(--text-on-dark-faint);
  font-size: 11px; text-transform: uppercase; letter-spacing: var(--track-wide);
  text-shadow: 0 2px 10px rgba(13,13,18,0.8);
}
.scroll-cue__dot-track { width: 20px; height: 32px; border: 1px solid var(--line-on-dark-strong); border-radius: 999px; position: relative; }
.scroll-cue__dot { position: absolute; top: 6px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold-bright); animation: tf-scroll-bounce 1.8s ease-in-out infinite; }
@keyframes tf-scroll-bounce { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(12px); opacity: 0.4; } }
@media (max-width: 720px) { .scroll-cue { display: none; } }

@media (max-width: 720px) {
  .hero__video { object-position: 62% 40%; }
  .hero__stats { gap: 28px; row-gap: 18px; }
}

/* ---------- tiger band (dragon -> tiger handoff, second fold) ---------- */
.tiger-band {
  position: relative;
  z-index: 1;
  background: var(--ink-950);
  overflow: hidden;
  opacity: var(--tiger-veil, 0);
  will-change: opacity;
}
.tiger-band__media { position: absolute; inset: 0; overflow: hidden; }
.tiger-band__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 1;
  filter: brightness(1.02) saturate(1.3) contrast(1.05);
  transform: scale(var(--tiger-scale, 1.06)) translateY(var(--tiger-shift, 0px));
  will-change: transform;
}
.tiger-band__fade {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(13,13,18,0) 45%, rgba(13,13,18,0.9) 88%, var(--ink-950) 100%);
  opacity: var(--tiger-scrim, 0);
  pointer-events: none;
}
@media (max-width: 720px) {
  .tiger-band__video { object-position: 62% 50%; }
}

/* ---------- tiger scrolling content (recursos, now living inside the tiger fold) ---------- */
.tiger-band__scroll {
  position: relative;
  z-index: 2;
  /* the extra vh at the end is the dim/dwell phase: pure lit video, no card
     content, right before the mist bridge — see TIGER_DIM_START in hero-scroll.js */
  padding-bottom: calc(120px + 65vh);
}
.tiger-band__intro {
  position: relative;
  max-width: 560px;
  padding: 120px 0 0;
  text-shadow: 0 2px 20px rgba(13,13,18,0.7), 0 1px 3px rgba(13,13,18,0.8);
}
.tiger-band__title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--text-on-dark);
  margin: 16px 0 0;
  line-height: 1.18;
  text-wrap: balance;
}
.tiger-band__scroll .section__head {
  text-shadow: 0 2px 20px rgba(13,13,18,0.7), 0 1px 3px rgba(13,13,18,0.8);
}
.feature-grid--on-dark .feature-card {
  background: rgba(13,13,18,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--line-on-dark);
  box-shadow: 0 14px 32px -14px rgba(0,0,0,0.65);
}
.feature-grid--on-dark .feature-card:hover {
  background: rgba(13,13,18,0.72);
  border-color: var(--gold);
}
.feature-grid--on-dark .feature-card__icon {
  background: rgba(243,234,217,0.1);
  color: var(--gold-bright);
}
.feature-grid--on-dark .feature-card__title { color: var(--text-on-dark); }
.feature-grid--on-dark .feature-card__desc { color: var(--text-on-dark-soft); }
@media (max-width: 720px) {
  .tiger-band__intro { padding-top: 72px; }
}

/* ---------- fold bridge (tiger -> recursos mist transition) ---------- */
.fold-bridge {
  position: relative;
  height: 200px;
  margin-top: -200px;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.fold-bridge__mist {
  position: absolute;
  inset: -50px -10% -60px -10%;
  background:
    radial-gradient(55% 90% at 18% 10%, rgba(247,241,227,0.55), transparent 70%),
    radial-gradient(45% 90% at 55% 0%, rgba(247,241,227,0.4), transparent 65%),
    radial-gradient(65% 90% at 88% 25%, rgba(247,241,227,0.5), transparent 70%),
    linear-gradient(to bottom, rgba(13,13,18,0) 0%, rgba(247,241,227,0.85) 68%, var(--paper-050) 100%);
  filter: blur(22px);
  transform: translateY(var(--mist-shift, 0px));
  will-change: transform;
}
@media (max-width: 720px) {
  .fold-bridge { height: 130px; margin-top: -130px; }
}

/* ---------- section shell ---------- */
.section { padding: 100px 0; position: relative; }
.section--dark { background: var(--ink-950); color: var(--text-on-dark); }
.section--paper { background: var(--paper-050); }
.section--paper-alt { background: var(--paper-100); }
.section__head { max-width: 640px; margin: 0 0 56px; }
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 14px; }
.section__desc { font-size: 15.5px; line-height: 1.7; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: var(--paper-050);
  border: 1px solid var(--line-on-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-entrance), box-shadow 0.4s var(--ease-entrance), border-color 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.feature-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-900); color: var(--gold-bright);
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__title { font-size: 17px; margin-bottom: 8px; }
.feature-card__desc { font-size: 13.8px; color: var(--text-on-light-soft); line-height: 1.65; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 40px; } }
.steps__art {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.steps__art img { width: 100%; height: 100%; object-fit: cover; }
.steps__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,18,0) 55%, rgba(13,13,18,0.55) 100%);
}
.steps__list { display: flex; flex-direction: column; gap: 30px; }
.step {
  display: flex; gap: 20px;
}
.step__num {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-on-light-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; color: var(--gold-deep);
}
.step__title { font-size: 16.5px; margin-bottom: 6px; }
.step__desc { font-size: 13.8px; color: var(--text-on-light-soft); line-height: 1.65; }

/* ---------- dashboard preview ---------- */
.preview {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--grad-ink);
  box-shadow: var(--shadow-lg);
  padding: 4px;
}
.preview__inner {
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink-900);
  padding: 26px;
}
.preview__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.preview__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-on-dark-strong); }
.preview__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) { .preview__grid { grid-template-columns: 1fr; } }
.preview__panel {
  background: rgba(243,234,217,0.04);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-md);
  padding: 20px;
}
.preview__panel h4 { color: var(--text-on-dark); font-size: 13px; text-transform: uppercase; letter-spacing: var(--track-wide); margin-bottom: 18px; font-family: var(--font-sans); font-weight: 600; }
.preview__stat-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-on-dark); font-size: 13.5px; color: var(--text-on-dark-soft); }
.preview__stat-row:first-of-type { border-top: none; }
.preview__stat-row b { color: var(--text-on-dark); font-family: var(--font-mono); font-weight: 500; }
.preview__chart { height: 160px; display: flex; align-items: flex-end; gap: 8px; }
.preview__bar-el { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); }
.preview__balance { font-family: var(--font-display); font-size: 34px; color: var(--text-on-dark); letter-spacing: var(--track-tight); margin: 6px 0; }

/* ---------- security ---------- */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .security-grid { grid-template-columns: 1fr; } }
.security-item { text-align: left; }
.security-item__icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(243,234,217,0.08); border: 1px solid var(--line-on-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--gold-bright); }
.security-item__icon svg { width: 19px; height: 19px; }
.security-item__title { font-size: 14.5px; margin-bottom: 6px; color: var(--text-on-dark); font-family: var(--font-sans); font-weight: 600; }
.security-item__desc { font-size: 13px; color: var(--text-on-dark-faint); line-height: 1.6; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 72px 56px;
  background: var(--grad-ink);
  text-align: center;
}
.cta-banner__art {
  position: absolute; inset: 0;
  background-image: url("../assets/img/Tiger_eye_fierce_gaze_2K_20260912202706.jpeg");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}
.cta-banner__content { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-banner h2 { color: var(--text-on-dark); font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 14px 0 16px; }
.cta-banner p { color: var(--text-on-dark-soft); margin-bottom: 34px; font-size: 15.5px; }
.cta-banner__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-950); color: var(--text-on-dark-soft); padding: 64px 0 32px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 16px; color: var(--text-on-dark); margin-bottom: 14px; }
.site-footer__tag { font-size: 13px; max-width: 30ch; line-height: 1.6; color: var(--text-on-dark-faint); }
.site-footer__col h5 { font-size: 11px; text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--text-on-dark-faint); margin-bottom: 16px; font-family: var(--font-sans); font-weight: 600; }
.site-footer__col a { display: block; font-size: 13.5px; padding: 6px 0; color: var(--text-on-dark-soft); transition: color 0.2s ease; }
.site-footer__col a:hover { color: var(--gold-bright); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-on-dark); font-size: 12px; color: var(--text-on-dark-faint); }
.site-footer__socials { display: flex; gap: 10px; }
