:root {
  --ground: #EDE9FF;
  --ink: #2A2545;
  --accent: #7F8DFF;
  --secondary: #4ECDC4;
  --glow: #FFD166;
  --shadow: rgba(42, 37, 69, 0.18);
  --light: rgba(255, 255, 255, 0.9);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(90% 60% at 85% 8%, rgba(255, 209, 102, 0.28), transparent 60%),
    radial-gradient(80% 60% at 8% 45%, rgba(78, 205, 196, 0.18), transparent 55%),
    var(--ground);
  color: var(--ink);
  font-family: 'Rubik', Arial, sans-serif;
  line-height: 1.6;
}

.clay-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 44px) 48px;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

/* puffy clay base */
.clay {
  background: var(--ground);
  border-radius: 34px;
  box-shadow:
    12px 14px 28px var(--shadow),
    -10px -10px 24px var(--light),
    inset 2px 2px 6px var(--light),
    inset -3px -3px 8px rgba(42, 37, 69, 0.12);
}

/* ---------- header ---------- */

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
}

.logo__mark {
  width: 60px;
  height: 44px;
  flex: none;
  filter: drop-shadow(4px 5px 6px var(--shadow));
}

.wordmark {
  font-family: 'Onest', Arial, sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.wordmark__lift {
  display: inline-block;
  transform: translateY(-8%);
}

.head__num {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--ground);
  box-shadow: 6px 7px 14px var(--shadow), -5px -5px 12px var(--light);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  min-height: 60vh;
}

.kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--glow);
  color: var(--ink);
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 5px 6px 12px var(--shadow);
}

.headline {
  margin: 0 0 20px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.headline br { display: block; }

.sub {
  margin: 0 0 30px;
  font-size: 18px;
  max-width: 42ch;
  color: rgba(42, 37, 69, 0.88);
}

.cta {
  display: inline-block;
  padding: 17px 40px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  box-shadow:
    10px 12px 26px rgba(127, 141, 255, 0.45),
    -6px -6px 14px var(--light),
    inset 2px 2px 5px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    14px 18px 32px rgba(127, 141, 255, 0.5),
    -6px -6px 14px var(--light),
    inset 2px 2px 5px rgba(255, 255, 255, 0.5);
}

/* toys */

.hero__toys {
  position: relative;
  height: clamp(240px, 34vw, 400px);
}

.toy-clay { position: absolute; }

.toy-clay--star {
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.big-star {
  width: clamp(170px, 24vw, 280px);
  height: auto;
  filter: drop-shadow(14px 16px 18px var(--shadow)) drop-shadow(-8px -8px 14px rgba(255,255,255,0.7));
  transform: rotate(-6deg);
  will-change: transform;
}

.toy-ball {
  border-radius: 50%;
}

.toy-ball--a {
  width: 96px;
  height: 96px;
  right: 4%;
  top: 6%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0 14%, var(--glow) 55%, #eab54a 100%);
  box-shadow: 12px 14px 24px var(--shadow), -6px -6px 14px var(--light);
  animation: breathe 5.2s ease-in-out infinite alternate;
}

.toy-ball--b {
  width: 64px;
  height: 64px;
  left: 2%;
  bottom: 4%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0 16%, var(--secondary) 60%, #2f9e94 100%);
  box-shadow: 10px 12px 22px var(--shadow), -6px -6px 12px var(--light);
  animation: breathe 6.8s ease-in-out -2.5s infinite alternate;
}

@keyframes breathe {
  0%   { transform: scale(0.94) translateY(4px); }
  100% { transform: scale(1.06) translateY(-8px); }
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.card {
  position: relative;
  padding: 40px 28px 34px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow:
    18px 24px 40px var(--shadow),
    -10px -10px 24px var(--light),
    inset 2px 2px 6px var(--light),
    inset -3px -3px 8px rgba(42, 37, 69, 0.12);
}

.card__chip {
  position: absolute;
  top: -16px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 5px 6px 12px var(--shadow), inset 2px 2px 4px rgba(255,255,255,0.7);
}

.card__chip--a { background: var(--accent); }
.card__chip--b { background: var(--secondary); }
.card__chip--c { background: var(--glow); }

.card__t {
  margin: 0 0 10px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 23px;
}

.card__d {
  margin: 0;
  font-size: 16px;
  color: rgba(42, 37, 69, 0.85);
}

/* ---------- quote ---------- */

.quote {
  margin: 0;
  padding: 44px clamp(28px, 5vw, 64px);
}

.quote p {
  margin: 0;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.25;
}

.quote p::before {
  content: "“";
  color: var(--accent);
  font-size: 1.3em;
}

/* ---------- moon section ---------- */

.moon__surface {
  position: relative;
  border-radius: 48px;
  padding: clamp(34px, 5vw, 60px);
  background:
    radial-gradient(20px 14px at 14% 22%, rgba(42,37,69,0.16), transparent 70%),
    radial-gradient(34px 22px at 82% 18%, rgba(42,37,69,0.14), transparent 70%),
    radial-gradient(26px 18px at 68% 78%, rgba(42,37,69,0.12), transparent 70%),
    linear-gradient(160deg, #f6f3ff, #e4ddf9);
  box-shadow:
    16px 18px 36px var(--shadow),
    -10px -10px 26px var(--light),
    inset 3px 3px 8px var(--light);
  overflow: hidden;
}

.crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(42, 37, 69, 0.1);
  box-shadow: inset 4px 4px 8px rgba(42,37,69,0.18), -2px -2px 5px rgba(255,255,255,0.8);
  animation: breathe 7s ease-in-out infinite alternate;
}

.crater--1 { width: 74px; height: 52px; left: 6%; bottom: 12%; }
.crater--2 { width: 46px; height: 34px; right: 12%; top: 14%; animation-duration: 5.6s; animation-delay: -1.8s; }
.crater--3 { width: 30px; height: 22px; right: 30%; bottom: 22%; animation-duration: 8.4s; animation-delay: -3.4s; }

.moon__note {
  position: relative;
  z-index: 1;
}

.moon__label {
  margin: 0 0 10px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.note {
  margin: 0;
  font-size: 19px;
  max-width: 40ch;
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 3px solid rgba(42, 37, 69, 0.12);
}

.foot__brand {
  margin: 0;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: rgba(42, 37, 69, 0.75);
}

.promo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.promo-nav a {
  padding: 9px 20px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  background: var(--ground);
  box-shadow: 5px 6px 12px var(--shadow), -4px -4px 10px var(--light);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.promo-nav a:hover,
.promo-nav a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 7px 9px 16px var(--shadow), -4px -4px 10px var(--light);
}

/* ---------- reveal ---------- */

[data-reveal].pre {
  opacity: 0;
  transform: translateY(34px) scale(0.97);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}

/* mono logo */
.logo--mono { filter: grayscale(1); }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__toys { order: -1; height: 260px; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .clay-page { gap: 52px; }
  .toy-ball--a { width: 72px; height: 72px; }
  .toy-ball--b { width: 52px; height: 52px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .toy-ball--a, .toy-ball--b, .crater { animation: none; }
  .cta, .card, .promo-nav a, .big-star { transition: none; }
  [data-reveal].pre {
    opacity: 1;
    transform: none;
  }
}
