:root {
  --bg: #030816;
  --blue: #00a3ff;
  --blue-soft: rgba(0, 163, 255, 0.28);
  --gold: #ffd56a;
  --gold-deep: #e59a20;
  --red: #f3132f;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --phone-width: 430px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #020612; /* viewport fallback when video not loaded */
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--white);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent; /* let the fixed video show through */
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

.video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.1) contrast(1.08);
  transform: scale(1.015);
  z-index: 1;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to right, rgba(3, 8, 22, 0.75) 0%, rgba(3, 8, 22, 0.3) 55%, transparent 100%),
    linear-gradient(to bottom, rgba(3, 8, 22, 0.12) 0%, rgba(3, 8, 22, 0.38) 42%, rgba(3, 8, 22, 0.68) 78%, rgba(3, 8, 22, 0.85) 100%),
    radial-gradient(circle at 50% 5%, rgba(0, 100, 255, 0.16), transparent 44%);
  z-index: 2;
}

.speed-light {
  position: fixed;
  left: 50%;
  width: min(680px, 140vw);
  height: 110px;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.72;
  z-index: 3;
}

.speed-light-one {
  top: 138px;
  transform: translateX(-50%) rotate(-14deg);
  background: linear-gradient(90deg, transparent, rgba(0, 164, 255, 0.88), rgba(255, 255, 255, 0.32), transparent);
  clip-path: polygon(0 46%, 100% 0, 100% 18%, 0 64%);
}

.speed-light-two {
  top: 306px;
  transform: translateX(-50%) rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(244, 22, 55, 0.82), rgba(255, 214, 92, 0.35), transparent);
  clip-path: polygon(0 24%, 100% 56%, 100% 75%, 0 42%);
}

.confetti-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(135deg, transparent 0 40%, rgba(255, 213, 106, 0.9) 40% 62%, transparent 62%),
    linear-gradient(45deg, transparent 0 44%, rgba(0, 163, 255, 0.85) 44% 63%, transparent 63%),
    linear-gradient(120deg, transparent 0 44%, rgba(243, 19, 47, 0.75) 44% 62%, transparent 62%);
  background-size: 90px 160px, 120px 180px, 150px 210px;
  background-position: 12% 9%, 84% 18%, 48% 4%;
  mask-image: linear-gradient(to bottom, black, black 36%, transparent 68%);
  z-index: 3;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  width: min(100%, var(--phone-width));
  height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(3, 8, 22, 0.54);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(3, 8, 22, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.brand-main {
  font-family: "Roboto Condensed", "Noto Sans TC", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-main .go  { color: #ffffff; text-shadow: 0 0 14px rgba(255,255,255,0.5); }
.brand-main .play { color: var(--red); text-shadow: 0 0 14px rgba(243,19,47,0.7); }
.brand-main .lv  { color: #ffffff; text-shadow: 0 0 14px rgba(255,255,255,0.5); }

.hero-title strong .go,
.hero-title strong .play { color: #ffffff; }
.hero-title strong .lv  { color: var(--red); text-shadow: 0 0 16px rgba(243, 19, 47, 0.9); }

.sticky-copy strong .go,
.sticky-copy strong .play { color: #ffffff; }
.sticky-copy strong .lv  { color: var(--gold); text-shadow: 0 0 12px rgba(255, 213, 106, 0.7); }

.live-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff1d3c, #a50016);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(243, 19, 47, 0.7);
}

.event-menu {
  min-width: 104px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.menu-icon {
  display: grid;
  gap: 3px;
  width: 14px;
}

.menu-icon i {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.phone-stage {
  width: min(100%, var(--phone-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 16px calc(96px + var(--safe-bottom));
  position: relative;
  z-index: 5;
  isolation: isolate;
}

.hero-section {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 32px;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 70px;
  width: 245px;
  height: 245px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 213, 106, 0.23), transparent 64%);
  filter: blur(8px);
  z-index: -1;
}

.kicker,
.section-head p {
  margin: 0 0 8px;
  color: #9addff;
  font-family: "Roboto Condensed", "Noto Sans TC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(0, 163, 255, 0.7);
}

.hero-title {
  margin: 0;
  line-height: 1.0;
}

.hero-title > span {
  display: block;
}

.year {
  color: #fff;
  font-family: "Roboto Condensed", "Noto Sans TC", sans-serif;
  font-size: clamp(86px, 25vw, 112px);
  font-weight: 700;
  text-shadow: 0 6px 0 rgba(0, 34, 84, 0.82), 0 0 28px rgba(0, 163, 255, 0.78);
}

.gold-line {
  width: fit-content;
  margin-top: 0;
  font-size: clamp(52px, 15vw, 68px);
  font-weight: 900;
  background: linear-gradient(180deg, #fff5b6 0%, var(--gold) 38%, var(--gold-deep) 74%, #9c5c09 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(75, 32, 0, 0.66)) drop-shadow(0 0 18px rgba(255, 213, 106, 0.65));
  line-height: 1.0;
}

.subtitle-line {
  margin-top: 2px;
  color: #fff;
  font-size: clamp(26px, 7.8vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 80, 200, 0.3);
  letter-spacing: -0.01em;
}

.brand-line {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(22px, 6.5vw, 30px);
  font-weight: 900;
  text-shadow: 0 0 16px rgba(0, 163, 255, 0.6), 0 3px 10px rgba(0, 0, 0, 0.8);
}

.brand-line strong {
  font-family: "Roboto Condensed", "Noto Sans TC", sans-serif;
  font-size: 1.12em;
  font-style: italic;
}

.hero-copy {
  max-width: 360px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.76);
}

.hero-cta,
.sticky-button {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.18s ease;
}

.hero-cta {
  color: #ffffff;
  background: linear-gradient(180deg, #32e96f 0%, #12b94f 100%);
  box-shadow: 0 10px 30px rgba(22, 220, 91, 0.4), 0 0 20px rgba(50, 233, 111, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.hero-cta {
  width: min(100%, 350px);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  font-size: 17px;
  animation: pulse-green 2s ease-in-out infinite;
}

.hero-cta b,
.sticky-button span {
  font-size: 22px;
  line-height: 1;
}

.hero-cta:hover,
.sticky-button:hover {
  filter: brightness(1.08);
}

.hero-cta:active,
.sticky-button:active,
.event-menu:active {
  transform: scale(0.96);
}

.stats-panel {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  border: 1px solid rgba(0, 195, 255, 0.75);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(6, 22, 56, 0.92), rgba(5, 12, 30, 0.84));
  box-shadow:
    0 0 28px rgba(0, 163, 255, 0.42),
    0 0 56px rgba(0, 163, 255, 0.14),
    inset 0 1px 0 rgba(100, 200, 255, 0.22),
    inset 0 0 24px rgba(0, 163, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.stat-item {
  min-width: 0;
  text-align: center;
}

.stat-item strong {
  display: block;
  color: var(--gold);
  font-family: "Roboto Condensed", "Noto Sans TC", sans-serif;
  font-size: clamp(34px, 10vw, 44px);
  line-height: 0.92;
  text-shadow: 0 0 18px rgba(255, 213, 106, 0.62);
}

.stat-item span {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, transparent, rgba(255, 213, 106, 0.9), transparent);
}

.feature-section,
.more-section {
  margin-top: 34px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(0, 163, 255, 0.5);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 194px;
  padding: 18px 14px;
  border: 1px solid rgba(70, 190, 255, 0.35);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(8, 28, 68, 0.88), rgba(4, 10, 28, 0.8));
  box-shadow: 0 0 22px rgba(0, 163, 255, 0.2), inset 0 1px 0 rgba(100, 200, 255, 0.14), inset 0 -28px 40px rgba(0, 100, 200, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.line-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 10px rgba(0, 163, 255, 0.65));
}

.screen-icon {
  border-radius: 8px;
}

.screen-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px;
  height: 2px;
  background: #fff;
}

.device-icon {
  width: 30px;
  border-radius: 7px;
}

.device-icon::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 8px;
  width: 18px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
}

.live-icon {
  border-radius: 999px;
}

.live-icon::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.chat-icon {
  border-radius: 10px;
}

.chat-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -8px;
  width: 12px;
  height: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-35deg);
  background: transparent;
}

.feature-card h3,
.mini-card h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(255, 213, 106, 0.38);
}

.feature-card p,
.mini-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.58;
}

.mini-card-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(7, 20, 50, 0.9), rgba(11, 33, 78, 0.72));
  box-shadow: inset 4px 0 0 rgba(255, 213, 106, 0.85), 0 0 18px rgba(0, 163, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mini-index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #041024;
  background: linear-gradient(180deg, #fff0a5, #ffbf2e);
  font-family: "Roboto Condensed", "Noto Sans TC", sans-serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(255, 213, 106, 0.44);
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--phone-width));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(28, 2, 6, 0.98) 0%, rgba(140, 6, 22, 0.98) 100%);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  border-top: 2px solid rgba(255, 200, 55, 0.72);
  z-index: 30;
}

.sticky-copy {
  min-width: 0;
}

.sticky-copy > strong,
.sticky-copy > span {
  display: block;
}

.sticky-copy > strong {
  font-family: "Roboto Condensed", "Noto Sans TC", sans-serif;
  font-size: 21px;
  line-height: 1;
}

.sticky-copy > span {
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.28;
}

.sticky-button {
  min-width: 128px;
  height: 50px;
  padding: 0 15px;
  font-size: 16px;
  color: #1a0800;
  background: linear-gradient(180deg, #ffe55c 0%, #f5a800 100%);
  box-shadow: 0 8px 20px rgba(245, 168, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.5);
  animation: pulse-gold 2s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 10px 30px rgba(22, 220, 91, 0.4), 0 0 20px rgba(50, 233, 111, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
  50%       { box-shadow: 0 12px 36px rgba(22, 220, 91, 0.58), 0 0 32px rgba(50, 233, 111, 0.52), inset 0 2px 0 rgba(255, 255, 255, 0.42); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 8px 20px rgba(245, 168, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
  50%       { box-shadow: 0 10px 28px rgba(245, 168, 0, 0.65), 0 0 20px rgba(255, 220, 50, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.58); }
}

@media (min-width: 431px) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    width: var(--phone-width);
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(to right, rgba(3, 8, 22, 0.3), transparent 12%, transparent 88%, rgba(3, 8, 22, 0.3));
    pointer-events: none;
    z-index: 4;
  }
}

@media (max-width: 374px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand-main {
    font-size: 20px;
  }

  .event-menu {
    min-width: 94px;
    font-size: 12px;
  }

  .phone-stage {
    padding-inline: 12px;
  }

  .feature-grid {
    gap: 10px;
  }

  .feature-card {
    min-height: 204px;
    padding: 14px 11px;
  }

  .sticky-button {
    min-width: 116px;
    padding-inline: 12px;
    color: #1a0800;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
