/* Viking Row Lead — Cinematic Norse Experience */

:root {
  --navy: #060e1a;
  --navy-mid: #0f1f38;
  --navy-light: #1a3055;
  --red: #ba0c2f;
  --red-bright: #e31837;
  --red-dark: #7a0820;
  --white: #f0ece4;
  --cream: #d4c9b0;
  --gold: #d4a843;
  --gold-bright: #f0c850;
  --gold-dim: #8b6914;
  --storm: #0a1628;
  --lightning: #b8e0ff;
  --text-muted: #7a8da8;
  --glass: rgba(15, 31, 56, 0.65);
  --glass-border: rgba(212, 168, 67, 0.2);
  --glow-red: rgba(227, 24, 55, 0.5);
  --glow-gold: rgba(212, 168, 67, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: default;
}

body.loaded .loader { opacity: 0; pointer-events: none; }

/* ─── LOADER ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  transition: opacity 0.8s var(--ease-out);
}

.loader-inner { text-align: center; }

.loader-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 40px var(--glow-gold), 0 0 80px var(--glow-red);
  animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px var(--glow-gold); }
  50% { transform: scale(1.05); box-shadow: 0 0 60px var(--glow-red); }
}

.loader-runes {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
  font-size: 1.5rem;
  color: var(--gold);
}

.loader-runes span {
  animation: rune-bounce 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.15s);
  opacity: 0.4;
}

.loader-runes span:nth-child(1) { --i: 0; }
.loader-runes span:nth-child(2) { --i: 1; }
.loader-runes span:nth-child(3) { --i: 2; }
.loader-runes span:nth-child(4) { --i: 3; }
.loader-runes span:nth-child(5) { --i: 4; }

@keyframes rune-bounce {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-8px); }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--navy-light);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  animation: load-bar 1.8s var(--ease-out) forwards;
}

@keyframes load-bar { to { width: 100%; } }

/* ─── CURSOR GLOW ─── */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 24, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body.loaded .cursor-glow { opacity: 1; }

@media (hover: none) { .cursor-glow { display: none; } }

/* ─── BACKGROUND ─── */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.png') center/cover no-repeat;
  opacity: 0.15;
  transform: scale(1.1);
  animation: bg-ken-burns 30s ease-in-out infinite alternate;
}

@keyframes bg-ken-burns {
  from { transform: scale(1.1) translate(0, 0); }
  to { transform: scale(1.2) translate(-1%, -1%); }
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(26, 48, 85, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(186, 12, 47, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, rgba(6, 14, 26, 0.95) 30%, var(--navy) 100%);
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lightning-bolt {
  position: absolute;
  width: 3px;
  opacity: 0;
  background: linear-gradient(180deg, transparent 0%, var(--lightning) 30%, #fff 50%, var(--lightning) 70%, transparent 100%);
  filter: blur(1px) drop-shadow(0 0 8px var(--lightning));
}

.bolt-1 { left: 12%; top: 0; height: 45%; transform: rotate(-5deg); animation: lightning 9s infinite; }
.bolt-2 { right: 20%; top: 5%; height: 35%; transform: rotate(8deg); animation: lightning 9s infinite 3.5s; }
.bolt-3 { left: 55%; top: 0; height: 30%; transform: rotate(-3deg); animation: lightning 9s infinite 6s; }

@keyframes lightning {
  0%, 88%, 100% { opacity: 0; }
  89% { opacity: 1; }
  90% { opacity: 0.3; }
  91% { opacity: 0.9; }
  92% { opacity: 0.1; }
  93% { opacity: 0.7; }
  94%, 100% { opacity: 0; }
}

.floating-runes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-runes span {
  position: absolute;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--gold);
  opacity: 0;
  animation: float-rune 12s ease-in-out infinite;
  animation-delay: calc(var(--i) * 2s);
}

.floating-runes span:nth-child(1) { left: 8%; top: 20%; }
.floating-runes span:nth-child(2) { right: 12%; top: 35%; }
.floating-runes span:nth-child(3) { left: 25%; bottom: 30%; }
.floating-runes span:nth-child(4) { right: 30%; bottom: 20%; }
.floating-runes span:nth-child(5) { left: 50%; top: 15%; }
.floating-runes span:nth-child(6) { right: 8%; bottom: 40%; }

@keyframes float-rune {
  0%, 100% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: 0.15; }
  50% { opacity: 0.25; transform: translateY(-30px) rotate(10deg); }
  90% { opacity: 0.1; }
}

/* ─── MARQUEE ─── */
.marquee-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  padding: 0.4rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 168, 67, 0.3);
}

.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee span {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
  text-transform: uppercase;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s var(--ease-out);
}

.header.scrolled {
  top: 28px;
  background: rgba(6, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.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%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px var(--glow-gold);
  transition: transform 0.3s var(--ease-spring);
}

.nav-brand:hover .nav-logo { transform: rotate(-5deg) scale(1.08); }

.nav-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.nav-center {
  display: flex;
  gap: 0.25rem;
}

.nav-anchor {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.25s;
  position: relative;
}

.nav-anchor::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
}

.nav-anchor:hover { color: var(--white); }
.nav-anchor:hover::after { width: 60%; }

.nav-links { display: flex; align-items: center; gap: 0.5rem; }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--cream);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: all 0.25s;
}

.nav-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.1);
  transform: translateY(-2px);
}

.nav-cta {
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: var(--white);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border: 1px solid var(--red-bright);
  box-shadow: 0 4px 20px var(--glow-red);
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-red);
  filter: brightness(1.15);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-portrait-frame {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hero-bg-art {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(20px);
  animation: hero-bg-pulse 4s ease-in-out infinite;
}

@keyframes hero-bg-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

.portrait-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ring-spin 20s linear infinite;
}

.ring-1 {
  inset: -8%;
  border-color: rgba(212, 168, 67, 0.2);
  animation-duration: 25s;
}

.ring-2 {
  inset: -14%;
  border-color: rgba(227, 24, 55, 0.15);
  animation-direction: reverse;
  animation-duration: 18s;
}

.ring-3 {
  inset: -20%;
  border-color: rgba(212, 168, 67, 0.08);
  animation-duration: 30s;
}

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

.hero-portrait {
  position: relative;
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 2px solid var(--gold-dim);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px var(--glow-red),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
  animation: portrait-float 6s ease-in-out infinite;
}

@keyframes portrait-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.portrait-shine {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
  animation: shine-sweep 4s ease-in-out infinite;
}

@keyframes shine-sweep {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--red-bright);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--glow-red);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 0.75rem;
}

.title-word {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-reveal 1s var(--ease-out) backwards;
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.35s; }
.title-word:nth-child(3) { animation-delay: 0.5s; }

.title-glow {
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--glow-red));
}

@keyframes title-reveal {
  from { opacity: 0; transform: translateY(40px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.ticker-display {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px var(--glow-gold);
  animation: ticker-glow 3s ease-in-out infinite;
}

.ticker-symbol { color: var(--red-bright); }

@keyframes ticker-glow {
  0%, 100% { text-shadow: 0 0 20px var(--glow-gold); }
  50% { text-shadow: 0 0 50px var(--glow-gold), 0 0 80px var(--glow-red); }
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
}

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

.btn-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px var(--glow-red);
  filter: brightness(1.1);
}

.btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

.btn-ghost {
  background: var(--glass);
  color: var(--cream);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(212, 168, 67, 0.1);
  transform: translateY(-3px);
}

.contract-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.contract-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
}

.contract-address {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--cream);
}

.copy-btn {
  padding: 0.3rem 0.8rem;
  background: var(--navy-light);
  border: 1px solid var(--glass-border);
  color: var(--cream);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.copy-btn:hover { background: var(--gold-dim); color: var(--white); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scroll-hint 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  margin: 0.5rem auto 0;
  animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes arrow-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: all 1s var(--ease-out);
}

.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-up { transform: translateY(50px); }

.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* ─── STATS ─── */
.stats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  transition-delay: calc(var(--delay) * 0.1s);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--glow-gold);
}

.stat-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow-gold) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat-card:hover .stat-glow { opacity: 0.3; }

.stat-icon { font-size: 2rem; margin-bottom: 0.25rem; }

.stat-value {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* ─── VIKING BANNER ─── */
.viking-banner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.ornament-top, .ornament-bottom {
  width: 100%;
  height: 40px;
  object-fit: cover;
  opacity: 0.6;
}

.ornament-bottom { transform: rotate(180deg); }

.banner-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.banner-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.banner-image {
  width: 100%;
  display: block;
  transition: transform 8s var(--ease-out);
}

.banner-image-wrap:hover .banner-image { transform: scale(1.08); }

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 14, 26, 0.8) 100%);
}

.section-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.banner-text h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.banner-text h2 em {
  font-style: normal;
  color: var(--red-bright);
  text-shadow: 0 0 30px var(--glow-red);
}

.banner-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ─── SECTIONS ─── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.rune-divider {
  font-size: 1.25rem;
  color: var(--gold);
  opacity: 0.5;
  letter-spacing: 0.5em;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ─── TWEET ─── */
.tweet-section {
  max-width: 750px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.tweet-frame {
  position: relative;
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-dim), var(--red), var(--gold-dim));
  animation: border-glow 4s ease-in-out infinite;
}

@keyframes border-glow {
  0%, 100% { box-shadow: 0 0 20px var(--glow-gold); }
  50% { box-shadow: 0 0 40px var(--glow-red); }
}

.tweet-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, var(--glow-red) 0%, transparent 70%);
  opacity: 0.2;
  z-index: -1;
  animation: tweet-pulse 3s ease-in-out infinite;
}

@keyframes tweet-pulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.05); }
}

.tweet-embed-wrap {
  background: var(--navy-mid);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  min-height: 200px;
}

/* ─── GALLERY ─── */
.gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
  transition-delay: calc(var(--delay) * 0.1s);
}

.gallery-hero {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 200px;
  transition: transform 0.6s var(--ease-out);
}

.gallery-hero img { min-height: 420px; }

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--glow-gold);
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 14, 26, 0.95) 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-caption span {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-bright);
}

.gallery-caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── LORE ─── */
.lore {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lore-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  min-height: 320px;
  transition: all 0.4s var(--ease-out);
  transition-delay: calc(var(--delay) * 0.1s);
}

.lore-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.lore-card:hover .lore-card-bg { transform: scale(1.1); }

.lore-card-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 14, 26, 0.7) 40%, rgba(6, 14, 26, 0.95) 100%);
}

.lore-num {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.lore-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.lore-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.lore-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* ─── CTA ─── */
.social-cta {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.cta-ship {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  animation: cta-pan 20s ease-in-out infinite alternate;
}

@keyframes cta-pan {
  from { transform: scale(1.1) translateX(-2%); }
  to { transform: scale(1.15) translateX(2%); }
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 14, 26, 0.85) 0%, rgba(186, 12, 47, 0.15) 50%, rgba(6, 14, 26, 0.9) 100%);
}

.cta-inner {
  position: relative;
  text-align: center;
  padding: 5rem 2rem;
}

.cta-inner h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.cta-inner > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid;
  transition: all 0.35s var(--ease-out);
}

.social-x {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.social-x:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-tg {
  color: #4fc3f7;
  border-color: rgba(79, 195, 247, 0.4);
  background: rgba(79, 195, 247, 0.08);
}

.social-tg:hover {
  background: rgba(79, 195, 247, 0.18);
  border-color: #4fc3f7;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(79, 195, 247, 0.2);
}

.social-buy {
  color: var(--white);
  border-color: var(--red-bright);
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 6px 25px var(--glow-red);
}

.social-buy:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px var(--glow-red);
  filter: brightness(1.15);
}

/* ─── FOOTER ─── */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 14, 26, 0.9);
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dim);
  margin-bottom: 1rem;
  opacity: 0.8;
  animation: footer-logo-spin 20s linear infinite;
}

@keyframes footer-logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.footer p { font-size: 0.85rem; color: var(--text-muted); }
.footer-disclaimer { margin-top: 0.5rem; font-size: 0.75rem !important; opacity: 0.5; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav-center { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-hero { grid-column: span 2; grid-row: span 1; }
  .gallery-hero img { min-height: 280px; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .contract-box { margin: 0 auto; }
  .hero-scroll-hint { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .banner-inner { grid-template-columns: 1fr; }
  .lore-grid { grid-template-columns: 1fr; }
  .nav-title { display: none; }
  .nav-cta { font-size: 0.7rem; padding: 0.5rem 0.8rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-hero { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card { padding: 1.25rem 0.75rem; }
  .hero { padding-top: 7rem; }
}

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