:root {
  --navy: #0B1B3F;
  --blue: #1E6FD9;
  --blue-2: #4FA3FF;
  --pink: #FF6FB5;
  --yellow: #FFD23F;
  --mint: #3DDC97;
  --purple: #9B6BFF;
  --lime: #B8F25C;
  --bg: #F4F8FF;
  --card: #FFFFFF;
  --text: #0B1B3F;
  --muted: #5A6785;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(11, 27, 63, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .btn, .badge, .filters button { font-family: "Fredoka", "Nunito", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- floating bubbles ---------- */
.bubbles { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bubbles i {
  position: absolute; bottom: -120px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), transparent 35%), var(--c);
  opacity: .35;
  animation: rise linear infinite;
}
@keyframes rise {
  to { transform: translate(var(--dx), -120vh); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 10;
  margin: 12px auto 0; width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px 8px 8px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; }
.brand b { color: var(--blue); font-weight: 600; margin-left: 4px; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; transition: background .2s; }
.nav nav a:hover { background: #E6EFFF; }
#lang { margin-left: 6px; border: 2px solid #E6EFFF; border-radius: 999px; padding: 6px 10px; font: inherit; background: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1.05rem;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 0 #154fa0, var(--shadow); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #154fa0; }
.btn-ghost { background: #fff; border: 3px solid var(--navy); }
.btn-flat { background: var(--blue); color: #fff; border: 3px solid var(--blue); }
.btn-flat:hover { background: #185fc0; border-color: #185fc0; }
.gp-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- hero ---------- */
.hero {
  width: min(1100px, calc(100% - 32px)); margin: 0 auto;
  min-height: 88vh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 60px 0;
}
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--yellow); font-weight: 600; transform: rotate(-3deg);
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.05; margin: 20px 0; }
.hero h1 span { display: block; }
.wobble {
  color: var(--blue);
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink), var(--blue));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
/* app dock: all app icons */
.app-dock {
  position: relative; max-width: 520px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-radius: 28px; padding: 16px 18px 18px;
  box-shadow: var(--shadow); border: 3px solid #fff;
}
.app-dock::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 30px;
  background: linear-gradient(120deg, var(--blue-2), var(--purple), var(--pink), var(--yellow), var(--mint));
  background-size: 300% 300%; animation: shimmer 8s linear infinite; filter: blur(14px); opacity: .45;
}
.dock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-weight: 700; color: var(--muted); }
.dock-head strong { font-family: "Fredoka"; font-size: 1.8rem; color: var(--navy); margin-right: 2px; }
.dock-icons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.dock-icons a { position: relative; display: block; animation: floaty 3s ease-in-out infinite; }
.dock-icons img {
  width: 100%; aspect-ratio: 1; border-radius: 26%;
  box-shadow: 0 4px 10px rgba(11,27,63,.18);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.dock-icons a:hover { animation-play-state: paused; z-index: 2; }
.dock-icons a:hover img { transform: scale(1.3) rotate(-6deg); }
.dock-icons a::after {
  content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 4px); white-space: nowrap; pointer-events: none;
  background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 4px 10px; border-radius: 10px; opacity: 0; transition: .2s;
}
.dock-icons a:hover::after { opacity: 1; transform: translate(-50%, 0); }
@keyframes floaty { 50% { transform: translateY(-5px); } }

/* animated water drop */
.hero-art { position: relative; width: 100%; display: grid; place-items: center; }
.drop-svg { width: 100%; max-width: 440px; overflow: visible; }
.drop { transform-origin: 200px 382px; animation: drop-bounce 2.4s cubic-bezier(.45,0,.55,1) infinite; }
.drop-body { filter: drop-shadow(0 20px 30px rgba(30,111,217,.35)); }
@keyframes drop-bounce {
  0%   { transform: translateY(-40px) scale(.96, 1.04); }
  40%  { transform: translateY(0) scale(1, 1); }
  48%  { transform: translateY(0) scale(1.12, .86); }
  58%  { transform: translateY(-6px) scale(.95, 1.06); }
  70%  { transform: translateY(-2px) scale(1.03, .97); }
  100% { transform: translateY(-40px) scale(.96, 1.04); }
}
.shadow { fill: rgba(11,27,63,.12); transform-origin: 200px 388px; animation: shadow 2.4s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes shadow { 0%,100% { transform: scale(.7); opacity: .5; } 45% { transform: scale(1.05); opacity: 1; } }
.ripples ellipse {
  fill: none; stroke: url(#rippleStroke); stroke-width: 4;
  transform-origin: 200px 388px; opacity: 0;
  animation: ripple 2.4s ease-out infinite;
}
.ripples ellipse:nth-child(2) { animation-delay: .25s; }
.ripples ellipse:nth-child(3) { animation-delay: .5s; }
@keyframes ripple {
  0%, 44% { transform: scale(.6); opacity: 0; }
  50% { opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.splash circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: splash 2.4s ease-out infinite; }
.splash circle:nth-child(odd) { --sx: -26px; }
.splash circle:nth-child(even) { --sx: 26px; }
@keyframes splash {
  0%, 46% { opacity: 0; transform: translate(0, 30px) scale(.3); }
  60% { opacity: 1; transform: translate(calc(var(--sx) * .6), -24px) scale(1); }
  85%, 100% { opacity: 0; transform: translate(var(--sx), 10px) scale(.6); }
}
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.sparkles path { transform-box: fill-box; transform-origin: center; animation: twinkle 2s ease-in-out infinite; }
.sparkles path:nth-child(2) { animation-delay: 1s; }
@keyframes twinkle { 0%,100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* ---------- sections ---------- */
.section { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 80px 0; }
.section h2 { font-size: clamp(2rem, 5vw, 3rem); text-align: center; }
.sub { text-align: center; color: var(--muted); font-size: 1.15rem; margin-top: 6px; }
.sub.wide { max-width: 720px; margin: 12px auto 0; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0; }
.filters button {
  border: 3px solid var(--navy); background: #fff; color: var(--navy);
  padding: 8px 18px; border-radius: 999px; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1);
}
.filters button:hover { transform: translateY(-2px); }
.filters button.active { background: var(--navy); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card {
  --c: var(--blue);
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 3px solid transparent;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1), border-color .3s;
  animation: pop .5s cubic-bezier(.3,1.6,.5,1) both;
}
.card::before {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  right: -60px; top: -60px; background: var(--c); opacity: .18; transition: transform .4s;
}
.card:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--c); }
.card:hover::before { transform: scale(1.4); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.card-head { display: flex; gap: 16px; align-items: center; position: relative; }
.card-head img { width: 76px; height: 76px; border-radius: 22px; box-shadow: var(--shadow); flex-shrink: 0; }
.card h3 { font-size: 1.2rem; line-height: 1.25; }
.tag { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--c); color: var(--navy); }
.card p { color: var(--muted); flex: 1; position: relative; }
.card-foot { display: flex; justify-content: space-between; align-items: center; position: relative; }
.rating { font-weight: 700; }
.play {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 14px;
  font-family: "Fredoka"; font-weight: 600; font-size: .95rem; transition: transform .2s;
}
.play:hover { transform: scale(1.05); }
.play svg { width: 18px; height: 18px; }

.c-pink { --c: var(--pink); } .c-yellow { --c: var(--yellow); } .c-mint { --c: var(--mint); }
.c-purple { --c: var(--purple); } .c-lime { --c: var(--lime); } .c-blue { --c: var(--blue-2); }

/* ---------- about ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pillar {
  background: var(--c); border-radius: var(--radius); padding: 28px; text-align: center;
}
.mascot {
  display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 6px;
  background: rgba(255,255,255,.55); border-radius: 50%;
}
.mascot svg { width: 72px; height: 72px; animation: hop 2.6s ease-in-out infinite; }
.pillar:nth-child(2) .mascot svg { animation-delay: -.9s; }
.pillar:nth-child(3) .mascot svg { animation-delay: -1.8s; }
.pillar:hover .mascot svg { animation-duration: .9s; }
@keyframes hop {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}
.mascot .face { transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }
.pillar h3 { font-size: 1.5rem; margin: 6px 0 4px; }

/* ---------- contact ---------- */
.contact-card {
  text-align: center; color: #fff; padding: 60px 24px; border-radius: 40px;
  background: radial-gradient(circle at 20% 20%, var(--purple), transparent 50%),
              radial-gradient(circle at 80% 80%, var(--pink), transparent 50%), var(--blue);
  box-shadow: var(--shadow);
}
.contact-card p { font-size: 1.15rem; margin: 10px auto 28px; opacity: .95; }
.contact-card .btn-primary { background: var(--yellow); color: var(--navy); box-shadow: none; }
.contact-card .btn-primary:active { transform: none; }
.contact-card .email { margin: 18px 0 0; font-weight: 700; }

footer { text-align: center; padding: 30px 16px 40px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0,1fr); text-align: center; min-height: auto; padding-top: 40px; }
  .hero p { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .app-dock { margin: 0 auto; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .nav nav a { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .nav nav a { padding: 6px 8px; font-size: .95rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-art { max-width: 280px; }
  .dock-icons { gap: 8px; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
