/* ==========================================================================
   Forex Binary — Variation 3: "Onyx Gold Noir"
   Black-lacquer luxury editorial aesthetic, gold foil, diagonal dividers
   ========================================================================== */

:root {
  --onyx: #060606;
  --onyx-deep: #020202;
  --onyx-light: #121212;
  --royal: #2a4dff;
  --royal-light: #5c78ff;
  --gold: #d4af37;
  --gold-light: #f2d488;
  --gold-deep: #96721f;
  --silver: #b8b8bf;
  --white: #f7f5f0;

  --glass-bg: rgba(20, 20, 20, 0.55);
  --glass-border: rgba(212, 175, 55, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 110px; }

body {
  background: var(--onyx-deep);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--gold); color: var(--onyx-deep); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--onyx-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); border-radius: 10px; }

h1, h2, h3, h4, .font-display { font-family: "Cormorant Garamond", "Playfair Display", serif; font-weight: 700; }
.font-ui { font-family: "Inter", sans-serif; }

.bg-app {
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(212, 175, 55, 0.09), transparent),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(42, 77, 255, 0.1), transparent),
    linear-gradient(180deg, var(--onyx-deep), #050505 60%, var(--onyx-deep));
}

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Glossy lacquer cards ---------------- */

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(0,0,0,0.35)), var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  position: relative;
}
.glass::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -20px 30px -20px rgba(0,0,0,0.6);
  pointer-events: none;
}

.glass-blue {
  background: linear-gradient(160deg, rgba(42, 77, 255, 0.14), rgba(0,0,0,0.4));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(92, 120, 255, 0.35);
}

.card-3d { transform-style: preserve-3d; transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
.card-3d:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -18px rgba(0,0,0,0.7), 0 0 0 1px rgba(212, 175, 55, 0.45);
  border-color: rgba(212, 175, 55, 0.5);
}

.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--gold-light), transparent 45%, var(--gold-deep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55; pointer-events: none; transition: opacity 0.35s ease;
}
.glow-border:hover::before { opacity: 1; }

/* ---------------- Text ---------------- */

.text-gold-gradient {
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-hero-gradient {
  background: linear-gradient(100deg, #ffffff 15%, var(--gold-light) 45%, var(--gold-deep) 65%, #ffffff 90%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

.hairline { position: relative; }
.hairline::after {
  content: ""; display: block; width: 64px; height: 2px; margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------------- Glossy foil buttons ---------------- */

.btn-gold {
  position: relative;
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  color: var(--onyx-deep);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  box-shadow: 0 14px 34px -10px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.btn-gold::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 35%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: skewX(-20deg); transition: left 0.7s ease;
}
.btn-gold:hover::before { left: 130%; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(212, 175, 55, 0.7); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--white);
  font-family: "Inter", sans-serif;
  transition: all 0.25s ease;
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.08); border-color: var(--gold-light); transform: translateY(-2px); }

.nav-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 4, 4, 0.75);
}

.nav-shell {
  gap: 1.25rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: min(300px, 50vw);
  min-width: 0;
  text-decoration: none;
  isolation: isolate;
}

.brand-lockup-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(212, 175, 55, 0.16));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-lockup:hover .brand-lockup-img {
  transform: translateY(-1px) scale(1.015);
  filter: drop-shadow(0 18px 28px rgba(212, 175, 55, 0.24));
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 25%, rgba(255,255,255,0.26), transparent 18%),
    conic-gradient(from 20deg, #6f4f12, var(--gold-light), var(--gold), #7e5815, var(--gold-light), #6f4f12);
  box-shadow:
    0 18px 44px -20px rgba(212, 175, 55, 0.9),
    0 0 0 1px rgba(242, 212, 136, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.55);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.brand-mark::before {
  inset: 5px;
  border: 1px solid rgba(3, 3, 3, 0.95);
  box-shadow:
    inset 0 0 0 2px rgba(242, 212, 136, 0.42),
    inset 0 0 24px rgba(0,0,0,0.72);
}

.brand-mark::after {
  inset: -5px;
  border: 1px solid rgba(242, 212, 136, 0.16);
  opacity: 0.72;
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.22);
}

.brand-orbit {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid rgba(242, 212, 136, 0.62);
  border-left-color: transparent;
  border-right-color: transparent;
  filter: drop-shadow(0 0 7px rgba(212,175,55,0.32));
}

.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-deep));
  transform: rotate(45deg);
}

.brand-orbit::before {
  top: -3px;
  left: calc(50% - 2.5px);
}

.brand-orbit::after {
  bottom: -3px;
  left: calc(50% - 2.5px);
}

.brand-core {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.1), transparent 34%),
    radial-gradient(circle at 52% 60%, rgba(42, 77, 255, 0.24), transparent 36%),
    linear-gradient(155deg, #151515, #030303);
  border: 1px solid rgba(242, 212, 136, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -16px 20px -18px rgba(0,0,0,0.9);
}

.brand-core::before {
  content: "";
  position: absolute;
  inset: -36% 30% 40% -28%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.58), transparent);
  transform: rotate(-22deg);
}

.brand-monogram {
  position: relative;
  z-index: 2;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.8),
    0 0 14px rgba(212,175,55,0.38);
}

.brand-gem {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255,255,255,0.82);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(184,184,191,0.84) 42%, rgba(92,120,255,0.32));
  box-shadow: 0 0 10px rgba(255,255,255,0.28);
  transform: translateX(-50%) rotate(45deg);
}

.brand-wordmark {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  color: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1;
}

.brand-name {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.35rem;
  row-gap: 0.08rem;
  align-items: baseline;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name-gold {
  background: linear-gradient(100deg, #fff4cf 0%, var(--gold-light) 28%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 11px rgba(212,175,55,0.22));
}

.brand-tagline {
  color: rgba(184, 184, 191, 0.84);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-lockup-footer {
  width: min(280px, 100%);
}

.brand-logo-wrap {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #050505;
  border: 1px solid rgba(242, 212, 136, 0.48);
  box-shadow:
    0 0 28px rgba(212, 175, 55, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.brand-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

/* ---------------- Diagonal section dividers ---------------- */

.diagonal-top { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); }
.diagonal-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%); }

/* ---------------- Hero canvas + orbs ---------------- */

#network-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.4; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }

.float-y { animation: floatY 6s ease-in-out infinite; }
.float-y-slow { animation: floatY 9s ease-in-out infinite; }
.float-y-delay { animation: floatY 7s ease-in-out infinite; animation-delay: -3s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.pulse-glow { animation: pulseGlow 2.6s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 18px 0 rgba(212, 175, 55, 0.45); }
  50% { box-shadow: 0 0 40px 8px rgba(212, 175, 55, 0.65); }
}

/* ---------------- Coin ---------------- */

.coin-wrap { perspective: 1200px; }
.coin { width: 220px; height: 220px; position: relative; transform-style: preserve-3d; animation: spinCoin 10s linear infinite; }
.coin-face {
  position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden;
  background: radial-gradient(circle at 30% 25%, #fff5da, var(--gold-light) 26%, var(--gold) 56%, var(--gold-deep) 100%);
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.3);
}
.coin-face.back { transform: rotateY(180deg); }
.coin-face span { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 2.8rem; color: var(--onyx-deep); }
@keyframes spinCoin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* ---------------- Marquee ---------------- */

.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Badges ---------------- */

.badge-circle {
  width: 82px; height: 82px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.08), rgba(0,0,0,0.5));
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}
.badge-circle:hover { transform: translateY(-6px) scale(1.06); }

.rank-icon-frame {
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  border-radius: 1.25rem;
  filter:
    drop-shadow(0 18px 26px rgba(0,0,0,0.72))
    drop-shadow(0 0 20px color-mix(in srgb, var(--rank-color), transparent 58%));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.rank-icon-frame::before {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rank-color), transparent 68%), transparent 70%);
  filter: blur(4px);
}

.rank-icon-frame:hover {
  transform: translateY(-6px) scale(1.04);
  filter:
    drop-shadow(0 20px 30px rgba(0,0,0,0.76))
    drop-shadow(0 0 26px color-mix(in srgb, var(--rank-color), transparent 48%));
}

.rank-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.timeline-line { background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent); height: 1px; opacity: 0.6; }

.reveal { opacity: 0; transform: translateY(36px); }

.faq-item .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

.testi-track { display: flex; transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.testi-slide { flex: 0 0 100%; }
@media (min-width: 768px) { .testi-slide { flex: 0 0 50%; } }
@media (min-width: 1024px) { .testi-slide { flex: 0 0 33.3333%; } }

.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: all 0.3s ease; }
.dot.active { background: var(--gold); width: 24px; border-radius: 999px; }

.avatar-ring { background: conic-gradient(from 0deg, var(--gold), var(--gold-deep), var(--gold)); padding: 2px; border-radius: 50%; }
.chip { background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.3); }
.divider-fade { height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.35), transparent); }
.rocket-trail { filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.6)); }

/* ---------------- Premium content upgrades ---------------- */

.hero-stat-row > div:not(.w-px) {
  min-width: 86px;
}

.mini-feature {
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.mini-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 212, 136, 0.5);
  background: linear-gradient(150deg, rgba(212,175,55,0.09), rgba(42,77,255,0.08)), var(--glass-bg);
}

.visual-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 0.35rem;
  background: rgba(212, 175, 55, 0.22);
  box-shadow: 0 24px 70px -38px rgba(212, 175, 55, 0.8);
}

.visual-kpi-strip div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 76px;
  padding: 18px;
  color: var(--gold-light);
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,0.13), transparent 52%),
    rgba(8, 8, 8, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-kpi-strip svg {
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(212,175,55,0.45));
}

.benefit-card,
.reward-card,
.why-card {
  border-radius: 0.35rem !important;
  overflow: hidden;
}

.benefit-card::after,
.reward-card::after,
.why-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -44% auto;
  width: 150px;
  height: 150px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(212,175,55,0.16), transparent 68%);
}

.card-index {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(242, 212, 136, 0.28);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.icon-halo {
  position: relative;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 18px 36px -22px rgba(212,175,55,0.8);
}

.icon-halo::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 120deg, transparent, rgba(212,175,55,0.35), transparent, rgba(42,77,255,0.22), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.card-3d:hover .icon-halo::before {
  opacity: 1;
}

.reward-icon {
  border: 1px solid rgba(212,175,55,0.28);
}

.why-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 0.35rem;
  background: linear-gradient(145deg, rgba(212,175,55,0.12), rgba(42,77,255,0.12));
  border: 1px solid rgba(212,175,55,0.24);
}

.plan-visual {
  max-width: 1080px;
  margin-inline: auto;
}

.plan-visual-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.plan-visual-caption span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: var(--gold-light);
  border: 1px solid rgba(242, 212, 136, 0.28);
  border-radius: 0.35rem;
  background: rgba(4, 4, 4, 0.72);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card-enhanced::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.75), rgba(184,184,191,0.18));
}

.plan-card-enhanced.gold-plan::before,
.plan-card-enhanced.binary-plan::before {
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-deep));
}

.plan-card-enhanced::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 68%);
}

.gold-plan::after,
.binary-plan::after {
  background: radial-gradient(circle, rgba(212,175,55,0.2), transparent 68%);
}

.step-card {
  padding: 24px 18px;
  border: 1px solid rgba(212,175,55,0.16);
  border-radius: 0.35rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(0,0,0,0.36));
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,0.44);
}

.stats-panel {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2,2,2,0.94), rgba(2,2,2,0.74)),
    url("../assets/generated/token-ecosystem.webp") right center / min(46vw, 560px) auto no-repeat,
    var(--glass-bg);
}

.final-join {
  background:
    linear-gradient(180deg, rgba(2,2,2,0.86), rgba(2,2,2,0.96)),
    url("../assets/generated/hero-web3-community.webp") center / cover no-repeat;
}

.final-join::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, rgba(212,175,55,0.17), transparent 38%),
    linear-gradient(90deg, transparent, rgba(42,77,255,0.09), transparent);
}

.faq-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--onyx-deep);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-deep));
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ---------------- Generated HD image panels ---------------- */

.generated-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0.35rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(0,0,0,0.5)), var(--onyx-light);
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow:
    0 32px 80px -34px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.generated-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 24%, transparent 74%, rgba(212,175,55,0.12)),
    radial-gradient(circle at 82% 12%, rgba(242,212,136,0.2), transparent 34%);
  mix-blend-mode: screen;
}

.generated-panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(242, 212, 136, 0.18);
  border-radius: 0.25rem;
}

.generated-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.generated-hero-frame {
  box-shadow:
    0 34px 90px -32px rgba(0, 0, 0, 0.95),
    0 0 70px -18px rgba(212, 175, 55, 0.45);
}

.generated-hero-frame .generated-media {
  object-position: 58% center;
}

.generated-token-frame {
  width: min(100%, 520px);
  margin-inline: auto;
}

.rewards-banner {
  max-width: 1100px;
  margin-inline: auto;
}

.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-square { aspect-ratio: 1 / 1; }

@media (max-width: 767px) {
  .nav-shell {
    padding: 0.9rem 1rem !important;
  }

  .brand-lockup {
    width: min(190px, 56vw);
  }

  #navToggle {
    flex: 0 0 auto;
  }

  .hero-stat-row {
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-stat-row .w-px {
    display: none;
  }

  .mobile-hero-art {
    max-width: 100%;
  }

  .visual-kpi-strip {
    grid-template-columns: 1fr;
  }

  .plan-visual-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: column;
  }

  .plan-visual-caption span {
    min-height: 36px;
    justify-content: center;
    font-size: 0.68rem;
  }

  .stats-panel {
    background:
      linear-gradient(180deg, rgba(2,2,2,0.9), rgba(2,2,2,0.84)),
      url("../assets/generated/token-ecosystem.webp") center bottom / 320px auto no-repeat,
      var(--glass-bg);
    padding-bottom: 220px !important;
  }

  .generated-panel::after { inset: 8px; }

  .rank-icon-frame {
    width: 118px;
    height: 118px;
  }

}

@media (max-width: 359px) {
  .brand-lockup {
    width: min(168px, 54vw);
  }

  .rank-icon-frame {
    width: 106px;
    height: 106px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
