:root {
  --yellow: #ffd23a;
  --yellow-deep: #f0b400;
  --yellow-soft: #ffe99a;
  --meadow: #6fbf7a;
  --meadow-deep: #3d8f55;
  --mint: #b8efd0;
  --sky: #9ec9ff;
  --lavender: #c9b6ff;
  --ink: #1a2b24;
  --ink-soft: #3d5248;
  --cream: #f7fff8;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow: 0 18px 50px rgba(45, 90, 60, 0.18);
  --radius: 28px;
  --header-h: 76px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: #dff5e8;
  overflow-x: hidden;
}

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

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

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

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

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

.bg-mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(255, 210, 58, 0.45), transparent 55%),
    radial-gradient(ellipse 55% 50% at 85% 15%, rgba(201, 182, 255, 0.42), transparent 50%),
    radial-gradient(ellipse 60% 55% at 70% 80%, rgba(158, 201, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 60% at 30% 90%, rgba(111, 191, 122, 0.4), transparent 55%),
    linear-gradient(165deg, #e8fff1 0%, #d9f0ff 38%, #efe7ff 68%, #e6ffe8 100%);
  animation: meshDrift 22s ease-in-out infinite alternate;
}

.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.orb-a {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 18%;
  background: radial-gradient(circle, var(--yellow-soft), transparent 70%);
  animation: floatY 11s ease-in-out infinite;
}

.orb-b {
  width: 280px;
  height: 280px;
  right: -40px;
  top: 42%;
  background: radial-gradient(circle, var(--lavender), transparent 70%);
  animation: floatY 14s ease-in-out infinite reverse;
}

.orb-c {
  width: 220px;
  height: 220px;
  left: 42%;
  bottom: 8%;
  background: radial-gradient(circle, var(--mint), transparent 70%);
  animation: floatY 12s ease-in-out infinite 1s;
}

#sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes meshDrift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.06) translate(-1.5%, 1%);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-28px);
  }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header.scrolled {
  background: rgba(232, 255, 241, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 8px 30px rgba(45, 90, 60, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255, 210, 58, 0.55), 0 8px 20px rgba(240, 180, 0, 0.28);
  animation: logoPulse 3.8s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--meadow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

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

.icon-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.icon-link img {
  width: 18px;
  height: 18px;
}

.icon-link:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(255, 210, 58, 0.35);
  box-shadow: 0 10px 24px rgba(240, 180, 0, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

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

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

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 5rem;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meadow-deep);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 10vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.title-glow {
  background: linear-gradient(120deg, var(--yellow-deep), #fff1a8 35%, var(--meadow) 70%, var(--lavender));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShine 7s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(240, 180, 0, 0.28));
}

.hero-tagline {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(45, 90, 60, 0.08);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border-radius: 18px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  color: #2a2200;
  box-shadow: 0 12px 28px rgba(240, 180, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(240, 180, 0, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-soft:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-soft {
  background: linear-gradient(135deg, rgba(111, 191, 122, 0.35), rgba(158, 201, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.ca-box {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  max-width: 34rem;
  box-shadow: var(--shadow);
}

.ca-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ca-row code {
  flex: 1;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  background: #24362e;
}

.copy-btn.copied {
  background: var(--meadow-deep);
}

.hero-visual {
  display: grid;
  place-items: center;
}

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

.hero-logo {
  width: 78%;
  border-radius: 36% 40% 34% 38%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 6px rgba(255, 210, 58, 0.35),
    0 28px 60px rgba(61, 143, 85, 0.28);
  animation: floatLogo 6s ease-in-out infinite;
}

.logo-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 58, 0.55), rgba(201, 182, 255, 0.2) 45%, transparent 70%);
  filter: blur(18px);
  z-index: 1;
  animation: glowPulse 4.5s ease-in-out infinite;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  z-index: 0;
}

.ring-1 {
  inset: 4%;
  border-color: rgba(255, 210, 58, 0.45);
  animation: spinSlow 18s linear infinite;
}

.ring-2 {
  inset: -2%;
  border-color: rgba(111, 191, 122, 0.35);
  border-style: dashed;
  animation: spinSlow 28s linear infinite reverse;
}

.ring-3 {
  inset: 14%;
  border-color: rgba(201, 182, 255, 0.4);
  animation: spinSlow 22s linear infinite;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(223, 245, 232, 0.75));
  pointer-events: none;
}

@keyframes titleShine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }
}

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

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 210, 58, 0.55), 0 8px 20px rgba(240, 180, 0, 0.28);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 210, 58, 0.75), 0 10px 26px rgba(240, 180, 0, 0.4);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.section-lead {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.feature {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(45, 90, 60, 0.18);
}

.feature-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #2a2200;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-soft));
  margin-bottom: 1rem;
  box-shadow: 0 10px 22px rgba(240, 180, 0, 0.28);
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* How to buy */
.howtobuy {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

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

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(45, 90, 60, 0.1);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateX(6px);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--meadow), var(--meadow-deep));
  box-shadow: 0 10px 22px rgba(61, 143, 85, 0.3);
}

.step-body h3 {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.step-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.howto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

/* Chart */
.chart-shell {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(18, 28, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(20, 40, 30, 0.28);
}

.chart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  color: #d8ffe4;
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(90deg, rgba(111, 191, 122, 0.2), rgba(255, 210, 58, 0.12));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--yellow-soft);
  font-weight: 600;
}

.chart-link img {
  width: 16px;
  height: 16px;
}

.chart-frame {
  position: relative;
  width: 100%;
  height: min(640px, 72vh);
  background: #0d1411;
}

.chart-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Join Us */
.joinus .banner-wrap {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(45, 90, 60, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.7);
  margin-bottom: 1.6rem;
}

.join-banner {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

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

.banner-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: shineSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%,
  55% {
    transform: translateX(-120%);
  }
  80%,
  100% {
    transform: translateX(120%);
  }
}

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

.join-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 28px rgba(45, 90, 60, 0.1);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.join-card img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.join-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.join-card span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.join-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 210, 58, 0.28);
  box-shadow: 0 18px 36px rgba(240, 180, 0, 0.22);
}

/* Footer */
.footer {
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  gap: 1.2rem;
  align-items: center;
}

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

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255, 210, 58, 0.45);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-brand span,
.footer-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-note {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 0.55rem;
}

.footer-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, background 0.25s ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 210, 58, 0.35);
}

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

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

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

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .join-links,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .logo-stage {
    width: min(320px, 78vw);
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(232, 255, 241, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

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

  .nav a:hover {
    background: rgba(255, 210, 58, 0.25);
  }

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

  .menu-toggle {
    display: flex;
  }

  .header-actions .icon-link {
    display: none;
  }

  .header-actions .icon-link:first-child {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-ctas,
  .howto-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .chart-bar {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  html {
    scroll-behavior: auto;
  }
}
