/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  background: #1a1a2e;
  color: #ffffff;
  line-height: 1.8;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #e91e8c, #ff6ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar .logo span {
  font-size: 0.7rem;
  display: block;
  letter-spacing: 4px;
  background: none;
  -webkit-text-fill-color: rgba(255,255,255,0.5);
  font-weight: 300;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: #e91e8c; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e91e8c;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-contact-btn {
  background: transparent;
  border: 1px solid #e91e8c;
  color: #e91e8c !important;
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-contact-btn:hover {
  background: #e91e8c;
  color: #fff !important;
}
.nav-contact-btn::after { display: none !important; }

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* ===== STICKY SUB-NAV ===== */
.sub-nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  overflow-x: auto;
  padding: 0 40px;
}
.sub-nav a {
  flex-shrink: 0;
  padding: 14px 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}
.sub-nav a:hover,
.sub-nav a.active {
  color: #e91e8c;
  border-bottom-color: #e91e8c;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 40%, #2d1035 70%, #1a0a1e 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(233,30,140,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(255,110,199,0.1) 0%, transparent 50%);
}
/* Animated light streaks */
.hero-bg .streak {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(233,30,140,0.6), transparent);
  animation: streakMove 4s ease-in-out infinite;
}
.hero-bg .streak:nth-child(1) { top: 30%; left: -10%; width: 60%; animation-delay: 0s; }
.hero-bg .streak:nth-child(2) { top: 45%; left: 10%; width: 80%; animation-delay: 1s; opacity: 0.5; }
.hero-bg .streak:nth-child(3) { top: 55%; left: -5%; width: 50%; animation-delay: 2s; opacity: 0.3; }
.hero-bg .streak:nth-child(4) { top: 65%; left: 20%; width: 70%; animation-delay: 0.5s; opacity: 0.4; background: linear-gradient(90deg, transparent, rgba(255,80,80,0.4), transparent); }
.hero-bg .streak:nth-child(5) { top: 40%; left: 5%; width: 90%; animation-delay: 1.5s; opacity: 0.2; }
@keyframes streakMove {
  0%, 100% { transform: translateX(-20px) scaleX(0.8); opacity: 0.3; }
  50% { transform: translateX(20px) scaleX(1); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #e91e8c, #c4167a);
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(233,30,140,0.3);
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233,30,140,0.5);
}

/* ===== SECTIONS COMMON ===== */
section { padding: 100px 40px; }
.section-label {
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}
.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 700px;
  line-height: 1.9;
}

/* ===== INTRO SECTION ===== */
#intro {
  position: relative;
  background: #1a1a2e;
  padding: 120px 40px 120px 120px;
}
#intro .content-wrapper {
  max-width: 900px;
  margin-left: auto;
}

/* ===== SERVICES SECTION ===== */
#services {
  background: #16162a;
  position: relative;
}
.services-header {
  text-align: left;
  margin-bottom: 60px;
  display: flex;
  align-items: flex-start;
  gap: 60px;
}
.services-header .section-title { flex-shrink: 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 40px 30px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e91e8c, #ff6ec7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg {
  width: 40px;
  height: 40px;
  stroke: #e91e8c;
  stroke-width: 1.5;
  fill: none;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.service-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* ===== ADVANTAGES / WHY US ===== */
#advantages {
  background: #1a1a2e;
  position: relative;
}
.adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}
.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border-left: 3px solid #e91e8c;
  transition: all 0.3s;
}
.adv-item:hover {
  background: rgba(233,30,140,0.05);
}
.adv-number {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(233,30,140,0.3);
  flex-shrink: 0;
  line-height: 1;
}
.adv-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.adv-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ===== PLATFORMS SECTION ===== */
#platforms {
  background: linear-gradient(180deg, #16162a 0%, #1e0a28 100%);
  text-align: center;
}
.platform-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.platform-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 50px 40px;
  transition: all 0.4s;
  position: relative;
}
.platform-card:hover {
  border-color: rgba(233,30,140,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.platform-card .platform-logo {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.platform-card:first-child .platform-logo { color: #ff9900; }
.platform-card:last-child .platform-logo { color: #4285f4; }
.platform-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.platform-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.platform-card .learn-more {
  display: inline-block;
  margin-top: 24px;
  color: #e91e8c;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}
.platform-card .learn-more:hover {
  transform: translateX(4px);
}

/* ===== CTA / CHOOSE US ===== */
#cta {
  position: relative;
  background: linear-gradient(135deg, #2d1035 0%, #1a1a2e 50%, #2d1035 100%);
  overflow: hidden;
  text-align: center;
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(233,30,140,0.12) 0%, transparent 70%);
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.cta-label {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #e91e8c;
  margin-bottom: 16px;
}
#cta .section-title {
  font-size: 2.6rem;
  margin-bottom: 24px;
}
#cta .section-desc {
  margin: 0 auto 40px;
  text-align: center;
}
.cta-btn {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  letter-spacing: 2px;
}
.cta-btn:hover {
  background: #e91e8c;
  border-color: #e91e8c;
  box-shadow: 0 4px 20px rgba(233,30,140,0.4);
}
.cta-btn svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  transition: transform 0.3s;
}
.cta-btn:hover svg { transform: translateX(4px); }

/* ===== STATS ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e91e8c, #ff6ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

/* ===== FAQ ===== */
#faq {
  background: #1a1a2e;
}
.faq-wrapper {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}
.faq-wrapper .section-title { flex-shrink: 0; min-width: 260px; }
.faq-list { flex: 1; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: color 0.3s;
}
.faq-question:hover { color: #e91e8c; }
.faq-question .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}
.faq-answer p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

/* ===== CONTACT SECTION ===== */
#contact {
  background: #12122a;
  text-align: center;
}
.contact-title {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.08);
  margin-bottom: 40px;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e91e8c;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.submit-btn {
  display: inline-block;
  padding: 14px 48px;
  background: linear-gradient(135deg, #e91e8c, #c4167a);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233,30,140,0.4);
}

/* ===== FOOTER ===== */
.footer {
  background: #0e0e1e;
  padding: 60px 40px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e91e8c, #ff6ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  display: inline-block;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}
.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.8);
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.footer ul li a:hover { color: #e91e8c; }
.footer-contact-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.footer-contact-info strong {
  color: rgba(255,255,255,0.6);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.social-links a:hover {
  border-color: #e91e8c;
  background: rgba(233,30,140,0.1);
}
.social-links a svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.5);
}

/* ===== FLOATING ELEMENTS ===== */
.contact-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  background: #e91e8c;
  color: #fff;
  padding: 16px 10px;
  writing-mode: vertical-rl;
  font-size: 0.85rem;
  letter-spacing: 4px;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  transition: all 0.3s;
}
.contact-float:hover { padding-right: 16px; background: #c4167a; }

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(26,26,46,0.9);
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { border-color: #e91e8c; }
.scroll-top svg { width: 16px; height: 16px; stroke: #fff; fill: none; }
.scroll-top span { font-size: 0.6rem; color: rgba(255,255,255,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-header { flex-direction: column; gap: 20px; }
  .adv-grid { grid-template-columns: 1fr; }
  .faq-wrapper { flex-direction: column; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #12122a;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
  }
  .nav-links.open { right: 0; }
  .menu-toggle { display: flex; }
  .sub-nav { top: 70px; padding: 0 20px; }
  section { padding: 80px 20px; }
  #intro { padding: 80px 20px 80px 20px; }
  .section-label { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero { min-height: 450px; }
  .platform-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .stats-bar { flex-direction: column; gap: 30px; }
  .contact-float { display: none; }
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
