* {
  box-sizing: border-box;
}

:root {
  --text: #1f3d2b; /* dark green */
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-border-strong: rgba(255, 255, 255, 0.58);
  --glass-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  --video-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #050505;
  overflow-x: hidden;
  position: relative;
}

/* global image safety */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* background */

.bg-layer {
  position: fixed;
  inset: -6%;
  z-index: 0;
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
}

body.home .bg-layer {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08)),
    url("Artboard 1gradient.jpg") center center / cover no-repeat;
}

body.subpage .bg-layer {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.16)),
    url("pinkgradient.jpg") center center / cover no-repeat;
}

.background-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.05), transparent 18%),
    radial-gradient(circle at 65% 75%, rgba(255, 255, 255, 0.04), transparent 22%);
  mix-blend-mode: screen;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(24px);
  opacity: 0.18;
  will-change: transform;
}

.ambient-1 {
  width: 220px;
  height: 220px;
  top: 10%;
  left: 8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 70%);
  animation: ambientFloat1 14s ease-in-out infinite;
}

.ambient-2 {
  width: 180px;
  height: 180px;
  top: 18%;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  animation: ambientFloat2 16s ease-in-out infinite;
}

.ambient-3 {
  width: 260px;
  height: 260px;
  bottom: 8%;
  right: 14%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: ambientFloat3 17s ease-in-out infinite;
}

/* homepage layout */

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 20px 20px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wrap {
  margin-bottom: 18px;
}

.logo {
  width: min(220px, 60vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

/* vertical phone screen video */

.video-wrap {
  width: min(420px, 88vw);
  position: relative;
  margin-bottom: 20px;
}

.video-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(255, 255, 255, 0.08)
  );
  opacity: 0.18;
  filter: blur(10px);
  z-index: -1;
}

.main-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--video-shadow);
}

/* bubbles */

.bubble-menu {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: auto;
  max-width: calc(100% - 12px);
}

.bubble-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}

.bubble-row-bottom {
  margin-top: -6px;
}

.bubble {
  --mx: 35%;
  --my: 22%;
  --scale: 1;
  --push-x: 0px;
  --push-y: 0px;

  flex: 0 0 auto;
  position: relative;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.06;
  letter-spacing: 0.01em;
  padding: 10px;
  overflow: hidden;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);

  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);

  box-shadow:
    inset 0 2px 12px rgba(255, 255, 255, 0.34),
    inset 0 -10px 18px rgba(255, 255, 255, 0.05),
    0 14px 24px rgba(0, 0, 0, 0.24);

  transform: translate(var(--push-x), var(--push-y)) scale(var(--scale));
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease,
    filter 0.32s ease;
}

/* holographic gloss */
.bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.52) 11%,
      rgba(255, 255, 255, 0.18) 22%,
      rgba(255, 255, 255, 0.06) 36%,
      transparent 52%
    ),
    linear-gradient(
      135deg,
      rgba(255, 190, 230, 0.24) 0%,
      rgba(170, 240, 255, 0.22) 20%,
      rgba(255, 255, 255, 0.08) 40%,
      rgba(220, 255, 200, 0.18) 62%,
      rgba(210, 180, 255, 0.22) 82%,
      rgba(255, 220, 180, 0.16) 100%
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

.bubble::after {
  content: "";
  position: absolute;
  top: 13%;
  left: 14%;
  width: 42%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  filter: blur(2px);
  transform: rotate(-18deg);
  pointer-events: none;
  box-shadow:
    34px 40px 0 -8px rgba(255, 255, 255, 0.16),
    48px 52px 14px rgba(180, 255, 245, 0.10);
}

.bubble:hover {
  --scale: 1.08;
  border-color: var(--glass-border-strong);
  box-shadow:
    inset 0 2px 16px rgba(255, 255, 255, 0.42),
    inset 0 -12px 20px rgba(255, 255, 255, 0.08),
    0 18px 30px rgba(0, 0, 0, 0.34);
  filter: brightness(1.12) saturate(1.14);
  z-index: 3;
}

/* bubble colors */
.bubble1 {
  margin-top: 2px;
  animation: float1 6.2s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 234, 110, 0.22), transparent 56%),
    linear-gradient(145deg, rgba(255, 228, 95, 0.62), rgba(255, 246, 180, 0.20));
}

.bubble2 {
  margin-top: 10px;
  animation: float2 7s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 170, 220, 0.24), transparent 56%),
    linear-gradient(145deg, rgba(255, 165, 215, 0.58), rgba(255, 210, 235, 0.20));
}

.bubble3 {
  margin-top: 4px;
  animation: float3 6.7s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 100%, rgba(80, 235, 225, 0.24), transparent 56%),
    linear-gradient(145deg, rgba(70, 225, 215, 0.58), rgba(170, 255, 245, 0.18));
}

.bubble4 {
  margin-top: 0;
  animation: float4 7.4s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 100%, rgba(10, 135, 140, 0.28), transparent 56%),
    linear-gradient(145deg, rgba(8, 130, 135, 0.62), rgba(95, 185, 185, 0.18));
}

.bubble5 {
  margin-top: 8px;
  animation: float5 6.5s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 100%, rgba(140, 175, 95, 0.26), transparent 56%),
    linear-gradient(145deg, rgba(135, 170, 88, 0.60), rgba(195, 220, 150, 0.18));
}

.bubble6 {
  margin-top: 2px;
  animation: float6 6.9s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 100%, rgba(170, 220, 255, 0.22), transparent 56%),
    linear-gradient(145deg, rgba(175, 210, 255, 0.56), rgba(220, 235, 255, 0.18));
}

/* entrance */
.entrance {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: enterFloat 1.2s cubic-bezier(0.2, 0.85, 0.18, 1) forwards;
}

.entrance-1 {
  animation-delay: 0.08s;
}

.entrance-2 {
  animation-delay: 0.24s;
}

/* animations */
@keyframes enterFloat {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.95);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes float1 {
  0%, 100% { transform: translate(var(--push-x), calc(var(--push-y) + 0px)) scale(var(--scale)) rotate(0deg); }
  50% { transform: translate(var(--push-x), calc(var(--push-y) - 5px)) scale(var(--scale)) rotate(1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(var(--push-x), calc(var(--push-y) + 0px)) scale(var(--scale)) rotate(0deg); }
  50% { transform: translate(var(--push-x), calc(var(--push-y) - 7px)) scale(var(--scale)) rotate(-1deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(var(--push-x), calc(var(--push-y) + 0px)) scale(var(--scale)) rotate(0deg); }
  50% { transform: translate(var(--push-x), calc(var(--push-y) - 4px)) scale(var(--scale)) rotate(0.8deg); }
}

@keyframes float4 {
  0%, 100% { transform: translate(var(--push-x), calc(var(--push-y) + 0px)) scale(var(--scale)) rotate(0deg); }
  50% { transform: translate(var(--push-x), calc(var(--push-y) - 6px)) scale(var(--scale)) rotate(-0.7deg); }
}

@keyframes float5 {
  0%, 100% { transform: translate(var(--push-x), calc(var(--push-y) + 0px)) scale(var(--scale)) rotate(0deg); }
  50% { transform: translate(var(--push-x), calc(var(--push-y) - 5px)) scale(var(--scale)) rotate(0.9deg); }
}

@keyframes float6 {
  0%, 100% { transform: translate(var(--push-x), calc(var(--push-y) + 0px)) scale(var(--scale)) rotate(0deg); }
  50% { transform: translate(var(--push-x), calc(var(--push-y) - 6px)) scale(var(--scale)) rotate(-0.8deg); }
}

@keyframes ambientFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -18px); }
}

@keyframes ambientFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 14px); }
}

@keyframes ambientFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -22px); }
}

/* desktop */
@media (min-width: 900px) {
  .video-wrap {
    width: min(460px, 88vw);
  }

  .bubble {
    width: 106px;
    height: 106px;
    font-size: 0.96rem;
    padding: 10px;
  }

  .bubble-row {
    gap: 2px;
  }
}

/* mobile */
@media (max-width: 700px) {
  .page {
    padding: 16px 10px 26px;
  }

  .logo {
    width: min(195px, 62vw);
  }

  .video-wrap {
    width: min(380px, 92vw);
  }

  .bubble-menu {
    gap: 2px;
    top: 8px;
    max-width: calc(100% - 8px);
  }

  .bubble-row {
    gap: 2px;
  }

  .bubble {
    width: 72px;
    height: 72px;
    font-size: 0.62rem;
    padding: 6px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ambient {
    display: none;
  }

  .background-overlay {
    opacity: 0.45;
  }
}


