/* ===============================================================
   ETF INVESTOR FORUM — BOLD edition
   Editorial-luxury amplification: dramatic scale, asymmetry,
   one emerald moment per section, near-OLED depth, no glow.
   Tokens in :root — edit colors/spacing here.
   =============================================================== */

:root {
  --bg:        #060D0B;   /* near-OLED emerald black */
  --bg-2:      #0A1411;
  --surface:   #0E1A16;
  --surface-2: #122520;

  --accent:    #2FD4B0;   /* the single emerald moment */
  --accent-deep:#1FB89A;
  --accent-ink:#04201A;

  --text:      #F4F7F6;
  --text-mut:  #8AA39B;
  --text-dim:  #54695F;
  --hair:      rgba(244, 247, 246, 0.10);
  --hair-accent: rgba(47, 212, 176, 0.28);

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans:    "Space Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(1.5rem, 6vw, 6rem);

  --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }
.about, .stats, .speakers, .partners, .faq, .contact {
  padding-block: clamp(5.5rem, 13vw, 11rem);
}

/* ---- Section index numerals (01–05) — editorial structural anchor ---- */
.section-index {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-index .idx {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--hair-accent);
  letter-spacing: -0.02em;
}
.section-index .idx-label {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
}

.section-head { max-width: 880px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub { color: var(--text-mut); max-width: 50ch; font-size: 1.05rem; margin: 0; }
.section-sub a, .faq__body a { color: var(--accent); }

/* =============================================================
   BUTTONS — architectural, matte, no glow
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-sans);
  font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1em 1.9em;
  border-radius: 5px;                /* soft rounded, not pill / not sharp */
  border: 1px solid transparent;
  transition: background 0.4s var(--spring), color 0.4s var(--spring),
              border-color 0.4s var(--spring), transform 0.4s var(--spring),
              box-shadow 0.4s var(--spring);
}
.btn--lg { padding: 1.15em 2.4em; }

/* Brushed silver / metallic fill with a lighter top edge and dark text */
.btn--accent {
  background: linear-gradient(180deg, #E7EBEA 0%, #D9DDDC 16%, #BAC1BF 62%, #A8AFAD 100%);
  color: #0B0F0E;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.btn--accent:hover {
  background: linear-gradient(180deg, #F2F5F4 0%, #E5E9E8 16%, #C8CFCD 62%, #B6BDBB 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 26px rgba(210, 216, 214, 0.30);
}
.btn--ghost { background: transparent; color: var(--text); border-color: var(--hair); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================================
   NAV — matte, hairline border (no glass blur)
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.9rem var(--gutter);   /* trimmed to keep bar height ~constant after logo bump */
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img { height: 35px; width: auto; }   /* ~25% larger than before (was 28px) */
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.nav__links > a:not(.btn) {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-mut); transition: color 0.3s var(--spring);
}
.nav__links > a:not(.btn):hover { color: var(--accent); }
.nav__links .btn { padding: 0.7em 1.4em; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); transition: transform 0.3s var(--spring), opacity 0.3s var(--spring); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.5rem var(--gutter) 1.6rem; border-top: 1px solid var(--hair); }
.nav__mobile a:not(.btn) { padding: 0.85rem 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; color: var(--text-mut); border-bottom: 1px solid var(--hair); }
.nav__mobile .btn { margin-top: 1rem; }

@media (max-width: 880px) { .nav__links { display: none; } .nav__toggle { display: flex; } }
@media (min-width: 881px) { .nav__mobile { display: none !important; } }

/* =============================================================
   HERO — asymmetric, lower-left anchor, glass bleeds right
   ============================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: #05100D url("../assets/bg-2.jpg") center right / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(6,13,11,0.96) 0%, rgba(6,13,11,0.7) 38%, rgba(6,13,11,0.15) 78%, rgba(6,13,11,0.45) 100%),
    linear-gradient(0deg, rgba(6,13,11,0.95) 0%, rgba(6,13,11,0) 50%);
}
.hero__edge {
  position: absolute; right: clamp(1rem, 3vw, 2.5rem); top: 50%;
  transform: rotate(90deg); transform-origin: right center;
  text-transform: uppercase; letter-spacing: 0.4em; font-size: 0.7rem;
  color: var(--accent); z-index: 2;
}
/* Vertically centred with a bottom-heavy pad so the whole stack sits above centre
   (eyebrow starts higher, generous breathing room beneath the CTA). */
.hero__content { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: clamp(4rem, 9vh, 7rem) var(--gutter) clamp(7rem, 17vh, 12rem); }
.hero__eyebrow {
  display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center;
  text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.7rem;
  font-weight: 500; color: var(--text-mut); margin-bottom: 1.8rem;
}
.hero__eyebrow .dot { color: var(--accent); }

.hero__lockup { margin: 0 0 1.8rem; }
.hero__logo { width: min(640px, 86vw); height: auto; }
.hero__subhead { font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--text-mut); margin: 0 0 2.4rem; font-weight: 300; }
.hero__subhead em { font-style: normal; color: var(--text); }
.hero__actions { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.hero__more { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--text-mut); transition: color 0.3s var(--spring); }
.hero__more:hover { color: var(--accent); }
.hero__more span { color: var(--accent); }

/* =============================================================
   ABOUT — two-column split (text | stat block) with divider rule
   ============================================================= */
.about { background: var(--bg); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }   /* tightened gap to Speakers */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  column-gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

/* Left column */
.about__eyebrow {
  text-transform: uppercase; letter-spacing: 0.32em;
  font-size: 0.7rem; font-weight: 500; color: var(--accent);
  margin: 0 0 1.6rem;
}
.about__headline {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.14; letter-spacing: -0.01em;
  margin: 0 0 1.8rem;
}
.about__headline em { font-style: italic; color: var(--accent); }
.about__body {
  color: var(--text-mut); font-size: 1.02rem; line-height: 1.68;
  max-width: 54ch; margin: 0 0 2.2rem;
}
/* Text-link CTA with an underline rule (not a filled button) */
.about__cta {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 500; color: var(--text);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--hair-accent);
  transition: color 0.3s var(--spring), border-color 0.3s var(--spring);
}
.about__cta:hover { color: var(--accent); border-color: var(--accent); }
.about__cta span { color: var(--accent); }

/* Right column — three stats across, separated by a vertical rule */
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  border-left: 1px solid var(--hair);
  padding-left: clamp(2.5rem, 5vw, 5rem);
}
.astat { display: flex; flex-direction: column; gap: 0.55rem; }
.astat__top {
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.6rem; font-weight: 500; color: var(--accent);
}
.astat__num {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 0.9;
  letter-spacing: -0.01em; color: var(--text);
}
.astat__label {
  font-family: var(--font-display); font-style: italic;
  font-size: 0.95rem; line-height: 1.25; color: var(--text-mut);
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; row-gap: clamp(2.75rem, 7vw, 3.75rem); }
  .about__stats {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--hair); padding-top: clamp(2.25rem, 6vw, 3rem);
  }
}
@media (max-width: 520px) {
  .about__stats { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* =============================================================
   SPEAKERS (02) — featured host + tighter grid; bg bleed
   ============================================================= */
.speakers { background: var(--bg); isolation: isolate; padding-top: clamp(2.5rem, 6vw, 4.5rem); }   /* tightened gap from About */
.speakers__bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(6,13,11,0.8) 60%, var(--bg) 100%), url("../assets/bg-4.jpg") center / cover no-repeat;
}
.section-title em { font-style: italic; }

/* Featured host — dominant */
.speakers__feature {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch; margin-bottom: 1.1rem;
  border: 1px solid var(--hair-accent); border-radius: 4px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  overflow: hidden;
}
.feature__media { position: relative; min-height: 320px; background: radial-gradient(120% 120% at 30% 25%, rgba(47,212,176,0.28) 0%, var(--surface) 60%); display: grid; place-items: center; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__mono { font-family: var(--font-display); font-style: italic; font-size: clamp(3.5rem, 9vw, 6rem); color: var(--accent); }
.feature__body { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.feature__tag { display: inline-block; align-self: flex-start; text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.66rem; font-weight: 600; color: var(--accent-ink); background: var(--accent); padding: 0.35em 0.9em; border-radius: 2px; margin-bottom: 1.4rem; }
.feature__name { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; margin: 0 0 0.6rem; font-weight: 500; }
.feature__title { color: var(--text-mut); font-size: 1.05rem; margin: 0; }
@media (max-width: 700px) { .speakers__feature { grid-template-columns: 1fr; } .feature__media { min-height: 240px; } }

.speakers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 620px) { .speakers__grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; } }

.speaker {
  border: 1px solid var(--hair); border-radius: 4px; padding: 1.4rem 1.3rem 1.5rem;
  background: var(--surface);
  transition: border-color 0.45s var(--spring), transform 0.45s var(--spring), background 0.45s var(--spring);
}
.speaker:hover { border-color: var(--hair-accent); background: var(--surface-2); transform: translateY(-4px); }
.speaker__avatar {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 3px; margin-bottom: 1.1rem;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(130% 130% at 30% 20%, rgba(47,212,176,0.18) 0%, var(--surface-2) 58%);
  border: 1px solid var(--hair);
}
.speaker__avatar img { width: 100%; height: 100%; object-fit: cover; }
.speaker__mono { font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--accent); }
.speaker__name { font-family: var(--font-display); font-size: 1.42rem; font-weight: 500; margin: 0 0 0.3rem; line-height: 1.15; }
.speaker__title { font-size: 1.06rem; color: var(--text-mut); line-height: 1.4; }

/* =============================================================
   PARTNERS (03) — architectural hairline cells, no glow diamonds
   ============================================================= */
.partners { background: var(--bg); }
.partners__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
@media (max-width: 720px) { .partners__grid { grid-template-columns: repeat(2, 1fr); } }
.partner-slot {
  aspect-ratio: 16 / 9; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  display: grid; place-items: center; transition: background 0.4s var(--spring);
}
.partner-slot:hover { background: var(--surface); }
.partner-slot span { font-family: var(--font-display); font-style: italic; color: var(--text-dim); font-size: 1.1rem; transition: color 0.4s var(--spring); }
.partner-slot:hover span { color: var(--accent); }

/* =============================================================
   FAQ (04) — editorial accordion, big hairlines
   ============================================================= */
.faq { background: var(--bg-2); isolation: isolate; }
.faq__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.35; background: linear-gradient(180deg, var(--bg-2) 0%, rgba(6,13,11,0.85) 100%), url("../assets/bg-5.jpg") center / cover no-repeat; }
.faq__list { border-top: 1px solid var(--hair); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.7rem 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 400; transition: color 0.3s var(--spring); }
.faq__item summary:hover .faq__q, .faq__item[open] .faq__q { color: var(--accent); }
.faq__icon { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.35s var(--spring), opacity 0.35s var(--spring); }
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 1.5px; }
.faq__icon::after { left: 9px; top: 0; width: 1.5px; height: 20px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--spring); }
.faq__body > p { overflow: hidden; margin: 0; color: var(--text-mut); max-width: 64ch; font-size: 1.02rem; }
.faq__item[open] .faq__body { grid-template-rows: 1fr; }
.faq__item[open] .faq__body > p { padding-bottom: 1.7rem; }

/* =============================================================
   CONTACT (05) — asymmetric intro + form
   ============================================================= */
.contact { background: var(--bg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.5rem; }
.field label { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.66rem; font-weight: 500; color: var(--text-dim); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--hair); border-radius: 2px;
  color: var(--text); font-family: inherit; font-size: 1rem; padding: 0.95rem 1rem;
  transition: border-color 0.3s var(--spring);
}
.field textarea { resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.contact__form .btn { justify-self: start; margin-top: 0.4rem; }
.contact__success { color: var(--accent); font-family: var(--font-display); font-style: italic; font-size: 1.4rem; margin: 0.4rem 0 0; }

/* =============================================================
   FOOTER — logo-led
   ============================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--hair); padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.9rem; }
.footer__logo img { height: clamp(48px, 8vw, 76px); width: auto; }   /* logo is now the footer anchor */
.footer__kicker { text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.72rem; color: var(--accent); margin: 0; }
.footer__copy { font-size: 0.8rem; color: var(--text-dim); margin: 0.6rem 0 0; }

/* =============================================================
   MOTION — slow, heavy, focal only
   ============================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--spring), transform 1s var(--spring); }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger { opacity: 0; transform: translateY(34px); }
.stagger.is-visible { opacity: 1; transform: none; transition: opacity 1.1s var(--spring), transform 1.1s var(--spring); }
@media (prefers-reduced-motion: reduce) { .reveal, .stagger { opacity: 1; transform: none; } }
