*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #111827;
  --muted: #5f6574;
  --soft: #f6f9ff;
  --line: rgba(155, 171, 207, 0.22);
  --card: rgba(255, 255, 255, 0.68);
  --shadow: 0 24px 70px rgba(92, 111, 158, 0.18);
  --pink: #f06c92;
  --blue: #72a8ff;
  --purple: #8e63f4;
  --mint: #5fe3c0;
  --coral: #ff8a73;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 29%, rgba(255, 200, 226, 0.42), transparent 11rem),
    radial-gradient(circle at 79% 20%, rgba(146, 134, 255, 0.2), transparent 12rem),
    linear-gradient(180deg, #fbfdff 0%, #f3f8ff 48%, #fbfdff 100%);
  overflow-x: hidden;
  --mascot-tint: transparent;
  --mascot-tint-opacity: 0;
}

body[data-mood="energetic"] {
  --mascot-tint: linear-gradient(145deg, #fff4ee 0%, #ff8b78 48%, #f06c92 100%);
  --mascot-tint-opacity: 0.62;
}

body[data-mood="calm"] {
  --mascot-tint: linear-gradient(145deg, #f7fbff 0%, #95c7ff 48%, #7f8cff 100%);
  --mascot-tint-opacity: 0.58;
}

body[data-mood="mysterious"] {
  --mascot-tint: linear-gradient(145deg, #fbf6ff 0%, #bb8cff 48%, #8758f5 100%);
  --mascot-tint-opacity: 0.62;
}

body[data-mood="friendly"] {
  --mascot-tint: linear-gradient(145deg, #f4fff9 0%, #75eccf 48%, #47d8ad 100%);
  --mascot-tint-opacity: 0.58;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 7vw, 112px);
}

.logo {
  position: relative;
  width: 66px;
  height: 42px;
  display: block;
}

.logo-cloud {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.1px);
  box-shadow: 0 12px 28px rgba(93, 119, 210, 0.22);
}

.logo-cloud-one {
  width: 34px;
  height: 28px;
  left: 0;
  top: 11px;
  background: linear-gradient(135deg, #74b4ff, #9b7cff);
}

.logo-cloud-two {
  width: 38px;
  height: 38px;
  left: 18px;
  top: 0;
  background: linear-gradient(135deg, #c48aff, #f49bc6);
}

.logo-cloud-three {
  width: 40px;
  height: 26px;
  left: 28px;
  top: 16px;
  background: linear-gradient(135deg, #ffc2d1, #8b7cff);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.25)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at 82% 85%, rgba(151, 130, 255, 0.12), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -18px 28px rgba(172, 193, 235, 0.08),
    0 18px 44px rgba(91, 112, 165, 0.13);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 9px 0;
  outline: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--pink);
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav .is-active::after {
  transform: translateX(-50%) scale(1);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 86px clamp(18px, 6vw, 88px) 44px;
  display: grid;
  grid-template-rows: auto minmax(500px, 1fr);
  align-items: center;
  overflow: hidden;
}

.soft-grid {
  position: absolute;
  inset: 128px clamp(12px, 8vw, 120px) 64px;
  border-radius: 32px;
  opacity: 0.74;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 205px 205px;
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.85) 42%, transparent 75%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  align-self: end;
  margin-top: 12px;
}

.eyebrow {
  margin: 0 0 34px;
  font-size: 11px;
  font-weight: 700;
  color: #394150;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
}

h1 span {
  display: block;
  color: var(--pink);
}

.stage {
  position: relative;
  z-index: 3;
  width: min(980px, 100%);
  min-height: 560px;
  margin: 0 auto;
}

.mascot-wrap {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: min(390px, 46vw);
  transform: translateX(-50%);
  filter: drop-shadow(0 34px 34px rgba(104, 137, 209, 0.26));
  animation: floatMascot 5.4s ease-in-out infinite;
}

.mascot-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mascot-tint);
  opacity: var(--mascot-tint-opacity);
  mask: url("assets/nubi-mascot.png?v=2") center / contain no-repeat;
  -webkit-mask: url("assets/nubi-mascot.png?v=2") center / contain no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 0.24s ease, background 0.24s ease;
}

.mascot {
  display: block;
  width: 100%;
  height: auto;
}

.mood-card {
  position: absolute;
  width: 178px;
  min-height: 136px;
  padding: 38px 24px 22px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  outline: none;
}

.mood-card:hover,
.mood-card:focus-visible {
  transform: translateY(-8px) scale(1.03) perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 28px 80px rgba(86, 106, 158, 0.24);
}

.mood-card.is-selected {
  border-color: rgba(240, 108, 146, 0.42);
  box-shadow: 0 0 0 4px rgba(240, 108, 146, 0.1), 0 28px 80px rgba(86, 106, 158, 0.22);
}

.mood-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(142, 99, 244, 0.18), 0 28px 80px rgba(86, 106, 158, 0.24);
}

.mood-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 800;
}

.mood-card small {
  display: block;
  color: #4f5667;
  font-size: 11px;
  line-height: 1.24;
  font-weight: 600;
}

.card-icon {
  position: absolute;
  left: 22px;
  top: -16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #122033;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 15px 26px rgba(91, 112, 165, 0.22);
}

.card-energy {
  left: 12%;
  top: 122px;
}

.card-energy .card-icon {
  background: linear-gradient(135deg, #ffad99, #ff6e76);
}

.card-calm {
  right: 10%;
  top: 124px;
}

.card-calm .card-icon {
  background: linear-gradient(135deg, #a6e1ff, #68a2ff);
}

.card-mystery {
  left: 6%;
  bottom: 88px;
}

.card-mystery .card-icon {
  background: linear-gradient(135deg, #cf9aff, #8758f5);
}

.card-friendly {
  right: 5%;
  bottom: 110px;
  text-align: center;
}

.card-friendly .card-icon {
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #87f3d4, #41d8b2);
}

.bubble {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 50%;
  filter: blur(0.3px);
  box-shadow: 0 30px 50px rgba(105, 120, 185, 0.18);
  animation: floatBubble 7s ease-in-out infinite;
}

.bubble-a {
  width: 68px;
  height: 68px;
  left: 12%;
  top: 42%;
  background: radial-gradient(circle at 32% 30%, #fff1f4, #ffc7d9 55%, #d8e2ff);
}

.bubble-b {
  width: 58px;
  height: 58px;
  right: 24%;
  top: 23%;
  background: radial-gradient(circle at 35% 28%, #f6f4ff, #cbc9ff 58%, #dce9ff);
  animation-delay: -2s;
}

.bubble-c {
  width: 24px;
  height: 24px;
  left: 4%;
  top: 28%;
  background: radial-gradient(circle, #f4e8ff, #d7d1ff);
  animation-delay: -4s;
}

.bubble-d {
  width: 22px;
  height: 22px;
  right: 18%;
  top: 29%;
  background: radial-gradient(circle, #e5fff8, #ccf4e7);
  animation-delay: -3s;
}

.bubble-e {
  width: 94px;
  height: 94px;
  right: 13%;
  bottom: -42px;
  background: radial-gradient(circle at 31% 26%, #eafff6, #aff2dc 58%, #cbe0ff);
  animation-delay: -5s;
}

.info-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 100px;
  text-align: center;
}

.info-section h2 {
  margin: 0 0 14px;
  font-size: 32px;
}

.info-section p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

@keyframes floatMascot {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-14px);
  }
}

@keyframes floatBubble {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -16px, 0);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding: 18px 20px;
  }

  .main-nav {
    justify-self: end;
    gap: 18px;
    max-width: 72vw;
    min-height: 48px;
    padding: 0 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
    grid-template-rows: auto auto;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    min-height: auto;
    margin-top: 320px;
  }

  .mascot-wrap {
    top: -310px;
    bottom: auto;
    width: min(310px, 78vw);
  }

  .mood-card {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 142px;
  }

  .card-friendly {
    text-align: left;
  }

  .card-friendly .card-icon {
    left: 22px;
    transform: none;
  }
}

@media (max-width: 540px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .main-nav {
    justify-self: center;
    max-width: 100%;
  }

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .stage {
    grid-template-columns: 1fr;
    margin-top: 280px;
  }

  .mascot-wrap {
    top: -280px;
    width: min(270px, 84vw);
  }
}
