:root {
  color-scheme: dark;
  --pink: #f33aa6;
  --pink-soft: #ff78c8;
  --black: #050505;
  --ink: #f5f5f7;
  --muted: #a9a9b3;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --panel: rgba(8, 8, 12, 0.58);
  --moon-overlay: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.78),
    rgba(5, 5, 5, 0.52) 42%,
    rgba(5, 5, 5, 0.9)
  );
  --font-display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-body: "Inter", "Noto Sans SC", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

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

button {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--gutter);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.86),
    rgba(5, 5, 5, 0)
  );
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: contain;
}

.brand-word {
  font-size: 17px;
}

.hero-section {
  position: relative;
  height: 200vh;
  background: var(--black);
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black);
}

.hero-video {
  width: 100%;
  height: 100%;
  max-width: 3840px;
  max-height: 2160px;
  object-fit: contain;
  object-position: center;
}

.sound-toggle {
  position: absolute;
  z-index: 20;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.58);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.sound-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  background: rgba(243, 58, 166, 0.16);
  color: var(--pink);
}

.sound-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-toggle .sound-on {
  display: none;
}

.sound-toggle.is-on .sound-on {
  display: block;
}

.sound-toggle.is-on .sound-off {
  display: none;
}

.grain,
.star-field,
.moon-transition,
.pink-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star-field {
  z-index: 3;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 120, 200, 0.8) 0 1px, transparent 1.5px);
  background-position:
    0 0,
    28px 40px;
  background-size:
    140px 140px,
    220px 220px;
  opacity: 0.34;
  mix-blend-mode: screen;
}

.moon-transition {
  z-index: 4;
  background-image: var(--moon-overlay), url("assets/scenes/imoo-moon-gaze-bg.png");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.16);
  will-change: transform, opacity;
}

.pink-flash {
  z-index: 5;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(255, 120, 200, 0.88),
    rgba(243, 58, 166, 0.34) 34%,
    transparent 70%
  );
  mix-blend-mode: screen;
}

.grain {
  z-index: 6;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.moon-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(34px, 6vh, 72px);
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(150px, 26vh, 280px) var(--gutter) 90px;
  text-align: center;
}

.copy-line {
  margin: 0;
  opacity: 0;
  transform: translateY(56px) scale(0.98);
  filter: blur(16px);
  transition:
    opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1200ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.copy-line.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.copy-line-one {
  max-width: 880px;
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.copy-line-two {
  max-width: 980px;
  font-size: clamp(20px, 3.2vw, 40px);
  color: rgba(245, 245, 247, 0.9);
}

.copy-line-three {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 132px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.accent {
  color: var(--pink);
  transition: text-shadow 900ms ease;
}

.copy-line-three.is-visible .accent {
  text-shadow: 0 0 30px rgba(243, 58, 166, 0.45);
}

.moon-section {
  position: relative;
  min-height: 100vh;
  background-image: var(--moon-overlay), url("assets/scenes/imoo-moon-gaze-bg.png");
  background-position: center;
  background-size: cover;
}

.moon-content {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 130px var(--gutter) 90px;
}

.data-intro {
  max-width: 720px;
  margin-bottom: 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ca-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(8, 8, 12, 0.62);
  padding: 18px 18px 18px 22px;
  backdrop-filter: blur(16px);
}

.ca-label {
  display: block;
  margin-bottom: 6px;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ca-block code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(14px, 2.2vw, 20px);
  word-break: break-all;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.copy-button:hover {
  transform: translateY(-2px);
  background: var(--pink-soft);
}

.data-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.data-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: var(--panel);
  padding: 30px;
  backdrop-filter: blur(16px);
}

.panel-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.panel-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fact-list {
  margin: 28px 0 0;
}

.fact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.fact-row:first-child {
  border-top: 0;
}

.fact-row dt {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.fact-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px !important;
  letter-spacing: -0.03em;
}

.balance-lockup {
  margin-top: 34px;
}

.balance-lockup strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.07em;
}

.balance-lockup small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
}

.balance-usd {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.fact-list.compact {
  margin-top: 20px;
}

.burn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}

.burn-metric {
  min-width: 0;
}

.burn-metric span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.burn-metric strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -0.05em;
}

.burn-metric small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
}

.progress-line {
  margin-top: 30px;
}

.progress-track {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-track::after {
  display: block;
  width: 22%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--pink-soft));
  content: "";
}

.panel-footnote {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.recent-section {
  margin-top: 70px;
}

.log-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.log-item,
.log-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.log-empty {
  color: var(--muted);
}

.log-time {
  color: var(--muted);
  font-size: 13px;
}

.log-event {
  font-weight: 600;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gutter);
  border-top: 1px solid var(--line);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease,
    color 200ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  background: rgba(243, 58, 166, 0.12);
  color: var(--pink);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-section {
    height: auto;
  }

  .story-sticky {
    position: relative;
    height: auto;
  }

  .hero-media {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .moon-transition,
  .pink-flash {
    display: none;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-word {
    display: none;
  }

  .moon-copy {
    gap: 14px;
  }

  .copy-line-one,
  .copy-line-two {
    font-size: clamp(20px, 7vw, 30px);
  }

  .copy-line-three {
    font-size: clamp(42px, 16vw, 72px);
  }

  .ca-block {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .burn-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .copy-line {
    opacity: 1;
    transform: none;
  }
}
