/* ── CSS Variables ── */
:root {
  --bg:        #080818;
  --bg2:       #0d0d24;
  --bg3:       #11112e;
  --purple:    #6c63ff;
  --cyan:      #00d4ff;
  --pink:      #ff6b9d;
  --text:      #e8e8f0;
  --text-muted:#8888aa;
  --border:    rgba(108,99,255,0.25);
  --glass:     rgba(13,13,36,0.7);
  --glow-p:    rgba(108,99,255,0.35);
  --glow-c:    rgba(0,212,255,0.35);
  --radius:    16px;
  --font-zh:   'Noto Sans TC', sans-serif;
  --font-en:   'Space Grotesk', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-zh);
  line-height: 1.7;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── Utility ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-desc {
  color: var(--text-muted);
  max-width: 580px;
  font-size: 1.05rem;
}

/* ── Grid Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ── Particle Canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(8,8,24,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img,
.nav-logo svg {
  height: 36px;
  width: auto;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(108,99,255,0.7));
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform: scaleX(0);
  transition: transform 0.25s;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 5px 14px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-zh);
  transition: all 0.2s;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8,8,24,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.mobile-menu .close-btn {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Hero Section ── */
#home {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(108,99,255,0.1);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 460px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--glow-p);
  font-family: var(--font-zh);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-p);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 50px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-zh);
}
.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(108,99,255,0.1);
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  max-width: 540px;
  border-radius: 24px;
  filter: drop-shadow(0 0 40px rgba(0,212,255,0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-glow {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Stats Bar ── */
.stats-bar {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,36,0.5);
  backdrop-filter: blur(10px);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ── Section Layout ── */
section { position: relative; z-index: 1; }
.section-pad { padding: 100px 0; }

/* ── Services Section ── */
#services { background: var(--bg2); }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-desc { margin: 0 auto; text-align: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--purple); box-shadow: 0 16px 48px var(--glow-p); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.service-icon.purple { background: rgba(108,99,255,0.15); box-shadow: 0 0 20px var(--glow-p); }
.service-icon.cyan   { background: rgba(0,212,255,0.12); box-shadow: 0 0 20px var(--glow-c); }
.service-icon.pink   { background: rgba(255,107,157,0.12); box-shadow: 0 0 20px rgba(255,107,157,0.2); }
.service-icon.green  { background: rgba(0,255,160,0.1); box-shadow: 0 0 20px rgba(0,255,160,0.15); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p  { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }
.service-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
}

/* ── About Section ── */
#about { background: var(--bg); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-card-main {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.about-card-main::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-p) 0%, transparent 70%);
  pointer-events: none;
}
.about-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0,212,255,0.12);
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.25);
  margin-bottom: 16px;
}
.about-card-main h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.about-card-main p { color: var(--text-muted); font-size: 0.9rem; }
.about-float-card {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.about-float-card .num {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-float-card .lbl { font-size: 0.75rem; color: var(--text-muted); }
.about-content .section-desc { max-width: 100%; margin-bottom: 32px; }
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 10px var(--glow-p);
  margin-top: 6px;
  flex-shrink: 0;
}
.feature-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; }
.feature-item p  { font-size: 0.88rem; color: var(--text-muted); }

/* ── Process Section ── */
#process { background: var(--bg2); }
.process-header { text-align: center; margin-bottom: 64px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  opacity: 0.4;
}
.process-step { text-align: center; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 0 24px var(--glow-p);
}
.process-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Contact Section ── */
#contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.contact-info .desc { color: var(--text-muted); margin-bottom: 40px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(108,99,255,0.12);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-item-text span  { font-size: 0.95rem; }
.contact-form-wrap {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(12px);
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.93rem;
  font-family: var(--font-zh);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--glow-p);
}
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--bg2); }
.form-submit { width: 100%; margin-top: 8px; font-size: 1rem; }

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img,
.footer-brand svg { height: 32px; width: auto; overflow: visible; filter: drop-shadow(0 0 6px rgba(108,99,255,0.7)); margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--purple); color: var(--purple); background: rgba(108,99,255,0.12); }

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-divider { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}

/* ── Language Switch ── */
[data-lang] { display: none; }
html[lang="zh-TW"] [data-lang="zh"] { display: block; }
html[lang="zh-TW"] span[data-lang="zh"] { display: inline; }
html[lang="zh-TW"] li[data-lang="zh"] { display: list-item; }
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="en"] span[data-lang="en"] { display: inline; }
html[lang="en"] li[data-lang="en"] { display: list-item; }
.bilingual { display: block !important; }

/* ── Glow Orbs ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-purple { background: rgba(108,99,255,0.12); }
.orb-cyan   { background: rgba(0,212,255,0.10); }
