:root {
  --cream: #f6ede0;
  --cream-deep: #efe0cb;
  --parchment: #faf3e8;
  --ink: #2a1f1a;
  --ink-soft: #5a463c;
  --pink: #f0a0b8;
  --pink-hot: #e87898;
  --pink-deep: #c45a7a;
  --gold: #e8b86d;
  --gold-soft: #f3d9a4;
  --sunset: #ff8a6a;
  --wave: rgba(200, 140, 90, 0.12);
  --glass: rgba(255, 248, 238, 0.72);
  --line: rgba(42, 31, 26, 0.14);
  --shadow: 0 18px 40px rgba(80, 40, 50, 0.12);
  --radius: 1.35rem;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(255, 170, 150, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 8%, rgba(240, 160, 184, 0.28), transparent 50%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(232, 184, 109, 0.22), transparent 55%),
    linear-gradient(180deg, #f8ebe0 0%, var(--parchment) 35%, #f3e2cf 70%, #f7e8d8 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

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

.sky-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 120, 160, 0.08), transparent 28%),
    linear-gradient(120deg, transparent 40%, rgba(255, 200, 120, 0.07) 100%);
  animation: sky-shift 18s ease-in-out infinite alternate;
}

.wave-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='960' height='320' viewBox='0 0 960 320' fill='none'%3E%3Cpath d='M0 220C80 180 140 140 240 160C340 180 380 240 480 230C580 220 620 140 720 150C820 160 880 210 960 190V320H0V220Z' fill='%23c88c5a' fill-opacity='0.08'/%3E%3Cpath d='M0 250C110 210 180 190 280 210C380 230 420 270 520 255C620 240 680 180 780 195C860 207 910 240 960 230V320H0V250Z' fill='%23e87898' fill-opacity='0.06'/%3E%3C/svg%3E");
  background-size: 960px 320px;
  background-repeat: repeat-x;
  background-position: 0 85%;
  animation: wave-drift 28s linear infinite;
}

#drift-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

/* Maya outline type — matches banner pink fill + black stroke */
.maya-outline,
.maya-outline-sm {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.02em;
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0 var(--ink),
    0 0 0 var(--ink);
}

.maya-outline-sm {
  -webkit-text-stroke: 1.8px var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  backdrop-filter: blur(14px);
  background: rgba(250, 243, 232, 0.82);
  border-bottom: 2px solid var(--line);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--ink);
  animation: soft-float 4.5s ease-in-out infinite;
}

.brand-text {
  font-size: 1.35rem;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: var(--pink-hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-btn {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  border: 2px solid var(--ink);
  background: var(--cream);
  transition: transform 0.25s ease, background 0.25s ease;
}

.icon-btn img {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-btn:hover {
  transform: translateY(-3px) rotate(-3deg);
  background: var(--pink);
}

.nav-toggle {
  display: none;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.85rem;
  border: 2px solid var(--ink);
  background: var(--cream);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3rem 1.25rem 4.5rem;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb--a {
  width: 280px;
  height: 280px;
  top: 8%;
  right: 8%;
  background: rgba(232, 120, 152, 0.28);
  animation: orb-drift 12s ease-in-out infinite;
}

.hero-orb--b {
  width: 340px;
  height: 340px;
  bottom: 5%;
  left: -4%;
  background: rgba(232, 184, 109, 0.25);
  animation: orb-drift 15s ease-in-out infinite reverse;
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-visual {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.logo-halo {
  position: relative;
  width: min(420px, 88vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo-halo::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(circle at 50% 70%, rgba(232, 120, 152, 0.35), transparent 60%);
  animation: pulse-halo 5s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: 86%;
  border-radius: 50%;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  object-fit: cover;
  animation: soft-float 5.5s ease-in-out infinite;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 245, 232, 0.9);
  font-family: var(--font-display);
  font-weight: 600;
  animation: chip-pop 6s ease-in-out infinite;
}

.ticker-chip img {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
}

.symbol-line {
  margin: 0.55rem 0 1rem;
}

.symbol {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 1rem;
  border: 2.5px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.btn-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-hot) 100%);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

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

.btn-ghost {
  background: var(--parchment);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(42, 31, 26, 0.2);
}

.btn-ghost:hover {
  background: var(--gold-soft);
  transform: translateY(-3px);
}

.ca-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 2px dashed var(--pink-deep);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.7);
  max-width: 34rem;
}

.ca-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.ca-value {
  flex: 1;
  min-width: 8rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  border: 2px solid var(--ink);
  background: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-copy:hover {
  transform: scale(1.05);
  background: var(--pink);
}

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}

.scroll-line {
  width: 2px;
  height: 2.2rem;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--pink-hot), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 5.5rem 1.25rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.section-sub {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.about-panel {
  padding: 1.5rem 1.35rem;
  border: 2.5px solid var(--ink);
  border-radius: calc(var(--radius) + 0.2rem);
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, background 0.35s ease;
}

.about-panel:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  background: rgba(255, 240, 245, 0.85);
}

.about-panel h3 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
}

.about-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

/* How to buy */
.buy-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.buy-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 248, 238, 0.9), rgba(255, 230, 236, 0.65));
  box-shadow: 4px 4px 0 rgba(42, 31, 26, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.buy-step:hover {
  transform: translateX(8px);
  box-shadow: 8px 8px 0 rgba(42, 31, 26, 0.1);
}

.step-num {
  font-size: 1.7rem;
  line-height: 1;
}

.buy-step h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.buy-step p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.step-link {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  border: 2px solid var(--ink);
  background: var(--parchment);
  transition: transform 0.25s ease, background 0.25s ease;
}

.step-link img {
  width: 1.7rem;
  height: 1.7rem;
}

.step-link:hover {
  transform: scale(1.08) rotate(4deg);
  background: var(--pink);
}

/* Chart */
.chart-shell {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}

.chart-frame {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 520px;
  position: relative;
}

.chart-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.chart-frame iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
  background: #fafafa;
}

.chart-frame iframe[hidden] {
  display: none;
}

.chart-placeholder {
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(240, 160, 184, 0.28), transparent 55%),
    linear-gradient(180deg, #fff8ee, #ffe8f0);
}

.chart-placeholder img {
  width: 3rem;
  height: 3rem;
  animation: soft-float 4s ease-in-out infinite;
}

.chart-placeholder p {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.chart-placeholder .maya-outline-sm {
  font-size: 1.5rem;
  color: var(--pink);
}

.chart-placeholder code {
  font-family: ui-monospace, monospace;
  background: rgba(42, 31, 26, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
}

/* Join us */
.joinus .banner-wrap {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
  aspect-ratio: 3 / 1;
  animation: banner-breathe 7s ease-in-out infinite;
}

.join-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.banner-wrap:hover .join-banner {
  transform: scale(1.03);
}

.join-links {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.join-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.15rem 0.8rem;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.85);
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.join-card img {
  width: 2rem;
  height: 2rem;
}

.join-card:hover {
  transform: translateY(-7px);
  background: linear-gradient(160deg, var(--pink), var(--gold-soft));
  box-shadow: 5px 5px 0 var(--ink);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  border-top: 2px solid var(--line);
  background: rgba(250, 243, 232, 0.75);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.footer-brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
}

.footer-brand span {
  font-size: 1.2rem;
}

.site-footer p {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pink-deep);
}

.site-footer a:hover {
  text-decoration: underline;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 50;
  padding: 0.75rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--pink);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.35s ease;
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-halo {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -18px); }
}

@keyframes wave-drift {
  from { background-position: 0 85%; }
  to { background-position: 960px 85%; }
}

@keyframes sky-shift {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes chip-pop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes banner-breathe {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 22px 48px rgba(200, 90, 120, 0.2); }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

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

  .ca-box {
    justify-content: center;
  }

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

  .join-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    background: rgba(250, 243, 232, 0.96);
    border-bottom: 2px solid var(--line);
    backdrop-filter: blur(12px);
  }

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

  .nav a {
    padding: 0.9rem 1.25rem;
  }

  .nav a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .step-link {
    grid-column: 2;
    justify-self: start;
  }

  .chart-frame iframe {
    height: 420px;
  }

  .joinus .banner-wrap {
    aspect-ratio: 3 / 1;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 2rem;
  }

  .maya-outline {
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 2px 2px 0 var(--ink);
  }

  .join-links {
    grid-template-columns: 1fr 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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