:root {
  --bg: #170f28;
  --accent: #ff4fd8;
  --accent-2: #ffd23f;
  --text: #f2eefc;
  --text-dim: #a89bc9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

a { color: var(--accent-2); }
a:hover { color: var(--accent); }

.page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 78% 32%, rgba(255, 79, 216, 0.2), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.backdrop .suit {
  position: absolute;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
}

.wordmark {
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.domain {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "content" "visual";
  align-items: center;
  gap: 36px;
  padding: 24px 48px 40px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.fd-content { grid-area: content; text-align: left; }
.fd-visual { grid-area: visual; display: flex; align-items: center; justify-content: center; }

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas: "content visual";
  }
}

.fd-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fd-content.revealed {
  opacity: 1;
  transform: translateY(0);
}

.fan {
  position: relative;
  width: 230px;
  height: 160px;
  transform: rotate(-4deg);
  margin-left: auto;
  margin-right: 6%;
}

.fan .card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 98px;
  height: 136px;
  margin-left: -49px;
  border-radius: 10px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
  transform-origin: bottom center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: rotate(0deg) scale(0.85);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.fan .card.revealed {
  opacity: 1;
  transform: rotate(var(--rot)) scale(1);
}
.fan .card.looping {
  animation: cardBob var(--bob-dur) ease-in-out infinite;
  animation-delay: var(--bob-delay);
  transition: none;
}

@keyframes cardBob {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%      { transform: rotate(var(--rot)) translateY(-12px); }
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 16px;
}

.headline {
  margin: 0 0 16px;
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.02;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.sub {
  max-width: 480px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
}

.marquee {
  display: flex;
  width: max-content;
  gap: 2.75rem;
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  animation: marquee 36s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee .item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.marquee .item svg {
  width: 9px;
  height: 9px;
}

.footer {
  position: relative;
  text-align: center;
  padding: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .fd-content,
  .fan .card {
    opacity: 1 !important;
    transform: none !important;
  }
  .fan .card {
    transform: rotate(var(--rot)) !important;
  }
}
