/* =====================================================================
   pages.css — shared styling for the interior pages (About, Contact,
   Global Investors Program, Online Verification). Reuses the tokens,
   fonts and chrome (navbar/footer) defined in styles.css. Loaded only
   by the subpage layout, so the homepage is untouched.
   ===================================================================== */

/* ---------- Static chrome: navbar always visible, brand pinned ---------- */
/* The homepage animates the brand from centre into the pill; interior pages
   skip that and render the resting state directly. */
.brand.is-static {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: calc(30px + env(safe-area-inset-left, 0px));
  height: 72px;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 60;
}
.brand.is-static .brand__link {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  text-decoration: none;
}
.brand.is-static .sitenav__mark {
  position: static;
  height: 48px;
  width: auto;
}
.brand.is-static .sitenav__name {
  position: static;
  transform: none;
  font-size: 22px;
  line-height: 1.02;
  text-align: center;
  letter-spacing: .05em;
}



/* Current page marker in the nav */
.navbar__link.is-current { color: var(--gold-2); }
.navbar__btn.is-current { box-shadow: 0 0 0 2px rgba(255, 230, 89, .35); }

@media (max-width: 768px) {
  .brand.is-static { top: calc(7px + env(safe-area-inset-top, 0px)); left: calc(22px + env(safe-area-inset-left, 0px)); height: 60px; }
  .brand.is-static .sitenav__mark { height: 36px; }
  .brand.is-static .sitenav__name { font-size: 16px; letter-spacing: .04em; }
}

/* ---------- Page shell ---------- */
.page {
  position: relative;
  overflow-x: clip;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.section { position: relative; padding: clamp(56px, 9vh, 120px) 0; }
.section--tight { padding: clamp(40px, 6vh, 80px) 0; }

/* Soft gold aura, same recipe as the homepage sections */
.aura {
  position: absolute;
  left: 50%;
  top: 4%;
  width: min(960px, 130vw);
  aspect-ratio: 1.5 / 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%,
      rgba(216, 176, 98, .12) 0%, rgba(169, 124, 48, .05) 42%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Page hero ---------- */
.phero {
  position: relative;
  text-align: center;
  padding: clamp(140px, 20vh, 220px) 0 clamp(48px, 8vh, 96px);
  overflow: hidden;
}
.phero__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.phero__eyebrow {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(24px, 4.6vw, 48px);
  line-height: 1;
  margin: 0 0 .14em;
  color: #fff;
}
.phero__title {
  font-family: 'Sonder', Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 7vw, 92px);
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 52%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.phero__lead {
  margin: 1.3em auto 0;
  max-width: 680px;
  color: #c4ccd8;
  font-family: 'Ovelion', sans-serif;
  font-size: clamp(15px, 1.9vw, 20px);
  line-height: 1.65;
}
.phero__grad {
  /* faint radial floor glow behind the hero */
  position: absolute;
  left: 50%;
  top: -20%;
  width: min(1200px, 160vw);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 30%,
      rgba(216, 176, 98, .14) 0%, rgba(169, 124, 48, .04) 40%, transparent 66%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Section heads ---------- */
.shead { text-align: center; max-width: 760px; margin: 0 auto clamp(34px, 5vh, 60px); position: relative; z-index: 1; }
.shead--left { text-align: left; margin-left: 0; }
.shead__eyebrow {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 14px;
}
.shead__title {
  font-family: 'Sonder', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.06;
  margin: 0;
  color: #f4f1ea;
}
.shead__title .g {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 52%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.shead__sub {
  margin: 1.1em auto 0;
  max-width: 620px;
  color: #93a3b8;
  font-family: 'Ovelion', sans-serif;
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.65;
}
.shead--left .shead__sub { margin-left: 0; }

/* ---------- Glass card ---------- */
.card {
  position: relative;
  background: rgba(6, 9, 15, .6);
  border: 1px solid rgba(169, 124, 48, .18);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  transition: border-color .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover {
  border-color: rgba(216, 176, 98, .42);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(216, 176, 98, .06);
}
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 230, 89, .16), rgba(173, 128, 58, .12));
  border: 1px solid rgba(216, 176, 98, .28);
  color: var(--gold-1);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title {
  font-family: 'Sonder', Georgia, serif;
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.2;
  margin: 0 0 10px;
  color: #f4f1ea;
}
.card__text {
  margin: 0;
  color: #93a3b8;
  font-family: 'Ovelion', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sonder', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #0c0f16;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 26px -8px rgba(216, 176, 98, .5); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid rgba(169, 124, 48, .5);
}
.btn--ghost:hover {
  background: rgba(216, 176, 98, .08);
  color: var(--gold-1);
  box-shadow: none;
  border-color: rgba(216, 176, 98, .7);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-row--left { justify-content: flex-start; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
  position: relative;
  z-index: 1;
}
.stat {
  text-align: center;
  padding: clamp(20px, 2.6vw, 30px) 14px;
  border-radius: 18px;
  background: rgba(6, 9, 15, .5);
  border: 1px solid rgba(169, 124, 48, .16);
}
.stat__num {
  font-family: 'Sonder', Georgia, serif;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  margin-top: 10px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8a93a2;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split feature (image/text or text/text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.lead-body {
  color: #b7bfcc;
  font-family: 'Ovelion', sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
}
.lead-body p { margin: 0 0 1.1em; }
.lead-body p:last-child { margin-bottom: 0; }

/* Checklist */
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #c4ccd8;
  font-family: 'Ovelion', sans-serif;
  font-size: 15.5px;
  line-height: 1.5;
}
.checks svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold-2); margin-top: 1px; }

/* ---------- Steps (how it works) ---------- */
.steps { counter-reset: step; display: grid; gap: clamp(16px, 2.4vw, 26px); }
.steps--row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps--row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps--row { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: rgba(6, 9, 15, .55);
  border: 1px solid rgba(169, 124, 48, .16);
  border-radius: 20px;
  padding: clamp(22px, 2.8vw, 32px) clamp(20px, 2.4vw, 28px);
  transition: border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.step:hover { border-color: rgba(216, 176, 98, .38); transform: translateY(-4px); }
.step__num {
  counter-increment: step;
  font-family: 'Sonder', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #0c0f16;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  margin-bottom: 16px;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__title {
  font-family: 'Sonder', Georgia, serif; font-weight: 400;
  font-size: clamp(17px, 2vw, 21px); margin: 0 0 8px; color: #f4f1ea;
}
.step__text { margin: 0; color: #93a3b8; font-family: 'Ovelion', sans-serif; font-size: 14px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  text-align: center;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 60px);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(216, 176, 98, .10), transparent 60%),
    rgba(6, 9, 15, .7);
  border: 1px solid rgba(169, 124, 48, .28);
  overflow: hidden;
}
.cta__title {
  font-family: 'Sonder', Georgia, serif; font-weight: 400;
  font-size: clamp(26px, 4.4vw, 46px); line-height: 1.08; margin: 0;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 52%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.cta__text {
  margin: 1em auto 1.7em; max-width: 560px; color: #b7bfcc;
  font-family: 'Ovelion', sans-serif; font-size: clamp(14px, 1.7vw, 17px); line-height: 1.65;
}

/* =====================================================================
   LIGHT THEME — interior pages
   ===================================================================== */
/* Soft auras are tuned for dark navy; on porcelain they need a deeper amber
   tint at low alpha to register at all. */
html.light .aura {
  background: radial-gradient(circle at 50% 40%,
      rgba(176, 138, 46, .14) 0%, rgba(143, 111, 34, .06) 42%, transparent 70%);
}
html.light .phero__grad {
  background: radial-gradient(circle at 50% 30%,
      rgba(176, 138, 46, .16) 0%, rgba(143, 111, 34, .05) 40%, transparent 66%);
}
html.light .phero__eyebrow { color: var(--lt-ink); }
html.light .phero__lead { color: var(--lt-body); }
html.light .shead__eyebrow { color: var(--gold-2); }
html.light .shead__title { color: var(--lt-ink); }
html.light .shead__sub { color: var(--lt-mute); }
/* Cards: creamy-white surface, hairline bronze border, layered warm shadow —
   translucent white over ivory had no separation and read flat. */
html.light .card {
  background: var(--lt-surface);
  border-color: var(--lt-border);
  box-shadow: var(--lt-shadow);
}
html.light .card:hover {
  border-color: var(--lt-border-hover);
  box-shadow: 0 1px 2px rgba(70, 55, 20, .05), 0 20px 44px -20px rgba(70, 55, 20, .28);
}
html.light .card__icon {
  background: linear-gradient(135deg, rgba(176, 138, 46, .16), rgba(110, 84, 23, .1));
  border-color: rgba(143, 111, 34, .4);
  color: var(--gold-3);
}
html.light .card__title { color: var(--lt-ink); }
html.light .card__text { color: var(--lt-mute); }
html.light .stat {
  background: var(--lt-surface);
  border-color: var(--lt-border);
  box-shadow: var(--lt-shadow);
}
html.light .stat__label { color: #626b78; }
html.light .lead-body { color: var(--lt-body); }
html.light .checks li { color: #37404e; }
html.light .step {
  background: var(--lt-surface);
  border-color: var(--lt-border);
  box-shadow: var(--lt-shadow);
}
html.light .step:hover { border-color: var(--lt-border-hover); }
html.light .step__title { color: var(--lt-ink); }
html.light .step__text { color: var(--lt-mute); }
/* Gold-gradient fills turn bronze in light — dark glyphs on bronze fail
   contrast; flip them to white. */
html.light .btn { color: #fff; }
html.light .step__num { color: #fff; }
html.light .btn:hover { box-shadow: 0 10px 26px -8px rgba(110, 84, 23, .45); }
html.light .cta {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(176, 138, 46, .12), transparent 60%),
    rgba(255, 253, 248, .8);
  border-color: rgba(143, 111, 34, .4);
  box-shadow: var(--lt-shadow);
}
html.light .cta__text { color: var(--lt-body); }
html.light .btn--ghost {
  color: var(--gold-3);
  border-color: rgba(110, 84, 23, .55);
  background: transparent;
}
html.light .btn--ghost:hover {
  background: rgba(143, 111, 34, .1);
  color: var(--gold-3);
  border-color: rgba(110, 84, 23, .75);
}
