* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #2f2f38;
  background: #f8edf5;
}

button {
  font-family: inherit;
}

.page {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 245, 252, 0.96) 0%,
      rgba(255, 245, 252, 0.78) 25%,
      rgba(255, 245, 252, 0.16) 52%,
      rgba(255, 245, 252, 0.03) 100%
    ),
    url("background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.navbar {
  height: 64px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #8e7f9e;
  text-transform: uppercase;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7abd, #9ff5df);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 25px rgba(255, 122, 189, 0.35);
}

.logo-icon::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  list-style: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links a {
  color: #33333c;
  text-decoration: none;
  position: relative;
  padding: 22px 0;
}

.nav-links a.active {
  color: #f06fb2;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: #f06fb2;
}

.play-button {
  border: none;
  padding: 11px 21px 11px 25px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff80b8, #b889ff);
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(214, 123, 220, 0.35);
}

.play-button span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 17px;
}

.hero {
  height: calc(100vh - 64px);
  padding: 24px 52px 20px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 26px;
  position: relative;
}

.content {
  z-index: 10;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tag {
  width: fit-content;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(95, 207, 194, 0.4);
  color: #43afa4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(44px, 4.4vw, 66px);
  line-height: 0.93;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #16161b;
}

h1 span {
  display: block;
  background: linear-gradient(90deg, #f06fb2, #9485c7);
  -webkit-background-clip: text;
  color: transparent;
}

.description {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.42;
  color: #70707a;
  margin-bottom: 16px;
}

.control-card {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(165, 135, 170, 0.16);
  margin-bottom: 12px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 900;
  color: #6a6a75;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sparkle {
  color: #55cfc2;
  font-size: 16px;
}

.animation-buttons {
  display: grid;
  gap: 8px;
}

.animation-btn {
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.72);
  min-height: 42px;
  border-radius: 12px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #22222a;
  font-size: 13px;
  font-weight: 800;
  transition: 0.25s ease;
}

.animation-btn:hover,
.animation-btn.active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(87, 211, 198, 0.75);
  box-shadow: 0 10px 24px rgba(86, 218, 203, 0.22);
  transform: translateY(-2px);
}

.animation-btn .left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.icon-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #84d8ce;
  color: #7d6f86;
  font-size: 13px;
}

.play-icon {
  color: #54c7bb;
  font-size: 15px;
}

.color-options {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(123, 110, 140, 0.18);
  transition: 0.25s ease;
  position: relative;
}

.color-btn:hover,
.color-btn.active {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 25px rgba(240, 111, 178, 0.28);
}

.color-btn.active::after {
  content: "✓";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #70d9cc;
  color: white;
  font-size: 11px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.white {
  background: #ffffff;
}

.pink {
  background: #f47bb9;
}

.mint {
  background: #a9efd9;
}

.lavender {
  background: #c99beb;
}

.yellow,
.blue,
.green {
  background: #5f6670;
}

.model-area {
  position: absolute;
  inset: 0;
  z-index: 4;
  min-height: 0;
  pointer-events: none;
}

model-viewer {
  width: min(980px, 62vw);
  height: min(620px, 68vh);
  position: absolute;
  left: 58%;
  top: 54%;
  z-index: 4;
  --poster-color: transparent;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

@media (max-width: 1100px) {
  html,
  body {
    overflow: auto;
  }

  .page {
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  .navbar {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    height: auto;
    min-height: calc(100vh - 64px);
    grid-template-columns: 1fr;
    padding: 32px 24px 42px;
  }

  .content {
    max-width: 420px;
  }

  .model-area {
    position: relative;
    inset: auto;
    height: 430px;
  }

  model-viewer {
    width: 100%;
    height: 430px;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }
}

@media (max-width: 600px) {
  .navbar {
    height: 62px;
  }

  .logo {
    font-size: 14px;
  }

  .play-button {
    padding: 10px 14px;
    font-size: 12px;
  }

  .hero {
    padding: 28px 18px 38px;
  }

  h1 {
    font-size: 42px;
  }

  .description {
    font-size: 14px;
  }

  .control-card {
    padding: 14px;
  }

  .color-options {
    flex-wrap: wrap;
  }

  model-viewer {
    height: 360px;
  }
}
