/* ============================================
   SUPER BOBA · Global Styles
   ============================================ */

:root {
  --sb-red: #E31837;
  --sb-red-dark: #B7102A;
  --sb-yellow: #FFD93D;
  --sb-black: #141413;
  --sb-cream: #FAF9F5;
  --sb-mid: #B0AEA5;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* CJK font floor: prevent thin / blurry small Chinese text.
   The base font (Noto Sans SC) renders 400-weight Chinese strokes thin at small
   sizes, which reads as "fuzzy". Lift to 500 baseline + add light tracking. */
.font-cn {
  font-weight: 500;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1, "kern" 1;
}
.font-cn.font-black { font-weight: 900; }
.font-cn.font-extrabold { font-weight: 800; }
.font-cn.font-bold { font-weight: 700; }
.font-cn.font-semibold { font-weight: 600; }
.font-cn.font-medium { font-weight: 500; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--sb-cream);
  color: var(--sb-black);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--sb-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--sb-red);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sb-red-dark);
}

/* Selection */
::selection {
  background: var(--sb-yellow);
  color: var(--sb-black);
}

/* ============================================
   HERO · Mascot Floating
   ============================================ */
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.mascot-float {
  animation: mascotFloat 4s ease-in-out infinite;
}

@keyframes bubbleUp {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-10px); opacity: 0.95; }
}

.mascot-bubble-1 {
  animation: bubbleUp 3s ease-in-out infinite;
}
.mascot-bubble-2 {
  animation: bubbleUp 3.5s ease-in-out 0.3s infinite;
}

/* ============================================
   Marquee animation for top strip (if needed)
   ============================================ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   Hover lift effect
   ============================================ */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
}

/* ============================================
   Section dividers
   ============================================ */
.divider-wave {
  position: relative;
  overflow: hidden;
}
.divider-wave::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
  transform: translateY(-100%);
}

/* ============================================
   Glass effect for cards
   ============================================ */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Number ticker · count up
   ============================================ */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Custom dashed border for benefit cards
   ============================================ */
.dashed-border {
  background-image:
    linear-gradient(90deg, var(--sb-black) 50%, transparent 50%),
    linear-gradient(90deg, var(--sb-black) 50%, transparent 50%),
    linear-gradient(0deg, var(--sb-black) 50%, transparent 50%),
    linear-gradient(0deg, var(--sb-black) 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 8px 1px, 8px 1px, 1px 8px, 1px 8px;
  background-position: left top, right bottom, left bottom, right top;
}

/* ============================================
   Reveal on scroll (used together with AOS)
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Mobile Menu (open state)
   ============================================ */
.mobile-menu {
  display: none;
}
.mobile-menu.is-open {
  display: block;
}

/* ============================================
   Footer link hover
   ============================================ */
footer a:hover {
  color: var(--sb-yellow);
}

/* ============================================
   Body overflow when modal open
   ============================================ */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   Subtle pulse for CTA
   ============================================ */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(255, 217, 61, 0); }
}
.cta-pulse {
  animation: ctaPulse 2s ease-out infinite;
}

/* ============================================
   Print
   ============================================ */
@media print {
  .no-print { display: none !important; }
}

===========================================
   SUPER BOBA · Global Styles
   ============================================ */

:root {
  --sb-red: #E31837;
  --sb-red-dark: #B7102A;
  --sb-yellow: #FFD93D;
  --sb-black: #141413;
  --sb-cream: #FAF9F5;
  --sb-mid: #B0AEA5;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* CJK font floor: prevent thin / blurry small Chinese text.
   The base font (Noto Sans SC) renders 400-weight Chinese strokes thin at small
   sizes, which reads as "fuzzy". Lift to 500 baseline + add light tracking. */
.font-cn {
  font-weight: 500;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1, "kern" 1;
}
.font-cn.font-black { font-weight: 900; }
.font-cn.font-extrabold { font-weight: 800; }
.font-cn.font-bold { font-weight: 700; }
.font-cn.font-semibold { font-weight: 600; }
.font-cn.font-medium { font-weight: 500; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--sb-cream);
  color: var(--sb-black);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--sb-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--sb-red);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sb-red-dark);
}

/* Selection */
::selection {
  background: var(--sb-yellow);
  color: var(--sb-black);
}

/* ============================================
   HERO · Mascot Floating
   ============================================ */
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.mascot-float {
  animation: mascotFloat 4s ease-in-out infinite;
}

@keyframes bubbleUp {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-10px); opacity: 0.95; }
}

.mascot-bubble-1 {
  animation: bubbleUp 3s ease-in-out infinite;
}
.mascot-bubble-2 {
  animation: bubbleUp 3.5s ease-in-out 0.3s infinite;
}

/* ============================================
   Marquee animation for top strip (if needed)
   ============================================ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   Hover lift effect
   ============================================ */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
}

/* ============================================
   Section dividers
   ============================================ */
.divider-wave {
  position: relative;
  overflow: hidden;
}
.divider-wave::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
  transform: translateY(-100%);
}

/* ============================================
   Glass effect for cards
   ============================================ */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Number ticker · count up
   ============================================ */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Custom dashed border for benefit cards
   ============================================ */
.dashed-border {
  background-image:
    linear-gradient(90deg, var(--sb-black) 50%, transparent 50%),
    linear-gradient(90deg, var(--sb-black) 50%, transparent 50%),
    linear-gradient(0deg, var(--sb-black) 50%, transparent 50%),
    linear-gradient(0deg, var(--sb-black) 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 8px 1px, 8px 1px, 1px 8px, 1px 8px;
  background-position: left top, right bottom, left bottom, right top;
}

/* ============================================
   Reveal on scroll (used together with AOS)
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Mobile Menu (open state)
   ============================================ */
.mobile-menu {
  display: none;
}
.mobile-menu.is-open {
  display: block;
}

/* ============================================
   Footer link hover
   ============================================ */
footer a:hover {
  color: var(--sb-yellow);
}

/* ============================================
   Body overflow when modal open
   ============================================ */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   Subtle pulse for CTA
   ============================================ */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(255, 217, 61, 0); }
}
.cta-pulse {
  animation: ctaPulse 2s ease-out infinite;
}

/* ============================================
   Print
   ============================================ */
@media print {
  .no-print { display: none !important; }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ---- Store Showcase: 4-area tabs ---- */
.area-tab {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.area-tab:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.area-tab.active {
  color: #fff;
  background: #E31837;
  border-color: #E31837;
  box-shadow: 0 8px 24px rgba(227,24,55,0.35);
}
.area-panel { display: block; }
.area-panel.is-hidden { display: none; }

/* Hide scrollbar utility for horizontal scroll tracks */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Language dropdown: click-to-open state for mobile/touch */
.lang-dropdown.open .lang-menu,
.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown .lang-menu {
  pointer-events: none;
}
.lang-dropdown.open .lang-menu,
.lang-dropdown:hover .lang-menu {
  pointer-events: auto;
}

/* ===== Fixed-width nav slots — identical positions in Chinese & English =====
   Every top-level menu item occupies the same fixed slot and is centred, so
   switching ZH <-> EN keeps each item in exactly the same position.        */
.nav-menu > a,
.nav-menu > .group {
  flex: 0 0 auto;
  width: 5.75rem;            /* 92px slot, same for every item */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
.nav-menu > .group > a {
  width: 100%;
  justify-content: center;
}
/* Tool-group links (Email / Chat): fixed slots so they don't shift either */
.nav-tools > a {
  flex: 0 0 auto;
  width: 6rem;               /* 96px slot */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
