:root {
  --bg: #f6efe7;
  --paper: rgba(255, 252, 247, 0.82);
  --paper-strong: #fffaf4;
  --ink: #23201c;
  --muted: #6d665f;
  --line: rgba(35, 32, 28, 0.1);
  --accent: #c47b44;
  --accent-soft: #e3b07b;
  --accent-pale: #f6d7b3;
  --shadow: 0 24px 60px rgba(57, 39, 19, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 212, 175, 0.7), transparent 30%),
    radial-gradient(circle at bottom right, rgba(217, 192, 164, 0.35), transparent 28%),
    linear-gradient(180deg, #f8f1e9 0%, #efe5da 100%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(57, 39, 19, 0.06);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fffdf9, #f3e7da);
  border: 1px solid rgba(35, 32, 28, 0.08);
}

.brand svg {
  width: 38px;
  height: 38px;
}

.brand p {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.hero-card {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.95fr);
  gap: 30px;
  align-items: stretch;
  border-radius: 36px;
  border: 1px solid rgba(35, 32, 28, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 247, 239, 0.76)),
    rgba(255, 252, 247, 0.65);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy,
.art-card {
  border-radius: 28px;
  border: 1px solid rgba(35, 32, 28, 0.08);
  background: rgba(255, 251, 246, 0.82);
}

.hero-copy {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b4d29;
  background: #fff4e5;
}

h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 8ch;
}

h1 span {
  color: var(--accent);
}

.lead {
  max-width: 34rem;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.message-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.message-pill {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #4e4339;
  background: var(--paper-strong);
  border: 1px solid rgba(35, 32, 28, 0.08);
  box-shadow: 0 8px 24px rgba(57, 39, 19, 0.05);
}

.hero-art {
  min-height: 520px;
}

.art-card {
  position: relative;
  height: 100%;
  min-height: 520px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 221, 187, 0.6), transparent 35%),
    linear-gradient(180deg, #fffaf4 0%, #f4e6d8 100%);
}

.moon-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}

.moon-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 136, 0.42), transparent 68%);
  filter: blur(10px);
  animation: glowPulse 5.5s ease-in-out infinite;
}

.cookie-moon {
  position: relative;
  width: min(340px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 249, 241, 0.95), transparent 16%),
    linear-gradient(145deg, #fffdf8 0%, #f1e8dd 100%);
  border: 4px solid #2a241e;
  box-shadow:
    inset 0 -24px 0 rgba(35, 32, 28, 0.04),
    0 30px 60px rgba(57, 39, 19, 0.14);
  animation: floatMoon 6s ease-in-out infinite;
}

.cookie-bite {
  position: absolute;
  width: 38%;
  height: 38%;
  right: 4%;
  top: 12%;
  background: #eadfd1;
  border-radius: 50%;
  box-shadow:
    -36px 8px 0 8px #eadfd1,
    -10px 58px 0 4px #eadfd1;
}

.cookie-bite::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 4px solid #2a241e;
  clip-path: inset(0 36% 0 0);
}

.cookie-chip,
.crumb,
.star {
  position: absolute;
  border-radius: 50%;
}

.cookie-chip {
  background: #2a241e;
}

.chip-a {
  width: 18px;
  height: 18px;
  left: 24%;
  top: 26%;
}

.chip-b {
  width: 24px;
  height: 24px;
  left: 42%;
  top: 54%;
}

.chip-c {
  width: 14px;
  height: 14px;
  left: 22%;
  top: 58%;
}

.chip-d {
  width: 16px;
  height: 16px;
  left: 55%;
  top: 30%;
}

.crumb {
  background: #2a241e;
}

.crumb-a {
  width: 14px;
  height: 14px;
  right: 12%;
  top: 36%;
  animation: drift 4.5s ease-in-out infinite;
}

.crumb-b {
  width: 11px;
  height: 11px;
  right: 3%;
  top: 28%;
  animation: drift 5.5s ease-in-out infinite 0.6s;
}

.crumb-c {
  width: 7px;
  height: 7px;
  right: 18%;
  top: 20%;
  animation: drift 4.8s ease-in-out infinite 1s;
}

.cookie-shade {
  position: absolute;
  width: 40%;
  height: 18%;
  left: 18%;
  bottom: 10%;
  border-bottom: 4px solid #2a241e;
  border-radius: 0 0 120px 120px;
  transform: rotate(-14deg);
  opacity: 0.72;
}

.star {
  background: #fff9f1;
  box-shadow: 0 0 0 1px rgba(35, 32, 28, 0.06);
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
}

.star::after {
  width: 20px;
  height: 2px;
}

.star-a {
  width: 10px;
  height: 10px;
  top: 18%;
  left: 16%;
  animation: twinkle 3.4s ease-in-out infinite;
}

.star-b {
  width: 12px;
  height: 12px;
  top: 20%;
  right: 16%;
  animation: twinkle 4s ease-in-out infinite 0.7s;
}

.star-c {
  width: 8px;
  height: 8px;
  bottom: 24%;
  left: 12%;
  animation: twinkle 3.8s ease-in-out infinite 1.1s;
}

.star-d {
  width: 9px;
  height: 9px;
  bottom: 18%;
  right: 20%;
  animation: twinkle 4.3s ease-in-out infinite 0.5s;
}

.floating-label,
.satellite-note {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(35, 32, 28, 0.08);
  background: rgba(255, 252, 247, 0.9);
  color: #5f5246;
  box-shadow: 0 8px 24px rgba(57, 39, 19, 0.06);
}

.floating-label-top {
  top: 20px;
  right: 22px;
  animation: bob 5s ease-in-out infinite;
}

.floating-label-bottom {
  left: 22px;
  bottom: 20px;
  animation: bob 6s ease-in-out infinite 0.8s;
}

.satellite-note {
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: bobCenter 5.2s ease-in-out infinite 0.5s;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(126, 96, 67, 0.18);
}

.orbit-a {
  width: 420px;
  height: 420px;
  top: -110px;
  right: -120px;
}

.orbit-b {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: -60px;
}

.sparkles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: twinkle 3.5s ease-in-out infinite;
}

.sparkles span:nth-child(1) { top: 11%; left: 18%; }
.sparkles span:nth-child(2) { top: 16%; right: 28%; animation-delay: 0.5s; }
.sparkles span:nth-child(3) { top: 64%; left: 8%; animation-delay: 1s; }
.sparkles span:nth-child(4) { bottom: 20%; right: 12%; animation-delay: 1.5s; }
.sparkles span:nth-child(5) { bottom: 12%; left: 38%; animation-delay: 0.8s; }
.sparkles span:nth-child(6) { top: 40%; right: 6%; animation-delay: 1.2s; }

.moon-outline,
.bite,
.chip,
.crumb,
.shade {
  fill: none;
  stroke: #2a241e;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.moon-outline,
.bite {
  stroke-width: 5;
}

.chip,
.crumb {
  fill: #2a241e;
  stroke-width: 0;
}

.shade {
  stroke-width: 4;
}

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

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

@keyframes twinkle {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -10px);
  }
}

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

@keyframes bobCenter {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

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

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

  .hero-copy {
    padding: 30px 22px;
  }

  .hero-art,
  .art-card {
    min-height: 420px;
  }

  .satellite-note {
    bottom: 52px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 100%;
    justify-content: center;
  }

  .hero-copy,
  .art-card {
    border-radius: 24px;
  }

  h1 {
    max-width: none;
  }

  .lead {
    font-size: 16px;
  }

  .message-stack {
    gap: 10px;
  }

  .message-pill,
  .floating-label,
  .satellite-note {
    font-size: 12px;
  }

  .cookie-moon {
    width: min(280px, 78vw);
  }
}

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