:root {
  --cream: #fff8e8;
  --butter: #ffd978;
  --honey: #f6a62f;
  --berry: #c94964;
  --chocolate: #4a210d;
  --cocoa: #7b3a16;
  --mint: #4c9b8a;
  --ink: #281409;
  --white: #fffdf7;
  --shadow: 0 24px 80px rgba(76, 33, 13, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 217, 120, 0.45), transparent 26rem),
    radial-gradient(circle at 86% 20%, rgba(201, 73, 100, 0.2), transparent 22rem),
    linear-gradient(135deg, #fffaf0 0%, #fff1bd 54%, #ffd27c 100%);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 28px clamp(18px, 4vw, 64px);
  isolation: isolate;
}

.page-shell::before {
  position: absolute;
  inset: 14px;
  z-index: -3;
  border: 2px solid rgba(74, 33, 13, 0.11);
  border-radius: 34px;
  content: "";
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(92px, 12vw, 146px);
  filter: drop-shadow(0 14px 22px rgba(74, 33, 13, 0.18));
}

.nav-socials,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-socials a {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(74, 33, 13, 0.14);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.7);
  box-shadow: 0 10px 24px rgba(74, 33, 13, 0.09);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-socials a:hover {
  border-color: rgba(74, 33, 13, 0.34);
  background: var(--white);
  transform: translateY(-3px) rotate(-4deg);
}

.nav-socials svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--chocolate);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  align-items: center;
  min-height: calc(100vh - 198px);
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(38px, 6vw, 84px) 0 32px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 9px 15px;
  border: 1px solid rgba(74, 33, 13, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.68);
  color: var(--cocoa);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--chocolate);
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(40, 20, 9, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.primary-link,
.coming-soon {
  min-height: 52px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: var(--chocolate);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(74, 33, 13, 0.23);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-link:hover {
  box-shadow: 0 20px 42px rgba(74, 33, 13, 0.28);
  transform: translateY(-3px);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border: 2px dashed rgba(201, 73, 100, 0.42);
  color: var(--berry);
  background: rgba(255, 253, 247, 0.45);
}

.logo-stage {
  position: relative;
  display: grid;
  min-height: clamp(340px, 48vw, 630px);
  place-items: center;
}

.logo-bite-button {
  all: unset;
  position: relative;
  z-index: 2;
  width: min(100%, 690px);
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.logo-bite-button:focus-visible {
  border-radius: 34px;
  box-shadow: 0 0 0 4px rgba(201, 73, 100, 0.28);
}

.logo-bite-button::before {
  position: absolute;
  top: 28%;
  left: 50%;
  z-index: 6;
  color: #ffd978;
  content: "FLAFFY";
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: clamp(4.9rem, 13vw, 10.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.8;
  opacity: 0;
  pointer-events: none;
  text-shadow:
    0 9px 0 var(--chocolate),
    0 -5px 0 var(--chocolate),
    6px 0 0 var(--chocolate),
    -6px 0 0 var(--chocolate),
    0 22px 28px rgba(74, 33, 13, 0.22);
  transform: translate(-50%, -50%) scale(0.86) rotate(-2deg);
  transition: opacity 280ms ease, transform 380ms cubic-bezier(0.2, 1.3, 0.3, 1);
  white-space: nowrap;
}

.logo-stage.is-eaten .logo-bite-button::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-1deg);
}

.logo-bite-button img {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 30px 44px rgba(74, 33, 13, 0.28));
  animation: floatLogo 5.4s ease-in-out infinite;
  transition: opacity 260ms ease, filter 180ms ease;
}

.logo-bite-button:active img {
  filter: drop-shadow(0 22px 30px rgba(74, 33, 13, 0.24)) saturate(1.08);
}

.logo-stage.is-eaten .logo-bite-button img {
  opacity: 0;
}

.pancake-cover {
  position: absolute;
  right: 3%;
  bottom: -1%;
  left: 4%;
  z-index: 5;
  height: 51%;
  border-radius: 56% 44% 48% 42%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 253, 247, 0.98) 0 28%, rgba(255, 244, 203, 0.96) 58%, rgba(255, 217, 120, 0.78) 84%, transparent 88%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 210, 124, 0.72));
  filter: blur(0.2px);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 320ms ease, transform 420ms ease;
}

.logo-stage.is-eaten .pancake-cover {
  opacity: 0;
  transform: scale(1);
}

.logo-stage.is-eaten .logo-bite {
  animation: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.logo-bite {
  position: absolute;
  z-index: 4;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 253, 247, 0.98) 0 34%, rgba(255, 238, 177, 0.95) 35% 100%);
  box-shadow:
    inset 0 -8px 15px rgba(123, 58, 22, 0.12),
    0 8px 18px rgba(74, 33, 13, 0.12);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  animation: logoBiteIn 380ms cubic-bezier(0.2, 1.4, 0.3, 1) forwards;
}

.logo-bite::before,
.logo-bite::after {
  position: absolute;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.logo-bite::before {
  width: 62%;
  height: 62%;
  right: -18%;
  top: 18%;
}

.logo-bite::after {
  width: 46%;
  height: 46%;
  left: 23%;
  bottom: -14%;
}

.refill-button {
  position: absolute;
  bottom: 7%;
  z-index: 7;
  min-height: 50px;
  padding: 0 25px;
  border: 2px solid rgba(74, 33, 13, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 253, 247, 0.74), transparent 18px),
    linear-gradient(135deg, #ffe7a3, #f6a62f 58%, #cf6d24);
  color: var(--chocolate);
  cursor: pointer;
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 180ms ease;
  box-shadow: 0 16px 28px rgba(74, 33, 13, 0.18);
}

.logo-stage.is-eaten .refill-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: refillPulse 1.8s ease-in-out infinite;
}

.refill-button:hover {
  box-shadow: 0 20px 34px rgba(74, 33, 13, 0.24);
  transform: translateY(-2px) scale(1.02);
}

.plate-glow {
  position: absolute;
  width: min(78%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 253, 247, 0.88) 0 30%, rgba(255, 217, 120, 0.66) 58%, transparent 72%),
    conic-gradient(from 45deg, rgba(76, 155, 138, 0.22), rgba(246, 166, 47, 0.14), rgba(201, 73, 100, 0.2), rgba(76, 155, 138, 0.22));
  filter: blur(3px);
  animation: slowSpin 16s linear infinite;
}

.spark {
  position: absolute;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--butter);
  box-shadow: 0 0 0 10px rgba(255, 217, 120, 0.22);
  animation: pop 2.8s ease-in-out infinite;
}

.spark-one {
  top: 20%;
  left: 12%;
}

.spark-two {
  right: 8%;
  bottom: 28%;
  width: 14px;
  height: 14px;
  background: var(--mint);
  animation-delay: 0.7s;
}

.spark-three {
  right: 22%;
  top: 14%;
  width: 12px;
  height: 12px;
  background: var(--berry);
  animation-delay: 1.3s;
}

.syrup-drop,
.steam {
  position: fixed;
  z-index: -2;
  pointer-events: none;
}

.syrup-drop {
  width: 128px;
  height: 128px;
  border-radius: 58% 42% 48% 52%;
  background: linear-gradient(145deg, rgba(123, 58, 22, 0.24), rgba(74, 33, 13, 0.1));
  filter: blur(0.2px);
  animation: drift 12s ease-in-out infinite;
}

.drop-one {
  left: -32px;
  top: 22%;
}

.drop-two {
  right: -36px;
  top: 12%;
  width: 94px;
  height: 94px;
  animation-delay: -4s;
}

.drop-three {
  bottom: 10%;
  left: 42%;
  width: 78px;
  height: 78px;
  background: linear-gradient(145deg, rgba(201, 73, 100, 0.2), rgba(246, 166, 47, 0.13));
  animation-delay: -7s;
}

.steam {
  width: 4px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.68);
  transform-origin: bottom;
  animation: steamRise 5s ease-in-out infinite;
}

.steam-one {
  left: 56%;
  top: 18%;
}

.steam-two {
  right: 25%;
  top: 30%;
  animation-delay: 1.2s;
}

.steam-three {
  left: 18%;
  bottom: 22%;
  animation-delay: 2.1s;
}

.teaser-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto;
}

.teaser-band div {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(74, 33, 13, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.58);
  box-shadow: 0 16px 34px rgba(74, 33, 13, 0.08);
  backdrop-filter: blur(10px);
}

.mini-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--honey);
  color: var(--chocolate);
  font-family: "Baloo 2", Inter, sans-serif;
  font-weight: 800;
}

.teaser-band p {
  margin: 0;
  color: rgba(40, 20, 9, 0.82);
  font-weight: 800;
  line-height: 1.35;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 4px;
}

.footer p {
  max-width: 560px;
  margin: 0;
  color: rgba(40, 20, 9, 0.68);
  font-weight: 700;
}

.footer-socials a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.58);
  color: var(--chocolate);
  font-weight: 800;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-socials a:hover {
  color: var(--berry);
  transform: translateY(-2px);
}

.nav-socials a,
.footer-socials a,
.teaser-band div,
.primary-link,
.coming-soon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.bite-mark {
  position: absolute;
  z-index: 5;
  left: var(--bite-x);
  top: var(--bite-y);
  width: var(--bite-size, 34px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 253, 247, 0.96) 0 34%, rgba(255, 238, 177, 0.95) 35% 100%);
  box-shadow:
    inset 0 -5px 9px rgba(123, 58, 22, 0.12),
    0 5px 14px rgba(74, 33, 13, 0.1);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.18);
  animation: bitePop 360ms cubic-bezier(0.2, 1.5, 0.24, 1) forwards;
}

.bite-mark::before,
.bite-mark::after {
  position: absolute;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.bite-mark::before {
  width: 58%;
  height: 58%;
  right: -13%;
  top: 18%;
}

.bite-mark::after {
  width: 42%;
  height: 42%;
  left: 24%;
  bottom: -10%;
}

.crumb {
  position: fixed;
  z-index: 30;
  left: var(--crumb-x);
  top: var(--crumb-y);
  width: var(--crumb-size);
  height: var(--crumb-size);
  border-radius: 50%;
  background: var(--crumb-color);
  box-shadow: 0 2px 4px rgba(74, 33, 13, 0.18);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: crumbFall var(--crumb-duration) cubic-bezier(0.18, 0.72, 0.22, 1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

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

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

@keyframes pop {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes bitePop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(-14deg);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes logoBiteIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(-18deg);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes crumbFall {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--crumb-dx)), calc(-50% + var(--crumb-dy))) scale(0.52) rotate(var(--crumb-rotate));
  }
}

@keyframes refillPulse {
  0%,
  100% {
    box-shadow: 0 16px 28px rgba(74, 33, 13, 0.18);
  }
  50% {
    box-shadow: 0 20px 42px rgba(246, 166, 47, 0.34);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(20px, -24px, 0) rotate(16deg);
  }
}

@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translateY(32px) scaleY(0.55) rotate(8deg);
  }
  35% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translateY(-44px) scaleY(1.1) rotate(-9deg);
  }
}

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

@media (max-width: 920px) {
  .page-shell {
    padding: 22px;
  }

  .page-shell::before {
    inset: 8px;
    border-radius: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .hero-copy {
    max-width: none;
  }

  .logo-stage {
    order: -1;
    min-height: clamp(260px, 72vw, 440px);
  }

  .steam {
    display: none;
  }

  .teaser-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .brand img {
    width: 96px;
  }

  .nav-socials {
    gap: 8px;
  }

  .nav-socials a {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.9rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .coming-soon {
    width: 100%;
    justify-content: center;
  }

  .footer-socials {
    flex-wrap: wrap;
  }
}
