/* ============================================================
   YOLKY the EGG - design tokens
   Palette:
     --yolk        #F5A623  primary egg-yolk gold
     --yolk-deep   #E8890B  yolk shadow / hover
     --cream       #FFF6E4  warm butter-cream background
     --cream-2     #FFEFCF  secondary cream (card fill)
     --brown       #6B4226  toasted-brown ink (matches sticker outlines)
     --brown-deep  #2E2118  countertop charcoal (footer/dark contrast)
     --skillet     #E85D3D  skillet-red accent
     --herb        #7BA05B  herb-green accent
   Type:
     Display  - 'Baloo 2'     (rounded, bold, playful headlines)
     Body     - 'Nunito'      (warm rounded sans, readable)
     Utility  - 'Space Mono'  (contract address / data)
   Signature element: the fried-egg "white" blob silhouette, reused as
   section dividers, card shapes and button underlays.
   ============================================================ */

:root {
  --yolk: #F5A623;
  --yolk-deep: #E8890B;
  --cream: #FFF6E4;
  --cream-2: #FFEFCF;
  --brown: #6B4226;
  --brown-deep: #2E2118;
  --skillet: #E85D3D;
  --herb: #7BA05B;
  --white: #FFFDF8;

  --font-display: 'Baloo 2', 'Segoe UI Rounded', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --radius-blob: 42% 58% 61% 39% / 46% 42% 58% 54%;
  --shadow-soft: 0 12px 30px -12px rgba(107, 66, 38, 0.35);
  --shadow-card: 0 8px 24px -10px rgba(107, 66, 38, 0.25);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown-deep);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 .4em; line-height: 1.12; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--skillet);
  font-weight: 700;
  margin: 0 0 .6em;
}

/* ============ layout helpers ============ */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brown-deep); }
.section-sub { color: #7A5C42; font-size: 1.05rem; }

/* alternating warm backdrops between sections, kitchen "counters" */
.cooking { background: linear-gradient(180deg, var(--cream), var(--cream-2) 60%, var(--cream)); border-radius: 60px; }
.origin { }
.token { background: var(--cream-2); border-radius: 60px; }
.chart { }
.buy { background: var(--cream-2); border-radius: 60px; }
.crew { }
.roadmap { background: var(--cream-2); border-radius: 60px; }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: .8em 1.5em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.1;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(0) rotate(0); }
.btn-yolk { background: var(--yolk); color: var(--brown-deep); box-shadow: var(--shadow-soft); }
.btn-yolk:hover { background: var(--yolk-deep); box-shadow: 0 16px 30px -12px rgba(232,137,11,.5); }
.btn-outline { background: transparent; border-color: var(--brown); color: var(--brown-deep); }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-ghost { background: rgba(107,66,38,.06); color: var(--brown-deep); }
.btn-ghost:hover { background: rgba(107,66,38,.14); }
.btn-text { background: transparent; padding: .8em .4em; }
.btn-text:hover { transform: translateX(4px); }
.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }

/* ============ steam ambient background ============ */
.steam-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.steam {
  position: absolute;
  bottom: -10%;
  width: 120px;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.55), rgba(255,255,255,0) 70%);
  filter: blur(6px);
  animation: rise 14s ease-in infinite;
  opacity: 0;
}
.s1 { left: 8%; animation-delay: 0s; }
.s2 { left: 55%; animation-delay: 5s; }
.s3 { left: 80%; animation-delay: 9s; }
@keyframes rise {
  0% { transform: translateY(0) scale(.8); opacity: 0; }
  15% { opacity: .5; }
  80% { opacity: .15; }
  100% { transform: translateY(-70vh) scale(1.3); opacity: 0; }
}

/* ============ nav ============ */
.nav-shelf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 246, 228, .88);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--brown);
  box-shadow: 0 4px 0 rgba(107,66,38,.08);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 42px; height: 42px; display: block; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brown-deep);
  letter-spacing: -.01em;
}
.nav-links { display: flex; gap: 22px; flex-wrap: nowrap; }
.nav-links a {
  font-weight: 700;
  font-size: .92rem;
  color: var(--brown);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--skillet); }
.nav-ctas { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; background: none; border: none; padding: 8px; flex-direction: column; gap: 5px; }
.hamburger span { width: 26px; height: 3px; background: var(--brown-deep); border-radius: 2px; }
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 4px;
  background: var(--cream);
  border-top: 2px solid rgba(107,66,38,.15);
}
.nav-mobile a { padding: 10px 4px; font-weight: 700; color: var(--brown-deep); border-bottom: 1px dashed rgba(107,66,38,.15); }
.nav-mobile-ctas { display: flex; gap: 10px; margin-top: 14px; }
.nav-shelf.open .nav-mobile { display: flex; }

/* ============ hero ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 100px;
  min-height: 640px;
  overflow: visible;
}
.hero-bg { position: absolute; inset: -40px -100vw; z-index: -1; overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(245,166,35,.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(232,93,61,.14), transparent 40%),
    var(--cream);
}
.hero-tile {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(107,66,38,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(107,66,38,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}
.hero-shelf { position: absolute; left: 0; right: 0; bottom: 60px; height: 14px; background: var(--brown); opacity: .12; border-radius: 4px; }
.hanging-utensil { position: absolute; top: 0; font-size: 2rem; transform-origin: top center; animation: swing 5s ease-in-out infinite; opacity: .5; }
.u1 { left: 6%; animation-delay: 0s; }
.u2 { left: 48%; animation-delay: .6s; font-size: 2.4rem; }
.u3 { right: 8%; animation-delay: 1.2s; }
@keyframes swing { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.hero-inner { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.4rem); color: var(--brown-deep); }
.hero-title .accent { color: var(--skillet); position: relative; }
.hero-sub { font-size: 1.15rem; color: #6b4d34; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 2px solid rgba(107,66,38,.15);
  padding: 10px 18px; border-radius: 999px; font-family: var(--font-mono); font-size: .82rem;
  box-shadow: var(--shadow-card);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--herb); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-stage { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
.hero-pan {
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--cream-2), #F0D9A8 78%, var(--brown) 100%);
  box-shadow: inset 0 -14px 26px rgba(107,66,38,.35), var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  animation: float 6s ease-in-out infinite;
}
.hero-mascot { width: 300px; height: 300px; }
.hero-float { position: absolute; width: 180px; height: 180px; top: 2%; right: -2%; animation: float 5s ease-in-out infinite 1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ============ dish cards ============ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.dish-card {
  background: var(--white);
  border: 2px solid rgba(107,66,38,.12);
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dish-card:hover { transform: translateY(-6px) rotate(-.5deg); border-color: var(--yolk); box-shadow: 0 20px 34px -16px rgba(245,166,35,.4); }
.dish-icon { font-size: 2.1rem; margin-bottom: 14px; }
.dish-card h3 { font-size: 1.2rem; margin-bottom: .3em; }
.dish-card p { color: #7A5C42; font-size: .95rem; margin: 0; }
.dish-card-future { background: repeating-linear-gradient(135deg, var(--white), var(--white) 10px, #FFFAF0 10px, #FFFAF0 20px); border-style: dashed; }

/* ============ origin (scrapbook / pinboard) ============ */
.origin-board {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
}
.origin-card {
  background: var(--white);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(107,66,38,.12);
  position: relative;
}
.origin-card-main { display: flex; flex-direction: column; }
.origin-lottie { width: 96px; height: 96px; margin-bottom: 10px; }
.origin-card-milestone { background: var(--cream-2); border-style: dashed; display: flex; flex-direction: column; justify-content: center; }
.pin { position: absolute; top: -14px; left: 24px; font-size: 1.6rem; filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.pin-link { color: var(--skillet); font-weight: 800; margin-top: auto; display: inline-block; }
.pin-link:hover { text-decoration: underline; }

/* ============ token recipe card ============ */
.recipe-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-blob);
  padding: 46px 40px;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--brown);
}
.recipe-card-top { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.recipe-lottie { width: 88px; height: 88px; flex-shrink: 0; }
.recipe-card-top h3 { font-size: 1.7rem; margin: 0; }
.recipe-tag { margin: 0; color: var(--skillet); font-weight: 700; font-size: .9rem; }
.recipe-list { margin: 0 0 26px; }
.recipe-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed rgba(107,66,38,.2);
}
.recipe-row dt { font-weight: 700; color: var(--brown); }
.recipe-row dd { margin: 0; font-family: var(--font-mono); font-size: .92rem; text-align: right; }
.recipe-row-ca dd { display: flex; align-items: center; gap: 8px; }
.recipe-row-ca code { font-size: .74rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.recipe-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.copy-btn {
  background: var(--cream-2); border: 2px solid var(--brown); color: var(--brown-deep);
  border-radius: 999px; padding: .3em .9em; font-size: .72rem; font-weight: 800;
  font-family: var(--font-mono); transition: background .2s ease;
}
.copy-btn:hover { background: var(--yolk); }
.copy-btn-inline { margin-top: 10px; }

/* ============ chart / stove panel ============ */
.stove-panel {
  max-width: 900px; margin: 0 auto;
  background: var(--brown-deep);
  border-radius: 32px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.stove-panel-header { display: flex; align-items: center; gap: 12px; color: var(--cream); font-family: var(--font-mono); font-weight: 700; margin-bottom: 14px; padding: 0 6px; }
.stove-icon { width: 26px; height: 26px; border-radius: 50%; }
.chart-embed-wrap { border-radius: 20px; overflow: hidden; background: #0d0a08; height: 480px; }
.chart-embed-wrap iframe { width: 100%; height: 100%; border: 0; }
.stove-panel-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 0 6px; }
.stove-panel-actions .btn-outline { color: var(--cream); border-color: rgba(255,246,228,.4); }
.stove-panel-actions .btn-outline:hover { background: var(--yolk); border-color: var(--yolk); color: var(--brown-deep); }

/* ============ order flow ============ */
.order-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.order-step {
  background: var(--white);
  border-radius: 26px;
  padding: 28px 22px;
  text-align: center;
  border: 2px solid rgba(107,66,38,.12);
  box-shadow: var(--shadow-card);
  position: relative;
}
.step-lottie { width: 64px; height: 64px; margin: 0 auto 12px; }
.step-emoji { font-size: 2.4rem; margin-bottom: 12px; }
.order-step h3 { font-size: 1rem; }
.order-step p { font-size: .88rem; color: #7A5C42; }
.order-step-links { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.order-step-links a { font-weight: 800; color: var(--skillet); font-size: .85rem; }

/* ============ crew ============ */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.crew-card {
  background: var(--white);
  border: 2px solid rgba(107,66,38,.12);
  border-radius: var(--radius-blob);
  padding: 22px 10px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.crew-card:hover, .crew-card:focus-visible { transform: translateY(-8px) scale(1.03); box-shadow: 0 20px 30px -14px rgba(245,166,35,.45); }
.crew-lottie { width: 120px; height: 120px; }
.crew-name { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--brown-deep); }

/* ============ roadmap ============ */
.recipe-steps { max-width: 720px; margin: 0 auto; position: relative; }
.recipe-steps::before {
  content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px;
  background: repeating-linear-gradient(180deg, var(--brown) 0 8px, transparent 8px 16px);
  opacity: .3;
}
.recipe-step { display: flex; gap: 20px; padding: 0 0 34px; position: relative; }
.recipe-step-marker {
  width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 3px solid var(--brown);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; z-index: 1;
}
.recipe-step.done .recipe-step-marker { background: var(--herb); color: var(--white); border-color: var(--herb); }
.recipe-step.active .recipe-step-marker { background: var(--skillet); color: var(--white); border-color: var(--skillet); animation: pulse 1.5s ease-in-out infinite; }
.recipe-step h3 { font-size: 1.15rem; margin-bottom: .2em; }
.recipe-step p { color: #7A5C42; font-size: .95rem; margin: 0; }

/* ============ community ============ */
.community { text-align: center; }
.community-inner { max-width: 640px; margin: 0 auto; }
.community-lottie { width: 220px; height: 220px; margin: 0 auto 6px; }
.community-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }

/* ============ footer ============ */
.footer { background: var(--brown-deep); color: var(--cream); margin-top: 40px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 44px; height: 44px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.footer-word { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: 0; }
.footer-tag { margin: 0; opacity: .7; font-size: .88rem; }
.footer-ca { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .85rem; grid-column: 2; }
.footer-ca .copy-btn { background: transparent; border-color: rgba(255,246,228,.4); color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 22px; grid-column: 2; font-size: .88rem; }
.footer-links a { opacity: .8; }
.footer-links a:hover { opacity: 1; color: var(--yolk); }
.footer-disclaimer { grid-column: 1 / -1; opacity: .55; font-size: .78rem; margin: 10px 0 0; border-top: 1px solid rgba(255,246,228,.15); padding-top: 20px; }

/* ============ toast ============ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--brown-deep); color: var(--cream); padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .85rem; z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ scroll-reveal ============ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============ responsive ============ */
@media (max-width: 980px) {
  .nav-links, .nav-ctas { display: none; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-stage { height: 340px; }
  .hero-pan { width: 280px; height: 280px; }
  .hero-mascot { width: 220px; height: 220px; }
  .origin-board { grid-template-columns: 1fr; }
  .order-flow { grid-template-columns: repeat(2, 1fr); }
  .crew-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-ca, .footer-links { grid-column: 1; }
}
@media (max-width: 620px) {
  .section { padding: 70px 18px; border-radius: 34px; }
  .menu-grid { grid-template-columns: 1fr; }
  .order-flow { grid-template-columns: 1fr 1fr; }
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-card { padding: 32px 22px; }
  .stove-panel { padding: 16px; }
  .chart-embed-wrap { height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steam, .hanging-utensil, .hero-pan, .hero-float, .dot, .recipe-step.active .recipe-step-marker {
    animation: none !important;
  }
  [data-reveal] { transition: none; }
}
