/* Ninelings — playful product site */
:root {
  --ink: #1d2340; --soft: #5a6285; --cream: #fffaf2; --sky: #2e6bff; --sky2: #7fe7ff;
  --pink: #ff2e93; --sun: #ffc300; --leaf: #06d6a0; --violet: #7b2ff7; --orange: #ff7a00;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); overflow-x: hidden;
  font: 18px/1.6 "Nunito", ui-rounded, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .fun { font-family: "Fredoka", ui-rounded, sans-serif; letter-spacing: -0.01em; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255,250,242,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(29,35,64,.06); }
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px "Fredoka", sans-serif; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px rgba(46,107,255,.3); }
.bar nav { margin-left: auto; display: flex; gap: 18px; font-weight: 700; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--soft); }
.bar nav a:hover { color: var(--pink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 60px 0 40px;
  background: linear-gradient(180deg, #bff3ff 0%, #e6fbff 55%, var(--cream) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px; position: relative; z-index: 2; }
.rays { position: absolute; left: 72%; top: 48%; width: 1400px; height: 1400px; transform: translate(-50%, -50%); z-index: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0 10deg, transparent 10deg 20deg);
  mask-image: radial-gradient(circle, #000 0 22%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 0 22%, transparent 60%);
  animation: rays 60s linear infinite; }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--pink); font-weight: 800; font-size: 14px;
  padding: 7px 14px; border-radius: 99px; box-shadow: 0 6px 18px rgba(255,46,147,.18); }
.hero h1 { font-size: clamp(44px, 7.4vw, 86px); line-height: 1; margin: 20px 0 18px; font-weight: 700; }
.hero h1 .grow { background: linear-gradient(90deg, var(--pink), var(--orange), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(18px, 2.2vw, 21px); color: var(--soft); max-width: 520px; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 16px; box-shadow: 0 12px 30px -8px rgba(29,35,64,.5); }
.store small { display: block; font-size: 12px; opacity: .75; line-height: 1.1; }
.store strong { font: 600 19px "Fredoka", sans-serif; line-height: 1.1; }
.store .dot { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--sky2), var(--sky)); display: grid; place-items: center; font-size: 16px; }
.pill { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 16px; background: #fff; text-decoration: none; font-weight: 800; color: var(--sky); box-shadow: 0 8px 20px rgba(46,107,255,.12); }
.pip-stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.pip { width: min(420px, 90%); filter: drop-shadow(0 30px 40px rgba(46,107,255,.35)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(-2deg); } }
.float { position: absolute; font-size: 38px; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.12)); }
.float.f1 { left: 6%; top: 14%; animation-delay: -1s; } .float.f2 { right: 4%; top: 8%; animation-delay: -2s; }
.float.f3 { left: 12%; bottom: 10%; animation-delay: -.5s; } .float.f4 { right: 10%; bottom: 16%; animation-delay: -3s; }
.tile { position: absolute; width: 58px; height: 58px; border-radius: 16px; background: #fff; display: grid; place-items: center;
  font: 700 30px "Fredoka", sans-serif; box-shadow: 0 6px 0 #c8d3f0, 0 14px 24px rgba(46,107,255,.2); animation: bob 5s ease-in-out infinite; }
.tile.t1 { left: 0; top: 46%; color: var(--violet); animation-delay: -2s; } .tile.t2 { right: 0; top: 40%; color: var(--pink); animation-delay: -1s; }

/* Petals */
.petals { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petals i { position: absolute; top: -40px; width: 16px; height: 11px; border-radius: 60% 0; background: #ff8fc0; opacity: .85; animation: fall linear infinite; }
.petals i:nth-child(odd) { background: #ffd166; }
.petals i:nth-child(1) { left: 8%; animation-duration: 13s; } .petals i:nth-child(2) { left: 22%; animation-duration: 17s; animation-delay: -6s; }
.petals i:nth-child(3) { left: 38%; animation-duration: 15s; animation-delay: -3s; } .petals i:nth-child(4) { left: 55%; animation-duration: 19s; animation-delay: -9s; }
.petals i:nth-child(5) { left: 70%; animation-duration: 14s; animation-delay: -2s; } .petals i:nth-child(6) { left: 86%; animation-duration: 18s; animation-delay: -11s; }
.petals i:nth-child(7) { left: 94%; animation-duration: 16s; animation-delay: -5s; }
@keyframes fall { to { transform: translate(-120px, 110vh) rotate(720deg); } }

/* Sections */
section { padding: 80px 0; }
.eyebrow { color: var(--pink); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 8px 0 14px; }
.lead { color: var(--soft); font-size: 20px; max-width: 640px; }
.center { text-align: center; } .center .lead { margin: 0 auto; }

/* Phones */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 34px); margin-top: 40px; }
.phone { width: clamp(140px, 24vw, 250px); aspect-ratio: 1125/2436; padding: 8px; border-radius: 36px; background: #11131f;
  box-shadow: 0 30px 60px -20px rgba(29,35,64,.45), inset 0 0 0 2px rgba(255,255,255,.1); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; display: block; }
.phone:nth-child(1) { transform: rotate(-6deg) translateY(20px); } .phone:nth-child(3) { transform: rotate(6deg) translateY(20px); }
.phone:hover { transform: translateY(-10px) rotate(0); }
.caption { text-align: center; font-weight: 700; color: var(--soft); margin-top: 12px; font-size: 15px; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feat { border-radius: 28px; padding: 28px; color: #fff; position: relative; overflow: hidden; min-height: 230px;
  box-shadow: 0 18px 40px -18px var(--shadow, rgba(0,0,0,.3)); transition: transform .3s; }
.feat:hover { transform: translateY(-6px) rotate(-.5deg); }
.feat .em { font-size: 44px; display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: rgba(255,255,255,.22); }
.feat h3 { font-size: 26px; margin: 18px 0 6px; } .feat p { margin: 0; opacity: .92; }
.feat::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.c1 { background: linear-gradient(135deg, #ff5ca8, #ff2e93); --shadow: rgba(255,46,147,.6); }
.c2 { background: linear-gradient(135deg, #ffb703, #ff7a00); --shadow: rgba(255,122,0,.6); }
.c3 { background: linear-gradient(135deg, #3ecbff, #2e6bff); --shadow: rgba(46,107,255,.6); }
.c4 { background: linear-gradient(135deg, #2ee6a8, #06a77d); --shadow: rgba(6,167,125,.6); }
.c5 { background: linear-gradient(135deg, #a86bff, #7b2ff7); --shadow: rgba(123,47,247,.6); }
.c6 { background: linear-gradient(135deg, #ff8a5c, #f72585); --shadow: rgba(247,37,133,.6); }

/* Ninelings */
.ninelings { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.nl { width: 104px; text-align: center; font-weight: 800; color: var(--soft); font-size: 15px; }
.nl span { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 8px; border-radius: 28px; font-size: 48px;
  background: var(--c); box-shadow: 0 6px 0 rgba(0,0,0,.08); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.nl:hover span { transform: translateY(-10px) rotate(-6deg) scale(1.08); }
.nl b { display: block; color: var(--ink); font-family: "Fredoka", sans-serif; font-size: 18px; }

/* Garden scene */
.garden { border-radius: 40px; overflow: hidden; position: relative; height: 420px; margin-top: 40px;
  background: linear-gradient(180deg, #8fd3ff 0%, #dff4ff 60%, #fff3d6 100%); box-shadow: 0 30px 80px -30px rgba(46,107,255,.45); }
.garden .water { position: absolute; left: -5%; right: -5%; bottom: -30%; height: 90%; border-radius: 50%; background: linear-gradient(#5cc2f2, #2e8fd8); }
.garden .sand { position: absolute; left: 8%; right: 8%; bottom: -8%; height: 66%; border-radius: 50%; background: #f3d9a4; }
.garden .grass { position: absolute; left: 11%; right: 11%; bottom: -4%; height: 60%; border-radius: 50%; background: linear-gradient(#8ee07a, #4db85a); }
.garden .b { position: absolute; font-size: clamp(30px, 5vw, 50px); transform-origin: bottom center; animation: sway 3s ease-in-out infinite; filter: drop-shadow(0 4px 3px rgba(0,0,0,.18)); }
@keyframes sway { 50% { transform: rotate(6deg); } }
.cloud { position: absolute; width: 140px; height: 46px; background: #fff; border-radius: 40px; opacity: .95; animation: drift 40s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 60px; height: 60px; left: 22px; top: -30px; } .cloud::after { width: 76px; height: 76px; left: 58px; top: -40px; }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(1300px); } }

/* Promise */
.promise { background: var(--ink); color: #fff; border-radius: 40px; padding: clamp(40px, 7vw, 80px); text-align: center; position: relative; overflow: hidden; }
.promise h2 { color: #fff; } .promise .lead { color: #c6cbe6; margin: 0 auto; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 10px 18px; border-radius: 99px; font-weight: 800; }

footer { padding: 50px 0 60px; color: var(--soft); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { text-decoration: none; color: var(--soft); } footer a:hover { color: var(--pink); }

/* Sub pages */
.page-hero { background: linear-gradient(180deg, #bff3ff, var(--cream)); padding: 60px 0 30px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 6px 0 6px; }
.prose { max-width: 780px; padding-bottom: 40px; }
.prose h2 { font-size: 28px; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--soft); }
.prose a { color: var(--sky); font-weight: 700; }
.note { background: #fff; border-radius: 24px; padding: 22px 24px; box-shadow: 0 10px 30px -18px rgba(29,35,64,.35); border: 2px solid #e8f7ff; }
details { background: #fff; border-radius: 18px; padding: 16px 20px; margin: 10px 0; box-shadow: 0 6px 18px -12px rgba(29,35,64,.3); }
summary { cursor: pointer; font: 600 19px "Fredoka", sans-serif; color: var(--ink); }
details p { margin: 10px 0 2px; }
.mailbtn { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; background: var(--pink); color: #fff !important; text-decoration: none; font-weight: 800; padding: 12px 20px; border-radius: 14px; box-shadow: 0 10px 24px -8px rgba(255,46,147,.6); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto; } .cta { justify-content: center; }
  .pip-stage { min-height: 340px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .bar nav { gap: 12px; font-size: 14px; }
  .garden { height: 300px; }
  .nl { width: 88px; } .nl span { width: 72px; height: 72px; font-size: 38px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 420px) {
  .bar nav { gap: 10px; font-size: 13.5px; }
  .brand { font-size: 19px; } .brand img { width: 32px; height: 32px; }
}
html { overflow-x: clip; }
@media (max-width: 440px) {
  .bar .wrap { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 6px; }
  .bar nav { margin-left: 0; width: 100%; gap: 18px; font-size: 14px; }
}
@media (max-width: 600px) {
  .phones { gap: 8px; }
  .phone { width: 29vw; padding: 5px; border-radius: 22px; }
  .phone img { border-radius: 18px; }
  .caption { font-size: 12px; }
}
