/* =====================================================================
   QUANTUM RO — Premium real-assets investment platform
   Design system v3 — "Indigo & Champagne" (inspired by eToro / capital.com)
   Primary = indigo-blue · Accent = champagne gold · Positive = emerald
   NOTE: the --gold-* variable names now hold the PRIMARY indigo-blue so the
   whole UI (buttons, brand, fabs, active states) recolours consistently.
   Real warm-gold accents use the --amber-* variables.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* deep cool navy for dark sections */
  --navy-950: #05080f;
  --navy-900: #0a1020;
  --navy-800: #101a30;
  --navy-700: #182848;
  --navy-600: #22345c;

  /* PRIMARY — indigo/royal blue (stored under --gold-* for global re-use) */
  --gold-600: #2f43c4;
  --gold-500: #3a51dc;
  --gold-400: #556ef0;
  --gold-300: #9aabf7;
  --gold-100: #e3e8ff;
  --gold-grad: linear-gradient(135deg, #5b74f0 0%, #3a51dc 55%, #2a39ad 100%);

  /* ACCENT — champagne gold */
  --amber-700: #a97e22;
  --amber-600: #c69235;
  --amber-500: #e0aa3e;
  --amber-400: #edc06a;
  --amber-grad: linear-gradient(135deg, #f0cf82 0%, #d9a941 55%, #b6841f 100%);

  --emerald: #10b981;
  --emerald-600: #059669;
  --red: #ef4444;

  --ink-900: #0b1220;
  --ink-800: #1a2136;
  --ink-600: #434c60;
  --ink-500: #626d84;
  --ink-400: #97a1b6;

  --paper: #ffffff;
  --paper-2: #f5f7fc;
  --paper-3: #eceff9;
  --line: #e3e7f2;
  --line-2: #eef1f9;

  --shadow-xs: 0 1px 2px rgba(16, 24, 54, 0.06);
  --shadow-sm: 0 4px 14px rgba(16, 24, 54, 0.08);
  --shadow-md: 0 16px 40px rgba(16, 24, 54, 0.11);
  --shadow-lg: 0 30px 80px rgba(16, 24, 54, 0.18);
  --shadow-gold: 0 12px 30px rgba(58, 81, 220, 0.34);
  --shadow-amber: 0 12px 30px rgba(217, 169, 65, 0.34);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --wrap: 1220px;
  --gutter: clamp(18px, 5vw, 46px);
  --nav-h: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-body);
  color: var(--ink-600);
  background: #e9edf7;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Ambient accent glow behind the whole site so nothing feels plain-white */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      680px 520px at 88% -6%,
      rgba(58, 81, 220, 0.14),
      transparent 60%
    ),
    radial-gradient(
      620px 520px at -8% 12%,
      rgba(217, 169, 65, 0.1),
      transparent 58%
    ),
    radial-gradient(
      720px 620px at 50% 108%,
      rgba(58, 81, 220, 0.1),
      transparent 60%
    );
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}
svg {
  display: block;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}
h4 {
  font-size: 1.1rem;
}
p {
  color: var(--ink-500);
}
strong {
  color: var(--ink-800);
}
::selection {
  background: var(--gold-300);
  color: var(--navy-900);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(54px, 7vw, 100px) 0;
  position: relative;
}
.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}
.section--alt {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  position: relative;
  overflow: hidden;
}
.section--alt::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 81, 220, 0.09), transparent 64%);
  pointer-events: none;
}
.section--alt::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 169, 65, 0.08),
    transparent 64%
  );
  pointer-events: none;
}
.section--alt > .wrap {
  position: relative;
  z-index: 1;
}
/* soft hairline separators for smoother transitions between bands */
.section--alt {
  border-top: 1px solid rgba(58, 81, 220, 0.06);
  border-bottom: 1px solid rgba(58, 81, 220, 0.06);
}
.section--navy {
  background: var(--navy-900);
  color: #c3d0e0;
  position: relative;
  overflow: hidden;
}
.section--navy::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 81, 220, 0.22), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}
.section--navy::after {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 169, 65, 0.12),
    transparent 66%
  );
  filter: blur(30px);
  pointer-events: none;
}
.section--navy > .wrap {
  position: relative;
  z-index: 1;
}
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5 {
  color: #fff;
}
.section--navy p {
  color: #93a6bd;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 15px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber-grad);
}
.section--navy .eyebrow {
  color: var(--amber-400);
}
.eyebrow.center-e {
  justify-content: center;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(34px, 5vw, 58px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  margin-top: 14px;
  font-size: 1.08rem;
}

.grad-text {
  background: var(--amber-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.up-txt {
  color: var(--emerald-600);
}
.down-txt {
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.97rem;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s,
    color 0.22s,
    border-color 0.22s;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn--gold {
  background: var(--gold-grad);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(58, 81, 220, 0.42);
}
.btn--navy {
  background: var(--navy-800);
  color: #fff;
}
.btn--navy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: #fff;
  color: var(--navy-800);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--gold-400);
  color: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn--outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.btn--light {
  background: #fff;
  color: var(--navy-800);
}
.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--block {
  width: 100%;
}
.btn--lg {
  padding: 16px 32px;
  font-size: 1.03rem;
  border-radius: 15px;
}
.btn--sm {
  padding: 10px 18px;
  font-size: 0.88rem;
  border-radius: 11px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background 0.35s,
    box-shadow 0.35s,
    border-color 0.35s;
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: background;
}
.site-header.transparent {
  background: transparent;
}
/* subtle top scrim so logo/burger always sit on a defined surface over light heroes */
.site-header.transparent:not(.on-dark)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  z-index: -1;
}
.site-header.solid {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 6px 24px rgba(16, 24, 54, 0.09);
  border-bottom-color: rgba(58, 81, 220, 0.1);
}
.site-header.solid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(58, 81, 220, 0.35),
    rgba(217, 169, 65, 0.35),
    transparent
  );
}
.site-header.solid .nav-link {
  color: var(--ink-700, #33415c);
}
.site-header.solid .brand-name {
  color: var(--navy-900);
}
.site-header.solid .brand-tag {
  color: var(--ink-400);
}
.site-header.solid .nav-toggle span {
  background: var(--navy-900);
}
.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--amber-grad);
  box-shadow: var(--shadow-amber);
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.22rem;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-tag {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-inline {
  display: none;
} /* off-canvas drawer is used on ALL screen sizes */
.nav-link {
  position: relative;
  padding: 9px 13px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9px;
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-login {
  display: none;
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  position: relative;
  transition: background 0.25s;
}
.nav-toggle:hover {
  background: rgba(128, 128, 128, 0.1);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  margin: 0;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease;
  transform-origin: center;
}

/* --- Contrast: default = dark text (light homepage hero) --- */
.site-header .nav-link {
  color: var(--ink-800);
}
.site-header .nav-link:hover {
  color: var(--gold-600);
  background: var(--paper-2);
}
.site-header .nav-link.active {
  color: var(--gold-600);
}
.site-header .brand-name {
  color: var(--navy-900);
}
.site-header .brand-tag {
  color: var(--ink-400);
}
.site-header .nav-login {
  color: var(--navy-800);
}
.site-header .nav-login:hover {
  color: var(--gold-600);
}
.site-header .nav-toggle span {
  background: var(--navy-900);
}

/* --- Dark hero (interior pages) + not scrolled = light text --- */
.site-header.transparent.on-dark .nav-link {
  color: rgba(255, 255, 255, 0.9);
}
.site-header.transparent.on-dark .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.site-header.transparent.on-dark .nav-link.active {
  color: var(--gold-300);
}
.site-header.transparent.on-dark .brand-name {
  color: #fff;
}
.site-header.transparent.on-dark .brand-tag {
  color: rgba(255, 255, 255, 0.6);
}
.site-header.transparent.on-dark .nav-login {
  color: rgba(255, 255, 255, 0.92);
}
.site-header.transparent.on-dark .nav-login:hover {
  color: var(--gold-300);
}
.site-header.transparent.on-dark .nav-toggle span {
  background: #fff;
}

/* --- Animated burger → X (gap 5px + line 2px = 7px travel to centre) --- */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
body.nav-lock {
  overflow: hidden;
}

/* Off-canvas drawer is used at every width; the burger keeps its flex layout. */
@media (max-width: 400px) {
  .nav-cta-btn {
    display: none;
  }
}

/* ---------- Off-canvas drawer (fits the viewport, no internal scroll) ---------- */
.drawer-wrap {
  position: fixed;
  inset: 0;
  z-index: 1250;
  pointer-events: none;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(324px, 86vw);
  background: linear-gradient(
    165deg,
    #0d1730 0%,
    var(--navy-900) 60%,
    #080d1a 100%
  );
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  padding: 20px 22px calc(18px + env(safe-area-inset-bottom));
  transform: translateX(105%);
  transition: transform 0.5s cubic-bezier(0.5, 0, 0.1, 1);
  overflow: hidden;
}
.drawer::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 81, 220, 0.28), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}
.drawer::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 169, 65, 0.12),
    transparent 66%
  );
  filter: blur(20px);
  pointer-events: none;
}
.drawer-wrap.open {
  pointer-events: auto;
}
.drawer-wrap.open .drawer-overlay {
  opacity: 1;
}
.drawer-wrap.open .drawer {
  transform: none;
}
.drawer > * {
  position: relative;
  z-index: 1;
}
.drawer__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.drawer__head .brand-mark {
  width: 36px;
  height: 36px;
}
.drawer__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.drawer__close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}
.drawer__close svg {
  width: 17px;
  height: 17px;
}
.drawer__nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2px, 1vh, 6px);
  padding: 10px 0;
}
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(9px, 1.3vh, 13px) 14px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 13px;
  transition:
    color 0.2s,
    background 0.2s,
    padding-left 0.25s;
  opacity: 0;
  transform: translateX(20px);
  position: relative;
}
.drawer-wrap.open .drawer__link {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.2s,
    background 0.2s,
    padding-left 0.25s;
  transition-delay: calc(0.14s + var(--i) * 0.055s);
}
.drawer__link svg {
  width: 16px;
  height: 16px;
  color: var(--amber-400);
  opacity: 0;
  transform: translateX(-8px);
  transition: 0.25s;
}
.drawer__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  padding-left: 18px;
}
.drawer__link:hover svg {
  opacity: 1;
  transform: none;
}
.drawer__link.active {
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(58, 81, 220, 0.28),
    rgba(58, 81, 220, 0.04)
  );
}
.drawer__link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--amber-grad);
}
.drawer__link.active svg {
  opacity: 1;
  transform: none;
}
.drawer__cta {
  flex-shrink: 0;
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.drawer__cta .btn {
  padding: 12px 20px;
  font-size: 0.93rem;
}
.drawer__foot {
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.drawer__contact {
  display: grid;
  gap: 6px;
}
.drawer__contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a6b6cb;
  font-size: 0.84rem;
  transition: color 0.2s;
}
.drawer__contact a:hover {
  color: var(--amber-400);
}
.drawer__contact a svg {
  width: 16px;
  height: 16px;
  color: var(--amber-400);
  flex-shrink: 0;
}
.drawer__soc {
  display: flex;
  gap: 9px;
}
.drawer__soc a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  color: #cdd9e8;
  transition: 0.25s;
}
.drawer__soc a:hover {
  background: var(--gold-grad);
  color: #fff;
  transform: translateY(-2px);
}
.drawer__soc svg {
  width: 16px;
  height: 16px;
}
/* Very short viewports: compress so nothing needs scrolling */
@media (max-height: 680px) {
  .drawer {
    padding-top: 14px;
  }
  .drawer__link {
    font-size: 1rem;
    padding: 8px 14px;
  }
  .drawer__email {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 54px) 0 70px;
  overflow: hidden;
  background: linear-gradient(180deg, #f2f6fc 0%, #ffffff 74%);
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
}
.hero__blob.b1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(212, 178, 62, 0.34),
    transparent 68%
  );
  top: -140px;
  right: -120px;
}
.hero__blob.b2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(30, 58, 99, 0.2), transparent 66%);
  bottom: -160px;
  left: -120px;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-600);
  margin-bottom: 24px;
}
.pill-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.pill-badge b {
  color: var(--ink-900);
}

.hero h1 em {
  font-style: normal;
  background: var(--amber-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: 20px;
  font-size: 1.14rem;
  color: var(--ink-500);
  max-width: 540px;
}
.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.hero__chips {
  margin-top: 34px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.hero__chips .n {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--ink-900);
  line-height: 1;
}
.hero__chips .l {
  font-size: 0.8rem;
  color: var(--ink-400);
  margin-top: 5px;
}
.hero__trust {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ink-500);
}
.hero__trust .stars {
  color: var(--amber-500);
  letter-spacing: 2px;
}

/* hero right: device + signup */
.hero__stage {
  position: relative;
  z-index: 1;
}
.device {
  position: relative;
  z-index: 1;
  width: 300px;
  margin: 0 auto;
  border-radius: 42px;
  background: linear-gradient(160deg, #10203a, #0a1424);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: deviceFloat 6s ease-in-out infinite;
  will-change: transform;
}
.device::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #0a1424;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
@keyframes deviceFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.6deg);
  }
}
.dev-glow {
  position: absolute;
  inset: -12% -8% -8% -8%;
  z-index: 0;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(212, 178, 62, 0.35),
    transparent 62%
  );
  filter: blur(40px);
  animation: devGlow 6s ease-in-out infinite;
}
@keyframes devGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-10px);
  }
}
.dev-row {
  animation: devRow 0.6s ease both;
}
.dev-list .dev-row:nth-child(1) {
  animation-delay: 0.15s;
}
.dev-list .dev-row:nth-child(2) {
  animation-delay: 0.3s;
}
.dev-list .dev-row:nth-child(3) {
  animation-delay: 0.45s;
}
.dev-list .dev-row:nth-child(4) {
  animation-delay: 0.6s;
}
@keyframes devRow {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Mobile live-market widget (shown when the device is hidden on phones) */
.hero-widget {
  display: none;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 18px;
}
.hero-widget__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9fb2c8;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.hw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: hwPulse 1.8s infinite;
}
@keyframes hwPulse {
  50% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
}
.hero-widget__rows {
  display: grid;
  gap: 8px;
}
.hw-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 9px 11px;
}
.hw-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.hw-nm {
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}
.hw-val {
  margin-left: auto;
  color: #cdd9e8;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--font-head);
}
.hw-chg {
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 52px;
  text-align: right;
}
.hw-chg.up {
  color: #35d08a;
}
.hw-chg.down {
  color: #ff6b66;
}
.hero-widget canvas {
  margin-top: 10px;
}
.device__screen {
  border-radius: 32px;
  background: #fff;
  overflow: hidden;
  height: 560px;
  display: flex;
  flex-direction: column;
}
.dev-top {
  background: var(--navy-900);
  color: #fff;
  padding: 30px 18px 16px;
}
.dev-top .lbl {
  font-size: 0.72rem;
  color: #8ea3bc;
}
.dev-top .bal {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  margin-top: 2px;
}
.dev-top .chg {
  font-size: 0.78rem;
  color: #35d08a;
  margin-top: 2px;
}
.dev-chart {
  padding: 8px 10px 4px;
  background: var(--navy-900);
}
.dev-list {
  padding: 12px;
  display: grid;
  gap: 8px;
  overflow: hidden;
}
.dev-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--paper-2);
}
.dev-row .ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
}
.dev-row .nm {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-900);
}
.dev-row .sub {
  font-size: 0.68rem;
  color: var(--ink-400);
}
.dev-row .val {
  margin-left: auto;
  text-align: right;
}
.dev-row .p {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-900);
}
.dev-row .d {
  font-size: 0.68rem;
  font-weight: 600;
}

.signup-card {
  position: absolute;
  z-index: 3;
  right: -20px;
  bottom: -30px;
  width: 300px;
  border-radius: var(--r-lg);
  padding: 26px 22px 22px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #ffffff, #fbfcff) padding-box,
    linear-gradient(
        135deg,
        rgba(240, 207, 130, 0.85),
        rgba(217, 169, 65, 0.45) 55%,
        rgba(240, 207, 130, 0.75)
      )
      border-box;
  box-shadow:
    0 34px 80px rgba(16, 24, 54, 0.26),
    0 4px 14px rgba(16, 24, 54, 0.08),
    0 0 44px rgba(217, 169, 65, 0.16);
}
.signup-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -35%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 169, 65, 0.16),
    transparent 66%
  );
  pointer-events: none;
}
.signup-card > * {
  position: relative;
}
.signup-card h3 {
  font-size: 1.2rem;
  position: relative;
}
.signup-card .sub {
  font-size: 0.82rem;
  color: var(--ink-400);
  margin: 4px 0 15px;
  position: relative;
}
.signup-card > * {
  position: relative;
}

/* ---------- Registration form ---------- */
.reg-form {
  display: grid;
  gap: 11px;
}
.reg-form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.reg-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink-900);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s,
    transform 0.2s;
}
.reg-form input::placeholder {
  color: var(--ink-400);
}
.reg-form input:hover {
  border-color: var(--gold-300);
}
.reg-form input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(58, 81, 220, 0.16);
  transform: translateY(-1px);
}
.reg-form button[type="submit"] {
  margin-top: 5px;
  position: relative;
  overflow: hidden;
}
.reg-form button[type="submit"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.reg-form button[type="submit"]:hover::after {
  left: 130%;
}
.reg-form button[type="submit"]:disabled {
  cursor: not-allowed;
}

/* ---- intl-tel-input — styled to match the Quantum form design ---- */
.reg-form .iti {
  display: block;
  width: 100%;
}
.reg-form .iti > input[type="tel"] {
  width: 100%;
}
.reg-form .iti input:focus {
  transform: none;
} /* keep flag aligned on focus */
.iti__selected-flag {
  border-radius: 12px 0 0 12px;
  padding: 0 10px 0 13px;
  outline: none;
}
.iti--separate-dial-code .iti__selected-flag {
  background-color: rgba(58, 81, 220, 0.06);
}
.iti--separate-dial-code .iti__selected-flag:hover,
.iti--separate-dial-code .iti__selected-flag:focus {
  background-color: rgba(58, 81, 220, 0.11);
}
.iti__selected-dial-code {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.92rem;
}
.iti__arrow {
  border-top-color: var(--ink-400);
}
.iti__arrow--up {
  border-bottom-color: var(--ink-400);
}
.iti__country-list {
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
  background: #fff;
  padding: 6px;
  margin: 6px 0 0 -1px;
  max-height: min(232px, 42vh);
  min-width: 264px;
  max-width: min(340px, 86vw);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-400) transparent;
  -webkit-overflow-scrolling: touch;
}
.iti__country-list::-webkit-scrollbar {
  width: 8px;
}
.iti__country-list::-webkit-scrollbar-track {
  background: transparent;
}
.iti__country-list::-webkit-scrollbar-thumb {
  background: var(--gold-300);
  border-radius: 50px;
  border: 2px solid #fff;
}
.iti__country-list::-webkit-scrollbar-thumb:hover {
  background: var(--gold-500);
}
/* On real phones intl-tel-input appends the dropdown to <body> inside .iti--container.
   Its stock z-index (1060) sits BEHIND our chat (1150) and popup (1200) — the list
   opened invisibly. Lift it above every overlay and style the fullscreen picker. */
.iti--container {
  z-index: 1500;
}
.iti-mobile .iti--container {
  position: fixed;
  top: max(24px, env(safe-area-inset-top));
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
}
.iti-mobile .iti--container::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.55);
  z-index: -1;
}
.iti-mobile .iti__country-list {
  width: 100%;
  max-width: none;
  max-height: 100%;
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(6, 10, 20, 0.5);
}
.iti-mobile .iti__country {
  padding: 13px 14px;
  font-size: 1rem;
}
.iti__country-list--dropup {
  margin: 0 0 6px -1px;
}
.iti__country {
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--ink-900);
  font-size: 0.9rem;
}
.iti__country .iti__country-name {
  color: var(--ink-900);
}
.iti__country .iti__dial-code {
  color: var(--ink-400);
}
.iti__country.iti__highlight {
  background-color: rgba(58, 81, 220, 0.12);
}
.iti__country:hover {
  background-color: rgba(58, 81, 220, 0.08);
}
.iti__divider {
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  padding-bottom: 6px;
}
.form-fine {
  font-size: 0.72rem;
  color: var(--ink-400);
  text-align: center;
  margin-top: 2px;
  line-height: 1.5;
}
.form-fine a {
  color: var(--gold-600);
  text-decoration: underline;
}
.form-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.form-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--ink-400);
}
.form-badges svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-600);
}
.lead-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--r-lg);
  padding: 32px 30px;
  box-shadow: 0 30px 70px rgba(16, 24, 54, 0.16);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.lead-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-grad);
}
.lead-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 81, 220, 0.14), transparent 66%);
  pointer-events: none;
}
.lead-card > * {
  position: relative;
}
.lead-card h3 {
  font-size: 1.5rem;
}
.lead-card .sub {
  color: var(--ink-400);
  font-size: 0.92rem;
  margin: 6px 0 18px;
}

/* ---------- Ticker ---------- */
/* Mobile-stable marquee: the movement is driven by JS (scrollLeft + rAF, see index.php).
   A CSS transform animation promotes one giant compositor layer (track width × device
   pixel ratio exceeds mobile GPU texture limits) which real phones drop/re-rasterize —
   the classic freeze/disappear/reappear. Scrolling content is tiled natively instead. */
.ticker {
  background: var(--navy-950);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  gap: 40px;
  padding: 12px 0;
  white-space: nowrap;
  width: max-content;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c9d6e6;
  font-size: 0.86rem;
  font-weight: 500;
  flex-shrink: 0;
}
.ticker__item .sym {
  color: #fff;
  font-weight: 700;
}
.ticker__item .up {
  color: #35d08a;
}
.ticker__item .down {
  color: #ff6b66;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 52px);
}
.trust-strip span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-400);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Prevent grid/flex children from forcing tracks wider than the viewport
   (a wide child like a table would otherwise overflow the column). */
.split > *,
.grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.stats-band > *,
.metric-grid > *,
.steps > *,
.compare > *,
.calc > *,
.footer-grid > * {
  min-width: 0;
}
.chart-card,
.table-wrap,
.metric-grid,
.calc__result,
.calc__controls {
  min-width: 0;
  max-width: 100%;
}
.chart-card canvas,
.calc__result canvas {
  max-width: 100%;
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #e8edff, #d7e0ff);
  color: var(--gold-600);
}
.tip-num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  margin-bottom: 16px;
  background: var(--gold-grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-amber);
}
.card__icon svg {
  width: 26px;
  height: 26px;
}
.card h3 {
  margin-bottom: 9px;
  font-size: 1.28rem;
}
.card p {
  font-size: 0.95rem;
}
.card--soft {
  background: var(--paper-2);
  border-color: transparent;
}

.section--navy .card {
  background: var(--navy-800);
  border-color: rgba(255, 255, 255, 0.08);
}
.section--navy .card:hover {
  border-color: rgba(212, 178, 62, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}
.section--navy .card p {
  color: #93a6bd;
}
.section--navy .card__icon {
  background: rgba(212, 178, 62, 0.14);
  color: var(--gold-300);
}

/* ---------- Instrument (market) cards w/ sparkline ---------- */
.inst-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  text-align: left;
}
.inst-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.inst-card__top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.inst-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
}
.inst-card__top .nm {
  font-weight: 700;
  color: var(--ink-900);
  font-family: var(--font-head);
  line-height: 1.1;
}
.inst-card__top .sym {
  font-size: 0.72rem;
  color: var(--ink-400);
}
.inst-spark {
  height: 46px;
  margin: 6px 0 12px;
}
.inst-card__bot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.inst-card__bot .price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink-900);
}
.inst-chg {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
}
.inst-chg.up {
  color: var(--emerald-600);
  background: rgba(16, 185, 129, 0.1);
}
.inst-chg.down {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 14px;
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  color: #fff;
  line-height: 1;
}
.stat .num .suffix {
  color: var(--gold-400);
}
.stat .lbl {
  margin-top: 11px;
  color: #93a6bd;
  font-size: 0.9rem;
}
.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}
.stats-band.light .stat .num {
  color: var(--navy-900);
}
.stats-band.light .stat .lbl {
  color: var(--ink-400);
}
.stats-band.light .stat + .stat {
  border-left-color: var(--line);
}

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.split.rev .split__media {
  order: 2;
}
.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__media img {
  width: 100%;
  aspect-ratio: 4/3.3;
  object-fit: cover;
}
.split__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  background: rgba(10, 20, 36, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
}
.split__badge .big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--gold-400);
  line-height: 1;
}
.split__badge small {
  color: #b9c8db;
  font-size: 0.8rem;
}
.check-list {
  margin-top: 24px;
  display: grid;
  gap: 13px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-600);
}
.check-list .tick {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: linear-gradient(135deg, #e8edff, #d7e0ff);
  color: var(--gold-600);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.check-list .tick svg {
  width: 13px;
  height: 13px;
}
.check-list strong {
  color: var(--ink-900);
}
.section--navy .check-list li {
  color: #c3d0e0;
}
.section--navy .check-list strong {
  color: #fff;
}
.section--navy .check-list .tick {
  background: rgba(212, 178, 62, 0.16);
  color: var(--gold-300);
}

/* ---------- Carousel / slider ---------- */
.slider {
  position: relative;
}
.slider__viewport {
  overflow: hidden;
}
.slider__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 10px;
  display: flex;
}
.slider__slide > * {
  width: 100%;
  height: 100%;
}
.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.slider__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--navy-800);
  display: grid;
  place-items: center;
  transition: 0.22s;
  box-shadow: var(--shadow-xs);
}
.slider__btn:hover {
  background: var(--gold-grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.slider__btn svg {
  width: 20px;
  height: 20px;
}
.slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slider__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: 0.25s;
}
.slider__dots button.active {
  width: 26px;
  border-radius: 50px;
  background: var(--gold-grad);
}
.section--navy .slider__btn {
  background: var(--navy-800);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.section--navy .slider__dots button {
  background: rgba(255, 255, 255, 0.2);
}

/* multi-per-view slides sizing handled by JS via flex-basis vars */
.slider[data-per="3"] .slider__slide {
  flex-basis: 33.3333%;
}
.slider[data-per="2"] .slider__slide {
  flex-basis: 50%;
}

/* ---------- Market/asset feature card (in carousel) ---------- */
.market-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  height: 100%;
}
.market-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s;
}
.market-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(6, 13, 26, 0.94) 6%,
    rgba(6, 13, 26, 0.34) 60%,
    rgba(6, 13, 26, 0.12)
  );
}
.market-card:hover img {
  transform: scale(1.07);
}
.market-card__body {
  padding: 24px;
  width: 100%;
}
.market-card__sym {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 7px;
}
.market-card h3 {
  color: #fff;
}
.market-card p {
  color: #c4d2e4;
  font-size: 0.88rem;
  margin-top: 7px;
}
.market-card__meta {
  display: flex;
  gap: 16px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.market-card__meta .k {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #93a6bd;
}
.market-card__meta .v {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.market-card__meta .v.up {
  color: #35d08a;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold-400), rgba(212, 178, 62, 0.12));
}
.tl-item {
  position: relative;
  padding: 0 0 38px 76px;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--gold-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
}
.tl-item h3 {
  margin-bottom: 7px;
}
.tl-item .yr {
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
}
.section--navy .tl-item .yr {
  color: var(--gold-300);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 24px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.step__n {
  counter-increment: step;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.step__n::before {
  content: "0" counter(step);
}
.step h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.92rem;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
}
table.data th,
table.data td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
}
table.data thead th {
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}
table.data tbody tr:last-child td {
  border-bottom: none;
}
table.data tbody tr:hover {
  background: var(--paper-2);
}
table.data td {
  color: var(--ink-600);
  font-size: 0.94rem;
}
table.data td strong {
  color: var(--ink-900);
}
.badge-up {
  color: var(--emerald-600);
  font-weight: 700;
}
.badge-down {
  color: var(--red);
  font-weight: 700;
}
.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.77rem;
  font-weight: 600;
}
.pill.high {
  background: #e6f7ef;
  color: var(--emerald-600);
}
.pill.mid {
  background: #fdf3df;
  color: #b7851b;
}
.pill.low {
  background: #fdecec;
  color: var(--red);
}

/* ---------- Charts ---------- */
.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.chart-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.chart-card__head h3 {
  font-size: 1.15rem;
}
.chart-card__head .val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink-900);
}
.chart-card__head .chg {
  font-size: 0.84rem;
  font-weight: 700;
}
.chart-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-500);
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}
.chart-tabs {
  display: inline-flex;
  gap: 3px;
  background: var(--paper-2);
  padding: 4px;
  border-radius: 11px;
}
.chart-tabs button {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-400);
  transition: 0.2s;
}
.chart-tabs button.active {
  background: #fff;
  color: var(--navy-800);
  box-shadow: var(--shadow-xs);
}
canvas {
  display: block;
  width: 100%;
}

.perf-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.perf-grid > * {
  min-width: 0;
}
@media (max-width: 860px) {
  .perf-grid {
    grid-template-columns: 1fr;
  }
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}
.metric .k {
  font-size: 0.78rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.metric .v {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ink-900);
  margin: 5px 0 2px;
}
.metric .d {
  font-size: 0.82rem;
  font-weight: 700;
}
.section--navy .metric {
  background: var(--navy-800);
  border-color: rgba(255, 255, 255, 0.08);
}
.section--navy .metric .v {
  color: #fff;
}

/* progress bars */
.prog-row {
  margin-bottom: 16px;
}
.prog-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.prog-track {
  height: 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.prog-track.on-light {
  background: var(--paper-3);
}
.prog-fill {
  height: 100%;
  background: var(--gold-grad);
  border-radius: 50px;
}

/* ---------- Accordion ---------- */
.accordion {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.acc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.acc-item.open {
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 178, 62, 0.5);
}
.acc-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink-900);
}
.acc-q .ic {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  transition: 0.3s;
  color: var(--gold-600);
}
.acc-item.open .acc-q .ic {
  background: var(--gold-grad);
  color: #fff;
  transform: rotate(45deg);
}
.acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.acc-a p {
  padding: 0 24px 22px;
  color: var(--ink-500);
  font-size: 0.96rem;
}

/* ---------- Tabs ---------- */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}
.tabs__btn {
  padding: 11px 20px;
  border-radius: 50px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-600);
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.22s;
}
.tabs__btn:hover {
  border-color: var(--gold-300);
  color: var(--gold-600);
}
.tabs__btn.active {
  background: var(--gold-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.tabs__panel {
  display: none;
  animation: tabIn 0.45s ease;
}
.tabs__panel.active {
  display: block;
}
@keyframes tabIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.tabs__panel .split {
  align-items: center;
}
.edu-visual {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-radius: var(--r-lg);
  padding: 32px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.edu-visual::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 169, 65, 0.22),
    transparent 66%
  );
}
.edu-visual .big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--amber-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.edu-visual .cap {
  color: #9fb2c8;
  font-size: 0.9rem;
  margin-top: 6px;
}
.edu-visual .rows {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  position: relative;
}
.edu-visual .rows > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.edu-visual .rows > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.edu-visual .rows b {
  color: #fff;
  font-family: var(--font-head);
}

/* ---------- Investment calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
  background: #fff;
}
.calc__controls {
  padding: clamp(26px, 3vw, 40px);
  background: var(--paper-2);
}
.calc__controls h3 {
  margin-bottom: 6px;
}
.calc__controls .hint {
  color: var(--ink-400);
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.calc__field {
  margin-bottom: 22px;
}
.calc__lbl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--ink-600);
  font-weight: 500;
}
.calc__lbl b {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--gold-600);
}
.calc input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 50px;
  background: var(--paper-3);
  outline: none;
  cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--gold-500);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: transform 0.15s;
}
.calc input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.15);
  cursor: grabbing;
}
.calc input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--gold-500);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}
.calc__result {
  padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(165deg, var(--navy-800), var(--navy-900));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.calc__result::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 81, 220, 0.3), transparent 66%);
}
.calc__big {
  position: relative;
}
.calc__big-lbl {
  display: block;
  font-size: 0.84rem;
  color: #9fb2c8;
  margin-bottom: 4px;
}
.calc__big-val {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  line-height: 1;
  background: var(--amber-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc__stats {
  position: relative;
  display: flex;
  gap: 26px;
  margin: 20px 0 18px;
  flex-wrap: wrap;
}
.calc__stats > div {
  line-height: 1.3;
}
.calc__stats span {
  display: block;
  font-size: 0.78rem;
  color: #9fb2c8;
}
.calc__stats b {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #fff;
}
.calc__result canvas {
  position: relative;
  margin-top: 4px;
}

/* Interactive asset explorer + profile allocator (replace the calculator off-home) */
.explorer,
.profiler {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.explorer__tabs,
.profiler__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-2);
}
.explorer__tabs button,
.profiler__tabs button {
  flex: 1 1 auto;
  min-width: 84px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-500);
  transition:
    color 0.2s,
    background 0.2s;
}
.explorer__tabs button:hover,
.profiler__tabs button:hover {
  color: var(--navy-800);
  background: rgba(58, 81, 220, 0.06);
}
.explorer__tabs button.active,
.profiler__tabs button.active {
  background: var(--gold-grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.explorer__grid,
.profiler__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 30px;
  padding: clamp(22px, 3vw, 36px);
  align-items: center;
}
.explorer__chart,
.profiler__chart {
  min-width: 0;
  position: relative;
}
.explorer__chart canvas,
.profiler__chart canvas {
  width: 100%;
  max-width: 100%;
}
.explorer__side,
.profiler__side {
  min-width: 0;
}
.explorer__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--gold-600);
  background: rgba(217, 169, 65, 0.14);
  padding: 4px 11px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.explorer__side h3,
.profiler__side h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.explorer__side > p,
.profiler__side > p {
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.explorer__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 22px;
}
.explorer__stats > div {
  line-height: 1.3;
}
.explorer__stats span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.explorer__stats b {
  font-family: var(--font-head);
  font-size: 1.14rem;
  color: var(--navy-900);
}
.profiler__legend {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 0 0 22px;
}
.profiler__legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-600);
}
.profiler__legend li b {
  margin-left: auto;
  font-family: var(--font-head);
  color: var(--navy-900);
}
.profiler__legend .dot {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  flex-shrink: 0;
}
.profiler__meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.profiler__meta span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.profiler__meta b {
  font-family: var(--font-head);
  font-size: 1.06rem;
  color: var(--navy-900);
}
@media (max-width: 760px) {
  .explorer__grid,
  .profiler__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .explorer__tabs button,
  .profiler__tabs button {
    min-width: 0;
    font-size: 0.82rem;
    padding: 10px 8px;
  }
}
.calc__note {
  position: relative;
  font-size: 0.72rem;
  color: #7d90a8;
  margin-top: 12px;
}

/* ---------- Comparison cards ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.compare-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.compare-card.feature {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gold-grad) border-box;
  box-shadow: var(--shadow-md);
  position: relative;
}
.compare-card.feature::before {
  content: "Recomandat";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  box-shadow: var(--shadow-gold);
}
.compare-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.compare-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.compare-card .tag {
  font-size: 0.84rem;
  color: var(--ink-400);
  margin-bottom: 18px;
}
.compare-card ul {
  display: grid;
  gap: 12px;
}
.compare-card li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-600);
}
.compare-card li svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 1px;
}
.compare-card li.yes svg {
  color: var(--emerald);
}
.compare-card li.no svg {
  color: var(--red);
}
.compare-card li.mid svg {
  color: var(--amber-500);
}

/* ---------- FAQ category filter ---------- */
.faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.faq-filter button {
  padding: 9px 18px;
  border-radius: 50px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-600);
  font-weight: 600;
  font-size: 0.88rem;
  transition: 0.2s;
}
.faq-filter button:hover {
  border-color: var(--gold-300);
  color: var(--gold-600);
}
.faq-filter button.active {
  background: var(--gold-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-gold);
}

/* ---------- Testimonials ---------- */
.testi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testi .stars {
  color: var(--amber-500);
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.testi p {
  color: var(--ink-700, #33415c);
  font-size: 1rem;
}
.testi .who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 22px;
}
.testi .who img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.testi .who .n {
  font-weight: 700;
  color: var(--ink-900);
  font-family: var(--font-head);
}
.testi .who .r {
  font-size: 0.82rem;
  color: var(--ink-400);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(42px, 6vw, 76px);
  color: #fff;
  isolation: isolate;
}
.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    rgba(6, 13, 26, 0.94),
    rgba(18, 41, 74, 0.8)
  );
}
.cta-band h2 {
  color: #fff;
  max-width: 620px;
}
.cta-band p {
  color: #b9c8db;
  max-width: 560px;
  margin-top: 13px;
  font-size: 1.06rem;
}
.cta-band .hero__actions {
  margin-top: 28px;
}
.cta-gradient {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
}
.cta-gradient::after {
  display: none;
}

/* ---------- Page hero (interior, gradient) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 68px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #0a1020 0%, #17264a 55%, #22345c 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  top: -160px;
  right: -100px;
  z-index: 0;
  background: radial-gradient(circle, rgba(58, 81, 220, 0.42), transparent 64%);
  filter: blur(50px);
  animation: heroOrb 9s ease-in-out infinite;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  opacity: 0.6;
}
@keyframes heroOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 26px) scale(1.08);
  }
}
.page-hero__orb2 {
  position: absolute;
  z-index: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(
    circle,
    rgba(217, 169, 65, 0.24),
    transparent 64%
  );
  filter: blur(46px);
  animation: heroOrb 11s ease-in-out infinite reverse;
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  color: #fff;
  max-width: 800px;
}
.page-hero p {
  color: #c4d2e4;
  max-width: 640px;
  margin-top: 15px;
  font-size: 1.1rem;
}
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: #8ea3bc;
  margin-bottom: 20px;
}
.crumbs a:hover {
  color: var(--gold-300);
}
.crumbs span {
  color: var(--gold-300);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.hero-viz {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  min-width: 0;
}
.hero-viz__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.hero-viz__sym {
  display: block;
  font-size: 0.76rem;
  color: #93a6bd;
  margin-bottom: 3px;
}
.hero-viz__price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  color: #fff;
}
.hero-viz__chg {
  font-size: 0.9rem;
  font-weight: 700;
  color: #35d08a;
  background: rgba(16, 185, 129, 0.16);
  padding: 5px 10px;
  border-radius: 9px;
  white-space: nowrap;
}
.hero-viz canvas {
  width: 100%;
}
.hero-viz__legend {
  margin-top: 12px;
  font-size: 0.74rem;
  color: #93a6bd;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hero-viz__legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
}
.hero-viz__legend .dot:first-child {
  margin-left: 0;
}
.hero-viz__legend .dot.buy {
  background: #35d08a;
}
.hero-viz__legend .dot.sell {
  background: #ff6b66;
}
/* Injected animated hero widgets (per page) */
.hv-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
}
.hv-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #93a6bd;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.hv-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: hvPulse 1.7s ease-in-out infinite;
}
@keyframes hvPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.7);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}
.hv-bignum {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.5rem;
  color: #fff;
  margin-top: 10px;
  line-height: 1;
}
.hv-sub {
  font-size: 0.82rem;
  color: #9fb2c9;
  margin-top: 5px;
}
.hv-bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 118px;
  margin-top: 18px;
}
.hv-bars span {
  flex: 1;
  min-height: 6px;
  height: var(--h);
  background: var(--amber-grad);
  border-radius: 6px 6px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: hvBar 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d);
}
.hv-bars span:last-child {
  background: var(--gold-grad);
  box-shadow: 0 0 16px rgba(58, 81, 220, 0.5);
}
@keyframes hvBar {
  to {
    transform: scaleY(1);
  }
}
.hv-years {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #7f93ac;
  margin-top: 8px;
}
.hv-market {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
}
.hv-row {
  display: grid;
  grid-template-columns: 28px 1fr 68px auto auto;
  align-items: center;
  gap: 11px;
  padding: 9px 6px;
  border-radius: 10px;
  transition: background 0.2s;
}
.hv-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.hv-row .ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.68rem;
  color: #0a1020;
}
.hv-row .nm {
  color: #dbe5f1;
  font-size: 0.87rem;
  font-weight: 600;
}
.hv-spark {
  width: 68px;
  height: 28px;
  overflow: visible;
}
.hv-spark polyline {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ptDraw 1.1s ease forwards;
  animation-delay: var(--d, 0s);
}
.hv-row .px {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
  font-family: var(--font-head);
}
.hv-row .chg {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
}
.hv-row .chg.up {
  color: #35d08a;
  background: rgba(16, 185, 129, 0.16);
}
.hv-row .chg.down {
  color: #ff8f8b;
  background: rgba(239, 68, 68, 0.16);
}
/* Active & Piețe hero: larger financial dashboard */
.hero-viz--dash {
  padding: 20px 20px 16px;
}
.hv-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.hv-dash-sym {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9fb2c9;
  letter-spacing: 0.4px;
}
.hv-dash-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  line-height: 1.1;
  margin-top: 2px;
}
.hv-dash-price i {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
}
.hv-dash-chg {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.hv-dash-chg .chg {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.hv-dash-chg .chg.up {
  color: #35d08a;
  background: rgba(16, 185, 129, 0.18);
}
.hv-chart-wrap {
  margin: 4px -4px 6px;
}
.hv-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.hv-chart__grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}
.hv-chart__area {
  opacity: 0;
  animation: ptArea 0.7s ease 0.45s forwards;
}
.hv-chart__line {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ptDraw 1.15s cubic-bezier(0.5, 0, 0.15, 1) forwards;
  filter: drop-shadow(0 3px 8px rgba(240, 207, 130, 0.3));
}
.hv-chart__dot {
  opacity: 0;
  animation: ptDot 0.3s ease 1.05s forwards;
}
.hv-chart__pulse {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hvChartPulse 1.7s ease-out 1.1s infinite;
}
@keyframes hvChartPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(3.6);
    opacity: 0;
  }
}
.hv-range {
  display: flex;
  gap: 5px;
  margin: 2px 0 12px;
}
.hv-range span {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8ea3bc;
  padding: 5px 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}
.hv-range span.active {
  background: rgba(240, 207, 130, 0.18);
  color: #f4dd9a;
}
.hv-watch {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
/* Legal-page hero widgets (cookie / privacy / terms) */
.hv-legal .hero-viz__head {
  margin-bottom: 14px;
}
.hv-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.hv-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 14px;
  opacity: 0;
  animation: hvStep 0.5s ease forwards;
  animation-delay: var(--d);
}
.hv-toggle b {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}
.hv-toggle small {
  color: #9fb2c9;
  font-size: 0.76rem;
}
.hv-sw {
  width: 42px;
  height: 24px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  flex-shrink: 0;
}
.hv-sw i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
.hv-sw.on {
  animation: hvSwBg 0.4s ease forwards;
  animation-delay: var(--d);
}
.hv-sw.on i {
  animation: hvSwOn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--d);
}
@keyframes hvSwBg {
  to {
    background: var(--emerald);
  }
}
@keyframes hvSwOn {
  to {
    transform: translateX(18px);
  }
}
.hv-legal-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: #cdd9ea;
}
.hv-legal-note svg {
  width: 20px;
  height: 20px;
  color: #f4dd9a;
  flex-shrink: 0;
}
.hv-shield {
  display: grid;
  place-items: center;
  padding: 6px 0 20px;
}
.hv-shield svg {
  width: 116px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 10px 24px rgba(16, 185, 129, 0.24));
}
.hv-shield__body {
  fill: rgba(16, 185, 129, 0.1);
  stroke: #f4dd9a;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ptDraw 1s ease 0.1s forwards;
}
.hv-shield__tick {
  fill: none;
  stroke: #35d08a;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ptDraw 0.5s ease 0.85s forwards;
}
.hv-checks {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
}
.hv-checks li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #dbe5f1;
  font-size: 0.9rem;
  opacity: 0;
  animation: hvStep 0.5s ease forwards;
  animation-delay: var(--d);
}
.hv-checks li svg {
  width: 20px;
  height: 20px;
  color: #35d08a;
  flex-shrink: 0;
}
.hv-doc {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.hv-doc__head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 6px;
}
.hv-doc__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(240, 207, 130, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hv-doc__logo svg {
  width: 24px;
  height: 24px;
}
.hv-docline {
  display: block;
  height: 9px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  width: 0;
  animation: hvLineGrow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--d);
}
.hv-docline.lg {
  height: 12px;
  background: rgba(240, 207, 130, 0.4);
}
@keyframes hvLineGrow {
  to {
    width: var(--w);
  }
}
.hv-doc__seal {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(217, 169, 65, 0.4);
  opacity: 0;
  transform: scale(0.4) rotate(-25deg);
  animation: hvSeal 0.55s cubic-bezier(0.2, 1.4, 0.5, 1) 1.35s forwards;
}
.hv-doc__seal svg {
  width: 26px;
  height: 26px;
}
@keyframes hvSeal {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hv-toggle,
  .hv-checks li,
  .hv-shield__body,
  .hv-shield__tick,
  .hv-docline,
  .hv-doc__seal,
  .hv-sw.on,
  .hv-sw.on i {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    width: var(--w, auto) !important;
  }
  .hv-sw.on {
    background: var(--emerald) !important;
  }
  .hv-sw.on i {
    transform: translateX(18px) !important;
  }
}
.hv-steps {
  position: relative;
  margin-top: 12px;
  padding-left: 8px;
}
.hv-steps .hv-line {
  position: absolute;
  left: 21px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hv-steps .hv-line i {
  position: absolute;
  inset: 0;
  background: var(--amber-grad);
  transform: scaleY(0);
  transform-origin: top;
  animation: hvLine 2.4s ease forwards 0.3s;
}
@keyframes hvLine {
  to {
    transform: scaleY(1);
  }
}
.hv-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 9px 0;
  position: relative;
  opacity: 0;
  animation: hvStep 0.5s ease forwards;
  animation-delay: var(--d);
}
@keyframes hvStep {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hv-step .n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  z-index: 1;
  box-shadow: 0 0 0 4px #0c1430;
}
.hv-step b {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}
.hv-step small {
  color: #9fb2c9;
  font-size: 0.78rem;
}
.hv-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.hv-bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  opacity: 0;
  animation: hvStep 0.5s ease forwards;
  animation-delay: var(--d);
}
.hv-bubble.q {
  align-self: flex-end;
  background: var(--navy-700, #24346a);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.hv-bubble.a {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe5f1;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hv-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.hv-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fb2c9;
  animation: blink 1.2s infinite;
}
.hv-typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.hv-typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@media (prefers-reduced-motion: reduce) {
  .hv-bars span,
  .hv-step,
  .hv-bubble,
  .hv-steps .hv-line i,
  .hv-spark polyline,
  .hv-chart__line,
  .hv-chart__area,
  .hv-chart__dot,
  .hv-chart__pulse {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
.page-hero__stats {
  margin-top: 34px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.page-hero__stats .n {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
}
.page-hero__stats .l {
  font-size: 0.8rem;
  color: #8ea3bc;
}

/* ---------- Prose (legal) ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.legal-toc h4 {
  margin-bottom: 12px;
}
.legal-toc a {
  display: block;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--ink-500);
  border-bottom: 1px solid var(--line-2);
}
.legal-toc a:last-child {
  border-bottom: none;
}
.legal-toc a:hover {
  color: var(--gold-600);
}
.prose {
  max-width: 820px;
  min-width: 0;
  overflow-wrap: break-word;
}
.prose h2 {
  margin: 38px 0 13px;
  font-size: 1.5rem;
}
.prose h3 {
  margin: 26px 0 9px;
}
.prose p {
  margin-bottom: 15px;
  color: var(--ink-500);
}
.prose ul {
  margin: 0 0 18px;
  display: grid;
  gap: 9px;
}
.prose ul li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-500);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-grad);
}
.prose .updated {
  display: inline-block;
  padding: 8px 18px;
  background: var(--paper-2);
  border-radius: 50px;
  font-size: 0.84rem;
  color: var(--ink-400);
  margin-bottom: 28px;
}
.prose a {
  color: var(--gold-600);
  text-decoration: underline;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 16px;
}
.contact-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.contact-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-tile .ic {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, #e8edff, #d7e0ff);
  color: var(--gold-600);
  display: grid;
  place-items: center;
}
.contact-tile .ic svg {
  width: 22px;
  height: 22px;
}
.contact-tile h4 {
  margin-bottom: 3px;
}
.contact-tile p {
  font-size: 0.92rem;
}
.map-embed {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  min-height: 260px;
  background: var(--navy-800);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(1.05);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #9fb2c8;
}
/* Footer CTA band */
.footer-cta {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  position: relative;
  overflow: hidden;
}
.footer-cta::after {
  content: "";
  position: absolute;
  top: -60%;
  right: 6%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 169, 65, 0.18),
    transparent 66%
  );
  pointer-events: none;
}
.footer-cta__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 40px 0;
  flex-wrap: wrap;
}
.footer-cta h3 {
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
.footer-cta p {
  color: #b9c8db;
  margin-top: 6px;
  font-size: 1rem;
}
.site-footer > .wrap {
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.1fr;
  gap: 34px;
}
.footer-about p {
  margin: 16px 0;
  font-size: 0.9rem;
  max-width: 340px;
}
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #cdd9e8;
  font-size: 0.9rem;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.footer-mail:hover {
  color: var(--gold-300);
}
.footer-mail svg {
  width: 17px;
  height: 17px;
  color: var(--gold-300);
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #9fb2c8;
  transition:
    color 0.2s,
    padding 0.2s;
}
.footer-col a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}
.socials {
  display: flex;
  gap: 11px;
  margin-top: 4px;
}
.socials a {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: #cdd9e8;
  transition: 0.25s;
}
.socials a:hover {
  background: var(--gold-grad);
  color: #fff;
  transform: translateY(-3px);
}
.socials svg {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  margin-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom__addr {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-bottom__addr svg {
  width: 15px;
  height: 15px;
  color: var(--gold-400);
}
/* ---------- Stories ---------- */
.stories-launcher {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 1096;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #dde4ef, #c3cddd);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.stories-launcher:hover {
  transform: translateY(-3px) scale(1.05);
}
body.nav-lock .stories-launcher,
body[data-chat-open="1"] .stories-launcher,
body[data-popup-open="1"] .stories-launcher {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
.stories-launcher__in {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(10, 16, 32, 0.05);
}
.stories-launcher__in svg {
  width: 32px;
  height: 32px;
}
.stories-launcher.has-unseen {
  background: conic-gradient(
    from 210deg,
    #f0cf82,
    #d9a941,
    #3a51dc,
    #10b981,
    #f0cf82
  );
  animation: storyGlow 2.6s ease-in-out infinite;
}
.stories-launcher.has-unseen::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(240, 207, 130, 0.55);
  animation: storyRipple 2.1s ease-out infinite;
  pointer-events: none;
}
.stories-launcher.pop .stories-launcher__in {
  animation: storyPop 0.9s ease;
}
.stories-launcher__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50px;
  background: var(--amber-grad);
  color: #241905;
  font-size: 0.7rem;
  font-weight: 800;
  display: none;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: var(--shadow-xs);
}
@keyframes storyRipple {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}
@keyframes storyGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(240, 207, 130, 0.45),
      var(--shadow-md);
  }
  50% {
    box-shadow:
      0 0 22px 6px rgba(240, 207, 130, 0.55),
      var(--shadow-md);
  }
}
@keyframes storyPop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.16);
  }
  60% {
    transform: scale(0.93);
  }
  100% {
    transform: scale(1);
  }
}

.stories-viewer {
  position: fixed;
  inset: 0;
  z-index: 1350;
  background: rgba(6, 10, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.stories-viewer.open {
  opacity: 1;
  visibility: visible;
}
.story-stage {
  position: relative;
  width: min(400px, 100%);
  height: min(720px, calc(100dvh - 24px));
  background: #0a1020;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stories-viewer.open .story-stage {
  transform: none;
}
.story-progress {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 5;
}
.story-progress span {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.story-progress span i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 3px;
}
.story-progress span.done i {
  width: 100%;
}
.story-progress span.active i {
  animation: storyFill var(--sdur, 6s) linear forwards;
}
@keyframes storyFill {
  to {
    width: 100%;
  }
}
.story-head {
  position: absolute;
  top: 26px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.story-head .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.story-head .av svg {
  width: 24px;
  height: 24px;
}
.story-head .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-head .nm {
  font-weight: 700;
  font-size: 0.88rem;
}
.story-head .tm {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
}
.story-head .x {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.story-head .x svg {
  width: 18px;
  height: 18px;
}
.story-slide {
  position: absolute;
  inset: 0;
  display: none;
}
.story-slide.on {
  display: block;
  animation: fadeSlide 0.4s ease;
}
@keyframes fadeSlide {
  from {
    opacity: 0;
  }
}
.story-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.78) saturate(1.05);
}
/* Two layers: a flat tint over the whole image + a strong bottom gradient for text legibility. */
.story-slide__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 24, 0.55) 0%,
    rgba(8, 12, 24, 0.28) 26%,
    rgba(8, 12, 24, 0.72) 58%,
    rgba(6, 10, 20, 0.94) 82%,
    rgba(6, 10, 20, 0.99) 100%
  );
}
.story-slide__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 10, 20, 0.5) 34%,
    rgba(6, 10, 20, 0.85) 100%
  );
}
.story-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #f4dd9a;
  margin-bottom: 9px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.story-kicker.gold {
  color: #f4dd9a;
}
.story-slide__content h3 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.46rem;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.story-slide__content p {
  color: #eaf1f8;
  font-size: 0.93rem;
  line-height: 1.58;
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.story-data {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.story-data__price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
}
.story-data__price i {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  margin-left: 2px;
}
.story-chg {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.story-chg.up {
  background: rgba(16, 185, 129, 0.22);
  color: #35d08a;
}
.story-chg.down {
  background: rgba(239, 68, 68, 0.2);
  color: #ff8f8b;
}
.story-chartline {
  width: 100%;
  height: 88px;
  margin-bottom: 14px;
  border-radius: 12px;
}
.story-insight {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  background: rgba(240, 207, 130, 0.12);
  border: 1px solid rgba(240, 207, 130, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #f4e6c4;
}
.story-insight .ic {
  flex-shrink: 0;
}
.story-panel {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.story-quote {
  color: #fff;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.story-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-author .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.story-author .av svg {
  width: 24px;
  height: 24px;
}
.story-author strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}
.story-author small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
}
.story-reply {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.story-reply span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.story-reply span svg {
  width: 18px;
  height: 18px;
}
.story-reply p {
  font-size: 0.84rem;
  color: #cdd9ea;
  line-height: 1.5;
}
.story-reply strong {
  color: #f0cf82;
}
.story-cta {
  margin-top: 14px;
  align-self: stretch;
  text-align: center;
}
.story-nav {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
}
.story-nav .zone {
  flex: 1;
}
.story-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.story-arrow:hover {
  background: rgba(255, 255, 255, 0.26);
}
.story-arrow.prev {
  left: -52px;
}
.story-arrow.next {
  right: -52px;
}
.story-arrow svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 560px) {
  .stories-viewer {
    padding: 0;
  }
  .story-stage {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
  .story-arrow {
    display: none;
  }
  .stories-launcher {
    right: 28px;
    bottom: 94px;
    width: 50px;
    height: 50px;
  }
  .stories-launcher__in svg {
    width: 22px;
    height: 22px;
  }
}

.risk-note {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
}
.risk-note p {
  font-size: 0.76rem;
  color: #6c7f96;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  line-height: 1.6;
}

/* ---------- Modal popup ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(6, 13, 26, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
  overflow-y: auto;
}
.modal-overlay > .modal {
  margin: auto;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  box-shadow: var(--shadow-lg);
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s;
}
.modal-overlay.show .modal {
  transform: none;
  opacity: 1;
}
.modal__aside {
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
.modal__aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.modal__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 13, 26, 0.25) 0%,
    rgba(6, 13, 26, 0.72) 55%,
    rgba(6, 13, 26, 0.96) 100%
  );
}
.modal__aside-in {
  position: relative;
  z-index: 2;
  padding: 34px 32px;
}
.modal__aside .eyebrow {
  color: var(--gold-300);
}
.modal__aside h3 {
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.modal__aside ul {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.modal__aside li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: #eaf0f7;
  align-items: flex-start;
}
.modal__aside li svg {
  width: 17px;
  height: 17px;
  color: var(--gold-300);
  flex-shrink: 0;
  margin-top: 3px;
}
.modal__body .eyebrow {
  color: var(--gold-600);
}
.modal__body {
  padding: 38px 34px;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  background: #fff;
}
.modal__body h3 {
  font-size: 1.45rem;
}
.modal__body .sub {
  color: var(--ink-400);
  font-size: 0.9rem;
  margin: 6px 0 18px;
}
.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-800);
  display: grid;
  place-items: center;
  transition: 0.25s;
  box-shadow: var(--shadow-xs);
}
.modal__close:hover {
  transform: rotate(90deg);
  background: #fff;
}
.modal__close svg {
  width: 17px;
  height: 17px;
}

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-gold);
  transition: transform 0.3s;
}
.chat-fab:hover {
  transform: scale(1.07);
}
.chat-fab svg {
  width: 27px;
  height: 27px;
}
.chat-fab .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.chat-fab.hidden {
  transform: scale(0);
  pointer-events: none;
}
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1150;
  width: 380px;
  max-width: calc(100vw - 28px);
  height: 570px;
  max-height: calc(100vh - 44px);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(22px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transform-origin: bottom right;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.3s,
    visibility 0.3s;
}
.chat-panel.open {
  transform: none;
  opacity: 1;
  visibility: visible;
}
.chat-head {
  background: var(--navy-900);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  flex-shrink: 0;
}
.chat-head .av svg {
  width: 22px;
  height: 22px;
}
.chat-head .av .on {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid var(--navy-900);
}
.chat-head .n {
  font-weight: 700;
  font-family: var(--font-head);
}
.chat-head .s {
  font-size: 0.74rem;
  color: #93a6bd;
}
.chat-head .x {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #cdd9e8;
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.chat-head .x:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 11px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
/* Registration form panel that replaces the conversation */
.chat-form-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 14px;
  background: var(--paper-2);
  animation: msgIn 0.4s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-form-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.chat-form-head {
  text-align: center;
}
.chat-form-badge {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-gold);
}
.chat-form-badge svg {
  width: 21px;
  height: 21px;
}
.chat-form-head h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.chat-form-head p {
  font-size: 0.8rem;
  color: var(--ink-500);
  line-height: 1.45;
}
.chat-form-panel .reg-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-xs);
  gap: 9px;
}
.chat-form-panel .reg-form .row2 {
  gap: 9px;
}
.chat-form-panel .reg-form input {
  padding: 10px 12px;
}
.chat-form-panel .reg-form button[type="submit"] {
  padding: 12px;
}
.chat-form-panel .form-fine {
  font-size: 0.66rem;
  margin-top: 0;
}
.chat-form-panel .iti__country-list {
  max-height: 190px;
}
.chat-msg {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 15px;
  font-size: 0.89rem;
  line-height: 1.5;
  animation: msgIn 0.35s ease;
}
.chat-msg.bot {
  background: #fff;
  color: var(--ink-700, #33415c);
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-xs);
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--navy-800);
  color: #fff;
  border-bottom-right-radius: 5px;
  align-self: flex-end;
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.chat-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 18px 6px;
}
.chat-opts button {
  padding: 9px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--gold-300);
  background: #fff;
  color: var(--navy-800);
  font-size: 0.83rem;
  font-weight: 600;
  transition: 0.2s;
}
.chat-opts button:hover {
  background: var(--gold-grad);
  border-color: transparent;
  color: #fff;
}
.chat-foot {
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-foot .reg-form {
  gap: 9px;
}
.chat-foot .reg-form input {
  padding: 10px 12px;
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 13px 15px;
  background: #fff;
  border-radius: 15px;
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-xs);
  align-self: flex-start;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-400);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}

/* ---------- Page transition loader (self-drawing chart → fade to page) ----------
   Visibility is driven by JS (.pt-done / .pt-leaving) so the page is ALWAYS
   revealed even if CSS animations are throttled (e.g. background tab). */
.pt-loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: radial-gradient(
    130% 100% at 50% 32%,
    #ffffff 0%,
    #f5f7fc 55%,
    #edf0f8 100%
  );
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
}
.pt-loader.pt-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pt-loader.pt-leaving {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease;
}
/* LEAVING a page: show the chart FRAME (grid) + logo instantly, but none of the drawn
   strokes — the destination page shows the identical frame and plays the draw ONCE. */
.pt-loader.pt-leaving .pt-loader__box {
  animation: none;
  opacity: 1;
  transform: none;
}
.pt-loader.pt-leaving .pt-loader__brand {
  animation: none;
  opacity: 1;
  transform: none;
}
.pt-loader.pt-leaving .pt-loader__line {
  animation: none;
} /* stays dashed-out (hidden) */
.pt-loader.pt-leaving .pt-loader__area,
.pt-loader.pt-leaving .pt-loader__dot,
.pt-loader.pt-leaving .pt-loader__pulse {
  animation: none;
  opacity: 0;
}
/* ARRIVING via an internal transition (.pt-cont set from sessionStorage): the frame and
   brand are already "on screen" from the previous page — skip their entrance so the
   sequence reads as ONE continuous animation; only the chart draw plays. */
.pt-loader.pt-cont .pt-loader__box {
  animation: none;
  opacity: 1;
  transform: none;
}
.pt-loader.pt-cont .pt-loader__brand {
  animation: none;
  opacity: 1;
  transform: none;
}
/* Everything enters together as ONE animation: the box (logo + text + chart frame)
   fades in at t=0 while the line/area/dot form a single continuous draw. */
.pt-loader__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 24px;
  animation: ptBox 0.3s ease both;
}
@keyframes ptBox {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pt-loader__chart {
  width: min(480px, 84vw);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 34px rgba(58, 81, 220, 0.16));
}
.pt-loader__grid {
  stroke: rgba(20, 30, 70, 0.13);
  stroke-width: 1;
}
.pt-loader__area {
  fill: url(#ptFill);
  opacity: 0;
  animation: ptArea 0.55s ease 0.18s forwards;
}
.pt-loader__line {
  fill: none;
  stroke: url(#ptStroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ptDraw 0.85s cubic-bezier(0.45, 0, 0.15, 1) forwards;
}
.pt-loader__dot {
  fill: #d9a941;
  opacity: 0;
  animation: ptDot 0.3s ease 0.74s forwards;
}
.pt-loader__pulse {
  fill: #d9a941;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ptPulse 1.4s ease-out 0.78s 2;
}
.pt-loader__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.2px;
  opacity: 0;
  transform: translateY(8px);
  animation: ptBrand 0.45s ease forwards;
}
.pt-loader__brand svg {
  width: 30px;
  height: 30px;
}
@keyframes ptDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ptArea {
  to {
    opacity: 1;
  }
}
@keyframes ptDot {
  to {
    opacity: 1;
  }
}
@keyframes ptPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}
@keyframes ptBrand {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt-loader__box,
  .pt-loader__line,
  .pt-loader__area,
  .pt-loader__dot,
  .pt-loader__brand {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
  .pt-loader__pulse {
    animation: none;
    opacity: 0;
  }
}

/* ---------- Cookie banner (bottom full-width sheet + dim overlay) ---------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0.4s;
}
.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.66);
}
.cookie-modal.show {
  opacity: 1;
  visibility: visible;
}
.cookie-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -20px 60px rgba(6, 10, 20, 0.28);
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  transform: translateY(105%);
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.cookie-modal.show .cookie-card {
  transform: none;
}
.cookie-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-grad);
}
.cookie-card .ic {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--amber-grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-amber);
}
.cookie-card .ic svg {
  width: 27px;
  height: 27px;
}
.cookie-card__txt {
  flex: 1 1 340px;
  min-width: 0;
}
.cookie-card h4 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}
.cookie-card p {
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0;
}
.cookie-card__meta {
  margin-top: 8px !important;
  font-size: 0.8rem !important;
  color: var(--ink-400);
}
.cookie-card p a {
  color: var(--gold-600);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-actions {
  position: relative;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  padding: 12px 22px;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cookie-card {
    gap: 14px;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .btn {
    flex: 1;
  }
}
.cookie-prefs-link {
  display: inline;
  background: none;
  color: var(--gold-600);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}
.cookie-prefs-link:hover {
  color: var(--gold-500);
}
.pref-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.pref-row:last-of-type {
  border-bottom: none;
}
.pref-row h4 {
  margin-bottom: 3px;
}
.pref-row p {
  font-size: 0.83rem;
}
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .track {
  position: absolute;
  inset: 0;
  background: var(--paper-3);
  border-radius: 50px;
  transition: 0.3s;
  cursor: pointer;
}
.switch .track::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: var(--shadow-xs);
}
.switch input:checked + .track {
  background: var(--gold-grad);
}
.switch input:checked + .track::before {
  transform: translateX(20px);
}
.switch input:disabled + .track {
  background: var(--emerald);
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Toasts ---------- */
.toast-wrap {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 1220;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 350px;
  transition: opacity 0.3s ease;
}
/* Never show toasts over the side menu, cookie modal or stories */
body.nav-lock .toast-wrap,
body[data-stories-open="1"] .toast-wrap {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.toast {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-400);
  border-radius: 14px;
  padding: 14px 17px;
  box-shadow: var(--shadow-md);
  transform: translateX(130%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.show {
  transform: none;
}
.toast .ic {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8edff, #d7e0ff);
  color: var(--gold-600);
}
.toast .ic svg {
  width: 19px;
  height: 19px;
}
.toast.up .ic {
  background: #e6f7ef;
  color: var(--emerald-600);
}
.toast .t {
  font-weight: 700;
  color: var(--ink-900);
  font-size: 0.9rem;
}
.toast .m {
  font-size: 0.83rem;
  color: var(--ink-400);
  margin-top: 2px;
}
.toast .x {
  margin-left: auto;
  color: var(--ink-400);
  font-size: 1.05rem;
  line-height: 1;
}

/* ---------- Reveal & scroll progress ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.09s;
}
.reveal.d2 {
  transition-delay: 0.18s;
}
.reveal.d3 {
  transition-delay: 0.27s;
}
.reveal.d4 {
  transition-delay: 0.36s;
}
.scroll-prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gold-grad);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  /* Stack the hero and drop the absolute-positioned form so it never overlaps the phone */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__stage {
    max-width: 460px;
    margin: 0 auto;
    min-height: 0;
  }
  .device,
  .dev-glow {
    display: none;
  }
  .hero-widget {
    display: block;
  }
  .signup-card {
    position: static;
    width: auto;
    margin-top: 0;
    right: auto;
    bottom: auto;
  }
  .hero {
    padding-bottom: 46px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: none;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .footer-cta__in {
    justify-content: center;
    text-align: center;
  }
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-toc {
    position: static;
    min-width: 0;
  }
  .modal {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .modal__aside {
    min-height: 148px;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .modal__body {
    border-radius: 0 0 var(--r-xl) var(--r-xl);
  }
  .modal__aside-in {
    padding: 20px 24px;
  }
  .modal__aside ul {
    display: none;
  }
  .modal__aside h3 {
    font-size: 1.2rem;
  }
}
@media (max-width: 760px) {
  /* backdrop-filter on a fixed header causes scroll jank/flicker on mobile — use an opaque bg */
  .site-header.solid {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 4px 18px rgba(16, 24, 54, 0.08);
  }
  .grid-2,
  .grid-3,
  .split,
  .split.rev .split__media,
  .contact-grid,
  .calc,
  .compare {
    grid-template-columns: 1fr;
  }
  .split.rev .split__media {
    order: 0;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .slider[data-per="3"] .slider__slide,
  .slider[data-per="2"] .slider__slide {
    flex-basis: 100%;
  }
  .toast-wrap {
    top: calc(var(--nav-h) + 10px);
    bottom: auto;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  .cookie-modal {
    padding: 12px;
  }
  .cookie-card {
    padding: 24px 22px 22px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .reg-form .row2 {
    grid-template-columns: 1fr;
  }
  .signup-card {
    position: static;
    width: auto;
    margin-top: 0;
  }
  .device,
  .dev-glow {
    display: none;
  }
  .hero-widget {
    display: block;
  }
  .hero {
    padding-bottom: 44px;
  }
  .hero__grid {
    gap: 40px;
  }
  .hero__stage {
    min-height: 0;
    max-width: 460px;
  }
}
@media (max-width: 480px) {
  .grid-4,
  .metric-grid,
  .stats-band {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
  .hero__chips {
    gap: 22px;
  }
  .chat-panel {
    right: 0;
    bottom: 0;
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    width: 100vw;
    max-width: 100vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
