:root {
  --blue: #0081fb;
  --blue-deep: #0064e0;
  --cyan: #00c2ff;
  --ink: #1c1e21;
  --muted: #65676b;
  --line: rgba(28, 30, 33, 0.12);
  --bg: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --stage: min(1180px, calc(100% - 56px));
}

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

html,
body {
  height: 100%;
}

html {
  background: var(--bg);
  overscroll-behavior: none;
}

body {
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: auto;
}

::selection {
  background: var(--blue);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.atmosphere__glow {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(34% 42% at var(--px, 50%) var(--py, 36%), rgba(0, 194, 255, 0.2), transparent 72%),
    radial-gradient(64% 48% at 50% 30%, rgba(0, 129, 251, 0.18), transparent 70%),
    radial-gradient(28% 30% at 82% 92%, rgba(0, 100, 224, 0.1), transparent 72%);
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: var(--stage);
  margin: 0 auto;
  padding: 24px 0 28px;
}

.top,
.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.wordmark__mark {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.top__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.top__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.5;
  display: block;
}

.hero {
  display: grid;
  grid-template-rows: minmax(96px, 1fr) auto minmax(12px, 1fr);
  align-items: stretch;
  justify-items: center;
  min-height: 0;
  height: 100%;
  text-align: center;
  padding: 0;
}

.mark {
  --size: clamp(140px, 18vw, 200px);
  position: relative;
  height: min(var(--size), 78%);
  width: auto;
  aspect-ratio: 1;
  max-width: var(--size);
  align-self: center;
  margin: 0;
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mark__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 129, 251, 0.5), rgba(0, 194, 255, 0.12) 48%, transparent 74%);
  filter: blur(28px);
  animation: glowPulse 4.8s ease-in-out infinite;
}

.mark__scene {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 640px;
  perspective-origin: 50% 45%;
}

.mark__world {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform, filter;
}

.mark__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.mark__layer--back {
  transform: translateZ(-36px) scale(0.9);
  filter: blur(1.6px) saturate(1.2) brightness(0.72);
  opacity: 0.5;
}

.mark__layer--front {
  transform: translateZ(28px);
}

.mark__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateZ(34px);
  background:
    radial-gradient(circle at var(--sx, 32%) var(--sy, 24%), rgba(255, 255, 255, 0.85), transparent 34%),
    linear-gradient(118deg, transparent 36%, rgba(255, 255, 255, 0.5) 50%, transparent 64%);
  mix-blend-mode: soft-light;
  -webkit-mask-image: url("./assets/logo.png");
  mask-image: url("./assets/logo.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

h1 {
  font-size: clamp(1.4rem, 7.4vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: clamp(18px, 3vh, 32px);
  white-space: nowrap;
}

.manifesto {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(40rem, 100%);
}

.manifesto p {
  font-size: clamp(0.92rem, 0.78rem + 0.42vw, 1.125rem);
  line-height: 1.48;
  letter-spacing: -0.03em;
  color: var(--muted);
  max-width: 34rem;
  text-wrap: pretty;
}

.manifesto p + p {
  margin-top: clamp(12px, 1.8vh, 18px);
}

.manifesto p + .manifesto__turn {
  margin-top: clamp(18px, 2.6vh, 26px);
}

.manifesto p.manifesto__turn {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.038em;
}

.manifesto p + .manifesto__ticker {
  margin-top: clamp(22px, 3.4vh, 34px);
}

.manifesto p.manifesto__ticker {
  color: var(--ink);
  font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
}

.manifesto__ticker + .manifesto__line {
  margin-top: 8px;
}

.manifesto p.manifesto__line {
  color: var(--ink);
  font-size: clamp(0.98rem, 0.9rem + 0.35vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.manifesto__line + .manifesto__pair {
  margin-top: 6px;
}

.manifesto p.manifesto__pair {
  font-size: clamp(0.72rem, 0.65rem + 0.2vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.epochs {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin-bottom: clamp(26px, 4.6vh, 42px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.epochs li {
  display: flex;
  align-items: center;
}

.epochs li:not(:last-child)::after {
  content: "";
  width: clamp(18px, 3.6vw, 36px);
  height: 1px;
  margin: 0 11px;
  background: var(--line);
}

.epochs li:nth-last-child(2)::after {
  background: var(--blue);
  opacity: 0.7;
}

.epochs .is-now {
  color: var(--blue);
  font-weight: 600;
}

.pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: clamp(8px, 2vw, 18px);
  width: min(560px, 100%);
}

.pair__side {
  display: flex;
}

.pair__side--end {
  justify-content: flex-end;
}

.pair__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.pair__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.pair__value {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
  color: var(--ink);
}

.pair__axis {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  min-width: 92px;
}

.pair__rail {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.55;
}

.pair__join {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  animation: pulse 3.8s ease-in-out infinite;
}

.bottom {
  align-items: flex-end;
}

.closer {
  max-width: 22rem;
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: -0.025em;
  color: var(--muted);
}

.ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 129, 251, 0.3);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.ca:hover {
  background: var(--blue-deep);
  box-shadow: 0 16px 36px rgba(0, 100, 224, 0.36);
}

.ca:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.ca__addr {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ca__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.ca__icon--check {
  display: none;
}

.ca.is-copied .ca__icon--copy {
  display: none;
}

.ca.is-copied .ca__icon--check {
  display: block;
}

.mark,
.copy > *,
.top,
.bottom {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.95s var(--ease) forwards;
}

.top { animation-delay: 0.04s; }
.mark { animation-delay: 0.1s; }
h1 { animation-delay: 0.26s; }
.manifesto { animation-delay: 0.4s; }
.bottom { animation-delay: 0.7s; }

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.12);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .stage {
    width: 100%;
    min-height: 100svh;
    padding: 16px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .top {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .wordmark {
    font-size: 18px;
  }

  .top__meta {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .hero {
    grid-template-rows: minmax(108px, 1.55fr) auto minmax(4px, 0.35fr);
    padding-top: 10px;
  }

  .mark {
    --size: 104px;
  }

  .manifesto p {
    font-size: 0.94rem;
    line-height: 1.5;
    letter-spacing: -0.025em;
  }

  .manifesto p + p {
    margin-top: 14px;
  }

  .manifesto p + .manifesto__turn {
    margin-top: 20px;
  }

  .manifesto p + .manifesto__ticker {
    margin-top: 24px;
  }

  .bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .closer {
    max-width: none;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    padding: 0 8px;
  }

  .ca {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark,
  .mark__glow,
  .pair__join,
  .copy > *,
  .top,
  .bottom {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
