:root {
  --background-primary: #0d0f0f;
  --background-secondary: #131616;
  --surface-primary: #181c1b;
  --surface-secondary: #1f2422;
  --border-primary: #303734;
  --border-strong: #454d49;
  --text-primary: #f2f3ef;
  --text-muted: #737b76;
  --text-secondary: #aeb5b0;
  --accent: #a79b63;
  --accent-bright: #c0b477;
  --action: #d9782d;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  font-family: var(--font);
  background: var(--background-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% 18%, rgba(167, 155, 99, 0.07), transparent 58%),
    radial-gradient(900px 500px at 50% 100%, rgba(19, 22, 22, 0.95), transparent 70%),
    var(--background-primary);
}

.grid {
  position: absolute;
  inset: -1px;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(242, 243, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 243, 239, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 18%, transparent 78%);
}

.traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trace {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
}

.trace-a {
  stroke-width: 1;
  opacity: 0.14;
}

.trace-b {
  stroke-width: 0.7;
  opacity: 0.08;
  stroke-dasharray: 3 12;
}

.tick {
  fill: var(--accent-bright);
  opacity: 0.35;
}

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

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) 1.5rem 2.5rem;
}

.hero-inner {
  width: min(42rem, 100%);
  text-align: center;
}

.mark {
  display: block;
  width: clamp(5.5rem, 13vw, 7.5rem);
  height: auto;
  margin: 0 auto 1.35rem;
}

.wordmark,
.footer-brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.wordmark {
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  line-height: 1;
  white-space: nowrap;
}

.count {
  color: var(--accent);
}

.tagline,
.footer-tag {
  margin: 0.85rem 0 0;
  color: var(--accent-bright);
  font-size: clamp(0.72rem, 1.7vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

h1 {
  margin: 2.4rem 0 0;
  color: var(--text-primary);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h1 span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-secondary);
}

.lede {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  line-height: 1.65;
}

.support {
  margin: 0.9rem auto 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(0.86rem, 1.5vw, 0.95rem);
  line-height: 1.6;
}

.soon {
  margin: 2.6rem 0 0;
  color: var(--text-primary);
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.soon::before,
.soon::after {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  margin: 0 0.85rem;
  vertical-align: middle;
  background: var(--border-strong);
}

.platforms {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.strip {
  margin: 2.4rem 0 0;
  color: var(--text-muted);
  font-size: clamp(0.62rem, 1.4vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
}

.footer {
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-primary);
  background: color-mix(in srgb, var(--background-secondary) 88%, transparent);
}

.footer-brand {
  font-size: 0.78rem;
}

.footer-tag {
  margin-top: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.36em;
}

.footer-domain,
.footer-copy {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-copy {
  letter-spacing: 0.08em;
  text-transform: none;
}

.hero-inner > * {
  animation: rise 700ms ease both;
}

.hero-inner > :nth-child(1) { animation-delay: 40ms; }
.hero-inner > :nth-child(2) { animation-delay: 90ms; }
.hero-inner > :nth-child(3) { animation-delay: 140ms; }
.hero-inner > :nth-child(4) { animation-delay: 200ms; }
.hero-inner > :nth-child(5) { animation-delay: 260ms; }
.hero-inner > :nth-child(6) { animation-delay: 320ms; }
.hero-inner > :nth-child(7) { animation-delay: 380ms; }
.hero-inner > :nth-child(8) { animation-delay: 430ms; }
.hero-inner > :nth-child(9) { animation-delay: 480ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: flex-start;
    padding-top: clamp(3.5rem, 12vh, 5.5rem);
  }

  .hero-inner {
    text-align: left;
  }

  .mark {
    margin-left: 0;
  }

  .soon::before {
    display: none;
  }

  .soon::after {
    width: 1.6rem;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner > * {
    animation: none;
  }
}
