:root {
  --black: #0a0a0a;
  --ink: #111216;
  --gold: #d4af37;
  --gold-bright: #f5d76e;
  --money: #1e8c3a;
  --money-bright: #2ecc71;
  --paper: #f4f1e8;
  --red: #c0392b;
  --shadow: rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Oswald", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, #1b1d24 0%, var(--black) 55%) fixed,
    var(--black);
  color: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Blurred hero image as the page backdrop */
.bg-blur {
  position: fixed;
  inset: -20px; /* overscan so blurred edges don't reveal gaps */
  z-index: -1;
  background: url("assets/hero.png") center / cover no-repeat;
  filter: blur(5px) saturate(1.05) brightness(0.7);
  transform: scale(1.04);
}
.bg-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.25), rgba(10,10,10,0.55));
}

/* Pinstripe suit texture overlay */
.pinstripe-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 10px,
    rgba(244, 241, 232, 0.8) 10px,
    rgba(244, 241, 232, 0.8) 11px
  );
}

main, .topbar, .footer { position: relative; z-index: 1; }

/* TOP BAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(4px);
}

.brand {
  font-family: "Anton", sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--paper);
}
.brand-accent { color: var(--gold); }

.socials { display: flex; gap: clamp(0.6rem, 2vw, 1.5rem); align-items: center; }

.social-link {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}
.social-link:hover { color: var(--gold-bright); opacity: 1; }

.social-link.buy {
  background: linear-gradient(180deg, var(--money-bright), var(--money));
  color: #06210f;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.35);
}
.social-link.buy:hover { color: #06210f; transform: translateY(-1px); }

/* Accessible-only heading (image carries the visible text) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* HERO */
.hero {
  text-align: center;
  padding: clamp(1.2rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.tagline {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  font-style: italic;
  opacity: 0.78;
  font-weight: 300;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 1.4rem);
  margin: 2.4rem auto 0.6rem;
  flex-wrap: nowrap;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #16181f, #0c0d11);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  padding: clamp(0.6rem, 2vw, 1.1rem) clamp(0.7rem, 3vw, 1.6rem);
  min-width: clamp(70px, 22vw, 120px);
  box-shadow: 0 10px 30px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}

.value {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.2rem, 9vw, 4rem);
  color: var(--gold-bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}
.label {
  font-size: clamp(0.6rem, 1.8vw, 0.85rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.4rem;
}

.colon {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.8rem, 7vw, 3rem);
  color: var(--gold);
  opacity: 0.6;
  align-self: flex-start;
  margin-top: clamp(0.4rem, 2vw, 1rem);
}

.countdown-note {
  text-align: center;
  font-style: italic;
  opacity: 0.6;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}
.countdown.ended .value { color: var(--red); }

/* CONTRACT ADDRESS */
.ca-section {
  max-width: 820px;
  margin: clamp(2.5rem, 7vw, 5rem) auto;
  padding: 0 1.2rem;
  text-align: center;
}

.section-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.ca-box {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  background: #0c0d11;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  padding: 0.6rem;
  box-shadow: 0 12px 34px var(--shadow);
}

.ca-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: "Courier New", monospace;
  font-size: clamp(0.7rem, 2.4vw, 1rem);
  color: var(--paper);
  padding: 0.6rem 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
  text-align: left;
  letter-spacing: 0.5px;
}

.copy-btn {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: none;
  border-radius: 7px;
  padding: 0 1.4rem;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #2a2102;
  transition: transform 0.15s, filter 0.15s;
  white-space: nowrap;
}
.copy-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.copy-btn:active { transform: translateY(0); }
.copy-btn.copied { background: linear-gradient(180deg, var(--money-bright), var(--money)); color: #06210f; }

.ca-warn { margin-top: 0.9rem; font-size: 0.82rem; opacity: 0.5; }

/* TICKER */
.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  background: linear-gradient(180deg, rgba(30,140,58,0.12), transparent);
  padding: 0.7rem 0;
}
.ticker-track {
  display: inline-flex;
  gap: 1.5rem;
  white-space: nowrap;
  font-family: "Anton", sans-serif;
  letter-spacing: 2px;
  color: var(--money-bright);
  animation: scroll-left 22s linear infinite;
}
.ticker-track span { opacity: 0.85; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem 1rem 2.6rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .ticker-track { animation: none; }
}
