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

:root {
  --bg: #0a0f1e;
  --surface: #121a30;
  --surface-border: rgba(255, 255, 255, 0.05);
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ═══ INTRO OVERLAY ═══ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 2s ease, filter 2s ease;
}

.intro-overlay.fade-out {
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
}

.intro-overlay.hidden {
  display: none;
}

.skip-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.skip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

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

/* ═══ SITE CONTENT ═══ */
.site-content {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.site-content.reveal {
  opacity: 1;
}

/* ═══ NAV ═══ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
}

nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
}

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

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
}

.hero-blend {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
}

.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-anim.show {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -3px;
  color: #fff;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.6),
    0 4px 30px rgba(0, 0, 0, 0.4),
    0 8px 60px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 130px;
  padding: 0 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  color: #000;
  border: none;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 8px 30px rgba(0, 0, 0, 0.4);
}

.btn-x {
  min-width: 46px;
  width: 46px;
  padding: 0;
}

.contract-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s;
}

.contract-bar.show {
  opacity: 1;
  transform: translateY(0);
}

.contract-bar:hover {
  opacity: 1;
}

.contract-bar.copied .contract-address::after {
  content: ' — copied';
  color: rgba(255, 255, 255, 0.5);
}

.contract-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.contract-address {
  font-size: 0.8rem;
  font-family: 'Consolas', 'Courier New', monospace;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  user-select: all;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ═══ LOWER SECTION BG VIDEO ═══ */
.lower-section {
  position: relative;
  overflow: hidden;
}

.lower-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.lower-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}

.lower-content {
  position: relative;
  z-index: 2;
}

/* ═══ SECTIONS ═══ */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #fff;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
}

/* ═══ TWEETS ═══ */
.tweets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.tweet-embed {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tweet-embed:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.tweet-embed iframe {
  width: 100%;
  min-height: 400px;
  border: none;
  display: block;
}

/* ═══ HOW TO BUY ═══ */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.step-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.2);
}

.step-connector {
  width: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

.step-body {
  padding: 0.5rem 0 2.5rem 0;
}

.step-item:last-child .step-connector {
  display: none;
}

.step-item:last-child .step-body {
  padding-bottom: 0;
}

.step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

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

.step-body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ca-inline {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: #fff;
}

/* ═══ LORE ═══ */
#lore {
  text-align: center;
}

.lore-image {
  max-width: 280px;
  width: 100%;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.5));
}

.lore-text {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.lore-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.85;
}

.lore-text p:last-child {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-top: 0.5rem;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.3);
}

.view-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* ═══ LIVE CHART ═══ */
.chart-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-wrap iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

/* ═══ SCROLL WORDS ═══ */
.scroll-words {
  padding: 10vh 1.5rem;
}

.scroll-word {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  text-align: center;
  padding: 12vh 0;
  opacity: 0;
  transform: translateY(50px) scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s ease;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.6),
    0 4px 30px rgba(0, 0, 0, 0.4),
    0 8px 60px rgba(0, 0, 0, 0.3);
}

.scroll-word.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ═══ FOOTER ═══ */
footer {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--surface-border);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

footer a:hover { color: #fff; }

footer p + p { margin-top: 0.25rem; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  /* nav */
  nav {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
  }

  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  /* hero */
  .hero {
    padding: 5rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 3rem;
    letter-spacing: -1px;
  }

  .hero-inner {
    gap: 1.4rem;
  }

  .hero-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .btn {
    min-width: 100px;
    height: 42px;
    font-size: 0.82rem;
    padding: 0 1.1rem;
  }

  .btn-x {
    width: 42px;
    min-width: 42px;
  }

  .contract-address {
    font-size: 0.68rem;
    max-width: 220px;
  }

  .contract-label {
    font-size: 0.72rem;
  }

  /* sections */
  .section {
    padding: 3.5rem 1rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  /* tweets */
  .tweets-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tweet-embed iframe {
    min-height: 350px;
  }

  /* how to buy */
  .step-item {
    gap: 1rem;
  }

  .step-line {
    width: 34px;
  }

  .step-number {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .step-body h3 {
    font-size: 0.95rem;
  }

  .step-body p {
    font-size: 0.84rem;
  }

  .step-body {
    padding: 0.3rem 0 2rem 0;
  }

  /* lore */
  .lore-image {
    max-width: 200px;
    margin-bottom: 1.5rem;
  }

  .lore-text p {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .lore-text p:last-child {
    font-size: 1.05rem;
  }

  .lore-text {
    gap: 1.2rem;
  }

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

  /* scroll words */
  .scroll-word {
    font-size: 2.5rem;
    padding: 8vh 0;
    letter-spacing: -1px;
  }

  /* skip button */
  .skip-btn {
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
  }

  /* footer */
  footer {
    padding: 2rem 1rem 1.5rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .btn {
    min-width: 90px;
    height: 38px;
    font-size: 0.78rem;
    padding: 0 0.9rem;
  }

  .btn-x {
    width: 38px;
    min-width: 38px;
  }

  .contract-address {
    font-size: 0.6rem;
    max-width: 180px;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  .scroll-word {
    font-size: 2rem;
  }
}
