:root {
  --primary: #ff4f9a;
  --primary-dark: #d12d78;
  --deep: #9b1d62;
  --blush: #ffd6ea;
  --soft-pink: #fff0f7;
  --background: #fff7fb;
  --surface: #ffffff;
  --text: #3a2433;
  --text-secondary: #7a5568;
  --shadow: 0 16px 40px rgba(209, 45, 120, 0.14);
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(255, 182, 214, 0.7), transparent 58%),
    radial-gradient(ellipse 55% 40% at 96% 8%, rgba(255, 214, 120, 0.28), transparent 52%),
    linear-gradient(160deg, #fff7fb 0%, #ffe4f2 100%);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes driftIn {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 1.25rem;
  align-items: center;
}

.hero-copy {
  animation: fadeUp 0.7s ease both;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 1rem;
  object-fit: cover;
  box-shadow: var(--shadow);
  animation: softPulse 3.2s ease-in-out infinite;
}

.brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--deep);
}

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

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}

.lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.play-badge img {
  width: 180px;
  height: auto;
  margin: -8px -12px;
}

.play-badge:hover,
.play-badge:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.hero-visual {
  animation: driftIn 0.9s 0.12s ease both;
}

.hero-visual img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    padding: 3rem 1.5rem 1.5rem;
  }

  .app-icon {
    width: 112px;
    height: 112px;
  }
}

.gallery {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.5rem auto 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.gallery-intro {
  margin-bottom: 1.25rem;
}

.gallery-intro h2,
.cta-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  color: var(--deep);
  font-weight: 600;
}

.gallery-intro p {
  margin: 0;
  color: var(--text-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(209, 45, 120, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.card .caption {
  padding: 0.85rem 0.95rem 1rem;
}

.card h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep);
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.examples {
  margin-top: 0.25rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.example {
  margin: 0;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(209, 45, 120, 0.1);
}

.example img {
  width: 100%;
  height: auto;
}

.example figcaption {
  padding: 0.75rem 0.95rem 0.9rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--deep);
}

.cta-band {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  padding: 1.75rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  border-top: 1px solid rgba(255, 79, 154, 0.22);
}

.cta-band p {
  margin: 0;
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}

.btn.ghost {
  color: var(--deep);
  background: var(--surface);
  border: 1px solid rgba(255, 79, 154, 0.4);
  box-shadow: 0 8px 18px rgba(209, 45, 120, 0.08);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: #fff0f7;
}

footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  margin-bottom: 0.65rem;
}

.links a,
.doc a,
.back a {
  color: var(--primary-dark);
  font-weight: 700;
}

.links a:hover,
.doc a:hover,
.back a:hover {
  color: var(--deep);
}

.shell {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.shell .brand {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.doc h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--deep);
  line-height: 1.15;
}

.doc h2 {
  margin: 1.7rem 0 0.45rem;
  font-size: 1.15rem;
  color: var(--deep);
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul {
  padding-left: 1.25rem;
}

.meta {
  margin: 0 0 1.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.back {
  margin-top: 2.25rem;
}

.doc ~ footer,
.shell + footer {
  width: min(760px, calc(100% - 2rem));
}

@media (max-width: 520px) {
  .card .caption {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .card h3 {
    font-size: 0.95rem;
  }

  .card p {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual,
  .gallery,
  .app-icon,
  .card,
  .play-badge {
    animation: none;
    transition: none;
  }
}
