/* Datasphere home — playful, hand-drawn studio page.
   Palette: warm grey canvas, navy ink, coral accent, mint / blue / yellow / peach pops. */

:root {
  --bg: #F2F2F2;
  --ink: #161B33;
  --ink-2: #2A3050;
  --muted: #6B6E7B;
  --line: #E4E4E7;
  --coral: #FF5A5F;
  --mint: #7DDFC3;
  --blue: #5B9BFF;
  --yellow: #F0F58A;
  --yellow-d: #E3E86A;
  --peach: #FFAA77;
  --banner: #FFE08A;

  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(22, 27, 51, .06), 0 8px 24px rgba(22, 27, 51, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
main { overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1218px; margin-inline: auto; padding-inline: 24px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.muted { color: var(--muted); }
.coral { color: var(--coral); }
.hand { font-family: var(--hand); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: var(--r-sm);
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -6px rgba(22, 27, 51, .5); }
.btn--dark:hover { background: var(--ink-2); }
.btn--white { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn--lg { height: 56px; padding: 0 56px; font-size: 17px; }

/* ---------- banner + nav ---------- */
.banner {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 56px; background: var(--banner);
  font-size: 16px; text-align: center;
}
.banner p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.banner__flame { width: 18px; height: 22px; color: #E4572E; }
.banner a { font-weight: 500; text-underline-offset: 3px; }
.banner__close {
  position: absolute; right: 24px; top: 50%; translate: 0 -50%;
  width: 36px; height: 36px; border: 0; background: none; cursor: pointer; border-radius: 50%;
}
.banner__close:hover { background: rgba(0, 0, 0, .06); }
.banner__close svg { width: 20px; height: 20px; margin: auto; }
.banner.is-hidden { display: none; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px 0; }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 36px; }
.nav__links a { font-weight: 500; font-size: 16px; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 72px; padding-bottom: 150px; text-align: center; }
.hero__hand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(34px, 4vw, 52px); line-height: 1; margin-bottom: 64px;
}
.hero__hand svg { width: 44px; height: 18px; color: var(--ink); }
.hand--blue { color: var(--blue); }

.hero__stack { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; }
.hl { font-size: clamp(34px, 4.5vw, 68px); line-height: 1.1; }
.hl--1 > span { white-space: nowrap; }
.hl--1 { display: flex; align-items: flex-end; justify-content: center; gap: .22em; }
.hero__slot { position: relative; align-self: stretch; width: 2.3em; flex: none; }
/* head sits flush on the sticker's top edge; paws hang over it */
.hero__dot { position: absolute; left: 0; right: 0; bottom: -.14em; clip-path: inset(0 0 4px 0); margin-bottom: -4px; }
.hero__paws { position: absolute; left: 0; right: 0; bottom: -.36em; z-index: 3; }
.hero__sticker { position: relative; z-index: 2; margin-top: .14em; }
.hero__sticker > span {
  display: inline-block; padding: .06em .42em .14em;
  background: var(--ink); color: #fff; border-radius: .22em;
  rotate: -1.5deg; box-shadow: .1em .12em 0 var(--coral);
}
.hero__sticker em { font-style: normal; color: var(--coral); }
.caret {
  display: inline-block; width: .07em; height: .9em; margin-left: .06em; vertical-align: -.08em;
  background: var(--coral); opacity: .5; animation: blink 1s steps(1) infinite;
}
.hero__sub { max-width: 640px; margin: 56px auto 0; font-size: 21px; line-height: 1.6; color: var(--muted); }
.hero__ctas { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero__link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.hero__link svg { width: 30px; height: 14px; transition: translate .25s var(--ease); }
.hero__link:hover svg { translate: 6px 0; }

.deco { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.deco__el { position: absolute; animation: float 7s ease-in-out infinite; }
.d-blob-l { width: 110px; height: 110px; left: -70px; top: 52%; animation-delay: -2s; }
.d-blob-r { width: 110px; height: 110px; right: -80px; top: 34%; }
.d-note-l { width: 62px; height: 58px; left: 3%; top: 78%; --rot: -8deg; animation-delay: -4s; }
.d-note-r { width: 72px; height: 68px; right: 3%; top: 64%; --rot: 8deg; animation-delay: -1s; }
.d-flame { width: 40px; height: 50px; left: 6%; top: 14%; --rot: -10deg; animation-duration: 5s; }

/* ---------- section heads ---------- */
.sec-head { text-align: center; margin-bottom: 64px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 56px); }
.sec-head p { max-width: 620px; margin: 18px auto 0; font-size: 21px; color: var(--muted); }
.sec-head--left { text-align: left; }
.sec-head--left p { margin-inline: 0; }

.panel { position: relative; background: var(--ink); color: #fff; border-radius: var(--r-lg); }

/* ---------- journey ---------- */
.journey { padding-block: 20px 140px; }
.journey__map { position: relative; padding-top: 20px; }
.journey__path { position: absolute; left: 0; right: 0; top: 40px; width: 100%; height: 300px; }
.stops { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stop { text-align: center; }
.stop:nth-child(even) { margin-top: 110px; }
.stop__art { position: relative; width: 200px; height: 200px; margin: 0 auto 18px; }
.stop__blob { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--c); transition: rotate .8s var(--ease); }
.stop__doodle { position: absolute; inset: 22%; width: 56%; height: 56%; transition: transform .5s var(--ease); }
.stop:hover .stop__blob { rotate: 25deg; }
.stop:hover .stop__doodle { transform: scale(1.08) rotate(-6deg); }
.stop__n { display: block; font-size: 28px; color: var(--muted); line-height: 1; }
.stop h3 { font-size: 28px; margin-top: 6px; }
.stop p { max-width: 230px; margin: 10px auto 0; color: var(--muted); font-size: 17px; }
.journey__dot { position: absolute; right: -20px; top: -40px; width: 120px; }
.journey__note { position: absolute; right: 100px; top: -6px; font-size: 28px; rotate: -6deg; }

/* ---------- rules ---------- */
.rules { padding-block: 120px; }
.rules__panel { padding: 96px 64px 88px; }
.rules__dot { position: absolute; bottom: 100%; left: 12%; width: 150px; clip-path: inset(0 0 4px 0); margin-bottom: -4px; }
.rules__paws { position: absolute; top: -18px; left: 12%; width: 150px; z-index: 2; }
.rules__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.rules__head h2 { font-size: clamp(32px, 4vw, 54px); }
.rules__head .hand { font-size: 30px; color: var(--mint); rotate: -4deg; }
.stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sticker {
  position: relative; background: var(--bg); color: var(--ink);
  border-radius: 18px; padding: 28px 24px 30px;
  rotate: var(--rot); transition: rotate .35s var(--ease), translate .35s var(--ease);
}
.sticker::before {
  content: ''; position: absolute; left: 50%; top: -12px; width: 70px; height: 24px; translate: -50% 0;
  background: rgba(255, 255, 255, .55); rotate: -4deg; border-radius: 3px;
}
.sticker:hover { rotate: 0deg; translate: 0 -6px; }
.sticker__icon { width: 52px; height: 52px; margin-bottom: 22px; }
.sticker h3 { font-size: 22px; }
.sticker p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ---------- join ---------- */
.join { padding-block: 40px 60px; }
.join .sec-head h2 { font-size: clamp(36px, 4.6vw, 64px); }
.roles { display: flex; flex-wrap: wrap; gap: 20px 18px; }
.role {
  display: inline-flex; align-items: center; gap: 16px; background: var(--c); color: var(--ink);
  border-radius: 99px; padding: 18px 20px 18px 28px; font: 700 22px/1 var(--display); letter-spacing: -.03em;
  rotate: var(--rot, 0deg); transition: rotate .3s var(--ease), translate .3s var(--ease);
}
.role:nth-child(odd) { --rot: -2deg; }
.role:nth-child(even) { --rot: 2deg; }
.role:hover { rotate: 0deg; translate: 0 -4px; }
.role a {
  font: 600 14px/1 var(--body); letter-spacing: 0; color: var(--ink); text-decoration: none; white-space: nowrap;
  background: #fff; padding: 10px 14px; border-radius: 99px;
}
.role a:hover { background: var(--ink); color: #fff; }

/* ---------- cta ---------- */
.cta { padding-block: 120px 60px; overflow: hidden; }
.cta__top { position: relative; height: 280px; }
.cta__dot { position: absolute; left: 50%; translate: -120% 0; top: 10px; width: 190px; }
.bubble {
  position: absolute; left: 50%; translate: -8% 0; top: 20px;
  background: #fff; border-radius: 22px; padding: 24px 40px; font-size: 24px; font-weight: 600;
  box-shadow: var(--shadow); white-space: nowrap;
}
.bubble::after { content: ''; position: absolute; left: 26px; bottom: -16px; width: 26px; height: 22px; background: #fff; clip-path: polygon(0 0, 100% 0, 0 100%); }
.cta__swirl { position: absolute; height: auto; }
.cta__swirl--l { left: 8%; top: 60px; width: 220px; }
.cta__swirl--r { right: 12%; top: 60px; width: 250px; }
.marquee { margin-top: 60px; overflow: hidden; user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { padding-right: .6em; font: 700 clamp(64px, 9vw, 130px)/1.1 var(--body); letter-spacing: -.035em; white-space: nowrap; }
.marquee__track b { font-weight: 700; }
.cta__btn { text-align: center; margin-top: 60px; }

/* ---------- footer ---------- */
.foot { padding-block: 40px; }
.foot__card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; background: #fff; border-radius: var(--r-lg); padding: 48px; }
.foot__brand img { height: 28px; width: auto; }
.foot__brand p { margin-top: 16px; max-width: 360px; color: var(--muted); }
.foot__social { display: flex; gap: 10px; margin-top: 24px; }
.foot__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); transition: background .2s, color .2s; }
.foot__social a:hover { background: var(--ink); color: #fff; }
.foot__social svg { width: 18px; height: 18px; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot__cols p { font-weight: 600; margin-bottom: 14px; }
.foot__cols a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; }
.foot__cols a:hover { color: var(--ink); }
.foot__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 8px 0; color: var(--muted); font-size: 14px; }
.foot__base .hand { font-size: 22px; color: var(--ink); }

/* ---------- mascot ---------- */
.dot { width: 100%; height: auto; overflow: visible; }
.dot-eye { animation: dotBlink 5.5s infinite; }
[data-dot]:nth-of-type(2n) .dot-eye { animation-delay: -2.3s; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.js .sticker.reveal { transition: opacity .8s var(--ease), translate .8s var(--ease), rotate .35s var(--ease); }
.js .stops .reveal:nth-child(2), .js .stickers .reveal:nth-child(2), .js .roles .reveal:nth-child(2) { transition-delay: .1s; }
.js .stops .reveal:nth-child(3), .js .stickers .reveal:nth-child(3), .js .roles .reveal:nth-child(3) { transition-delay: .2s; }
.js .stops .reveal:nth-child(4), .js .stickers .reveal:nth-child(4), .js .roles .reveal:nth-child(4) { transition-delay: .3s; }
.js .roles .reveal:nth-child(5) { transition-delay: .4s; }
.js .role.reveal { transition: opacity .8s var(--ease), translate .8s var(--ease), rotate .3s var(--ease); }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--rot, 0deg) + 4deg)); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dotBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stickers { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stop__art { width: 170px; height: 170px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .journey__path { display: none; }
  .stops { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .stop:nth-child(even) { margin-top: 60px; }
  .journey__dot { top: auto; bottom: -120px; right: 0; width: 110px; }
  .journey__note { top: auto; bottom: -80px; right: 120px; }
  .rules__panel { padding: 72px 32px 56px; }
  .foot__card { grid-template-columns: 1fr; padding: 32px; }
  .d-blob-l, .d-blob-r { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .banner { font-size: 14px; padding: 10px 48px 10px 16px; justify-content: flex-start; text-align: left; }
  .banner p { justify-content: flex-start; gap: 4px 8px; }
  .banner__close { right: 8px; }
  .nav { padding-top: 24px; }
  .nav .btn { height: 42px; padding: 0 18px; font-size: 15px; }
  .hero { padding-top: 48px; padding-bottom: 90px; }
  .hero__hand { margin-bottom: 36px; font-size: 32px; gap: 8px; }
  .hero__hand svg { width: 30px; }
  .hl { font-size: 9.4vw; }
  .hl--1 { flex-wrap: wrap; column-gap: .25em; row-gap: 0; }
  .hero__slot { order: 3; flex-basis: 100%; width: auto; height: 2.5em; }
  .hero__dot, .hero__paws { width: 2.9em; left: 50%; translate: -50% 0; right: auto; }
  .hero__sub { font-size: 18px; margin-top: 40px; }
  .hero__ctas { flex-direction: column; gap: 20px; }
  .hero__ctas .btn { width: 100%; }
  .d-note-l, .d-note-r, .d-flame { display: none; }
  .sec-head { margin-bottom: 40px; }
  .sec-head p { font-size: 18px; }
  .journey { padding-bottom: 170px; }
  .stops { grid-template-columns: 1fr; row-gap: 40px; }
  .stop:nth-child(even) { margin-top: 0; }
  .stop__art { width: 150px; height: 150px; }
  .rules { padding-block: 110px 60px; }
  .rules__panel { padding: 56px 20px 40px; }
  .rules__dot, .rules__paws { width: 110px; left: 50%; translate: -50% 0; }
  .rules__paws { top: -13px; }
  .rules__head { margin-bottom: 36px; }
  .stickers { grid-template-columns: 1fr; gap: 26px; }
  .role { font-size: 17px; padding: 14px 14px 14px 22px; }
  .cta { padding-top: 70px; }
  .cta__top { height: 300px; }
  .cta__dot { width: 150px; translate: -50% 0; top: 100px; }
  .bubble { translate: -50% 0; top: 0; font-size: 18px; padding: 18px 24px; white-space: normal; width: max-content; max-width: calc(100% - 32px); text-align: center; }
  .bubble::after { left: 50%; }
  .cta__swirl { display: none; }
  .marquee { margin-top: 30px; }
  .cta__btn .btn { width: calc(100% - 32px); }
  .foot__card { padding: 26px 22px; }
  .foot__base { flex-direction: column; align-items: flex-start; gap: 4px; }
}
