/* =========================================================
   FIC — QSS Finance & Investment Club  ·  v2 (dark, motion)
   ========================================================= */

:root {
  --bg-0: #030B1A;          /* deepest */
  --bg-1: #05132B;
  --navy: #071B3B;          /* brand primary */
  --navy-700: #0D2A57;
  --white: #FFFFFF;
  --sky: #A8C8F0;           /* brand accent */
  --sky-strong: #4A86E8;
  --text: #EAF1FB;
  --text-2: rgba(234, 241, 251, .68);
  --text-3: rgba(234, 241, 251, .45);
  --line: rgba(168, 200, 240, .12);
  --line-2: rgba(168, 200, 240, .22);
  --glass: rgba(168, 200, 240, .035);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-0);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--sky); color: var(--navy); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  padding: 10px 16px; background: var(--white); color: var(--navy);
  font-weight: 600; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- Global FX ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 250;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-strong), var(--sky));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  box-shadow: 0 0 12px rgba(168, 200, 240, .6);
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 2;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 134, 232, .09), transparent 65%);
  pointer-events: none;
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  mix-blend-mode: screen;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* Spotlight fill + border that follows the cursor inside cards */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(74, 134, 232, .16), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.spot::after {
  content: "";
  position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 200, 240, .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- Logo ---------- */
.logo { height: 28px; width: auto; color: var(--white); --logo-gap: var(--bg-1); --logo-accent: var(--sky-strong); }
.logo--footer { height: 52px; --logo-gap: var(--bg-0); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sky);
}
.eyebrow__num {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 11px; letter-spacing: .08em; color: var(--text-2);
}

.section-title {
  margin-top: 20px;
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--white);
}
.section-title em,
.shimmer {
  font-style: italic;
  font-weight: 800;
  padding-right: .08em;
  background: linear-gradient(100deg, var(--sky) 0%, #FFFFFF 30%, var(--sky-strong) 55%, var(--sky) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

.section-intro { max-width: 440px; font-size: 17px; color: var(--text-2); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(168, 200, 240, .06);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sky);
}
.pill__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.pill__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--sky); animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .35s var(--ease), color .35s, border-color .35s, box-shadow .4s var(--ease), transform .35s var(--ease-out);
  will-change: transform;
}
.btn--sm { --pad-y: 10px; --pad-x: 20px; font-size: 12px; }
.btn--lg { --pad-y: 18px; --pad-x: 34px; }
.btn--xl { --pad-y: 24px; --pad-x: 54px; font-size: 16px; }

.btn--light {
  background: linear-gradient(180deg, #FFFFFF, #DCE8F8);
  color: var(--navy);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 10px 40px -10px rgba(168, 200, 240, .6);
}
.btn--light:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 16px 60px -8px rgba(168, 200, 240, .85); }

.btn--ghost, .btn--dark {
  border-color: var(--line-2);
  background: rgba(168, 200, 240, .05);
  color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--ghost:hover, .btn--dark:hover {
  border-color: rgba(168, 200, 240, .55);
  background: rgba(168, 200, 240, .12);
  box-shadow: 0 10px 40px -14px rgba(74, 134, 232, .7);
}
.btn__icon {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease);
}
.btn:hover .btn__icon { transform: translate(2px, -2px); }

/* ---------- Navigation (floating glass pill) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: 16px;
  pointer-events: none;
  transition: transform .5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav__inner {
  pointer-events: auto;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1180px;
  padding: 0 10px 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(5, 19, 43, .62);
  border-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .8);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand-text {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); padding-left: 14px; border-left: 1px solid var(--line-2);
  line-height: 1.3; max-width: 140px;
}
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a:not(.btn) {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .25s, background .25s;
}
.nav__links a:not(.btn):hover { color: var(--white); background: rgba(168, 200, 240, .07); }
.nav__links a.is-active { color: var(--white); background: rgba(168, 200, 240, .1); }
.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none; position: relative;
  width: 46px; height: 46px; background: rgba(168, 200, 240, .06);
  border: 1px solid var(--line-2); border-radius: 50%;
}
.nav__toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--white);
  transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 78% 45%, rgba(74, 134, 232, .16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(168, 200, 240, .07), transparent 70%),
    var(--bg-1);
  padding: 140px 0 150px;
  cursor: crosshair;
}
.hero__chart { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid, .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 200, 240, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 200, 240, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 25%, transparent 85%);
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 19, 43, .8) 0%, rgba(5, 19, 43, .4) 38%, transparent 62%),
              linear-gradient(0deg, var(--bg-1) 0%, transparent 22%);
}
.hero__content { position: relative; z-index: 2; pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }

.hero__title {
  margin-top: 30px;
  font-size: clamp(50px, 8.6vw, 128px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
  color: var(--white);
}
.hero__title .line { display: block; }
.hero__title .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 .1em .06em 0; margin-right: -.1em;
}
.hero__title .w > * {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  animation: wordUp 1.1s var(--ease-out) forwards;
  animation-delay: calc(.15s + var(--i) * .09s);
}
.hero__title .shimmer {
  animation: wordUp 1.1s var(--ease-out) forwards, shimmer 7s linear infinite;
  animation-delay: calc(.15s + var(--i) * .09s), 0s;
}
@keyframes wordUp { to { transform: none; } }

.hero__in {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) forwards;
  animation-delay: calc(.15s + var(--i) * .09s);
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__subtitle {
  margin-top: 34px; max-width: 540px;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2);
}
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Trading HUD */
.hud {
  position: absolute; z-index: 2;
  right: clamp(20px, 4vw, 48px); bottom: 104px;
  width: 248px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(5, 19, 43, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.hud__head { display: flex; justify-content: space-between; align-items: center; }
.hud__sym { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--white); }
.hud__sym span { color: var(--text-3); margin: 0 2px; }
.hud__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.hud__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 8px var(--sky); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hud__price { margin-top: 10px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--white); line-height: 1.1; }
.hud__chg { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--sky); transition: color .3s; }
.hud__chg.is-down { color: #8FA3C4; }
.hud__spark { margin-top: 12px; width: 100%; height: 40px; overflow: visible; }
.hud__spark path { fill: none; stroke: var(--sky); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hud__hint {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-3);
}

.hero__ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(3, 11, 26, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ticker__track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker__track span {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 20px 30px 20px 0;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}
.ticker__track span::before {
  content: ""; width: 0; height: 0; margin-left: 12px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid var(--sky);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(100px, 13vw, 170px) 0; z-index: 1; }
.section--light { background: var(--bg-0); }
.section--dark { background: var(--bg-1); overflow: hidden; }
.section--dark .container { position: relative; z-index: 1; }
.section--dark::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 90%); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.section-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px 48px; margin-bottom: clamp(52px, 6vw, 80px);
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.4fr; gap: 48px 90px; align-items: start; }
.about__lead {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--white);
}
.about__lead .word { opacity: .16; transition: opacity .35s linear; }
.about__lead .word.on { opacity: 1; }

.mission {
  margin-top: clamp(64px, 9vw, 110px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.mission__card {
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  overflow: hidden;
}
.mission__card:hover { transform: translateY(-6px); }
.mission__index {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: 50%;
  font-size: 13px; font-weight: 700; color: var(--sky);
}
.mission__card h3 { margin-top: 40px; font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -.04em; color: var(--white); }
.mission__card p { margin-top: 10px; color: var(--text-2); font-size: 16px; max-width: 280px; }
.mission__spark {
  margin-top: 30px; width: 100%; height: 48px;
  fill: none; stroke: var(--sky); stroke-width: 1.6;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.6s var(--ease) .3s;
  filter: drop-shadow(0 0 6px rgba(168, 200, 240, .5));
  overflow: visible;
}
.mission__card.is-visible .mission__spark { stroke-dashoffset: 0; }

/* ---------- Mega marquee ---------- */
.mega {
  position: relative; z-index: 1;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) 0;
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mega__track { display: flex; width: max-content; will-change: transform; }
.mega__track span {
  padding-right: .45em;
  font-size: clamp(64px, 11vw, 168px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.mega__track span.o {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(168, 200, 240, .55);
}

/* ---------- Activities ---------- */
.activities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.activity {
  padding: 38px 34px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(168, 200, 240, .05), rgba(168, 200, 240, .015));
}
.activity:hover { transform: translateY(-6px); }
.activity__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(168, 200, 240, .06);
  color: var(--sky);
  transition: transform .5s var(--ease-out), background .4s, color .4s, box-shadow .4s;
}
.activity__icon svg, .partner__icon svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.activity:hover .activity__icon {
  transform: translateY(-4px) rotate(-6deg);
  background: var(--sky); color: var(--navy);
  box-shadow: 0 12px 30px -8px rgba(168, 200, 240, .7);
}
.activity h3 { margin-top: 36px; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--white); }
.activity p { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.activity__num {
  position: absolute; top: 38px; right: 34px;
  font-size: 13px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums;
}

/* ---------- Events ---------- */
.tabs {
  display: inline-flex; padding: 5px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass);
}
.tab {
  padding: 10px 22px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-2); font-size: 14px; font-weight: 600; transition: background .3s, color .3s;
}
.tab.is-active { background: var(--white); color: var(--navy); }
.tab:not(.is-active):hover { color: var(--white); }

.notice {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px; padding: 14px 18px;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  font-size: 14.5px; color: var(--text-2);
}
.notice strong { color: var(--white); }
.notice svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; }

.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event {
  display: flex; flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.event:hover { transform: translateY(-6px); }
.event__top { display: flex; align-items: center; justify-content: space-between; }
.badge {
  padding: 5px 11px; border: 1px solid rgba(168, 200, 240, .4); border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky);
}
.event__type { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.event__title { margin-top: 30px; font-size: 23px; font-weight: 700; line-height: 1.22; letter-spacing: -.025em; color: var(--white); }
.event__meta { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.event__meta li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.event__meta svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.event__desc { margin-top: 18px; font-size: 15px; color: var(--text-2); flex: 1; }
.event__btn, .event__ended { margin-top: 28px; align-self: flex-start; }
.event__ended { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.events__empty {
  grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--text-3);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
}

/* ---------- Join ---------- */
.join {
  position: relative; z-index: 1; overflow: hidden;
  padding: clamp(130px, 17vw, 220px) 0;
  background: var(--bg-0);
  text-align: center;
}
.join__chart { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.join::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(1000px, 130vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 134, 232, .22), transparent 62%);
  pointer-events: none;
}
.join__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.join__title {
  margin-top: 28px;
  font-size: clamp(44px, 8.4vw, 124px);
  font-weight: 900; line-height: .92; letter-spacing: -.055em; text-transform: uppercase; color: var(--white);
}
.join__title .shimmer { font-weight: 900; }
.join__text { margin: 30px auto 0; max-width: 560px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); }
.join .btn { margin-top: 52px; }
.join__note { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* ---------- Partnerships ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.partner:hover { transform: translateY(-6px); }
.partner__icon {
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(180deg, rgba(168, 200, 240, .2), rgba(168, 200, 240, .06));
  border: 1px solid var(--line-2); color: var(--sky);
}
.partner h3 { margin-top: 28px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--white); }
.partner p { margin-top: 10px; font-size: 15px; color: var(--text-2); }

.partner-cta {
  position: relative; overflow: hidden;
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 40px 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(74, 134, 232, .22), transparent 60%),
    var(--bg-1);
}
.partner-cta h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.03em; color: var(--white); }
.partner-cta p { margin-top: 6px; color: var(--text-2); }
.partner-cta .btn--dark, .form__footer .btn--dark { background: var(--white); color: var(--navy); border-color: var(--white); }
.partner-cta .btn--dark:hover, .form__footer .btn--dark:hover { box-shadow: 0 16px 50px -10px rgba(168, 200, 240, .8); }

.partner-form-wrap {
  margin-top: 20px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  animation: fadeDown .6s var(--ease-out);
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text); }
.field__opt { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px;
  font: inherit; font-size: 15.5px; color: var(--white);
  background: rgba(3, 11, 26, .55);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8C8F0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field select option { background: var(--bg-1); color: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky); background: rgba(3, 11, 26, .8);
  box-shadow: 0 0 0 4px rgba(168, 200, 240, .12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #F08A8A; }
.field__error { min-height: 18px; margin-top: 6px; font-size: 13px; color: #F4A3A3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__footer { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__status { font-size: 14.5px; font-weight: 500; }
.form__status.is-success { color: #8EE0B5; }
.form__status.is-error { color: #F4A3A3; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--glass);
}
.member:hover { transform: translateY(-6px); }
.member__photo {
  position: relative; aspect-ratio: 4 / 3.5;
  display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(rgba(168, 200, 240, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(168, 200, 240, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(circle at 50% 40%, rgba(74, 134, 232, .25), transparent 60%),
    var(--bg-1);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform .8s var(--ease-out); }
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.05); }
.member__photo span {
  width: 108px; height: 108px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: rgba(5, 19, 43, .6);
  font-size: 30px; font-weight: 700; letter-spacing: .04em; color: var(--sky);
  transition: transform .6s var(--ease-out);
}
.member:hover .member__photo span { transform: scale(1.08); }
.member__body { padding: 24px 26px 26px; border-top: 1px solid var(--line); }
.member h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--white); }
.member__role { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px 90px; }
.contact__intro .section-intro { margin-top: 24px; }
.contact__list { border-top: 1px solid var(--line); }
.contact__item {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 8px 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease-out);
}
.contact__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(168, 200, 240, .08), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.contact__item:not(.contact__item--static):hover { padding-left: 18px; }
.contact__item:not(.contact__item--static):hover::before { transform: scaleX(1); }
.contact__label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.contact__value { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--white); }
.contact__arrow {
  width: 22px; height: 22px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease-out);
}
.contact__item:hover .contact__arrow { transform: translate(4px, -4px); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--bg-0); padding: 90px 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 48px; align-items: start;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.footer__name { margin-top: 22px; font-weight: 700; color: var(--white); }
.footer__tag { margin-top: 6px; color: var(--sky); font-size: 14.5px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 48px; }
.footer__nav a { font-size: 14.5px; color: var(--text-2); transition: color .2s; }
.footer__nav a:hover { color: var(--white); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; color: var(--text);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out);
}
.footer__social a:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: 13.5px; color: var(--text-3); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(36px); filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
/* Once revealed, cards get a quick hover lift */
.spot { transition: transform .5s var(--ease-out); }
.js .spot.reveal.is-visible { transition: opacity 1s var(--ease-out), filter 1s var(--ease-out), transform .5s var(--ease-out); transition-delay: 0s; }
.js .spot.reveal.is-visible:hover { transform: translateY(-6px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  max-width: calc(100% - 40px); padding: 14px 22px;
  background: var(--white); color: var(--navy); border-radius: 999px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .7);
  font-size: 14.5px; font-weight: 600;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__brand-text { display: none; }
  .nav__links a:not(.btn) { padding: 8px 10px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .activities, .events, .team { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; }
  .hud { width: 220px; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__inner { margin: 0 12px; padding: 0 9px 0 20px; width: auto; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    padding: 110px clamp(24px, 6vw, 48px) 48px;
    background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(74, 134, 232, .2), transparent 60%), var(--bg-0);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open .nav__inner { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__links a:not(.btn) {
    padding: 6px 0; background: none !important;
    font-size: clamp(34px, 9vw, 48px); font-weight: 800; letter-spacing: -.04em; color: var(--white);
    transform: translateY(24px); opacity: 0;
    transition: transform .6s var(--ease-out), opacity .6s var(--ease-out), color .2s;
  }
  .nav__links a.is-active { color: var(--sky); }
  .nav.is-open .nav__links a:not(.btn) { transform: none; opacity: 1; }
  .nav.is-open .nav__links a:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__links a:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav__links a:nth-child(5) { transition-delay: .2s; }
  .nav.is-open .nav__links a:nth-child(6) { transition-delay: .25s; }
  .nav__cta { margin: 30px 0 0; --pad-y: 18px; --pad-x: 34px; font-size: 14px; }
  .nav__brand { position: relative; z-index: 2; }

  .about { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; }
  .hud { display: none; }
  .hero { align-items: flex-end; padding-bottom: 130px; }
  .hero__veil { background: linear-gradient(0deg, rgba(5, 19, 43, .92) 0%, rgba(5, 19, 43, .55) 55%, transparent 85%); }
}

@media (max-width: 640px) {
  .hero__actions .btn { width: 100%; }
  .activities, .events, .team, .partners, .form__grid { grid-template-columns: 1fr; }
  .activity { padding: 32px 26px 36px; }
  .activity__num { top: 32px; right: 26px; }
  .event { padding: 26px; }
  .partner-cta { padding: 30px 26px; }
  .partner-cta .btn, .form__footer .btn, .join .btn { width: 100%; }
  .contact__item { grid-template-columns: 1fr auto; padding: 22px 0; }
  .contact__label { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, auto); }
}

body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .hero__title .w > *, .hero__in { transform: none; opacity: 1; }
  .about__lead .word { opacity: 1; }
}

/* Team: centred rows so an uneven count (e.g. 5) stays balanced */
.team { display: flex; flex-wrap: wrap; justify-content: center; }
.team .member { flex: 0 1 calc((100% - 40px) / 3); }
@media (max-width: 1100px) { .team .member { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .team .member { flex-basis: 100%; } }

/* ---------- Team bios (revealed on hover / focus / tap) ---------- */
.member { cursor: default; outline: none; }
.member:focus-visible { box-shadow: 0 0 0 2px var(--sky); }
.member__initials { transition: transform .6s var(--ease-out), opacity .4s; }
.member__bio {
  position: absolute; inset: auto 0 0 0;
  padding: 60px 26px 24px;
  background: linear-gradient(0deg, rgba(3, 11, 26, .96) 0%, rgba(3, 11, 26, .85) 55%, transparent 100%);
  font-size: 15.5px; line-height: 1.5; font-weight: 500; color: var(--text);
  opacity: 0; transform: translateY(24px);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
}
.member__bio::before {
  content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px;
  background: var(--sky); border-radius: 2px; box-shadow: 0 0 10px var(--sky);
}
.member:hover .member__bio, .member:focus-within .member__bio { opacity: 1; transform: none; }
.member:hover .member__initials, .member:focus-within .member__initials { transform: translateY(-40px) scale(.8); opacity: .35; }
.member__role { line-height: 1.5; }

/* ---------- Events: coming soon panel ---------- */
.soon {
  position: relative; overflow: hidden;
  min-height: 420px;
  display: flex; align-items: center;
  padding: clamp(40px, 6vw, 80px);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse 50% 80% at 85% 30%, rgba(74, 134, 232, .2), transparent 60%),
    linear-gradient(rgba(168, 200, 240, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(168, 200, 240, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg-1);
}
.soon__chart {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 55%;
  pointer-events: none;
}
.soon__line {
  fill: none; stroke: var(--sky); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  filter: drop-shadow(0 0 8px rgba(168, 200, 240, .7));
  animation: soonDraw 5s var(--ease) infinite;
}
.soon__area { opacity: .9; }
@keyframes soonDraw {
  0% { stroke-dashoffset: 900; }
  55%, 80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.soon__content { position: relative; z-index: 1; max-width: 620px; }
.soon__title {
  margin-top: 24px;
  font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -.045em; color: var(--white);
}
.soon__title em {
  font-style: italic; padding-right: .08em;
  background: linear-gradient(100deg, var(--sky) 0%, #FFFFFF 30%, var(--sky-strong) 55%, var(--sky) 80%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
.soon__text { margin-top: 20px; max-width: 520px; font-size: 17px; color: var(--text-2); }
.soon__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.js .soon.reveal.is-visible:hover { transform: none; }
@media (max-width: 640px) {
  .soon { min-height: 0; padding: 36px 24px 120px; }
  .soon__actions .btn { width: 100%; white-space: normal; }
}

/* ---------- Language switcher ---------- */
.nav__links { margin-left: auto; }
.lang {
  position: relative; z-index: 2;
  display: inline-flex; gap: 2px; padding: 3px; margin-left: 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(168, 200, 240, .05);
}
.lang button {
  border: 0; background: transparent;
  padding: 6px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--text-2);
  transition: background .25s, color .25s;
}
.lang button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.lang button:not([aria-pressed="true"]):hover { color: var(--white); }
@media (max-width: 1240px) { .nav__brand-text { display: none; } }
@media (min-width: 901px) and (max-width: 1240px) { .nav__links a:not(.btn) { padding: 8px 10px; font-size: 13.5px; } }
@media (max-width: 900px) {
  .lang { margin-left: auto; margin-right: 8px; }
  .lang button { padding: 7px 10px; }
}

/* Longer RU / KZ words: keep nav on one line and the hero headline on two */
.nav__links a { white-space: nowrap; }
html:not([lang="en"]) .nav__brand-text { display: none; }
html[lang="ru"] .hero__title,
html[lang="kk"] .hero__title { font-size: clamp(40px, 7.3vw, 108px); }
html[lang="ru"] .join__title,
html[lang="kk"] .join__title { font-size: clamp(36px, 6.6vw, 100px); }
@media (min-width: 901px) and (max-width: 1180px) {
  html:not([lang="en"]) .nav__links a:not(.btn) { padding: 8px 7px; font-size: 13px; }
  html:not([lang="en"]) .nav__cta { --pad-x: 14px; }
}
