:root {
  --bg: #000000;
  --gold: #e8c547;
  --gold-bright: #f5d76e;
  --green: #39ff14;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --panel: rgba(8, 8, 8, 0.82);
  --font-display: "Anton", "Impact", sans-serif;
  --font-logo: "Bebas Neue", "Anton", sans-serif;
  --font-body: "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Background —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: 0;
  background: url("assets/hero-bg.png") center 40% / cover no-repeat;
  filter: brightness(0.65) contrast(1.08);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 16%, transparent 70%, rgba(0, 0, 0, 0.8));
}

.bg-stripes {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 3px,
    rgba(160, 160, 160, 0.4) 3px,
    rgba(160, 160, 160, 0.4) 4px
  );
}

/* —— Header —— */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 2.25rem);
}

.logo {
  font-family: var(--font-logo);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.twitter-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.twitter-link:hover {
  color: var(--gold);
  opacity: 1;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 0.35rem;
  background: var(--green);
  color: #000;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.buy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* —— Main —— */
.page {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem clamp(1rem, 4vw, 2rem) 5.5rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* —— Timer —— */
.timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.5vw, 0.75rem);
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(4.5rem, 16vw, 6.25rem);
  padding: 0.85rem 0.75rem 0.7rem;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(232, 197, 71, 0.45);
  border-radius: 0.55rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.timer-value {
  font-family: var(--font-logo);
  font-size: clamp(2.4rem, 10vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(232, 197, 71, 0.35);
}

.timer-label {
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.9);
}

.timer-sep {
  font-family: var(--font-logo);
  font-size: clamp(1.8rem, 7vw, 2.75rem);
  color: var(--gold);
  line-height: 1;
  padding-bottom: 1.1rem;
  animation: blink-sep 1.2s steps(1) infinite;
}

.timer-sub {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

/* —— Contract —— */
.ca {
  margin-top: clamp(1.75rem, 5vh, 2.75rem);
  width: 100%;
  max-width: 36rem;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.ca-heading {
  margin: 0 0 0.7rem;
  font-family: var(--font-logo);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 400;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.45rem 0.45rem 0.9rem;
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid rgba(232, 197, 71, 0.55);
  border-radius: 0.45rem;
}

.ca-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.68rem, 2.2vw, 0.82rem);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.5rem 0.95rem;
  border: none;
  border-radius: 0.3rem;
  background: var(--gold);
  color: #000;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.copy-btn:hover,
.copy-btn.is-copied {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.ca-note {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

/* —— Marquee —— */
.marquee {
  position: relative;
  z-index: 8;
  margin-top: auto;
  overflow: hidden;
  background: #062406;
  border-top: 1px solid rgba(57, 255, 20, 0.35);
  border-bottom: 1px solid rgba(57, 255, 20, 0.35);
  padding: 0.7rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #39ff14;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.45);
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 8;
  padding: 0.85rem 1rem 1.1rem;
  text-align: center;
  background: #000;
}

.site-footer p {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Motion —— */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes blink-sep {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .ca,
  .timer-sep,
  .marquee-track {
    animation: none !important;
  }

  .hero,
  .ca {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .twitter-link {
    display: none;
  }

  .timer-unit {
    min-width: 4.1rem;
    padding: 0.7rem 0.45rem 0.55rem;
  }
}
