/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #d42020;
  --red-dark: #a01515;
  --bg: #0e0e0e;
  --bg-card: #1a1a1a;
  --bg-card-hover: #242424;
  --text: #f0f0f0;
  --text-muted: #bbb;
  --accent: #ff3c3c;
  --border: #2a2a2a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 14, 0.35) 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(14, 14, 14, 0.6) 75%,
    rgba(14, 14, 14, 0.9) 90%,
    rgba(14, 14, 14, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1.1;
  letter-spacing: 2px;
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--red) 35%,
    #ff8a8a 50%,
    var(--red) 65%,
    var(--red) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gleam 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(212, 32, 32, 0.5)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  animation: bounce 2s ease infinite;
  transition: color 0.2s ease;
}

.scroll-hint:hover {
  color: var(--red);
}

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

/* ── Sections ── */
.section {
  padding: 5rem 1.5rem;
}

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

.section-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--red) 35%,
    #ff6b6b 50%,
    var(--red) 65%,
    var(--red) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gleam 4s ease-in-out infinite;
}

@keyframes gleam {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: -100% 0; }
}

/* ── About ── */
.about p {
  max-width: 750px;
  margin: 0 auto 1.2rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.about strong {
  color: var(--text);
}

/* ── Links / Trade ── */
.links {
  position: relative;
  overflow: hidden;
}

.links::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('trade-bg.jpg') center center / cover no-repeat;
  filter: blur(3px) brightness(0.15);
  opacity: 0.7;
}

.links .container {
  position: relative;
  z-index: 1;
}

.links-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  overflow: hidden;
  background: var(--bg);
}

.link-card::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px) brightness(0.25);
  opacity: 0.6;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.link-card:hover::before {
  opacity: 0.8;
  filter: blur(3px) brightness(0.35);
}

.link-card:hover {
  transform: translateY(-4px);
}

.link-name {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

/* ── Card Brands ── */
.card-magnetic::before { background-image: url('logos/xmagnetic.jpg'); }
.card-magnetic { border-color: #4a6cf7; }
.card-magnetic:hover { box-shadow: 0 8px 24px rgba(74, 108, 247, 0.25); border-color: #6b8aff; }

.card-xpmarket::before { background-image: url('logos/Xpmarket.png'); }
.card-xpmarket { border-color: #00c9a7; }
.card-xpmarket:hover { box-shadow: 0 8px 24px rgba(0, 201, 167, 0.25); border-color: #33ddbf; }

.card-bearswap::before { background-image: url('logos/bearswap_logo.png'); }
.card-bearswap { border-color: #e8a838; }
.card-bearswap:hover { box-shadow: 0 8px 24px rgba(232, 168, 56, 0.25); border-color: #f0be5e; }

.card-firstledger::before { background-image: url('logos/FirstLedger.jpg'); }
.card-firstledger { border-color: #3b82f6; }
.card-firstledger:hover { box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25); border-color: #60a5fa; }

.card-dexscreener::before { background-image: url('logos/DexScreener.png'); }
.card-dexscreener { border-color: #a3e635; }
.card-dexscreener:hover { box-shadow: 0 8px 24px rgba(163, 230, 53, 0.2); border-color: #bef264; }

.card-twitter::before { background-image: url('logos/twitter.png'); }
.card-twitter { border-color: #1d9bf0; }
.card-twitter:hover { box-shadow: 0 8px 24px rgba(29, 155, 240, 0.25); border-color: #4db5f5; }

.card-telegram::before { background-image: url('logos/telegram.png'); }
.card-telegram { border-color: #26a5e4; }
.card-telegram:hover { box-shadow: 0 8px 24px rgba(38, 165, 228, 0.25); border-color: #52b8ea; }

.card-discord::before { background-image: url('logos/discord.png'); }
.card-discord { border-color: #5865f2; }
.card-discord:hover { box-shadow: 0 8px 24px rgba(88, 101, 242, 0.25); border-color: #7983f5; }

/* ── Tokenomics ── */
.tokenomics {
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4rem;
  color: var(--text);
}

.stat-value.stat-xrp {
  font-size: 1.5rem;
  color: #fff;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 400;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-wrap iframe { height: 350px; }
}

/* ── CTO ── */
.cto {
  position: relative;
  overflow: hidden;
}

.cto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('cto-bg.jpg') center 75% / cover no-repeat;
  filter: blur(3px) brightness(0.15);
  opacity: 0.7;
}

.cto .container {
  position: relative;
  z-index: 1;
}

.cto-text {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.cto-text strong {
  color: var(--text);
}

.cto-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.cto-link:hover {
  color: #fff;
}

/* ── NFTs ── */
.nfts {
  text-align: center;
  background: var(--bg-card);
}

.nft-tease {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.nft-soon {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 2px;
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--red) 35%,
    #ff6b6b 50%,
    var(--red) 65%,
    var(--red) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gleam 4s ease-in-out infinite;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 3rem 1rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: 'Luckiest Guy', cursive;
  color: var(--red);
  font-size: 1.1rem;
}

.footer-token {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex-wrap: wrap;
}

.footer-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--text-muted);
  font-weight: 400;
}

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

@media (max-width: 600px) {
  .section { padding: 3rem 1rem; }
}
