:root {
  --bg: #eaf6f1;
  --bg-deep: #0f1f18;
  --surface: #f7fcfa;
  --ink: #12201a;
  --muted: #4d6358;
  --line: #cfe3d8;
  --mint: #00c46a;
  --mint-deep: #009e54;
  --blush: #ff7a9c;
  --sun: #ffc857;
  --foam: #ffffff;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Figtree", sans-serif;
  --radius: 14px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

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

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

/* Progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, var(--mint), var(--sun), var(--blush));
  transform-origin: left center;
  pointer-events: none;
}

/* Ambient mesh */
.mesh {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 8% 12%, rgba(0, 196, 106, 0.22), transparent 60%),
    radial-gradient(700px 480px at 92% 18%, rgba(255, 200, 87, 0.2), transparent 55%),
    radial-gradient(640px 420px at 70% 85%, rgba(255, 122, 156, 0.14), transparent 60%),
    linear-gradient(180deg, #eaf6f1 0%, #f4fbf7 45%, #e8f4ee 100%);
  animation: mesh-shift 16s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(12deg) saturate(1.08); }
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  mix-blend-mode: multiply;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-blob {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 45;
  background: radial-gradient(circle, rgba(0, 196, 106, 0.18), transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: left, top;
}

.cursor-blob.active {
  opacity: 1;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(234, 246, 241, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: rgba(18, 32, 26, 0.08);
  background: rgba(247, 252, 250, 0.9);
  box-shadow: 0 8px 24px rgba(18, 32, 26, 0.05);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
  transition: transform 0.35s var(--ease);
}

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

.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

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

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--foam);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  animation: menu-in 0.28s var(--ease);
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn {
  margin-top: 0.75rem;
  text-align: center;
  border-bottom: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--mint);
  color: #062414;
  border-color: var(--ink);
  box-shadow: 0 10px 0 rgba(18, 32, 26, 0.12);
}

.btn-primary:hover {
  background: #14d67a;
  box-shadow: 0 12px 0 rgba(18, 32, 26, 0.14);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--sun);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

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

.btn-lg {
  padding: 0.98rem 1.6rem;
  font-size: 1.02rem;
}

.btn-copy {
  background: var(--foam);
  color: var(--ink);
  border-color: var(--foam);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  box-shadow: none;
}

.btn-copy.copied {
  background: var(--sun);
  color: var(--ink);
}

.shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
}

.shine:hover::before {
  animation: shine-sweep 0.75s var(--ease);
}

@keyframes shine-sweep {
  to { left: 140%; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem 3.5rem;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
  transform: scale(1.08);
  transition: transform 0.1s linear;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 31, 24, 0.45) 0%, rgba(15, 31, 24, 0.28) 45%, rgba(15, 31, 24, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.logo-float {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  animation: logo-bob 3.6s ease-in-out infinite;
}

@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}

.hero-brand h1,
.title-ent {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 9.5vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.5rem;
}

.hero-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1.65rem;
}

.hero-symbol::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(0, 196, 106, 0.5);
  animation: pulse-dot 1.8s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 196, 106, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(0, 196, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 196, 106, 0); }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Ticker */
.ticker {
  background: var(--ink);
  color: var(--foam);
  overflow: hidden;
  border-top: 2px solid var(--mint);
  border-bottom: 2px solid var(--sun);
  padding: 0.85rem 0;
}

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

.ticker-track span {
  white-space: nowrap;
  opacity: 0.9;
}

.ticker-track span:nth-child(odd) {
  color: var(--mint);
}

.ticker-track span:nth-child(3n) {
  color: var(--sun);
}

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

/* CA bar */
.ca-bar {
  background: linear-gradient(90deg, #143328, #0f1f18 50%, #1a3a2c);
  color: #fff;
  padding: 1.05rem 1.5rem;
}

.ca-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.ca-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
}

.ca-value {
  flex: 1 1 auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  word-break: break-all;
}

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

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 1rem;
}

.lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.75rem;
}

/* About */
.about {
  background: transparent;
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-visual {
  overflow: hidden;
  border-radius: 28px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(145deg, rgba(0, 196, 106, 0.25), transparent 50%),
    linear-gradient(320deg, rgba(255, 200, 87, 0.25), transparent 45%),
    var(--foam);
  aspect-ratio: 1;
  max-width: 420px;
  transition: transform 0.35s var(--ease);
  transform-style: preserve-3d;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.about-visual:hover img {
  transform: scale(1.05);
}

.about-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
}

.facts {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1.5px solid var(--line);
  font-size: 1rem;
  transition: padding-left 0.25s var(--ease), background 0.25s ease;
}

.facts li:hover {
  padding-left: 0.4rem;
  background: linear-gradient(90deg, rgba(0, 196, 106, 0.08), transparent);
}

.facts span {
  color: var(--muted);
  font-weight: 500;
}

.facts strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* How to buy */
.how {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 200, 87, 0.12) 100%);
}

.steps {
  list-style: none;
  display: grid;
  gap: 0;
  margin-bottom: 2.5rem;
  border-top: 2px solid var(--ink);
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 2px solid var(--ink);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.steps li:hover {
  transform: translateX(6px);
  background: linear-gradient(90deg, rgba(0, 196, 106, 0.08), transparent 60%);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  color: var(--blush);
  min-width: 2.6rem;
  transition: color 0.25s ease, transform 0.25s var(--ease);
}

.steps li:hover .step-num {
  color: var(--mint-deep);
  transform: scale(1.08);
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--muted);
  max-width: 36rem;
}

.section-cta {
  display: flex;
}

/* Join */
.join {
  background: var(--bg-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.join-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: orb-float 10s ease-in-out infinite alternate;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(0, 196, 106, 0.4), transparent 70%);
}

.orb-b {
  width: 220px;
  height: 220px;
  bottom: -40px;
  left: 8%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.35), transparent 70%);
  animation-delay: -3s;
}

.orb-c {
  width: 160px;
  height: 160px;
  top: 40%;
  right: 28%;
  background: radial-gradient(circle, rgba(255, 122, 156, 0.28), transparent 70%);
  animation-delay: -6s;
}

@keyframes orb-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -24px, 0) scale(1.08); }
}

.join-inner {
  position: relative;
  z-index: 1;
}

.join .eyebrow {
  color: var(--sun);
}

.join .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* Footer */
.footer {
  background: #0b1712;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer .nav-brand {
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer .nav-brand img {
  width: 32px;
  height: 32px;
  border-color: var(--mint);
}

.footer-ca {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--mint);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

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

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

@media (min-width: 768px) {
  .nav {
    padding: 0 2rem;
  }

  .nav-links,
  .nav-actions {
    display: flex;
  }

  .nav-toggle,
  .mobile-menu {
    display: none !important;
  }

  .hero {
    padding: calc(var(--nav-h) + 2rem) 2.5rem 2.5rem;
  }

  .section {
    padding: 7rem 2.5rem;
  }

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }

  .steps li {
    gap: 2rem;
    padding: 2rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh,
  .logo-float,
  .ticker-track,
  .orb,
  .hero-symbol::before {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .btn:hover { transform: none; }
  .cursor-blob { display: none; }
}
