/* =========================================================================
   CBA WORLD — NAV / HERO / INTRO
   ========================================================================= */

/* ---- ANNOUNCEMENT BAR ---- */
.announce-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210;
  height: 34px; overflow: hidden;
  background: var(--ac);
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.announce-track {
  display: inline-flex; white-space: nowrap;
  animation: announceScroll 26s linear infinite;
  height: 100%; align-items: center;
}
.announce-track span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 26px;
  font-size: 11px; letter-spacing: .14em; font-weight: 700; color: #0b0012;
}
.announce-track span::after { content: "✦"; opacity: .6; }
@keyframes announceScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,2,14,.72), rgba(7,2,14,0));
  border-bottom: 1px solid var(--line-soft);
}
.nav-brand { display: flex; align-items: center; gap: 12px; perspective: 600px; }
.nav-brand .coin { width: 34px; height: 34px; }
.nav-brand span {
  font-family: var(--f-display); font-size: 20px; letter-spacing: .04em; color: #fff;
}
.nav-right { display: flex; align-items: center; gap: clamp(10px, 2vw, 30px); }
.nav-links { display: flex; align-items: center; gap: clamp(14px,3vw,32px); }
.nav-links a {
  font-size: 12px; letter-spacing: .22em; color: #cdbbe0; font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: #fff; }

.cur-toggle {
  display: flex; align-items: center;
  border: 1px solid rgba(176,38,255,.3);
  border-radius: 2px;
  overflow: hidden;
}
.cur-toggle button {
  padding: 7px 11px;
  font-size: 11px; letter-spacing: .06em; font-weight: 700;
  border: none; background: transparent; color: #cdbbe0;
  transition: all .2s ease;
}
.cur-toggle button.active { background: var(--ac); color: #0b0012; }

.bag-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(176,38,255,.4);
  border-radius: 2px;
  background: rgba(176,38,255,.08);
  color: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.bag-btn:hover { background: rgba(176,38,255,.18); border-color: var(--ac2); }
.bag-btn span { font-size: 12px; letter-spacing: .16em; font-weight: 600; }

.nav-burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid rgba(176,38,255,.3);
  border-radius: 50%;
  background: rgba(176,38,255,.08);
  position: relative;
}
.nav-burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: #fff;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 24px; }

@media (max-width: 860px) {
  .nav-links-desktop { display: none; }
  .nav-burger { display: inline-flex; }
}

.mobile-drawer {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(5,0,9,.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.mobile-drawer.open { opacity: 1; visibility: visible; }
.mobile-drawer a { font-family: var(--f-display); font-size: 30px; text-transform: uppercase; }
.mobile-drawer-close {
  position: absolute; top: 22px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(176,38,255,.3); background: var(--panel); color: #fff;
}

/* ---- HERO ---- */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}
.hero-parallax {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--f-display);
  font-size: min(32vw, 440px);
  line-height: .8;
  color: rgba(176,38,255,.045);
  letter-spacing: .02em;
  white-space: nowrap;
  z-index: 0; pointer-events: none; user-select: none;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; opacity: .9; }
.hero-kicker .ln { width: 34px; height: 1px; }
.hero-kicker .ln.l { background: linear-gradient(90deg, transparent, var(--ac2)); }
.hero-kicker .ln.r { background: linear-gradient(90deg, var(--ac2), transparent); }
.hero-kicker span.label { font-size: 11px; letter-spacing: .42em; color: var(--ac2); font-weight: 500; }

.hero-globe-wrap { animation: floatY 7s ease-in-out infinite; margin-bottom: 30px; perspective: 1100px; }
.hero-globe {
  position: relative;
  width: min(330px, 64vw); height: min(330px, 64vw);
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}
.hero-globe-glow {
  position: absolute; inset: -38%; border-radius: 50%;
  background: radial-gradient(circle, var(--ac) 0%, transparent 62%);
  filter: blur(34px); opacity: .55;
  animation: glowPulse 5s ease-in-out infinite;
}
.hero-globe-rings { position: absolute; inset: -12%; transform-style: preserve-3d; }
.ring-a { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ac); opacity: .55; transform: rotateX(74deg); animation: spin 17s linear infinite; }
.ring-b { position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed var(--ac2); opacity: .5; transform: rotateX(68deg); animation: spinB 24s linear infinite; }
.ring-c { position: absolute; inset: -7%; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); transform: rotateX(82deg); animation: spinC 32s linear infinite; }
.ring-dot { position: absolute; inset: 0; animation: orbitDot 17s linear infinite; transform: rotateX(74deg); }
.ring-dot span { position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ac2); box-shadow: 0 0 14px var(--ac2); }
.hero-globe-logo { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: coinSpin 7s linear infinite; }
.hero-globe-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; filter: drop-shadow(0 14px 40px rgba(176,38,255,.45)); }
.hero-globe-logo img.back { transform: rotateY(180deg); }

.hero h1 { font-size: clamp(52px,12vw,160px); letter-spacing: .01em; margin: 0; text-transform: uppercase; }
.hero-sub { margin: 22px 0 0; font-size: clamp(13px,1.6vw,17px); letter-spacing: .3em; color: #d9c9ee; font-weight: 500; }
.hero-latin { margin: 8px 0 0; font-style: italic; font-size: 13px; letter-spacing: .08em; color: #7b6c92; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.scroll-cue span { font-size: 10px; letter-spacing: .3em; color: #6b5c82; }
.scroll-cue svg { animation: scrollBob 1.8s ease-in-out infinite; }

/* ---- INTRO OVERLAY ---- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 50%, #10041f 0%, #060009 70%, #000 100%);
  transition: opacity .9s ease;
  padding: 20px;
}
.intro.leaving { opacity: 0; pointer-events: none; }
.intro-globe-wrap { perspective: 1100px; }
.intro-globe {
  position: relative;
  width: min(260px, 52vw); height: min(260px, 52vw);
  opacity: 0; transform: scale(.4) rotateY(-130deg);
  transition: transform 1.2s cubic-bezier(.16,1,.3,1), opacity 1.2s ease;
  transform-style: preserve-3d;
}
.intro-globe.in { opacity: 1; transform: scale(1) rotateY(0deg); }
.intro-glow {
  position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(circle, var(--ac) 0%, transparent 62%);
  filter: blur(34px); opacity: 0; transition: opacity 1.3s ease;
}
.intro-glow.in { opacity: 1; }
.intro-rings {
  position: absolute; inset: -12%; opacity: 0; transform: scale(.6);
  transition: opacity 1s ease, transform 1s cubic-bezier(.16,1,.3,1);
  transform-style: preserve-3d;
}
.intro-rings.in { opacity: 1; transform: scale(1); }
.intro-rings .ring-a { animation: spin 16s linear infinite; }
.intro-rings .ring-b { animation: spinB 22s linear infinite; inset: 7%; }
.intro-rings .ring-dot { animation: orbitDot 16s linear infinite; }
.intro-logo { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.intro-logo.spin { animation: coinSpin 6s linear infinite; }
.intro-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; filter: drop-shadow(0 10px 36px rgba(176,38,255,.5)); }
.intro-logo img.back { transform: rotateY(180deg); }

.intro-words {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 0 18px; margin-top: 42px;
  font-family: var(--f-display); text-transform: uppercase; perspective: 600px;
}
.intro-words span {
  opacity: 0; transform: translateY(28px) rotateX(50deg); filter: blur(6px);
  transition: all .6s cubic-bezier(.2,.7,.2,1);
  font-size: clamp(28px,7.5vw,78px); color: #fff;
}
.intro-words span.in { opacity: 1; transform: translateY(0) rotateX(0deg); filter: blur(0); }
.intro-words span.outline { font-size: clamp(36px,9.5vw,108px); color: transparent; -webkit-text-stroke: 2px var(--ac2); }

.intro-tag {
  opacity: 0; transform: translateY(14px); transition: all .7s ease;
  margin-top: 14px; font-style: italic; font-size: 13px; letter-spacing: .16em; color: #7b6c92;
}
.intro-tag.in { opacity: 1; transform: translateY(0); }

.intro-enter {
  opacity: 0; transform: translateY(14px); transition: all .6s ease;
  margin-top: 38px;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 38px;
  background: var(--ac); color: #0b0012;
  font-weight: 700; font-size: 13px; letter-spacing: .24em;
  border: none; border-radius: 2px;
  box-shadow: 0 12px 44px -8px var(--ac);
}
.intro-enter.in { opacity: 1; transform: translateY(0); }
.intro-enter:hover { transform: translateY(-3px); box-shadow: 0 20px 56px -8px var(--ac); }

.intro-hint {
  opacity: 0; transition: opacity .8s ease;
  margin-top: 18px; font-size: 10px; letter-spacing: .34em; color: #5e5076;
  animation: flick 3s infinite;
}
.intro-hint.in { opacity: 1; }
