/* Pixelgrove — Pixar / Disney inspired colorful studio site */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Fredoka:wght@500;600;700&display=swap");

:root {
  --sky-top: #7ec8ff;
  --sky-mid: #b8e0ff;
  --sky-bottom: #fff6e8;
  --cloud: #ffffff;
  --text: #1a2340;
  --muted: #4a5578;
  --card: #ffffff;
  --line: rgba(26, 35, 64, 0.08);
  --pink: #ff6b9d;
  --orange: #ff9f43;
  --yellow: #ffd93d;
  --green: #6bcb77;
  --blue: #4d9fff;
  --purple: #9b6dff;
  --coral: #ff7b6b;
  --teal: #2ec4b6;
  --max: 1040px;
  --radius: 24px;
  --shadow: 0 12px 40px rgba(40, 60, 120, 0.14);
  --shadow-hover: 0 20px 50px rgba(40, 60, 120, 0.22);
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Fredoka", "Nunito", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 28%,
    #e8f4ff 55%,
    var(--sky-bottom) 100%
  );
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Floating color blobs (magical sky) */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(0);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: floaty 12s ease-in-out infinite;
}
body::before {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -100px;
  background: radial-gradient(circle, #ffb4d4 0%, transparent 70%);
}
body::after {
  width: 380px;
  height: 380px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, #ffe08a 0%, transparent 70%);
  animation-delay: -4s;
}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.05); }
}

a { color: var(--purple); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 20px;
}

/* Decorative floating shapes layer */
.sky-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sky-shapes span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: drift 16s ease-in-out infinite;
}
.sky-shapes .s1 {
  width: 90px; height: 90px; top: 18%; left: 8%;
  background: linear-gradient(135deg, #ff9f43, #ffd93d);
  animation-delay: 0s;
}
.sky-shapes .s2 {
  width: 60px; height: 60px; top: 40%; right: 12%;
  background: linear-gradient(135deg, #9b6dff, #4d9fff);
  border-radius: 18px;
  animation-delay: -3s;
}
.sky-shapes .s3 {
  width: 48px; height: 48px; bottom: 22%; right: 28%;
  background: linear-gradient(135deg, #6bcb77, #2ec4b6);
  animation-delay: -7s;
}
.sky-shapes .s4 {
  width: 28px; height: 28px; top: 28%; right: 40%;
  background: #ff6b9d;
  animation-delay: -2s;
}
.sky-shapes .s5 {
  width: 70px; height: 36px; bottom: 35%; left: 18%;
  background: #fff;
  border-radius: 40px;
  opacity: 0.7;
  box-shadow: 24px -10px 0 -4px #fff, 48px 4px 0 -8px #fff;
  animation-delay: -5s;
}

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

/* ——— Nav ——— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.logo:hover { text-decoration: none; transform: scale(1.04); }
.logo:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
  border-radius: 12px;
}
.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 6px 0 rgba(26, 35, 64, 0.12), 0 10px 24px rgba(255, 107, 157, 0.3);
}
.logo-text {
  line-height: 1;
}
/* fallback if old mark class remains */
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff6b9d 0%, #ff9f43 40%, #ffd93d 70%, #6bcb77 100%);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 0 rgba(26, 35, 64, 0.12), 0 10px 24px rgba(255, 107, 157, 0.35);
}

/* Sticky-ish top bar feel on all pages */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -20px;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(126, 200, 255, 0.92) 0%, rgba(184, 224, 255, 0.75) 70%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 800;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.nav-links a:hover {
  background: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 60, 120, 0.12);
}

/* ——— Hero ——— */
.hero {
  padding: 36px 0 28px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-split {
  text-align: left;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  max-width: none;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--text);
}
.hero h1 .grad {
  background: linear-gradient(100deg, #ff6b9d, #ff9f43, #ffd93d 45%, #6bcb77, #4d9fff, #9b6dff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  max-width: 36ch;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.hero-split p.lead { margin-left: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #9b6dff, #ff6b9d);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(155, 109, 255, 0.4);
  letter-spacing: 0.02em;
}

/* Cartoon cube mascot */
.mascot {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.mascot-cube {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 22%;
  background:
    linear-gradient(135deg, #ff6b6b 0 33%, #ffd93d 33% 66%, #6bcb77 66%);
  box-shadow:
    0 16px 0 rgba(26, 35, 64, 0.12),
    0 28px 50px rgba(80, 100, 180, 0.25);
  transform: rotateX(12deg) rotateY(-18deg) rotate(8deg);
  position: relative;
  animation: bounce 3s ease-in-out infinite;
  border: 5px solid #fff;
}
.mascot-cube::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 18%;
  background:
    linear-gradient(#fff 0 0) 33% 0 / 4px 100% no-repeat,
    linear-gradient(#fff 0 0) 66% 0 / 4px 100% no-repeat,
    linear-gradient(#fff 0 0) 0 33% / 100% 4px no-repeat,
    linear-gradient(#fff 0 0) 0 66% / 100% 4px no-repeat;
  opacity: 0.85;
}
.mascot-sparkle {
  position: absolute;
  font-size: 1.8rem;
  animation: twinkle 2s ease-in-out infinite;
}
.mascot-sparkle.a { top: 8%; right: 6%; animation-delay: 0s; }
.mascot-sparkle.b { bottom: 18%; left: 0; animation-delay: 0.6s; font-size: 1.3rem; }
.mascot-sparkle.c { top: 20%; left: 8%; animation-delay: 1.1s; font-size: 1.1rem; }

@keyframes bounce {
  0%, 100% { transform: rotateX(12deg) rotateY(-18deg) rotate(8deg) translateY(0); }
  50% { transform: rotateX(12deg) rotateY(-18deg) rotate(8deg) translateY(-14px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8) rotate(15deg); }
}

/* ——— Buttons ——— */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-split .btn-row { justify-content: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-3px) scale(1.03);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff9f43 50%, #ffd93d 100%);
  box-shadow: 0 8px 0 #e85a2a, 0 12px 28px rgba(255, 107, 100, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 10px 0 #e85a2a, 0 18px 36px rgba(255, 107, 100, 0.45);
}

.btn-secondary {
  color: var(--text);
  background: #fff;
  box-shadow: 0 8px 0 #c5d4f0, 0 12px 28px rgba(80, 120, 200, 0.2);
}
.btn-secondary:hover {
  box-shadow: 0 10px 0 #c5d4f0, 0 18px 36px rgba(80, 120, 200, 0.25);
}

/* ——— Sections ——— */
section { padding: 36px 0 12px; }
section h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-align: center;
}
.section-lead {
  color: var(--muted);
  margin: 0 auto 26px;
  max-width: 42ch;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Colorful section title underline */
section h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff6b9d, #ffd93d, #6bcb77, #4d9fff);
}

/* ——— Cards ——— */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 3px solid #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, #ff6b9d, #ff9f43, #ffd93d, #6bcb77, #4d9fff, #9b6dff);
}
.card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-hover);
}
.card.card-alt::before {
  background: linear-gradient(90deg, #9b6dff, #4d9fff, #2ec4b6);
}
.card.card-soon {
  background: linear-gradient(160deg, #fff 60%, #fff0f8);
}
.card-emoji {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}
.card .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
  background: #f0f4ff;
  border: 2px solid #dce6ff;
  padding: 5px 12px;
  border-radius: 999px;
}
.pill.on {
  color: #0d7a4f;
  background: #d8ffe8;
  border-color: #8aefb4;
}
.pill.pink { background: #ffe0ec; border-color: #ffb0cc; color: #c2185b; }
.pill.orange { background: #fff0dc; border-color: #ffd09a; color: #c45e00; }
.pill.purple { background: #efe5ff; border-color: #d0b8ff; color: #6b3fd4; }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 800;
}
.card-links a {
  color: var(--purple);
  padding: 6px 0;
}

/* ——— Steps ——— */
.steps {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.step:hover { transform: scale(1.02); }
.step:nth-child(1) .step-num { background: linear-gradient(135deg, #ff6b9d, #ff9f43); }
.step:nth-child(2) .step-num { background: linear-gradient(135deg, #ffd93d, #6bcb77); }
.step:nth-child(3) .step-num { background: linear-gradient(135deg, #4d9fff, #9b6dff); }

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
}
.step strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2px;
}
.step span {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

/* Magic strip */
.magic-strip {
  margin: 40px 0 10px;
  padding: 28px 24px;
  border-radius: 28px;
  background: linear-gradient(120deg, #9b6dff, #4d9fff 40%, #2ec4b6 70%, #6bcb77);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(77, 159, 255, 0.35);
  position: relative;
  overflow: hidden;
}
.magic-strip::after {
  content: "✦  ★  ✦  ★  ✦";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  opacity: 0.35;
  letter-spacing: 1.2em;
  font-size: 0.75rem;
}
.magic-strip h2 {
  color: #fff;
  margin-bottom: 8px;
}
.magic-strip h2::after { display: none; }
.magic-strip p {
  margin: 0 auto;
  max-width: 40ch;
  font-weight: 700;
  opacity: 0.95;
  font-size: 1.05rem;
}

/* ——— Legal / article pages ——— */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0 80px;
  position: relative;
  z-index: 1;
}
.article h1 {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}
.article h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 32px 0 10px;
  color: var(--text);
  text-align: left;
}
.article h2::after {
  margin: 8px 0 0;
  width: 48px;
}
.article p, .article li {
  color: var(--muted);
  font-weight: 600;
}
.article .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  font-weight: 700;
}
.article .card {
  margin: 16px 0;
}
.article .card:hover {
  transform: none;
}
.article ul { padding-left: 1.2rem; }
.article code {
  background: #eef2ff;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.9em;
  color: #3d4a80;
  font-weight: 700;
  word-break: break-all;
}
.article > p > a,
.breadcrumb a {
  font-weight: 800;
}

.breadcrumb {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 0.95rem;
}
.breadcrumb a { color: var(--purple); }

/* ——— Footer ——— */
.site-footer {
  margin-top: 56px;
  padding: 28px 24px 40px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.95));
  border: 3px solid #fff;
  border-bottom: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a {
  color: var(--purple);
}
.site-footer a:hover { color: var(--pink); }

/* Fun rainbow bar at very bottom */
.rainbow-bar {
  height: 10px;
  width: 100%;
  background: linear-gradient(90deg, #ff6b9d, #ff9f43, #ffd93d, #6bcb77, #4d9fff, #9b6dff);
  position: relative;
  z-index: 2;
}

/* Product page code card */
code.url-block {
  display: block;
  background: #eef2ff;
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 6px;
  font-size: 0.88rem;
  color: #3d4a80;
  word-break: break-all;
}

/* App preview image in cards */
.preview-link {
  display: block;
  margin: 0 0 14px;
  text-decoration: none;
}
.preview-link img {
  width: 100%;
  border-radius: 16px;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(40, 60, 120, 0.15);
  display: block;
}
.preview-link:hover img {
  box-shadow: 0 12px 32px rgba(40, 60, 120, 0.22);
}

/* ——— App screenshot gallery ——— */
.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 12px 4px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff6b9d, #9b6dff);
  border-radius: 99px;
}
.gallery-card {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  text-align: center;
  transition: transform 0.2s ease;
}
.gallery-card:hover { transform: translateY(-8px) scale(1.03); }
.gallery-card figcaption {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.gallery-card .cap-sub {
  display: block;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
}
.phone-frame {
  background: linear-gradient(160deg, #1a1a28, #0c0c14);
  border-radius: 28px;
  padding: 10px;
  border: 3px solid #fff;
  box-shadow: var(--shadow), 0 0 0 1px rgba(155, 109, 255, 0.2);
  position: relative;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 6px;
  border-radius: 99px;
  background: #2a2a38;
  z-index: 2;
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #0b0b12;
}
.gallery-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 20px 0 10px;
}
.big-shot {
  max-width: 260px;
  margin: 0 auto;
}
.big-shot .phone-frame {
  border-radius: 36px;
  padding: 12px;
}
.hero-split .big-shot {
  max-width: 240px;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.concept-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.concept-grid img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.concept-grid figcaption {
  padding: 12px 14px 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.concept-grid .cap-sub {
  display: block;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 760px) {
  .gallery-hero { grid-template-columns: 1fr; }
  .gallery-card { width: 160px; }
}

@media (max-width: 760px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-split p.lead { margin-left: auto; margin-right: auto; }
  .hero-split .btn-row { justify-content: center; }
  .mascot { order: -1; }
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links { width: 100%; }
}

@media (max-width: 560px) {
  .hero { padding-top: 20px; }
  .nav-links { gap: 6px; font-size: 0.85rem; }
  .nav-links a { padding: 6px 10px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}
