/* ═══════════════════════════════════════════════════════════
   UFC WHITE HOUSE — Presidential Octagon Theme
   ═══════════════════════════════════════════════════════════ */

:root {
  --red: #c8102e;
  --red-bright: #ff1a3c;
  --red-glow: rgba(200, 16, 46, 0.55);
  --white: #f5f5f0;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --navy: #0a0e1a;
  --navy-mid: #111827;
  --navy-light: #1a2235;
  --blue-patriot: #002868;
  --octagon: #c8102e;
  --glass: rgba(10, 14, 26, 0.72);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Background Layers ── */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200, 16, 46, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 40, 104, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #060810 0%, var(--navy) 40%, #0d1220 100%);
}

.bg-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 45%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 40%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 55%, rgba(255,255,255,0.3) 0%, transparent 100%);
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.bg-spotlight {
  position: absolute;
  width: 200%;
  height: 120%;
  top: -20%;
  left: -50%;
  background: conic-gradient(from 0deg at 50% 0%,
    transparent 0deg,
    rgba(255,255,255,0.03) 30deg,
    transparent 60deg,
    rgba(200,16,46,0.04) 120deg,
    transparent 150deg,
    rgba(255,255,255,0.02) 220deg,
    transparent 260deg);
  animation: spotlight-rotate 20s linear infinite;
}

@keyframes spotlight-rotate {
  to { transform: rotate(360deg); }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,16,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
}

.bg-octagon-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpolygon points='60,5 110,35 110,85 60,115 10,85 10,35' fill='none' stroke='%23c8102e' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

/* ── Floating Particles ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0;
  animation: float-up linear infinite;
}

.particle img { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(200,16,46,0.4)); }

@keyframes float-up {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) rotate(360deg) scale(1); opacity: 0; }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 16, 46, 0.25);
  transition: box-shadow 0.3s, padding 0.3s;
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(200, 16, 46, 0.15);
  padding: 0.5rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red);
  object-fit: cover;
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50% { box-shadow: 0 0 20px 4px var(--red-glow); }
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.nav-title span { color: var(--red-bright); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(245, 245, 240, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red-bright);
  transition: width 0.3s, left 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 60%; left: 20%; }

.nav-cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
  box-shadow: 0 0 20px var(--red-glow);
  animation: cta-glow 2s ease-in-out infinite alternate;
}

.nav-cta::after { display: none !important; }

@keyframes cta-glow {
  from { box-shadow: 0 0 15px var(--red-glow); }
  to { box-shadow: 0 0 30px rgba(200, 16, 46, 0.8); }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Ticker ── */
.ticker {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(90deg, var(--red) 0%, #8b0000 50%, var(--red) 100%);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  padding: 0 2rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-item img { width: 16px; height: 16px; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Sections Common ── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-label img { width: 20px; height: 20px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--white) 30%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(245, 245, 240, 0.65);
  max-width: 600px;
  margin-bottom: 3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7.5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-octagon {
  position: absolute;
  width: min(85vw, 620px);
  height: min(85vw, 620px);
  top: 50%;
  left: 28%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.85;
}

.hero-octagon svg {
  width: 100%;
  height: 100%;
  animation: octagon-spin 60s linear infinite;
}

.hero-octagon .oct-ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  opacity: 0.22;
}

.hero-octagon .oct-ring-2 {
  stroke: var(--gold);
  opacity: 0.12;
  animation: octagon-spin 40s linear infinite reverse;
}

@keyframes octagon-spin {
  to { transform: rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero-copy {
  text-align: left;
  max-width: 640px;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
}

.hero-logo {
  width: clamp(200px, 22vw, 280px);
  height: clamp(200px, 22vw, 280px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--red);
  box-shadow:
    0 0 40px var(--red-glow),
    0 0 80px rgba(201, 162, 39, 0.2),
    inset 0 0 30px rgba(0,0,0,0.5);
  animation: hero-logo-float 4s ease-in-out infinite;
}

.hero-logo-ring {
  position: absolute;
  inset: -18px;
  border: 2px dashed rgba(201, 162, 39, 0.4);
  border-radius: 50%;
  animation: ring-spin 12s linear infinite;
}

@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.4);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1.25rem;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { border-color: rgba(200, 16, 46, 0.4); }
  50% { border-color: rgba(200, 16, 46, 0.9); box-shadow: 0 0 20px var(--red-glow); }
}

.hero-badge img { width: 18px; height: 18px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin-bottom: 0.35rem;
  display: flex;
  flex-direction: column;
}

.hero-title .ufc {
  color: var(--red-bright);
  text-shadow: 0 0 40px var(--red-glow);
}

.hero-title .wh { color: var(--white); }

.hero-symbol {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-bio {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(245, 245, 240, 0.85);
  max-width: 560px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.hero-bio img.inline-emoji {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  display: inline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-ca {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 0.85rem 1.1rem;
}

.hero-stats-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.hero-stats-side .stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
}

.hero-stats-side .stat-value {
  font-size: 1.75rem;
}

.hero-stats-side .stat-label {
  font-size: 0.65rem;
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn img, .btn svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  color: var(--white);
  box-shadow: 0 4px 25px var(--red-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(200, 16, 46, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  border-color: var(--gold);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  box-shadow: 0 4px 25px rgba(201, 162, 39, 0.35);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(201, 162, 39, 0.5);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--red-bright);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.5);
  margin-top: 0.25rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 245, 240, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── About ── */
.about {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.6) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text {
  font-size: 1.05rem;
  color: rgba(245, 245, 240, 0.8);
  line-height: 1.85;
}

.about-text p { margin-bottom: 1.25rem; }

.about-text strong {
  color: var(--gold-light);
  font-weight: 600;
}

.about-text .emoji-row {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.about-text .emoji-row img {
  width: 32px;
  height: 32px;
  animation: emoji-bob 2s ease-in-out infinite;
}

.about-text .emoji-row img:nth-child(2) { animation-delay: 0.3s; }
.about-text .emoji-row img:nth-child(3) { animation-delay: 0.6s; }
.about-text .emoji-row img:nth-child(4) { animation-delay: 0.9s; }

@keyframes emoji-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.fight-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fight-card {
  background: var(--glass);
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.fight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--red-bright), var(--gold));
}

.fight-card:hover {
  transform: translateX(8px);
  border-color: rgba(200, 16, 46, 0.5);
  box-shadow: -8px 0 30px rgba(200, 16, 46, 0.15);
}

.fight-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.5rem;
}

.fight-card-fighters {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.fight-card-vs {
  color: var(--gold);
  font-size: 1rem;
  margin: 0 0.3rem;
}

.fight-card-desc {
  font-size: 0.85rem;
  color: rgba(245, 245, 240, 0.55);
  margin-top: 0.5rem;
}

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hashtag {
  background: rgba(0, 40, 104, 0.4);
  border: 1px solid rgba(0, 40, 104, 0.6);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(245, 245, 240, 0.8);
  transition: background 0.2s, transform 0.2s;
}

.hashtag:hover {
  background: rgba(200, 16, 46, 0.3);
  border-color: var(--red);
  transform: scale(1.05);
}

/* ── How to Buy ── */
.howtobuy {
  position: relative;
}

.howtobuy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--red), transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--white);
  box-shadow: 0 0 15px var(--red-glow);
}

.step:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 16, 46, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0.5rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img { width: 100%; height: 100%; object-fit: contain; }

.step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.step p {
  font-size: 0.9rem;
  color: rgba(245, 245, 240, 0.6);
  line-height: 1.6;
}

.howtobuy-cta {
  text-align: center;
  margin-top: 3rem;
}

.contract-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(201, 162, 39, 0.4);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  max-width: 100%;
}

.contract-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.contract-address {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: rgba(245, 245, 240, 0.8);
  word-break: break-all;
}

.copy-btn {
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  white-space: nowrap;
}

.copy-btn:hover { background: rgba(201, 162, 39, 0.3); }
.copy-btn.copied { background: rgba(0, 200, 100, 0.2); border-color: #00c864; color: #00c864; }

/* ── Chart ── */
.chart-section {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 40, 104, 0.08) 50%, transparent 100%);
}

.chart-wrapper {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.chart-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.3), rgba(0, 136, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-header-left img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.chart-header-left span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.chart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #00d4aa;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.chart-link:hover { color: #00ffcc; }

.chart-iframe-wrap {
  position: relative;
  width: 100%;
  height: 600px;
}

.chart-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 240, 0.5);
  gap: 1rem;
}

.chart-placeholder img { width: 48px; opacity: 0.5; }

/* ── Join Us ── */
.joinus {
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem;
}

.joinus-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.joinus-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.joinus-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 16, 0.85) 0%, rgba(6, 8, 16, 0.7) 40%, rgba(6, 8, 16, 0.92) 100%),
    radial-gradient(ellipse at center, rgba(200, 16, 46, 0.15) 0%, transparent 70%);
}

.joinus-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.joinus .section-title {
  font-size: clamp(3rem, 8vw, 5rem);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.joinus-desc {
  font-size: 1.15rem;
  color: rgba(245, 245, 240, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.social-link img, .social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(200, 16, 46, 0.2);
  border-color: var(--red);
  box-shadow: 0 8px 30px var(--red-glow);
}

.social-link.x-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.joinus-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.joinus-emojis {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.joinus-emojis img {
  width: 40px;
  height: 40px;
  animation: emoji-bob 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(200, 16, 46, 0.5));
}

.joinus-emojis img:nth-child(odd) { animation-delay: 0.5s; }

/* ── Footer ── */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.footer p {
  font-size: 0.8rem;
  color: rgba(245, 245, 240, 0.35);
  letter-spacing: 0.05em;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.7rem !important;
  color: rgba(245, 245, 240, 0.25) !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
    max-width: 100%;
  }

  .hero-octagon {
    left: 50%;
    top: 38%;
    opacity: 0.45;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-ca {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(6, 8, 16, 0.97);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    border-bottom: 1px solid rgba(200, 16, 46, 0.2);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a { padding: 0.85rem 1rem; width: 100%; }

  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .ticker { top: 68px; }

  section { padding: 4rem 1.25rem; }

  .steps { grid-template-columns: 1fr; }

  .hero-stats { gap: 1.5rem; }

  .hero {
    padding: 6.5rem 1.25rem 3rem;
  }

  .hero-logo {
    width: min(220px, 58vw);
    height: min(220px, 58vw);
  }

  .hero-stats-side {
    max-width: 420px;
  }

  .hero-title {
    align-items: center;
  }

  .contract-box {
    flex-direction: column;
    text-align: center;
  }

  .chart-iframe-wrap { height: 450px; }
  .chart-placeholder { height: 450px; }
}
