:root {
  --bg: #070b14;
  --bg-2: #0a0e1a;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #e8edf7;
  --muted: #93a1b8;
  --cyan: #67e8f9;
  --violet: #a78bfa;
  --accent: #22d3ee;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

::selection { background: rgba(103, 232, 249, 0.3); }

/* background layers */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}

.orb {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.orb-a { width: 520px; height: 520px; top: -180px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 65%); }
.orb-b { width: 420px; height: 420px; bottom: -160px; right: -80px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 65%); }

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

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
}
.logo { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.logo-dot { color: var(--cyan); }
.status {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--muted); border: 1px solid var(--card-border); border-radius: 999px;
  padding: 7px 13px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* hero */
.hero {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: clamp(28px, 6vh, 64px) 20px 40px;
  max-width: 920px; margin: 0 auto; width: 100%;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}
h1 {
  font-size: clamp(2.75rem, 11vw, 5.6rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em;
}
h1 .grad {
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.coming {
  margin-top: 14px; font-size: clamp(1.15rem, 3.4vw, 1.6rem); color: var(--muted);
  font-weight: 500; letter-spacing: 0.01em;
}
.lede {
  margin-top: 22px; max-width: 620px; font-size: 1.06rem; line-height: 1.65;
  color: #c3cede;
}
.lede strong { color: var(--text); }

/* teaser cards */
.teasers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 44px; width: 100%;
}
.teaser {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 22px 20px; text-align: left;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.teaser:nth-child(1) { animation-delay: 0.55s; }
.teaser:nth-child(2) { animation-delay: 0.68s; }
.teaser:nth-child(3) { animation-delay: 0.81s; }
/* hover lift is a desktop-only enhancement — touch has no hover */
@media (hover: hover) {
  .teaser:hover { transform: translateY(-3px); border-color: rgba(103, 232, 249, 0.35); box-shadow: 0 12px 32px rgba(34, 211, 238, 0.12); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34, 211, 238, 0.38); }
  .btn-ghost:hover { border-color: rgba(103, 232, 249, 0.45); transform: translateY(-2px); }
  footer a:hover { color: var(--cyan); }
}
.teaser-num { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); letter-spacing: 0.12em; }
.teaser h2 { font-size: 1.02rem; margin: 10px 0 6px; letter-spacing: -0.01em; }
.teaser p { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

/* rarity strip */
.rarity {
  margin-top: 30px; width: 100%;
  border: 1px solid var(--card-border); border-radius: 14px;
  padding: 16px 20px; background: rgba(255, 255, 255, 0.02);
}
.rarity-label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
}
.rarity-row {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  margin-top: 12px;
}
.rarity-item { display: flex; align-items: baseline; gap: 8px; font-size: 0.92rem; }
.r-name { font-weight: 600; }
.r-val { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.common { color: #cbd5e1; }
.uncommon { color: #4ade80; }
.rare { color: #60a5fa; }
.epic { color: #c084fc; }

/* CTA */
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 999px; min-height: 48px; line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  color: #04121a;
  background: linear-gradient(100deg, var(--cyan), #38bdf8);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.28);
  position: relative; overflow: hidden;
}
.btn-ghost {
  color: var(--text); border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.03);
}

.fineprint { margin-top: 22px; font-size: 0.82rem; color: var(--muted); font-family: var(--mono); }

/* footer */
footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 22px 20px 28px; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap;
}
footer a { color: var(--muted); text-decoration: none; display: inline-block; padding: 14px 8px; }
.footer-sep { opacity: 0.5; }

@media (max-width: 640px) {
  .teasers { grid-template-columns: 1fr; }
  /* status pill stays visible on phones — compact, with its pulsing dot */
  .status { font-size: 0.66rem; padding: 6px 10px; gap: 6px; letter-spacing: 0.05em; }
  /* thicker blinking cursor so it reads on a small screen */
  .cursor { width: 3px; }
  /* buttons stack full-width on phones for easy tapping */
  .cta { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}

/* ---- animations (CSS-only, lightweight) ---- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift-a {
  0%, 100% { transform: translateX(-50%) translate(0, 0); }
  50% { transform: translateX(-50%) translate(44px, 32px); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-36px, -44px); }
}
@keyframes coming-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(103, 232, 249, 0); }
  50% { text-shadow: 0 0 26px rgba(103, 232, 249, 0.48); }
}
/* wider drift for small screens — movement must read against a small orb */
@keyframes drift-a-m {
  0%, 100% { transform: translateX(-50%) translate(0, 0); }
  50% { transform: translateX(-50%) translate(56px, 40px); }
}
@keyframes drift-b-m {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-48px, -52px); }
}
/* soft glow breathing on the primary CTA — touch devices get a pulse
   instead of a hover lift */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 8px 28px rgba(34, 211, 238, 0.28); }
  50% { box-shadow: 0 8px 36px rgba(34, 211, 238, 0.55); }
}
@media (hover: none) {
  .btn-primary { animation: cta-glow 3s ease-in-out infinite; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes shimmer {
  0%, 60% { transform: translateX(-180%) skewX(-20deg); }
  100% { transform: translateX(380%) skewX(-20deg); }
}

/* drifting glow orbs — slow and subtle */
.orb-a { animation: drift-a 26s ease-in-out infinite; }
.orb-b { animation: drift-b 32s ease-in-out infinite; }

/* hero entrance — gentle fade + rise, staggered */
.topbar { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 0.05s backwards; }
.eyebrow { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.1s backwards; }
h1 { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.18s backwards; }
.coming { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s backwards, coming-glow 3.2s ease-in-out 1.2s infinite; }
.lede { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.42s backwards; }
.rarity { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.95s backwards; }
.cta { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 1.05s backwards; }
.fineprint { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 1.15s backwards; }
footer { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 1.25s backwards; }

/* blinking cursor after the hero line */
.cursor {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 6px;
  background: var(--cyan); vertical-align: -0.15em;
  animation: blink 1.1s step-end infinite;
}

/* slow shimmer sweep on the primary button */
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-180%) skewX(-20deg);
  animation: shimmer 4s ease-in-out infinite; pointer-events: none;
}

/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn-primary::after { display: none; }
}

/* ---- mobile orb overrides (must come AFTER the base orb animation
   rules above, same specificity, so source order wins) ---- */
@media (max-width: 640px) {
  /* orbs: smaller, mostly ON-screen, stronger and visibly drifting */
  .orb-a { width: 300px; height: 300px; top: -90px; opacity: 0.7; filter: blur(55px);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 65%);
    animation: drift-a-m 22s ease-in-out infinite; }
  .orb-b { width: 260px; height: 260px; bottom: -70px; right: -40px; opacity: 0.65; filter: blur(55px);
    background: radial-gradient(circle, rgba(167, 139, 250, 0.42), transparent 65%);
    animation: drift-b-m 26s ease-in-out infinite; }
}
