:root {
  --bg-1: #020811;
  --bg-2: #061a2f;
  --bg-3: #0b2f3f;
  --neon-cyan: #4cf7ff;
  --neon-orange: #ff9f43;
  --neon-green: #75ff8f;
  --text-1: #eefbff;
  --text-2: #c8dbe5;
  --glass: rgba(10, 24, 38, 0.58);
  --stroke: rgba(133, 216, 255, 0.35);
  --section-gap: 14vh;
  --topbar-h: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--text-1);
  font-family: "Lexend", "Noto Sans SC", "Noto Sans TC", sans-serif;
  background: radial-gradient(circle at 70% 10%, rgba(76, 247, 255, 0.16), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(255, 159, 67, 0.13), transparent 38%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 4px 4px;
  opacity: 0.13;
  mix-blend-mode: soft-light;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(6, 18, 30, 0.9), rgba(6, 18, 30, 0.45));
  border-bottom: 1px solid rgba(133, 216, 255, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 1.25rem;
  color: #04111f;
  background: linear-gradient(130deg, var(--neon-cyan), var(--neon-green));
  box-shadow: 0 0 24px rgba(76, 247, 255, 0.45);
}

.brand-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
}

.lang-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-btn {
  border: 1px solid rgba(173, 216, 230, 0.45);
  color: var(--text-1);
  background: rgba(6, 18, 30, 0.55);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.24s ease;
}

.lang-btn:hover,
.lang-btn.active {
  border-color: var(--neon-cyan);
  color: #001826;
  background: linear-gradient(130deg, var(--neon-cyan), #d7ffff);
  box-shadow: 0 0 16px rgba(76, 247, 255, 0.42);
}

.scroll-indicator {
  position: fixed;
  top: 71px;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 61;
  background: rgba(122, 174, 196, 0.2);
}

#scrollProgress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-orange));
  box-shadow: 0 0 14px rgba(76, 247, 255, 0.7);
}

main {
  padding-top: calc(var(--topbar-h) + 8px);
}

.panel {
  position: relative;
  min-height: 100svh;
  padding: 16vh 10vw 12vh;
  border-bottom: 1px solid rgba(120, 200, 235, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  opacity: 0.45;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.panel.visible,
.panel.active-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero {
  text-align: center;
  align-items: center;
  overflow: hidden;
}

.halo {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(76, 247, 255, 0.22), transparent 70%);
  filter: blur(12px);
  animation: pulse 5.2s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% { transform: translate(-50%, -50%) scale(0.94); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

.kicker {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.glitch {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 14vw, 9rem);
  letter-spacing: 0.07em;
  line-height: 0.9;
  position: relative;
  text-shadow: 0 0 22px rgba(76, 247, 255, 0.55), 0 0 44px rgba(255, 159, 67, 0.35);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.glitch::before {
  color: rgba(76, 247, 255, 0.75);
  transform: translate(-2px, -1px);
  animation: jitter1 2.8s infinite linear alternate-reverse;
}

.glitch::after {
  color: rgba(255, 159, 67, 0.75);
  transform: translate(2px, 1px);
  animation: jitter2 2.2s infinite linear alternate-reverse;
}

@keyframes jitter1 {
  0% { clip-path: inset(10% 0 78% 0); }
  25% { clip-path: inset(62% 0 8% 0); }
  50% { clip-path: inset(34% 0 46% 0); }
  75% { clip-path: inset(80% 0 7% 0); }
  100% { clip-path: inset(5% 0 80% 0); }
}

@keyframes jitter2 {
  0% { clip-path: inset(74% 0 4% 0); }
  25% { clip-path: inset(28% 0 52% 0); }
  50% { clip-path: inset(66% 0 10% 0); }
  75% { clip-path: inset(12% 0 68% 0); }
  100% { clip-path: inset(42% 0 38% 0); }
}

.lead {
  max-width: 900px;
  line-height: 1.7;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
}

.primary {
  color: #072231;
  background: linear-gradient(120deg, var(--neon-cyan), #9dffe5);
  box-shadow: 0 10px 25px rgba(76, 247, 255, 0.3);
}

.ghost {
  color: var(--text-1);
  background: rgba(5, 20, 35, 0.4);
  border: 1px solid rgba(127, 214, 255, 0.5);
}

.scroll-hint {
  margin-top: 26px;
  color: rgba(219, 239, 248, 0.8);
  letter-spacing: 0.08em;
  animation: floatY 2.1s infinite ease-in-out;
}

@keyframes floatY {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
}

p {
  max-width: 980px;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-2);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(117, 255, 143, 0.7);
}

.card h3,
.feature-item h3,
.role h3 {
  margin: 0 0 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(5, 20, 33, 0.8), rgba(8, 29, 45, 0.7));
  border: 1px solid rgba(101, 204, 255, 0.25);
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon-orange);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.line {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--neon-cyan), var(--neon-orange));
  opacity: 0.55;
}

.role {
  margin-left: 42px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(116, 206, 248, 0.3);
  background: rgba(5, 20, 33, 0.5);
  transform: translateX(12px);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.panel.visible .role {
  transform: translateX(0);
  opacity: 1;
}

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.shot {
  min-height: clamp(180px, 28vw, 230px);
  border-radius: 18px;
  border: 1px solid rgba(118, 212, 255, 0.35);
  display: grid;
  place-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.3rem;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}

.shot::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.2), transparent 65%);
  transform: translateX(-70%) rotate(14deg);
}

.panel.visible .shot::after {
  animation: sweep 1.35s ease;
}

@keyframes sweep {
  from { transform: translateX(-100%) rotate(14deg); }
  to { transform: translateX(130%) rotate(14deg); }
}

.shot-1 {
  background: linear-gradient(130deg, rgba(25, 107, 158, 0.72), rgba(12, 33, 66, 0.92));
}

.shot-2 {
  background: linear-gradient(130deg, rgba(33, 140, 125, 0.72), rgba(10, 48, 78, 0.92));
}

.shot-3 {
  background: linear-gradient(130deg, rgba(174, 85, 36, 0.72), rgba(74, 21, 16, 0.92));
}

.stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  border-radius: 14px;
  padding: 18px;
  background: rgba(6, 23, 37, 0.62);
  border: 1px solid rgba(123, 205, 243, 0.25);
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--neon-cyan);
}

.final {
  text-align: center;
  align-items: center;
}

.huge {
  margin-top: 8px;
  font-size: 1.05rem;
  padding: 14px 30px;
}

.reveal {
  margin-top: var(--section-gap);
}

.site-footer {
  padding: 20px 24px 28px;
  text-align: center;
  color: rgba(216, 235, 244, 0.9);
  background: linear-gradient(180deg, rgba(4, 15, 28, 0.3), rgba(4, 15, 28, 0.75));
  border-top: 1px solid rgba(122, 201, 239, 0.2);
}

.site-footer p {
  margin: 6px 0;
  max-width: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.site-footer a {
  margin-left: 8px;
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 247, 255, 0.5);
}

.site-footer a:hover {
  color: #b4ffff;
  border-bottom-color: #b4ffff;
}

@media (max-width: 980px) {
  .cards,
  .showcase-strip,
  .stats {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16vh 7vw 12vh;
  }

  .brand-name {
    display: none;
  }

  .topbar {
    padding: 12px 16px;
  }

  .scroll-indicator {
    top: 67px;
  }

  .lang-btn {
    padding: 7px 12px;
    font-size: 0.86rem;
  }
}

@media (max-width: 768px) {
  :root {
    --topbar-h: 66px;
    --section-gap: 10vh;
  }

  .panel {
    min-height: auto;
    padding: 13vh 5vw 10vh;
  }

  .hero {
    text-align: left;
    align-items: flex-start;
  }

  .halo {
    width: 390px;
    height: 390px;
    left: 58%;
    top: 34%;
  }

  .kicker {
    font-size: 0.82rem;
  }

  .glitch {
    font-size: clamp(2.5rem, 18vw, 4.2rem);
    letter-spacing: 0.05em;
  }

  .lead {
    line-height: 1.6;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .line {
    left: 12px;
  }

  .role {
    margin-left: 28px;
    padding: 14px 16px;
  }

  .site-footer {
    padding: 18px 14px 24px;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .scroll-indicator {
    top: 96px;
  }

  main {
    padding-top: 104px;
  }

  button,
  .huge {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .stat strong {
    font-size: 1.7rem;
  }
}
