/* ============================================================
   $SEED — scenes are laid out on a 1536×1024 artboard (the mockup
   size) and scaled to the viewport, so every element sits exactly
   where it does in the design.
   ============================================================ */
:root {
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --s: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #20150d; overflow-x: hidden; }
body { font-family: var(--sans); color: #1b2a1d; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; user-select: none; -webkit-user-drag: none; }

/* ---------- layout: scenery covers the screen, UI artboard fits it ---------- */
.frame { position: relative; width: 100%; height: var(--fh, 100vh); overflow: hidden; background: #3b2a1a; }
.bgl { position: absolute; left: var(--bx, 0); top: var(--by, 0); width: 1536px; height: 1024px; transform: scale(var(--sb, 1)); transform-origin: 0 0; }
.bgl > img { position: absolute; inset: 0; width: 1536px; height: 1024px; }
.stage { position: absolute; left: var(--ox, 0); top: var(--oy, 0); width: 1536px; height: 1024px; transform: scale(var(--s)); transform-origin: 0 0; }
a:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(47, 90, 42, .6); outline-offset: 4px; border-radius: 6px; }
a[aria-disabled="true"] { cursor: default; }
.abs { position: absolute; }
.sprite { position: absolute; pointer-events: none; }

/* ---------- nav ---------- */
.nav-logo { left: 107px; top: 21px; transition: transform .25s; }
.nav-logo:hover { transform: rotate(-2deg) scale(1.03); }
.nav-logo img { width: 168px; height: 40px; }
.nav-links { left: 365px; top: 29px; display: flex; gap: 38px; font-size: 16px; font-weight: 450; }
.nav-links a { position: relative; padding: 2px 0 11px; color: #1d2b1f; }
.nav-links a::after {
  content: ""; position: absolute; left: -5px; right: -5px; bottom: 0; height: 2px; border-radius: 2px;
  background: #2f5a2a; transform: scaleX(0); transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { font-weight: 600; }
.nav-social { left: 1107px; top: 27px; display: flex; gap: 30px; }
.nav-social a { width: 25px; height: 25px; color: #1d2b1f; transition: transform .2s; }
.nav-social a:hover { transform: translateY(-2px) scale(1.1); }
.nav-social svg { width: 100%; height: 100%; }
.nav-buy {
  left: 1281px; top: 17px; width: 169px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #243a26, #162518); color: #f2efe6; font-size: 17px; font-weight: 500;
  box-shadow: 0 4px 12px rgba(10, 25, 12, .35), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s, box-shadow .2s;
}
.nav-buy img { width: 22px; height: 22px; }
.nav-buy:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10, 25, 12, .4); }

/* ---------- ambient light / particles ---------- */
.sunflare {
  position: absolute; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,236,170,.5) 0%, rgba(255,200,110,.16) 30%, rgba(255,190,90,0) 62%);
  mix-blend-mode: screen; animation: flare 7s ease-in-out infinite;
}
.rays {
  position: absolute; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; pointer-events: none; opacity: .16;
  background: repeating-conic-gradient(from 0deg, rgba(255,230,160,.55) 0deg 3deg, rgba(255,230,160,0) 3deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0,0,0,.4) 30%, transparent 62%);
          mask: radial-gradient(circle, #000 0%, rgba(0,0,0,.4) 30%, transparent 62%);
  mix-blend-mode: screen; animation: spin 120s linear infinite;
}
@keyframes flare { 50% { transform: scale(1.12); opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }
canvas.fx { position: absolute; left: 0; top: 0; width: 1536px; height: 1024px; pointer-events: none; }

/* ---------- plants ---------- */
.plant { position: absolute; transform-origin: 50% 100%; pointer-events: none; }
.plant img { width: 100%; height: 100%; transform-origin: 50% 100%; transition: filter .8s, opacity .8s; }
.plant.sway img { animation: sway var(--dur, 5s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes sway { 0%,100% { transform: rotate(calc(var(--amp, 1.6deg) * -1)); } 50% { transform: rotate(var(--amp, 1.6deg)); } }
.plant.sprouting { animation: sprout 1.3s cubic-bezier(.3,1.5,.5,1) both; animation-delay: var(--in, 0s); }
@keyframes sprout { 0% { transform: scale(.05, 0); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.plant.locked img { filter: saturate(.2) brightness(.7) contrast(.9); opacity: .75; }
.plant.current img { filter: drop-shadow(0 0 14px rgba(255, 220, 120, .55)); }

/* +1 growth: the plant gives a little happy wiggle */
.plant.react { animation: react .7s cubic-bezier(.3,1.8,.5,1); }
@keyframes react { 0% { transform: scale(1); } 30% { transform: scale(1.06, .95); } 60% { transform: scale(.97, 1.05); } 100% { transform: scale(1); } }

/* title */
.letter { transform-origin: 50% 100%; animation: letterIn 1s cubic-bezier(.3,1.6,.5,1) both, breathe 6s ease-in-out infinite; }
@keyframes letterIn { 0% { transform: translateY(40px) scale(.2, .1); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes breathe { 50% { transform: scale(1.012, 1.025); } }
.leaf { transform-origin: 38% 100%; animation: leafIn 1.1s cubic-bezier(.3,1.7,.5,1) 1.1s both, leafSway 4s ease-in-out 2.2s infinite; }
@keyframes leafIn { from { transform: scale(0) rotate(-20deg); } to { transform: scale(1); } }
@keyframes leafSway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
.write { animation: write 1.6s cubic-bezier(.6,.1,.4,1) .9s both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- live text on baked cards ---------- */
.num { font: 500 40px/1 var(--mono); letter-spacing: -.5px; color: #1c2a1f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lbl { font: 600 15px/1 var(--sans); letter-spacing: 1.5px; color: #1c2a1f; text-transform: uppercase; white-space: nowrap; }
.mono-sm { font: 400 17px/1 var(--mono); color: #1c2a1f; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.mono-sm img { width: 26px; height: 26px; }
.bar {
  position: absolute; border-radius: 99px; overflow: hidden;
  background: linear-gradient(180deg, #d4ccbc, #e0d9cb); box-shadow: inset 0 2px 3px rgba(60, 45, 20, .2), 0 1px 0 rgba(255,255,255,.6);
}
.bar i {
  display: block; height: 100%; width: 0; border-radius: 99px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #9fcf52, #7db23a); box-shadow: inset 0 -2px 3px rgba(40, 80, 10, .25), inset 0 1px 0 rgba(255,255,255,.35);
  transition: width 1.2s cubic-bezier(.3,1.2,.5,1);
}
.bar i::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 2.6s ease-in-out infinite;
}
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.tick { animation: tick .5s ease; }
@keyframes tick { 30% { transform: translateY(-3px); color: #4d8a1f; } }

/* invisible hit areas over baked buttons */
.hit { position: absolute; border-radius: 12px; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.hit.plain { border: 0; background: transparent; }
.hit:hover { background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 2px rgba(255, 255, 255, .3), 0 10px 24px rgba(0, 0, 0, .12); }
.hit:active { background: rgba(0, 0, 0, .06); }
.ca-text { font: 400 21px/1 var(--mono); color: #1c2a1f; white-space: nowrap; letter-spacing: -.2px; }
.toast {
  position: absolute; padding: 8px 14px; border-radius: 10px; font: 500 14px var(--sans); color: #fff; background: #1d3020;
  opacity: 0; transform: translateY(6px); transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- home stage labels ---------- */
.slabel { position: absolute; text-align: center; color: #f1e7d6; font: 500 16px/1 var(--mono); letter-spacing: 1px; transition: opacity .6s; white-space: nowrap; }
.slabel b { display: block; font-weight: 500; }
.slabel hr { width: 64px; height: 1px; margin: 9px auto 10px; border: 0; background: linear-gradient(90deg, transparent, #8ec04a, transparent); }
.slabel.locked { opacity: .6; }
.sbox {
  position: absolute; border-radius: 10px; pointer-events: none; transition: box-shadow .5s;
  background: linear-gradient(180deg, rgba(62, 40, 24, .86), rgba(40, 25, 14, .86));
  box-shadow: inset 0 0 0 1px rgba(255, 222, 180, .14), inset 0 1px 0 rgba(255, 230, 200, .12), 0 6px 14px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.sbox.current { animation: glow 2s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: inset 0 0 0 1.5px #d9a441, 0 0 16px rgba(227, 169, 74, .45), 0 6px 14px rgba(0,0,0,.4); } 50% { box-shadow: inset 0 0 0 1.5px #f0c46a, 0 0 30px rgba(240, 196, 106, .75), 0 6px 14px rgba(0,0,0,.4); } }

/* ---------- grow: feed ---------- */
.feed { left: 1097px; top: 138px; width: 387px; height: 314px; overflow: hidden; }
.row {
  position: relative; height: 44.8px; display: flex; align-items: center; border-bottom: 1px solid rgba(60, 50, 30, .12);
  font: 500 15px var(--sans); color: #273226;
}
.row.fresh { animation: rowIn .6s cubic-bezier(.3,1.4,.5,1); }
.row img { width: 20px; height: 20px; margin: 0 11px 0 5px; }
.row .g { width: 93px; }
.row .t { width: 76px; color: #8a8579; font-weight: 400; font-size: 14px; }
.row .w { flex: 1; font: 400 15px var(--mono); letter-spacing: -.2px; }
.row .side { width: 53px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 600 13px var(--sans); letter-spacing: .5px; margin-right: 3px; }
.side.buy { background: #d3e6c3; color: #2b5a22; }
.side.sell { background: #f7d2c4; color: #c3301e; }
.side.swap { background: #e6e0d2; color: #5b5646; }
a.row:hover { background: rgba(140, 200, 70, .12); }
.row.fresh::before { content: ""; position: absolute; inset: 0; background: rgba(140, 200, 70, .28); animation: flash 1.4s ease forwards; }
.feed-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 400 15px var(--sans); color: #8a8579; }
@keyframes rowIn { from { transform: translateY(-44px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flash { to { opacity: 0; } }

/* ---------- grow: stage bar ---------- */
.cell { position: absolute; top: 737px; width: 130px; height: 120px; margin-left: -65px; border-radius: 12px; text-align: center; transition: background .5s, box-shadow .5s; }
.cell img { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); opacity: .5; transition: .5s; }
.cell .n { position: absolute; left: 0; right: 0; top: 68px; font: 500 16px/1 var(--mono); letter-spacing: 1px; color: rgba(236, 222, 200, .5); }
.cell .x { position: absolute; left: 0; right: 0; top: 96px; font: 400 15px/1 var(--mono); letter-spacing: .5px; color: rgba(236, 222, 200, .42); }
.cell.done img { opacity: .95; }
.cell.done .n, .cell.done .x { color: rgba(245, 232, 210, .85); }
.cell.current { background: linear-gradient(180deg, rgba(95, 64, 28, .55), rgba(60, 38, 16, .55)); box-shadow: 0 0 0 1.5px #d9a441, 0 0 18px rgba(217, 164, 65, .45), inset 0 0 18px rgba(217, 164, 65, .15); }
.cell.current img { opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 200, 100, .6)); animation: bob 2.4s ease-in-out infinite; }
.cell.current .n, .cell.current .x { color: #fbf1df; }
.cell.current .n::after { content: ""; display: block; width: 64px; height: 1.5px; margin: 7px auto 0; background: #d9a441; }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }
.arrow { position: absolute; top: 783px; width: 30px; margin-left: -15px; text-align: center; font: 300 28px/1 var(--sans); color: rgba(236, 222, 200, .45); transition: color .5s; }
.arrow.lit { color: #e3a94a; }

/* ---------- pops / banners ---------- */
.pop {
  position: absolute; padding: 5px 12px; border-radius: 99px; font: 600 15px var(--sans); color: #1d3020;
  background: rgba(239, 232, 218, .95); box-shadow: 0 4px 12px rgba(0,0,0,.2); white-space: nowrap; pointer-events: none;
  animation: popUp 1.8s ease-out forwards;
}
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80px); } }
.drop { position: absolute; width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff, #9ad8ff 45%, #4aa3e0); animation: fall 1s ease-in forwards; }
@keyframes fall { from { transform: translateY(-120px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(0); opacity: 0; } }
.banner {
  position: absolute; padding: 14px 28px; border-radius: 16px; font: 600 22px var(--sans); color: #fbf3e3; white-space: nowrap;
  background: linear-gradient(180deg, #2a432b, #1a2c1c); box-shadow: 0 0 0 2px #e3a94a, 0 14px 40px rgba(0,0,0,.35);
  animation: banner 3.4s ease forwards; pointer-events: none; z-index: 5;
}
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8); } 12%, 82% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -16px); } }
.dirt { position: absolute; width: 7px; height: 7px; border-radius: 40%; background: #4a2f1a; pointer-events: none; animation: dirt .9s ease-out forwards; }
@keyframes dirt { to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }
.ring { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid rgba(255, 225, 140, .9); pointer-events: none; animation: ring 1s ease-out forwards; }
@keyframes ring { to { transform: scale(18); opacity: 0; } }
.demo-tag { position: absolute; padding: 3px 8px; border-radius: 6px; font: 600 11px var(--sans); letter-spacing: 1px; color: #7a5a12; background: #f6e3a9; }

/* ---------- scene sprite entrances ---------- */
.a-fade-up { animation: fadeUp .9s cubic-bezier(.2,.8,.3,1) both; }
.a-fade { animation: fadeIn 1s ease both; }
.a-write { animation: write 1.6s cubic-bezier(.6,.1,.4,1) both; }
.a-pop { animation: popIn .8s cubic-bezier(.3,1.5,.5,1) both; }
.a-slide-left { animation: slideL .9s cubic-bezier(.2,.9,.3,1) both; }
.a-rise { animation: rise 1s cubic-bezier(.2,1.2,.4,1) both; }
.a-buddy { transform-origin: 50% 100%; animation: sprout 1.2s cubic-bezier(.3,1.5,.5,1) both, buddy 3.2s ease-in-out infinite; }
.a-sign { transform-origin: 45% 100%; animation: popIn .9s cubic-bezier(.3,1.5,.5,1) both, sign 5s ease-in-out infinite; }
.a-sway { transform-origin: 50% 100%; animation: sprout 1.1s cubic-bezier(.3,1.5,.5,1) both, sway 4.2s ease-in-out infinite; --amp: 2.5deg; }
.a-note { transform-origin: 50% 0; animation: fadeUp .9s ease both, note 6s ease-in-out infinite; }
.a-plant { transform-origin: 50% 100%; animation: sprout 1.2s cubic-bezier(.3,1.5,.5,1) both, sway 5s ease-in-out infinite; --amp: 1.4deg; transition: filter .8s, opacity .8s; }
.a-plant.locked { filter: saturate(.2) brightness(.72) contrast(.9); opacity: .8; }
.a-plant.current { filter: drop-shadow(0 0 14px rgba(255, 220, 120, .55)); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes slideL { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(70px) rotate(1deg); } to { opacity: 1; transform: none; } }
@keyframes buddy { 0%,100% { transform: scale(1); } 45% { transform: scale(1.03, .96); } 60% { transform: scale(.98, 1.04) translateY(-4px); } }
@keyframes sign { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes note { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-1.2deg) translateY(2px); } }

/* grow stage bar panel */
.stagebar { position: absolute; border-radius: 16px; background: linear-gradient(180deg, rgba(44, 30, 18, .78), rgba(30, 20, 12, .78));
  box-shadow: inset 0 0 0 1px rgba(255, 220, 170, .16), inset 0 1px 0 rgba(255, 230, 200, .08), 0 10px 30px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeUp .9s ease .9s both; }

/* roadmap */
.sbox.rm { border-radius: 12px; }
.slabel.rm { font: 500 16px/1 var(--sans); letter-spacing: 1.2px; }
.slabel.rm b + b { margin-top: 12px; }
.arrow.rm { width: 24px; margin: 0; top: 532px; font-size: 26px; color: rgba(255, 245, 225, .85); }
.rm-card { position: absolute; font: 400 14px/1 var(--sans); color: #3b3a2e; animation: fadeIn .8s ease 1.6s both; }
.rm-card ul { list-style: none; margin: 0; padding: 0; }
.rm-card li { display: flex; align-items: center; gap: 9px; height: 25.5px; white-space: nowrap; }
.rm-card li i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #b9b3a3; }
.rm-card li.done i { border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%233f8a2c'/%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.rm-foot { position: absolute; left: -6px; right: -6px; top: 132px; }
.pill { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 13px var(--sans); letter-spacing: 1px; }
.pill svg { width: 17px; height: 17px; }
.pill.ok { background: linear-gradient(180deg, #dfe6c2, #d3ddb2); color: #2c3a1e; box-shadow: inset 0 0 0 1px rgba(90, 120, 40, .15); }
.pill.lock { color: #8b8778; box-shadow: inset 0 0 0 1.5px rgba(120, 110, 90, .22); }
.rm-bar { height: 9px; border-radius: 9px; background: #e6e0d0; overflow: hidden; margin: 2px 6px 0; }
.rm-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #7fb43a, #5f9a30); transition: width 1.2s; }
.rm-prog { display: flex; justify-content: space-between; margin: 10px 6px 0; font: 600 13px var(--sans); letter-spacing: 1px; color: #2c3a1e; }

/* tokenomics donut */
.donut { position: absolute; }
.donut svg { width: 100%; height: 100%; }
.donut .ring { stroke-dasharray: 792; stroke-dashoffset: 792; animation: drawRing 1.8s cubic-bezier(.5,0,.2,1) 1s forwards; }
@keyframes drawRing { to { stroke-dashoffset: 0; } }

/* "Paired with $GRASS" badge */
.paired { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 99px;
  font: 500 14px var(--sans); color: #1d2b1f; background: rgba(250, 246, 236, .82); box-shadow: 0 0 0 1px rgba(40, 60, 30, .18), 0 4px 12px rgba(0,0,0,.08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; animation: fadeUp .8s ease 1.2s both; }
.paired b { font-weight: 700; color: #2f6a1f; }
.paired i { width: 8px; height: 8px; border-radius: 50%; background: #62b030; box-shadow: 0 0 0 3px rgba(98, 176, 48, .22); }

/* dev-only mock controls (never rendered in production) */
.mock-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 14px; background: rgba(20, 30, 20, .88); color: #f6e3a9; font: 600 12px var(--sans); letter-spacing: .8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(8px);
}
.mock-panel button { font: 600 13px var(--sans); padding: 8px 12px; border: 0; border-radius: 9px; cursor: pointer; background: #9fcf52; color: #14240f; }
.mock-panel button:hover { background: #b6e06a; }

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