:root {
  --bg: #020506;
  --banner: rgba(12, 13, 15, 0.86);
  --banner-line: rgba(255, 255, 255, 0.11);
  --text: #f7f7f2;
  --muted: #9a9a9a;
  --button: #efefef;
  --button-text: #323232;
  --red: #ee1b2f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 50% 42%, rgba(34, 105, 255, 0.13), transparent 23rem),
    linear-gradient(180deg, #080a0d 0%, #020506 56%, #000000 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.05), transparent 18rem),
    radial-gradient(circle at 50% 63%, rgba(20, 94, 255, 0.18), transparent 21rem);
  transition: opacity 220ms ease, background 220ms ease;
}

body[data-product="betelquit"]::before {
  background:
    radial-gradient(circle at 50% 39%, rgba(255, 255, 255, 0.04), transparent 18rem),
    radial-gradient(circle at 50% 61%, rgba(78, 223, 115, 0.2), transparent 20rem);
}

body::after {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 20%, transparent 55%, #000000 78%),
    radial-gradient(circle at 50% 43%, transparent 0 16rem, rgba(0, 0, 0, 0.52) 36rem);
  mix-blend-mode: multiply;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  appearance: none;
  border: 0;
  color: inherit;
  font: inherit;
}

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

.page-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 620px;
  min-height: max(620px, 100vh);
  min-height: max(620px, 100svh);
  padding: 26px clamp(14px, 2.1vw, 32px) 18px;
  overflow: hidden;
  overflow: clip;
}

.top-banner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 14px clamp(20px, 2.7vw, 46px);
  border: 1px solid var(--banner-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.92), var(--banner));
  box-shadow:
    0 22px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #efefef;
  font-size: clamp(18px, 1.35vw, 25px);
  font-weight: 790;
  line-height: 1.2;
  white-space: nowrap;
}

.product-switcher {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: clamp(18px, 3.2vw, 54px);
}

.product-tab {
  min-width: 132px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.product-tab:hover,
.product-tab:focus-visible {
  color: #f4f4f4;
  outline: none;
  transform: translateY(-1px);
}

.product-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.contact-link {
  display: grid;
  justify-self: end;
  gap: 2px;
  color: rgba(244, 244, 244, 0.68);
  font-size: clamp(12px, 0.82vw, 14px);
  line-height: 1.2;
  text-align: left;
  transition: color 180ms ease;
}

.contact-link strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 0.94vw, 16px);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
}

.product-art {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 0;
  width: min(62vw, 820px);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 320ms ease, transform 320ms ease;
}

.vibe-art {
  opacity: 1;
}

.betel-art {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

body[data-product="betelquit"] .vibe-art {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

body[data-product="betelquit"] .betel-art {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.oyo-art {
  top: 60%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

body[data-product="oyo"] .vibe-art,
body[data-product="oyo"] .betel-art {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

body[data-product="oyo"] .oyo-art {
  opacity: 1;
  transform: translate(-50%, -50%);
}

body[data-product="oyo"]::before {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.05), transparent 18rem),
    radial-gradient(circle at 50% 62%, rgba(255, 236, 190, 0.16), transparent 21rem);
}

.snail-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 60px rgba(255, 240, 205, 0.22));
  animation: snail-breathe 5s ease-in-out infinite;
}

.snail-svg {
  width: min(78%, 560px);
  height: auto;
}

.diode-board {
  position: absolute;
  inset: -16% -28%;
  display: grid;
  place-items: center;
  perspective: 720px;
  transform: rotate(-14deg) scale(1.08);
  filter: blur(2px) saturate(1.38) contrast(1.16);
}

.diode-board::before,
.diode-board::after {
  position: absolute;
  inset: 5% 3%;
  border-radius: 22px;
  content: "";
  pointer-events: none;
}

.diode-board::before {
  background:
    radial-gradient(circle at 28% 24%, rgba(184, 89, 255, 0.22), transparent 25%),
    radial-gradient(circle at 68% 46%, rgba(41, 216, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(28, 22, 87, 0.72), rgba(3, 4, 12, 0.36) 68%);
  box-shadow:
    0 0 90px rgba(97, 73, 255, 0.34),
    0 0 150px rgba(182, 67, 255, 0.18);
  transform: rotateX(69deg) rotateZ(-18deg) skewX(-13deg) translateY(8%);
}

.diode-board::after {
  background: linear-gradient(105deg, transparent 0 12%, rgba(201, 77, 255, 0.38) 31%, rgba(75, 226, 255, 0.42) 50%, rgba(99, 60, 255, 0.24) 64%, transparent 78%);
  filter: blur(22px);
  opacity: 0.94;
  transform: rotateX(69deg) rotateZ(-18deg) skewX(-13deg) translateY(8%);
  animation: diode-sweep 3.6s ease-in-out infinite;
}

.led-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: clamp(10px, 1.35vw, 19px);
  width: min(100%, 760px);
  aspect-ratio: 1.38;
  padding: clamp(22px, 3vw, 42px);
  border-radius: 24px;
  background:
    linear-gradient(rgba(92, 106, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 78, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(15, 24, 74, 0.76), rgba(3, 4, 14, 0.46));
  background-size: 12.5% 14.2%, 11.1% 12.5%, 100% 100%;
  box-shadow:
    inset 0 0 0 1px rgba(134, 176, 255, 0.12),
    inset 0 -36px 80px rgba(0, 0, 0, 0.48),
    0 20px 110px rgba(72, 82, 255, 0.34),
    0 0 160px rgba(180, 68, 255, 0.2);
  transform: rotateX(69deg) rotateZ(-18deg) skewX(-13deg) translateY(8%);
  transform-style: preserve-3d;
}

.led {
  position: relative;
  display: block;
  min-width: 0;
  align-self: center;
  width: 100%;
  aspect-ratio: 2.85;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(90deg, #141052 0%, #3152ff 33%, #89ecff 50%, #7e48ff 72%, #130838 100%);
  box-shadow:
    0 0 12px rgba(87, 220, 255, 0.82),
    0 0 30px rgba(105, 74, 255, 0.64),
    0 0 60px rgba(190, 69, 255, 0.34),
    inset 0 -5px 12px rgba(5, 7, 35, 0.5);
  opacity: calc(0.52 + ((var(--row) + var(--col)) % 3) * 0.16);
  transform: translateZ(calc((9 - var(--row)) * 3px)) scale(calc(1.24 - var(--row) * 0.036));
  animation: diode-pulse 2.4s ease-in-out infinite;
  animation-delay: calc((var(--row) * -0.18s) + (var(--col) * -0.09s));
}

.led::after {
  position: absolute;
  inset: 18% 13% 54%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
}

.led.is-hot {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(90deg, #1a0f54 0%, #6a63ff 28%, #e2dcff 50%, #a35cff 72%, #12063b 100%);
  box-shadow:
    0 0 18px rgba(197, 242, 255, 1),
    0 0 46px rgba(172, 79, 255, 0.92),
    0 0 88px rgba(71, 119, 255, 0.56);
  opacity: 1;
  animation-duration: 1.7s;
}

.leaf-stage {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 0 50px rgba(69, 219, 112, 0.44));
  animation: leaf-breathe 4.6s ease-in-out infinite;
}

.leaf {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  height: 58%;
  border-radius: 9% 78% 12% 78%;
  background:
    linear-gradient(135deg, rgba(229, 255, 217, 0.92), rgba(95, 231, 111, 0.92) 36%, rgba(18, 120, 46, 0.92) 78%),
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.62), transparent 22%);
  box-shadow:
    inset -18px -26px 38px rgba(0, 54, 24, 0.26),
    0 0 70px rgba(64, 224, 104, 0.32);
  transform-origin: 50% 88%;
}

.leaf::before {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 2px;
  height: 76%;
  border-radius: 999px;
  background: rgba(239, 255, 228, 0.62);
  content: "";
  transform: translateX(-50%) rotate(9deg);
}

.leaf::after {
  position: absolute;
  inset: 18% 22% auto auto;
  width: 38%;
  height: 1px;
  background: rgba(239, 255, 228, 0.42);
  box-shadow:
    -20px 38px 0 rgba(239, 255, 228, 0.34),
    -4px 78px 0 rgba(239, 255, 228, 0.24);
  content: "";
  transform: rotate(30deg);
}

.leaf-main {
  transform: translate(-50%, -52%) rotate(43deg);
}

.leaf-left {
  width: 27%;
  height: 44%;
  opacity: 0.74;
  transform: translate(-96%, -29%) rotate(17deg) scale(0.9);
  animation: leaf-sway-left 5.4s ease-in-out infinite;
}

.leaf-right {
  width: 25%;
  height: 42%;
  opacity: 0.7;
  transform: translate(-10%, -25%) rotate(68deg) scale(0.86);
  animation: leaf-sway-right 5.2s ease-in-out infinite;
}

.leaf-stem {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 3px;
  height: 33%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 255, 189, 0.86), rgba(34, 143, 55, 0.64));
  transform: translateX(-50%) rotate(11deg);
}

.bottom-blackout {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 31vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 35%, #000000 68%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(42px, 9vh, 104px);
  justify-items: center;
  width: min(1120px, calc(100% - 24px));
  padding-top: clamp(26px, 5vh, 78px);
  text-align: center;
}

h1 {
  max-width: 1040px;
  margin: 0;
  color: #fffdf8;
  font-size: clamp(42px, 5.3vw, 102px);
  font-weight: 820;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.46),
    0 1px 0 rgba(0, 0, 0, 0.5);
  white-space: pre;
  transform: translateY(clamp(-84px, -7vh, -42px));
}

.hero-actions {
  position: fixed;
  left: 50%;
  bottom: clamp(108px, 11vh, 148px);
  z-index: 4;
  display: flex;
  justify-content: center;
  width: min(calc(100% - 28px), 430px);
  container-type: inline-size;
  transform: translateX(-50%);
}

.hero-button {
  flex: 0 0 48.6047cqw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.8605cqw;
  min-width: 0;
  height: 8.6047cqw;
  padding: 0 3.2558cqw;
  border: max(1px, 0.4651cqw) solid rgba(17, 17, 17, 0.95);
  border-radius: 2.093cqw;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--button) 48%, #d9d9d9 100%);
  color: var(--button-text);
  font-size: 3.2558cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow:
    0 2.7907cqw 5.5814cqw rgba(0, 0, 0, 0.36),
    0 0 0 max(1px, 0.2326cqw) rgba(255, 255, 255, 0.42) inset,
    0 0 5.5814cqw rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: filter 180ms ease;
}

.hero-button + .hero-button {
  margin-left: 2.7907cqw;
}

.hero-button:hover,
.hero-button:focus-visible {
  outline: none;
  filter: brightness(1.08);
}

.hero-button[aria-disabled="true"] {
  cursor: default;
}

.hero-button[hidden] {
  display: none;
}

.platform-mark {
  display: block;
  width: 4.4186cqw;
  height: 4.4186cqw;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  min-height: 26px;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.3;
  transition: color 180ms ease;
}

.beian-link:hover,
.beian-link:focus-visible {
  color: rgba(255, 255, 255, 0.82);
  outline: none;
}

.beian-link img {
  opacity: 0.72;
}

@media (max-width: 900px) {
  .page-shell {
    min-height: 560px;
    min-height: max(560px, 100vh);
    min-height: max(560px, 100svh);
    padding-top: 14px;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    overflow: visible;
  }

  .top-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .brand {
    justify-self: center;
    font-size: 17px;
    white-space: normal;
    text-align: center;
  }

  .product-switcher {
    gap: 10px;
    width: 100%;
  }

  .contact-link {
    justify-self: end;
    text-align: left;
  }

  .product-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    font-size: 16px;
  }

  .product-art {
    top: 48%;
    width: min(108vw, 640px);
  }

  .diode-board {
    inset-inline: -36%;
  }

  .led-grid {
    gap: 7px;
    padding: 22px;
  }

  .hero-content {
    gap: clamp(34px, 8vh, 72px);
    padding-top: 0;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(34px, 9vw, 66px);
    line-height: 1.16;
    transform: none;
  }

  .hero-actions {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100%, 430px);
    transform: none;
  }
}

@media (max-width: 520px) {
  body::after {
    mix-blend-mode: normal;
  }

  .page-shell {
    grid-template-rows: auto minmax(430px, 1fr) auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-inline: 10px;
  }

  .brand {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(27px, 9.3vw, 46px);
  }

  .bottom-blackout {
    height: 24vh;
  }

  .product-art {
    width: min(100vw, 520px);
  }

  .diode-board {
    filter: blur(1px) saturate(1.18) contrast(1.08);
  }

  .diode-board::after,
  .led,
  .leaf-stage,
  .leaf-left,
  .leaf-right,
  .snail-stage {
    animation: none;
  }

  .site-footer {
    align-items: center;
    min-height: 34px;
    padding: 6px 0 0;
    padding: 6px 0 max(0px, env(safe-area-inset-bottom));
  }

  .beian-link {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@keyframes diode-pulse {
  0%,
  100% {
    opacity: calc(0.38 + ((var(--row) + var(--col)) % 3) * 0.18);
    filter: brightness(0.92);
  }

  48% {
    opacity: calc(0.72 + ((var(--row) + var(--col)) % 3) * 0.1);
    filter: brightness(1.22);
  }
}

@keyframes diode-sweep {
  0%,
  100% {
    opacity: 0.3;
    transform: rotateX(69deg) rotateZ(-18deg) skewX(-13deg) translate(-22%, 8%);
  }
  50% {
    opacity: 0.92;
    transform: rotateX(69deg) rotateZ(-18deg) skewX(-13deg) translate(22%, 8%);
  }
}

@keyframes leaf-breathe {
  0%,
  100% {
    transform: translateY(0) scale(0.98);
  }

  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes leaf-sway-left {
  0%,
  100% {
    transform: translate(-96%, -29%) rotate(14deg) scale(0.9);
  }

  50% {
    transform: translate(-97%, -31%) rotate(22deg) scale(0.92);
  }
}

@keyframes leaf-sway-right {
  0%,
  100% {
    transform: translate(-10%, -25%) rotate(72deg) scale(0.86);
  }

  50% {
    transform: translate(-8%, -28%) rotate(62deg) scale(0.9);
  }
}

@keyframes snail-breathe {
  0%,
  100% {
    transform: translateY(0) scale(0.99);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
