:root {
    --sky-top: #5ec8f2;
    --sky-bottom: #c9f1ff;
    --ink: #2b1a14;
    --cream: #fff6e3;
    --sand: #ffe2a8;
    --orange: #ff8a3d;
    --orange-dark: #d9601c;
    --green: #5fcf4a;
    --green-dark: #3a9a2b;
    --gold: #ffd84a;
    --text: #3a2a22;
    --muted: #6e584e;
    --font-h: 'Fredoka', 'Nunito', sans-serif;
    --font-b: 'Nunito', sans-serif;
    --outline: 3px solid var(--ink);
    --pop: 0 5px 0 var(--ink);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-b); color: var(--text); background: var(--sky-bottom);
    overflow-x: hidden; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { -webkit-user-drag: none; user-select: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Cel ===== */
.sky { position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 70%, #fff 100%); }
.cloud {
    position: fixed; z-index: -1; pointer-events: none; background: #fff; border-radius: 100px; opacity: 0.85;
    filter: drop-shadow(0 6px 0 rgba(43, 26, 20, 0.08)); animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 55%; height: 160%; left: 14%; bottom: 20%; }
.cloud::after { width: 38%; height: 120%; right: 14%; bottom: 25%; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }

/* ===== HUD ===== */
.hud { position: sticky; top: 0; z-index: 50; padding: 10px 0; }
.hud-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--cream); border: var(--outline); border-radius: 22px; box-shadow: var(--pop); padding: 8px 10px 8px 14px;
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-h); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo img { width: 30px; height: 30px; object-fit: contain; animation: wiggle 3s ease-in-out infinite; }
.logo .accent { color: var(--orange); }
.hud-stats { display: flex; align-items: center; gap: 8px; }

.lang { position: relative; }
.lang summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; background: #fff; border: 2.5px solid var(--ink);
    border-radius: 999px; padding: 4px 10px; font-family: var(--font-h); font-weight: 700; font-size: 0.85rem; color: var(--ink); text-transform: uppercase;
}
.lang summary::-webkit-details-marker { display: none; }
.lang nav {
    position: absolute; right: 0; top: calc(100% + 8px); background: var(--cream); border: var(--outline); border-radius: 16px; box-shadow: var(--pop);
    padding: 6px; display: grid; min-width: 150px; z-index: 60;
}
.lang nav a { padding: 6px 10px; border-radius: 10px; text-decoration: none; font-family: var(--font-h); font-weight: 600; color: var(--ink); }
.lang nav a:hover, .lang nav a[aria-current] { background: var(--gold); }

/* ===== Botons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 18px; border: var(--outline);
    font-family: var(--font-h); font-weight: 700; font-size: 1.1rem; text-decoration: none; box-shadow: var(--pop); cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-green { background: linear-gradient(180deg, #7be35f, var(--green)); color: #fff; text-shadow: 0 2px 0 var(--green-dark); }
.btn-orange { background: linear-gradient(180deg, #ffa765, var(--orange)); color: #fff; text-shadow: 0 2px 0 var(--orange-dark); }
.btn-white { background: #fff; color: var(--ink); }
.btn small { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.9; line-height: 1; }
.btn .lbl { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.btn i { font-size: 1.4rem; }
.btn.soon { opacity: 0.6; cursor: default; }
.btn.soon:active { transform: none; box-shadow: var(--pop); }
.btn.big { padding: 14px 28px; font-size: 1.25rem; }
.btn.sm { padding: 8px 14px; font-size: 1rem; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.btn.glow { animation: glow 2.4s ease-in-out infinite; }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; padding: 22px 0 30px; }
h1 { margin: 0 0 14px; }
h1 .brand {
    display: inline-block; font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; color: var(--ink);
    background: var(--gold); border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 14px; box-shadow: 0 3px 0 var(--ink); transform: rotate(-2deg);
}
h1 .slogan {
    display: block; margin-top: 16px; font-family: var(--font-h); font-weight: 700; color: #fff;
    font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.04; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink);
}
h1 .y { color: var(--gold); }
h1 .o { color: var(--orange); }
.sub { font-size: 1.12rem; font-weight: 700; color: var(--text); max-width: 540px; background: rgba(255,255,255,0.6); border-radius: 14px; padding: 10px 14px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badges li {
    display: flex; align-items: center; gap: 6px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
    padding: 3px 12px; font-family: var(--font-h); font-weight: 600; font-size: 0.92rem; color: var(--ink);
}
.badges i { color: var(--green-dark); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ===== Il·lustració ===== */
.hero-art { position: relative; width: min(100%, 460px); margin: 0 auto; aspect-ratio: 492 / 560; }
.hero-island { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(30, 60, 90, 0.25)); animation: float 6s ease-in-out infinite; }
.hero-dino, .hero-egg { position: absolute; height: auto; filter: drop-shadow(0 5px 0 rgba(43, 26, 20, 0.18)); transform-origin: 50% 100%; }
.hero-dino.d1 { width: 44%; left: 14%; top: 30%; animation: breathe 2.2s ease-in-out infinite; }
.hero-dino.d2 { width: 34%; right: 12%; top: 40%; scale: -1 1; animation: breathe 1.8s 0.4s ease-in-out infinite; }
.hero-egg { width: 17%; left: 44%; top: 56%; animation: wiggle 3s ease-in-out infinite; }

/* ===== Seccions ===== */
section { padding: 40px 0; }
.sec-head { text-align: center; margin-bottom: 22px; }
.sec-head h2 {
    font-family: var(--font-h); font-weight: 700; color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1;
    -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink);
}
.sec-head p { margin: 10px auto 0; max-width: 640px; font-weight: 700; color: var(--text); }
.card { background: var(--cream); border: var(--outline); border-radius: 26px; box-shadow: 0 7px 0 var(--ink); }

/* Com es juga */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; list-style: none; }
.step { padding: 18px; display: flex; gap: 14px; align-items: center; }
.step::before {
    counter-increment: step; content: counter(step); flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center;
    background: var(--orange); color: #fff; border: var(--outline); border-radius: 50%; font-family: var(--font-h); font-weight: 700; font-size: 1.4rem; box-shadow: 0 3px 0 var(--ink);
}
.step h3 { font-family: var(--font-h); font-weight: 700; font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.step p { font-weight: 700; color: var(--muted); font-size: 0.95rem; }

/* Característiques */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 16px; padding-top: 40px; }
.feat { padding: 20px 18px; text-align: center; transition: transform 0.2s; }
.feat:hover { transform: translateY(-6px) rotate(-1deg); }
.feat .ic { width: 84px; height: 84px; margin: -48px auto 8px; display: grid; place-items: center; background: #fff; border: var(--outline); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.feat .ic img, .feat .ic svg { width: 60px; height: 60px; object-fit: contain; }
.feat .ic i { font-size: 2rem; color: var(--orange); }
.feat h3 { font-family: var(--font-h); font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1.15; margin-bottom: 6px; }
.feat p { font-weight: 700; color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { padding: 4px 18px; border-radius: 20px; box-shadow: 0 5px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--font-h); font-weight: 600; font-size: 1.12rem; color: var(--ink); line-height: 1.25; }
.faq summary::after { content: '+'; flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold); border: 2.5px solid var(--ink); border-radius: 50%; font-family: var(--font-h); font-weight: 700; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 14px; font-weight: 700; color: var(--muted); }

/* CTA */
.cta { text-align: center; padding: 34px 18px; position: relative; overflow: hidden; }
.cta h2 { font-family: var(--font-h); font-weight: 700; color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.cta p { font-weight: 700; color: var(--muted); margin: 8px 0 18px; }
.cta .ctas { justify-content: center; }
.cta-dino { position: absolute; width: 120px; height: auto; bottom: 4px; }
.cta-dino.l { left: 10px; } .cta-dino.r { right: 10px; scale: -1 1; }

footer { padding: 26px 0 96px; text-align: center; font-weight: 700; color: var(--text); }
footer .links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--ink); font-family: var(--font-h); font-weight: 600; }
footer .langs { display: flex; justify-content: center; gap: 4px 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 0.9rem; }
footer .langs a { color: var(--muted); text-decoration: none; }
footer .langs a[aria-current] { color: var(--ink); text-decoration: underline; }
footer small { color: var(--muted); }

/* Barra de descàrrega (mòbil) */
.sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: none; align-items: center; gap: 10px;
    background: var(--cream); border: var(--outline); border-radius: 20px; box-shadow: var(--pop); padding: 8px 8px 8px 12px;
    transform: translateY(150%); transition: transform 0.35s cubic-bezier(.2,1.2,.4,1);
}
.sticky-cta img { width: 34px; height: 40px; object-fit: contain; }
.sticky-cta div { flex: 1; min-width: 0; line-height: 1.15; }
.sticky-cta b { display: block; font-family: var(--font-h); font-weight: 700; color: var(--ink); }
.sticky-cta small { font-weight: 800; color: var(--muted); }
.show-sticky .sticky-cta { transform: none; }

.toast {
    position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 160%); z-index: 140; opacity: 0; visibility: hidden;
    background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 16px; font-family: var(--font-h); font-weight: 600;
    transition: transform 0.35s cubic-bezier(.2,1.4,.4,1), opacity 0.25s, visibility 0.35s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.show-sticky .toast { bottom: 90px; }

/* ===== Animacions ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@keyframes bump { 50% { transform: scale(1.15); } }
@keyframes pulse { 50% { transform: scale(1.15); } }
@keyframes point { 50% { transform: translateX(6px); } }
@keyframes hop { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-9%) rotate(2deg); } }
@keyframes breathe { 50% { transform: scaleY(0.95) scaleX(1.03); } }
@keyframes squish { 40% { transform: scale(1.12, 0.86); } 70% { transform: scale(0.95, 1.07); } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@keyframes vanish { to { transform: scale(1.5); opacity: 0; } }
@keyframes appear { from { transform: translateY(-120%) scale(0.6); opacity: 0; } }
@keyframes born { 0% { transform: scale(0.2); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes rise { from { transform: translate(-50%, 0) scale(0.7); opacity: 1; } 30% { transform: translate(-50%, -18px) scale(1.15); } to { transform: translate(-50%, -70px) scale(1); opacity: 0; } }
@keyframes ready { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes glow { 0%, 100% { box-shadow: var(--pop); } 50% { box-shadow: 0 5px 0 var(--ink), 0 0 0 7px rgba(255, 216, 74, 0.6); } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 10px; }
    .hero-art { width: min(100%, 340px); margin-top: 18px; }
    .sub { margin: 0 auto; }
    .badges, .ctas { justify-content: center; }
    .steps { grid-template-columns: 1fr; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .sticky-cta { display: flex; }
}
@media (max-width: 560px) {
    .logo .txt { display: none; }
    .hud-stats { gap: 5px; }
        .features { grid-template-columns: 1fr; }
    .btn { padding: 10px 16px; font-size: 1rem; }
    .cta-dino { width: 76px; }
    h1 .brand { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
