/* Bloop Factory marketing — sunny factory floor */

:root {
  --sky: #3aa0ef;
  --sky-deep: #1b6fd6;
  --sky-soft: #8fd0ff;
  --sun: #f5c542;
  --coral: #ff6b8a;
  --mint: #5ed9a0;
  --foam: #f3f9ff;
  --ink: #143953;
  --muted: #3d6a88;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", "Avenir Next", system-ui, sans-serif;
  --shell: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 85% 50% at 70% -8%, #ffe8a0 0%, transparent 48%),
    linear-gradient(180deg, #7ec8ff 0%, #4aabe8 42%, #2f8fd4 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sky-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-family: var(--display);
  font-weight: 700;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.55rem 1rem;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  border: 2px solid var(--ink);
}

.skip-link:focus {
  top: 0.75rem;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 170px;
  height: 64px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  animation: cloudDrift 32s linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 64px;
  height: 64px;
  left: 22px;
  top: -30px;
}

.cloud::after {
  width: 88px;
  height: 88px;
  right: 18px;
  top: -44px;
}

.cloud--a { top: 10%; left: -8%; animation-duration: 36s; }
.cloud--b { top: 26%; left: 45%; width: 210px; opacity: 0.4; animation-duration: 44s; animation-delay: -10s; }
.cloud--c { top: 58%; left: 72%; width: 150px; opacity: 0.35; animation-duration: 40s; animation-delay: -18s; }

.cube {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(20, 57, 83, 0.25);
  border-radius: 4px;
  opacity: 0.7;
  animation: cubeFloat 14s ease-in-out infinite;
}

.cube--1 { left: 8%; top: 18%; background: #ff7eb3; animation-delay: 0s; }
.cube--2 { left: 18%; top: 72%; background: #6ef0ff; animation-delay: -3s; }
.cube--3 { left: 82%; top: 22%; background: var(--sun); animation-delay: -6s; }
.cube--4 { left: 90%; top: 68%; background: var(--mint); animation-delay: -9s; width: 14px; height: 14px; }

.gear {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 6px solid rgba(245, 197, 66, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(245, 197, 66, 0.2);
  animation: gearSpin 18s linear infinite;
}

.gear--a { left: 6%; bottom: 12%; }
.gear--b { right: 7%; bottom: 28%; width: 40px; height: 40px; animation-direction: reverse; animation-duration: 22s; }

@keyframes cloudDrift {
  from { transform: translateX(0); }
  to { transform: translateX(32vw); }
}

@keyframes cubeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(12deg); }
}

@keyframes gearSpin {
  to { transform: rotate(360deg); }
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 0.85rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.top.is-solid {
  background: rgba(59, 160, 239, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(20, 57, 83, 0.18);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(20, 57, 83, 0.25);
}

.mark img {
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.7),
    0 6px 16px rgba(20, 57, 83, 0.28);
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.top__nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.top__nav a:hover {
  color: #fff;
  text-decoration: none;
}

.top__cta {
  background: var(--sun);
  color: var(--ink) !important;
  padding: 0.45rem 0.95rem;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(20, 57, 83, 0.35);
  font-weight: 800 !important;
}

.top__cta:hover {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 rgba(20, 57, 83, 0.35);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 57, 83, 0.15) 0%, transparent 28%),
    linear-gradient(180deg, transparent 42%, rgba(20, 57, 83, 0.72) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 clamp(3.5rem, 10vw, 5.5rem);
  max-width: 38rem;
  color: #fff;
}

.hero__brand {
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  letter-spacing: -0.03em;
  text-shadow: 0 4px 0 rgba(20, 57, 83, 0.35);
  margin-bottom: 0.65rem;
}

.hero__lede {
  margin: 0 0 1.35rem;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 600;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(20, 57, 83, 0.35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  font-weight: 800;
  text-decoration: none !important;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.btn span {
  line-height: 1.15;
  text-align: start;
}

.btn--play {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 4px 4px 0 rgba(20, 57, 83, 0.35);
}

.btn--play:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(20, 57, 83, 0.35);
}

.btn--soon {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(20, 57, 83, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
  cursor: default;
}

.motion-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-rise--2 { animation-delay: 0.12s; }
.motion-rise--3 { animation-delay: 0.24s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.features {
  padding: clamp(2.8rem, 8vw, 4.8rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.features__grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 820px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.35rem 1.2rem 1.45rem;
  background: rgba(243, 249, 255, 0.92);
  border: 2px solid rgba(20, 57, 83, 0.18);
  box-shadow: 0 14px 32px rgba(20, 57, 83, 0.12);
}

.feature__badge {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(20, 57, 83, 0.2);
}

.feature__badge--bloop {
  background: linear-gradient(145deg, #d2a06a, #b57a45);
  font-size: 1rem;
}

.feature__badge--gear {
  background: var(--sun);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(20, 57, 83, 0.12);
}

.feature__badge--cube {
  background: linear-gradient(145deg, #ff7eb3, #ff5a9a);
  border-radius: 6px;
}

.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.how {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.how__grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
}

@media (min-width: 900px) {
  .how__grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

.how__copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 0 rgba(20, 57, 83, 0.2);
}

.how__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  max-width: 32rem;
}

.how__beats {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: rgba(243, 249, 255, 0.94);
  border: 2px solid rgba(20, 57, 83, 0.14);
  box-shadow: 0 16px 36px rgba(20, 57, 83, 0.14);
}

.how__beats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(20, 57, 83, 0.1);
}

.how__beats li:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.how__num {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  background: var(--sun);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

.how__beats h3 {
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.how__beats p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.close {
  padding: clamp(3.2rem, 9vw, 5.2rem) 0 clamp(4.2rem, 11vw, 6rem);
  text-align: center;
}

.close__inner {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 2rem 1.25rem;
  background: rgba(243, 249, 255, 0.94);
  border: 2px solid rgba(20, 57, 83, 0.14);
  box-shadow: 0 18px 40px rgba(20, 57, 83, 0.14);
}

.close__icon {
  border-radius: 22px;
  border: 2px solid rgba(20, 57, 83, 0.2);
  box-shadow: 0 10px 24px rgba(20, 57, 83, 0.18);
}

.close h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  color: var(--ink);
}

.close p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  max-width: 28rem;
  font-weight: 600;
}

.foot {
  border-top: 2px solid rgba(20, 57, 83, 0.18);
  padding: 2rem 0 2.5rem;
  background: rgba(20, 57, 83, 0.88);
  color: #fff;
}

.foot__inner {
  display: grid;
  gap: 1rem;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
}

.foot__brand img {
  border-radius: 8px;
}

.foot__by {
  font-family: var(--body);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.foot__links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 700;
}

.foot__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 700px) {
  .top__nav a:not(.top__cta) {
    display: none;
  }

  .hero__content {
    padding-bottom: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .motion-rise,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
