:root {
  --cream: #f6f1e6;
  --cream-deep: #ebe3d2;
  --paper: #fffdf7;
  --ink: #0c0c0c;
  --ink-soft: #1c1c1c;
  --muted: #5c564c;
  --gold: #f5c518;
  --gold-deep: #e0a60a;
  --gold-glow: rgba(245, 197, 24, 0.45);
  --line: #0c0c0c;
  --shell: min(1140px, calc(100% - 2rem));
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shadow-sticker: 5px 5px 0 var(--ink);
  --shadow-sticker-sm: 3px 3px 0 var(--ink);
  --radius: 1.35rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(900px 520px at 8% -5%, rgba(245, 197, 24, 0.28), transparent 58%),
    radial-gradient(780px 480px at 92% 12%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(180deg, #fff8ea 0%, var(--cream) 36%, #f3e9d6 68%, #efe4cd 100%);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.dawn {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  animation: dawn-drift 18s ease-in-out infinite;
}

.dawn-a {
  width: 48vw;
  height: 48vw;
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.35), transparent 68%);
}

.dawn-b {
  width: 42vw;
  height: 42vw;
  top: 28%;
  right: -16%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  animation-delay: -6s;
}

.dawn-c {
  width: 55vw;
  height: 55vw;
  bottom: -22%;
  left: 20%;
  background: radial-gradient(circle, rgba(232, 196, 120, 0.28), transparent 70%);
  animation-delay: -11s;
}

.paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

#spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes dawn-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, -2%) scale(1.06);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.85rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.header.is-scrolled {
  background: rgba(246, 241, 230, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(12, 12, 12, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-sticker-sm);
  transition: transform 0.35s ease;
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-weight: 600;
}

.nav-links a:not(.nav-cta) {
  position: relative;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:not(.nav-cta):hover {
  opacity: 1;
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: var(--shadow-sticker-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-sticker-sm);
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.burger span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sticker);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn img {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink img {
  filter: invert(1);
}

.btn-ghost {
  background: rgba(255, 253, 247, 0.88);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 0 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.hero.has-video .hero-video.is-live {
  opacity: 1;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(246, 241, 230, 0.35) 0%, rgba(246, 241, 230, 0.55) 42%, rgba(246, 241, 230, 0.92) 78%, var(--cream) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(245, 197, 24, 0.18), transparent 55%);
}

.hero-sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparkle 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.s1 { top: 18%; left: 12%; animation-delay: 0s; }
.s2 { top: 28%; right: 16%; width: 18px; height: 18px; animation-delay: -0.8s; }
.s3 { top: 55%; left: 22%; width: 10px; height: 10px; animation-delay: -1.4s; }
.s4 { top: 42%; right: 28%; animation-delay: -2s; }
.s5 { top: 68%; right: 10%; width: 12px; height: 12px; animation-delay: -2.6s; }

@keyframes sparkle {
  0%,
  100% {
    transform: scale(0.7) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.15) rotate(18deg);
    opacity: 1;
  }
}

.hero-stage {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 2rem;
  padding-bottom: 2.5rem;
  flex: 1;
}

.brand-mark {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--gold);
  animation: brand-bob 5.5s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-mascot {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

.mascot-orbit {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  border: 2.5px dashed rgba(12, 12, 12, 0.18);
  animation: orbit-spin 22s linear infinite;
}

.mascot {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(8px 12px 0 rgba(12, 12, 12, 0.18));
  animation: mascot-float 4.8s ease-in-out infinite;
  will-change: transform;
}

.mascot-spark {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparkle 2.6s ease-in-out infinite;
}

.mascot-spark.a {
  top: 8%;
  right: 10%;
}

.mascot-spark.b {
  top: 22%;
  left: 4%;
  width: 14px;
  height: 14px;
  animation-delay: -1.2s;
}

@keyframes brand-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  background: var(--ink);
  color: var(--gold);
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  animation: ticker-move 28s linear infinite;
}

.ticker-track span::after {
  content: "·";
  margin-left: 2.5rem;
  opacity: 0.45;
}

@keyframes ticker-move {
  to {
    transform: translateX(-50%);
  }
}

/* Sections */
.section {
  position: relative;
  padding: 5.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.08rem;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.about-visual img {
  width: min(100%, 360px);
  filter: drop-shadow(10px 14px 0 rgba(12, 12, 12, 0.12));
  animation: mascot-float 6s ease-in-out infinite;
}

.float-star {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparkle 2.8s ease-in-out infinite;
}

.fs1 {
  top: 12%;
  right: 12%;
}

.fs2 {
  bottom: 18%;
  left: 10%;
  width: 12px;
  height: 12px;
  animation-delay: -1s;
}

.about-lead {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.about-points li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.14), transparent 80%);
}

.about-points strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.about-points span {
  color: var(--muted);
}

/* How to buy */
.howtobuy {
  background:
    linear-gradient(180deg, transparent, rgba(255, 253, 247, 0.65) 12%, rgba(255, 253, 247, 0.8) 88%, transparent);
}

.buy-rail {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.75rem;
  counter-reset: none;
}

.buy-card {
  position: relative;
  padding: 0 0 0 0.15rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.buy-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.buy-num {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}

.buy-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.buy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.buy-actions .btn img {
  width: 18px;
  height: 18px;
}

/* Chart */
.chart-frame {
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: calc(var(--radius) + 0.2rem);
  box-shadow: var(--shadow-sticker);
  background: #0b0b0b;
  aspect-ratio: 16 / 9;
  min-height: 420px;
}

.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.chart-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.chart-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: var(--shadow-sticker-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chart-links a:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.chart-links img {
  width: 18px;
  height: 18px;
}

/* Join us */
.joinus {
  padding-top: 0;
}

.join-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  background: #000;
  margin-bottom: 3rem;
}

.join-banner img {
  width: 100%;
  height: clamp(220px, 42vw, 460px);
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.02);
  animation: banner-ken 18s ease-in-out infinite alternate;
}

@keyframes banner-ken {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-2%);
  }
}

.join-panel .section-head {
  text-align: center;
  margin-inline: auto;
}

.join-panel .section-lead {
  margin-inline: auto;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 11rem;
  justify-content: center;
  padding: 1rem 1.25rem;
  border: 2.5px solid var(--ink);
  border-radius: 1.1rem;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-sticker);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social img {
  width: 22px;
  height: 22px;
}

.social:hover {
  background: var(--gold);
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--ink);
}

/* Footer */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 2.5px solid rgba(12, 12, 12, 0.12);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold-deep);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-stage {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
    padding-bottom: 1.5rem;
  }

  .hero h1,
  .lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-mascot {
    order: -1;
    width: min(72%, 280px);
    margin-bottom: 0.5rem;
  }

  .brand-mark {
    text-shadow: 3px 3px 0 var(--gold);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual img {
    width: min(70%, 280px);
    margin-inline: auto;
  }

  .buy-rail {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .burger {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: 4.6rem;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    border: 2.5px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sticker);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
  }

  .nav-links a:not(.nav-cta):hover {
    background: rgba(245, 197, 24, 0.18);
  }

  .nav-cta {
    justify-content: center;
  }

  .buy-rail {
    grid-template-columns: 1fr;
  }

  .chart-frame {
    min-height: 360px;
    aspect-ratio: 4 / 5;
  }

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

  .social {
    min-width: calc(50% - 0.5rem);
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .social {
    min-width: 100%;
  }
}
