/* ASCEND 3 Landing — cinematic one-page gateway */

:root {
  --a3-cyan: #3ee8ff;
  --a3-purple: #9b5cff;
  --a3-green: #2ee6a8;
  --a3-silver: #d8e4f0;
  --a3-glow: rgba(62, 232, 255, 0.35);
  --a3-card: rgba(12, 14, 22, 0.82);
  --a3-border: rgba(155, 92, 255, 0.28);
  --jlm-gold: #d4af37;
  --nav-h: 64px;
}

body.landing-page {
  background: #000;
  background-image: none;
}

/* ── Intro curtain（純黑淡出，Home logo 才是進場主角）── */
.landing-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.landing-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.landing-intro__pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(62, 232, 255, 0.4);
  box-shadow: 0 0 30px rgba(155, 92, 255, 0.35);
  animation: a3-pulse 1.1s ease-in-out infinite;
}
@keyframes a3-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ── Sticky nav ── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0 clamp(16px, 4vw, 40px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.landing-nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(62, 232, 255, 0.12);
}
.landing-nav__brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--a3-silver);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.landing-nav__brand-core {
  color: var(--a3-silver);
}
.landing-nav__brand-gateway {
  font-size: 0.78em;
  letter-spacing: 0.16em;
  background: linear-gradient(90deg, #9b5cff, #3ee8ff 48%, #2ee6a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing-nav__links {
  display: none;
  gap: clamp(12px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: center;
}
@media (min-width: 900px) {
  .landing-nav__links { display: flex; }
}
.landing-nav__links a {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216, 228, 240, 0.65);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
.landing-nav__links a:hover {
  color: var(--a3-cyan);
  text-shadow: 0 0 12px var(--a3-glow);
}
.landing-nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 3;
}
.landing-nav .lang-switcher-in-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.landing-nav .lang-switcher-in-header .lang-btn {
  font-size: 0.65rem;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: rgba(216, 228, 240, 0.5);
  cursor: pointer;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}
.landing-nav .lang-switcher-in-header .lang-btn.active {
  color: var(--a3-cyan);
}
.landing-nav .lang-switcher-in-header .lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.65rem;
}

/* ── Hero ── */
.landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 24px) 20px 48px;
  overflow: hidden;
  text-align: center;
}
.landing-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.landing-hero__rays {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 3;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.landing-hero__rays.is-ready {
  opacity: 0.9;
}
.landing-hero__aurora {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: min(52vh, 420px) !important;
  z-index: 1;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.4s ease 0.2s;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
}
.landing-hero__aurora.is-ready {
  opacity: 0.42;
}
.landing-hero__aurora canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  background: transparent !important;
}
.landing-hero__rays canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  background: transparent !important;
}
.landing-hero__nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: a3-drift 18s ease-in-out infinite alternate;
}
.landing-hero__nebula--1 {
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  top: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(46, 230, 168, 0.35), transparent 70%);
}
.landing-hero__nebula--2 {
  width: 50vw;
  height: 50vw;
  max-width: 480px;
  max-height: 480px;
  bottom: 5%;
  right: -8%;
  background: radial-gradient(circle, rgba(155, 92, 255, 0.4), transparent 70%);
  animation-delay: -6s;
}
.landing-hero__nebula--3 {
  width: 40vw;
  height: 40vw;
  max-width: 360px;
  max-height: 360px;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(62, 232, 255, 0.2), transparent 70%);
  animation-delay: -12s;
}
@keyframes a3-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -18px) scale(1.08); }
}
.landing-hero__ring {
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 0;
  width: 62%;
  aspect-ratio: 1 / 1;
  height: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(62, 232, 255, 0.08);
  border-radius: 50%;
  animation: a3-spin 40s linear infinite;
  pointer-events: none;
}
.landing-hero__ring::before {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(155, 92, 255, 0.1);
  border-radius: 50%;
}
@keyframes a3-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.landing-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Hero logo — transparent PNG; light rays render above via mix-blend-mode */
.landing-hero__visual {
  position: relative;
  width: min(92vw, 640px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: auto;
}
.landing-hero__logo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.landing-hero__logo-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent;
  opacity: 1;
  transform: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}
@keyframes a3-hero-in {
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes a3-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.landing-hero__explore {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 5vh, 44px);
  padding-left: 0.28em;
  color: var(--a3-cyan);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: clamp(0.58rem, 1.6vw, 0.72rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: a3-fade-up 0.9s ease 1.05s forwards;
  max-width: 92vw;
  text-align: center;
  line-height: 1.5;
}
.landing-hero__explore-arrow {
  font-size: 1.2rem;
  animation: a3-bounce 2s ease-in-out infinite;
}
@keyframes a3-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Sections ── */
.landing-main {
  position: relative;
  z-index: 1;
}
.landing-section {
  padding: clamp(56px, 10vw, 96px) clamp(16px, 4vw, 40px);
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.landing-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.landing-section__head {
  margin-bottom: clamp(24px, 4vw, 36px);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.landing-section__title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a3-silver);
  margin: 0 0 6px;
}
.landing-section__lead {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
  letter-spacing: 0.04em;
}
.landing-section--jlm .landing-section__title {
  color: var(--jlm-gold);
}
.landing-powered-badge {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--a3-cyan);
  border: 1px solid rgba(62, 232, 255, 0.35);
  background: rgba(62, 232, 255, 0.06);
  box-shadow: 0 0 20px rgba(155, 92, 255, 0.12);
}

/* ── Grids ── */
.landing-grid {
  display: grid;
  gap: 14px;
}
.landing-grid--social {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.landing-grid--community {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.landing-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.landing-grid--partners {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.landing-grid--exchanges {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

/* ── Cards ── */
.landing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 20px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--a3-card);
  text-decoration: none;
  color: inherit;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.22s, box-shadow 0.25s;
}
.landing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 232, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.landing-card:hover {
  border-color: rgba(62, 232, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(62, 232, 255, 0.08);
}
.landing-card:hover::before { opacity: 1; }
.landing-card--wide {
  flex-direction: row;
  align-items: stretch;
  min-height: 140px;
  text-align: left;
  padding: 0;
}
.landing-card--wide .landing-card__icon {
  flex: 0 0 38%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.landing-card--wide .landing-card__body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.landing-card--community {
  min-height: 160px;
  padding: 28px 20px;
}
.landing-card--community .landing-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.landing-card--discord .landing-card__icon {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
}
.landing-card--telegram .landing-card__icon {
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.3);
}
.landing-card--jlm:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 175, 55, 0.1);
}
.landing-card--jlm::before {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}
.landing-card__name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
}
.landing-card__desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.45;
}
.landing-card__kicker {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(62, 232, 255, 0.65);
}
.landing-section--jlm .landing-card__kicker {
  color: rgba(212, 175, 55, 0.7);
}
.landing-card--unset {
  opacity: 0.45;
  cursor: not-allowed;
}
.landing-card--unset:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.09);
}

.landing-excard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--a3-card);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color 0.22s, transform 0.18s, box-shadow 0.22s;
}
.landing-excard:hover {
  border-color: rgba(62, 232, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.landing-excard__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.landing-excard__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.landing-excard__name {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.landing-excard__promo {
  font-size: 0.58rem;
  color: rgba(62, 232, 255, 0.75);
}
.landing-excard--unset {
  opacity: 0.45;
  cursor: not-allowed;
}
.landing-excard--unset:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.09);
}

.landing-footer {
  text-align: center;
  padding: 48px 20px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* stagger children when section visible */
.landing-section.is-visible .landing-card,
.landing-section.is-visible .landing-excard {
  animation: a3-card-in 0.55s ease backwards;
}
.landing-section.is-visible .landing-card:nth-child(1),
.landing-section.is-visible .landing-excard:nth-child(1) { animation-delay: 0.05s; }
.landing-section.is-visible .landing-card:nth-child(2),
.landing-section.is-visible .landing-excard:nth-child(2) { animation-delay: 0.1s; }
.landing-section.is-visible .landing-card:nth-child(3),
.landing-section.is-visible .landing-excard:nth-child(3) { animation-delay: 0.15s; }
.landing-section.is-visible .landing-card:nth-child(4),
.landing-section.is-visible .landing-excard:nth-child(4) { animation-delay: 0.2s; }
.landing-section.is-visible .landing-card:nth-child(5),
.landing-section.is-visible .landing-excard:nth-child(5) { animation-delay: 0.25s; }
.landing-section.is-visible .landing-card:nth-child(6),
.landing-section.is-visible .landing-excard:nth-child(6) { animation-delay: 0.3s; }
@keyframes a3-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-intro,
  .landing-hero__logo-img,
  .landing-hero__explore,
  .landing-hero__explore,
  .landing-hero__nebula,
  .landing-hero__aurora,
  .landing-hero__ring,
  .landing-section,
  .landing-card,
  .landing-excard {
    animation: none !important;
    transition: none !important;
  }
  .landing-intro.is-done { display: none; }
  .landing-hero__logo-img,
  .landing-hero__explore,
  .landing-hero__explore,
  .landing-hero__aurora.is-ready,
  .landing-section.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .landing-card--wide {
    flex-direction: column;
  }
  .landing-card--wide .landing-card__icon {
    flex: none;
    width: 100%;
    min-height: 100px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

/* Mobile nav drawer */
.landing-nav__menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  -webkit-tap-highlight-color: transparent;
}
.landing-nav__menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(216, 228, 240, 0.9);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-drawer-open .landing-nav__menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-drawer-open .landing-nav__menu-btn span:nth-child(2) {
  opacity: 0;
}
body.nav-drawer-open .landing-nav__menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.landing-nav__drawer {
  position: fixed;
  top: var(--nav-h, 64px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 18px 20px 32px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.landing-nav__drawer[hidden] {
  display: none !important;
}
.landing-nav__drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.landing-nav__drawer-links a {
  display: block;
  padding: 14px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216, 228, 240, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-nav__drawer-links a:hover,
.landing-nav__drawer-links a.is-active {
  color: var(--a3-cyan);
}
@media (max-width: 899px) {
  .landing-nav__menu-btn {
    display: flex;
  }
  .landing-nav__brand {
    font-size: clamp(0.62rem, 2.8vw, 0.78rem);
    letter-spacing: 0.12em;
    gap: 0.28em;
  }
  .landing-nav__right {
    gap: 8px;
  }
}
@media (min-width: 900px) {
  .landing-nav__drawer,
  .landing-nav__menu-btn {
    display: none !important;
  }
  body.nav-drawer-open {
    overflow: auto;
  }
}
body.nav-drawer-open {
  overflow: hidden;
}
body.nav-drawer-open .hub-panel {
  overflow: hidden !important;
}
