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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0c0d0e;
  color: #f7f7f7;
  -webkit-font-smoothing: antialiased;
}

.byteplus-seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

#byteplus-root {
  min-height: 100vh;
}

#byteplus-root img {
  max-width: 100%;
  height: auto;
}

#byteplus-root video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brand dropdown */
#byteplus-root .brandMenu_24a15 {
  display: none;
}

#byteplus-root .brandMenu_24a15.byteplus-brand-open {
  display: block;
}

/* Mobile menu */
#byteplus-root .mobileMenu_24a15 {
  display: none;
}

#byteplus-root .mobileMenu_24a15.byteplus-mobile-open {
  display: block;
}

#byteplus-root .mobileSubmenu_24a15 {
  display: none;
}

#byteplus-root .mobileSubmenu_24a15.byteplus-submenu-open {
  display: block;
}

#byteplus-root .mx-auto {
  margin-inline: auto !important;
}

/* Hero carousel fallback (no Three.js on static page) */
#byteplus-root #hero-carousel .hero-cards-webgl {
  display: none !important;
}

#byteplus-root #hero-carousel .cardsStage-HuBc {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 52vw, 526px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  overflow: visible;
}

#byteplus-root #hero-carousel .byteplus-hero-card {
  position: absolute;
  width: min(280px, 42vw) !important;
  height: min(380px, 58vw) !important;
  opacity: 1 !important;
  pointer-events: none;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.65s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform, opacity;
}

#byteplus-root #hero-carousel .byteplus-hero-card[data-pos="-2"],
#byteplus-root #hero-carousel .byteplus-hero-card[data-pos="2"] {
  transform: translateX(calc(var(--byteplus-card-offset, 1) * 220px)) rotateY(calc(var(--byteplus-card-offset, 1) * -18deg)) scale(0.78);
  opacity: 0.35;
  z-index: 1;
}

#byteplus-root #hero-carousel .byteplus-hero-card[data-pos="-1"] {
  --byteplus-card-offset: -1;
  transform: translateX(-140px) rotateY(14deg) scale(0.88);
  opacity: 0.72;
  z-index: 2;
}

#byteplus-root #hero-carousel .byteplus-hero-card[data-pos="0"] {
  transform: translateX(0) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 4;
}

#byteplus-root #hero-carousel .byteplus-hero-card[data-pos="1"] {
  --byteplus-card-offset: 1;
  transform: translateX(140px) rotateY(-14deg) scale(0.88);
  opacity: 0.72;
  z-index: 2;
}

#byteplus-root #hero-carousel .byteplus-hero-card[data-pos="-2"] {
  --byteplus-card-offset: -1;
  transform: translateX(-260px) rotateY(22deg) scale(0.72);
  opacity: 0.2;
}

#byteplus-root #hero-carousel .byteplus-hero-card[data-pos="2"] {
  --byteplus-card-offset: 1;
  transform: translateX(260px) rotateY(-22deg) scale(0.72);
  opacity: 0.2;
}

/* Busy modal */
.byteplus-busy-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.byteplus-busy-modal[hidden] {
  display: none !important;
}

body.byteplus-busy-modal-open {
  overflow: hidden;
}

.byteplus-busy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.byteplus-busy-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.byteplus-busy-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.byteplus-busy-modal__header {
  padding: 28px 24px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 154, 77, 0.22) 0%, rgba(20, 20, 22, 0) 100%);
}

.byteplus-busy-modal__logo {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ff9a4d;
}

.byteplus-busy-modal__body {
  padding: 8px 24px 28px;
  text-align: center;
}

.byteplus-busy-modal__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.byteplus-busy-modal__desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.byteplus-busy-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.byteplus-busy-modal__btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
}

.byteplus-busy-modal__btn--primary {
  background: linear-gradient(135deg, #ff9a4d 0%, #ff6b00 100%);
  color: #fff;
}

.byteplus-busy-modal__btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.byteplus-busy-modal__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
