:root {
  --bg-0: #fffefb;
  --bg-1: #fff6e9;
  --bg-2: #ffeccc;
  --text: #4a290a;
  --muted: #83582e;
  --card: rgba(255, 255, 255, 0.95);
  --line: rgba(199, 131, 62, 0.26);
  --accent: #ffa33e;
  --accent-2: #ea7d15;
  --radius: 22px;
  --shadow: 0 16px 34px rgba(190, 120, 45, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 560px at 8% -12%, #ffdcae 0%, transparent 58%),
    radial-gradient(900px 520px at 90% -8%, #ffefcf 0%, transparent 56%),
    linear-gradient(145deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand span {
  font-family: "Outfit", "Avenir Next", sans-serif;
  letter-spacing: -0.02em;
}

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

.bg-blob {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(92px);
  opacity: 0.3;
  pointer-events: none;
}

.bg-blob-a {
  width: 440px;
  height: 440px;
  top: -140px;
  left: -100px;
  background: #ffb459;
}

.bg-blob-b {
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -190px;
  background: #ffe2b3;
}

.site-header,
main,
.site-footer {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(182, 109, 33, 0.24);
}

nav {
  justify-self: center;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-weight: 600;
}

nav a:hover {
  color: var(--text);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent-2);
  font-weight: 700;
}

.hero {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.3rem;
  align-items: center;
}

.hero-copy {
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.05;
}

.hero-copy p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 56ch;
}

.hero-art {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255, 201, 125, 0.52), rgba(255, 245, 228, 0.86));
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-art img {
  width: min(88%, 420px);
  height: auto;
  object-fit: contain;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent) 0%, #ffce8d 100%);
  color: #5a2f04;
}

.btn-ios {
  gap: 0.45rem;
}

.btn-ios-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-secondary,
.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.features,
.gameplay,
.app-video,
.love,
.cats,
.support,
.download,
.contact {
  margin-top: 2rem;
}

.section-head h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
}

.feature-grid,
.love-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-grid article,
.love-grid article,
.carousel-stage,
.app-video-card,
.thumb,
.cat-grid figure,
.support,
.download-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
}

.feature-grid article,
.love-grid article {
  padding: 1rem;
}

.feature-grid p,
.love-grid p,
.support p,
.download-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.58;
}

.carousel {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover {
  background: #fff;
}

.carousel-stage {
  margin: 0;
  padding: 0.8rem;
  display: grid;
  place-items: center;
}

.carousel-stage img {
  width: 100%;
  max-height: min(78vh, 800px);
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.app-video-card {
  margin: 1rem 0 0;
  padding: 0.8rem;
}

.app-video-card video {
  width: 100%;
  max-height: min(78vh, 800px);
  border-radius: 16px;
  display: block;
  background: #fff7ea;
}

.stage-caption {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.thumb-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.55rem;
}

.thumb {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.thumb.active,
.thumb:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
}

.cat-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.cat-grid figure {
  margin: 0;
  padding: 0.9rem;
}

.cat-grid img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.cat-grid figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
}

.support {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  padding: 1.1rem;
}

.support-art {
  margin: 0;
  display: grid;
  place-items: center;
}

.support-art img {
  width: min(70%, 240px);
  height: auto;
}

.download-card {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 1rem;
  align-items: center;
}

.download-card img {
  width: 118px;
  border-radius: 24px;
  display: block;
}

.contact-card {
  padding: 1.1rem;
}

.contact-card a[href^="mailto:"] {
  color: var(--accent-2);
  font-weight: 700;
}

.site-footer {
  margin: 2.3rem auto 1.3rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  background: rgba(255, 168, 85, 0.2);
  color: #7a3b00;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

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

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .feature-grid,
  .love-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thumb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .hero {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  nav {
    justify-self: start;
  }

  .feature-grid,
  .love-grid,
  .cat-grid,
  .support,
  .download-card,
  .carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 100%;
    border-radius: 12px;
    font-size: 1.4rem;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy {
    padding: 1.3rem;
  }
}
