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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ───────────────────────────────────────────────
   Background Video
─────────────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.35) saturate(0.9);
}

.bgScrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0.4) 0%, 
    rgba(0,0,0,0.2) 40%, 
    rgba(0,0,0,0.6) 100%
  );
}

.bgFade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 900ms linear;
}

/* ───────────────────────────────────────────────
   Site Container
─────────────────────────────────────────────── */
.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

/* ───────────────────────────────────────────────
   Header
─────────────────────────────────────────────── */
.header {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.headerLogo {
  height: 28px;
  width: auto;
}

/* CA Copy Button */
.caBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 150ms ease;
  position: relative;
}

.caBtn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

.caLabel {
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

.caValue {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.caIcon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.caCopied {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.caCopied.show {
  opacity: 1;
}

/* ───────────────────────────────────────────────
   Glass Card
─────────────────────────────────────────────── */
.glassCard {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 40px 32px;
  margin: 20px 0;
  box-shadow: 
    0 4px 30px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ───────────────────────────────────────────────
   Hero
─────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0 30px;
  width: 100%;
}

.heroLogo {
  width: min(420px, 85vw);
  height: auto;
  margin-bottom: 40px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.heroTitle {
  margin: 0 0 32px;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.9);
}

.heroAccent {
  font-weight: 500;
  color: #fff;
}

.heroQuote {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.heroAttr {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.heroCta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.heroTag {
  margin: 24px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 150ms ease;
}

.btnPrimary {
  background: #fff;
  color: #000;
  border: none;
}

.btnPrimary:hover {
  background: rgba(255,255,255,0.9);
}

.btnGhost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}

.btnGhost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* ───────────────────────────────────────────────
   Embed Sections
─────────────────────────────────────────────── */
.embedSection {
  width: 550px;
  max-width: 100%;
  padding: 10px 0;
}

.polymarketEmbed {
  display: block;
  width: 550px;
  max-width: 100%;
  height: 200px;
  border: none;
  border-radius: 12px;
}

.tweetSection {
  width: 550px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
}

.twitter-tweet {
  margin: 0 !important;
}

/* ───────────────────────────────────────────────
   Footer
─────────────────────────────────────────────── */
.footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footerDot {
  opacity: 0.5;
}

/* ───────────────────────────────────────────────
   Responsive
─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .glassCard {
    padding: 24px 16px;
    border-radius: 18px;
    margin: 16px 0;
  }

  .caBtn {
    width: 100%;
    justify-content: center;
  }

  .caValue {
    max-width: 140px;
  }

  .hero {
    padding: 40px 0 30px;
  }

  .heroLogo {
    margin-bottom: 30px;
  }

  .heroCta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgVideo {
    display: none;
  }
}
