/* ===== Fonts ===== */
/* Orbitron for styling/headings, Inter for body text */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-light: #f8f8fc;
  --bg-white: #ffffff;
  --brand-navy: #00052A;
  --bg-dark: #00052A;
  --bg-dark-light: #07143a;
  --bg-dark-deep: #00031f;
  --bg-card: #ffffff;
  --bg-card-dark: rgba(255,255,255,0.1);
  --bg-card-dark-hover: rgba(255,255,255,0.15);
  --text-dark: #0a1527;
  --text-muted: #6b7280;
  --text-white: #ffffff;
  --text-white-muted: rgba(255,255,255,0.75);
  --text-white-dim: rgba(255,255,255,0.5);
  --accent: #00d4fe;
  --accent-light: #49e2ff;
  --accent-dark: #00052A;
  --accent-glow: rgba(0, 212, 254, 0.08);
  --accent-glow-white: rgba(0, 212, 254, 0.1);
  --gradient: linear-gradient(135deg, #00052A, #07143a, #00d4fe);
  --gradient-accent: linear-gradient(135deg, #00d4fe, #49e2ff);
  --gradient-dark: linear-gradient(160deg, #00031f 0%, #00052A 48%, #07143a 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Microsoft JhengHei', 'PingFang TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .section-title, .case-number, .stat-number, .kpi-value {
  letter-spacing: 0;
}

.hero h1, .section-title, .nav-logo {
  font-family: 'Orbitron', 'Inter', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Floating Particles Background ===== */
.particles {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.particle {
  position: absolute; border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  animation: particleFloat 20s infinite ease-in-out;
}
.particle:nth-child(1) { width: 300px; height: 300px; top: 10%; left: -5%; animation-duration: 25s; }
.particle:nth-child(2) { width: 200px; height: 200px; top: 50%; right: -3%; animation-duration: 20s; animation-delay: -5s; }
.particle:nth-child(3) { width: 150px; height: 150px; bottom: 10%; left: 30%; animation-duration: 22s; animation-delay: -10s; }
.particle:nth-child(4) { width: 80px; height: 80px; top: 30%; right: 20%; animation-duration: 18s; animation-delay: -3s; opacity: 0.05; }
.particle:nth-child(5) { width: 120px; height: 120px; bottom: 30%; right: 10%; animation-duration: 24s; animation-delay: -8s; opacity: 0.06; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.02); }
}

/* ===== Mesh Gradient Layer ===== */
.mesh-gradient {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 254, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 254, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(10, 21, 39, 0.03) 0%, transparent 50%);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 0;
  background: var(--brand-navy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(8, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled {
  padding: 8px 0;
  background: var(--brand-navy);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center;
  height: 72px;
  overflow: hidden;
  background: var(--brand-navy);
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0;
  transition: var(--transition);
}
.nav-logo img {
  display: block;
  width: auto;
  height: 86px;
  object-fit: contain;
  background: var(--brand-navy);
  transition: transform 0.3s ease;
}
.nav-logo:hover img {
  transform: scale(1.03);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s ease; border-radius: 2px;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-size: 0.8rem; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px;
  cursor: pointer; transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.btn-cta {
  background: var(--accent); color: #0a1527; border: none;
  padding: 10px 24px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.btn-cta::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 254, 0.2), transparent);
  transition: left 0.5s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 212, 254, 0.3); }
.btn-cta-outline {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  padding: 10px 24px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.btn-cta-outline:hover {
  background: var(--accent); color: #0a1527;
  transform: translateY(-2px);
}
.btn-cta-white {
  background: #0a1527; color: var(--accent); border: none;
  padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  transition: all 0.3s ease;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 212, 254, 0.3); }
.btn-cta-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  transition: all 0.3s ease;
}
.btn-cta-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* Mobile menu */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: rgba(255,255,255,0.8); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; top: 96px; left: 0; right: 0; bottom: 0;
  background: var(--brand-navy); padding: 32px 24px; z-index: 999;
  flex-direction: column; gap: 24px;
  animation: slideDown 0.3s ease;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 1.2rem; color: rgba(255,255,255,0.7); }
.mobile-menu .btn-cta {
  background: var(--accent); color: #0a1527; text-align: center;
  margin-top: 12px; font-size: 1rem;
}
.mobile-menu a:hover { color: var(--accent); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  .navbar { padding: 10px 0; }
  .nav-logo { height: 64px; }
  .nav-logo img { height: 77px; }
  .mobile-menu { top: 84px; }
  .sol-tabs { flex-wrap: wrap; }
  .sol-tab { flex: 1 1 auto; min-width: auto; font-size: 0.8rem; padding: 10px 12px; }
}

/* Global mobile adjustments */
@media (max-width: 640px) {
  .section-title { font-size: 1.6rem !important; }
  .hero h1 { font-size: clamp(2.35rem, 10.8vw, 2.85rem) !important; }
  .hero.compact { padding: 108px 0 32px; }
  .container { padding: 0 16px; }
  .btn-cta { padding: 10px 18px; font-size: 0.85rem; }
  .btn-cta-outline { padding: 10px 18px; font-size: 0.85rem; }
  .hero-buttons { justify-content: center; }
}

/* ===== Hero (White) ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-white);
}
.hero .mesh-gradient {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0, 212, 254, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(8, 255, 255, 0.04) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 1200px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(8, 255, 255, 0.08); border: 1px solid rgba(8, 255, 255, 0.15);
  padding: 8px 18px; border-radius: 30px; font-size: 0.85rem; color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  animation: fadeInBadge 0.8s ease forwards;
}
@keyframes fadeInBadge {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge::before {
  content: '';
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(0, 212, 254, 0.5);
}
.hero h1 {
  font-size: clamp(4rem, 7vw, 5.9rem); font-weight: 800; letter-spacing: 0;
  line-height: 1.1; margin-bottom: 8px; color: var(--text-white);
}
.hero h1 .gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline-cn {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: rgba(255,255,255,0.6);
  margin-bottom: 24px; font-weight: 400;
}
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.6); max-width: 560px;
  margin-bottom: 40px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero decorative line */
.hero-line {
  position: absolute; z-index: 0;
  border-radius: 50%;
}
.hero-line-1 {
  width: 600px; height: 600px; top: -200px; right: -150px;
  border: 1px solid rgba(0, 212, 254, 0.08);
  animation: spinSlow 40s linear infinite;
}
.hero-line-2 {
  width: 400px; height: 400px; top: -100px; right: -50px;
  border: 1px solid rgba(0, 212, 254, 0.05);
  animation: spinSlow 30s linear infinite reverse;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Section Common ===== */
section { padding: 100px 0; position: relative; }

/* Light section */
.section-light { background: var(--bg-light); }
.section-light .section-label { color: var(--accent-dark); }
.section-light .section-title { color: var(--text-dark); }
.section-light .section-title .muted { color: var(--text-muted); }
.section-light .section-desc { color: var(--text-muted); }

/* White section */
.section-white { background: var(--bg-white); }
.section-white .section-label { color: var(--accent-dark); }
.section-white .section-title { color: var(--text-dark); }
.section-white .section-title .muted { color: var(--text-muted); }
.section-white .section-desc { color: var(--text-muted); }

/* Dark section */
.section-dark {
  background: var(--gradient-dark);
  color: var(--text-white);
}
.section-dark .section-label { color: var(--text-white-dim); }
.section-dark .section-title { color: var(--text-white); }
.section-dark .section-title .muted { color: var(--text-white-muted); }
.section-dark .section-desc { color: var(--text-white-muted); }

/* Purple section (legacy compat) */
.section-purple {
  background: var(--gradient-dark);
  color: var(--text-white);
}
.section-purple .section-label { color: var(--text-white-dim); }
.section-purple .section-title { color: var(--text-white); }
.section-purple .section-title .muted { color: var(--text-white-muted); }
.section-purple .section-desc { color: var(--text-white-muted); }

.section-label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 12px; font-weight: 600;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: 0;
  margin-bottom: 16px;
}
html[lang="en"] .section-title {
  font-family: 'Inter', 'Microsoft JhengHei', 'PingFang TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
}
.section-desc { font-size: 1.05rem; max-width: 560px; margin-bottom: 60px; }

/* ===== Services (White) ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-white); border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius); padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent); transform: scaleX(0); transition: transform 0.4s ease;
  transform-origin: left;
}
.service-card::after {
  content: ''; position: absolute; bottom: -50px; right: -50px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(0, 212, 254, 0.04);
  transition: all 0.5s ease;
}
.service-card:hover {
  border-color: rgba(0,212,254,0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 212, 254, 0.1), 0 4px 20px rgba(0, 0, 0, 0.04);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { transform: scale(2); opacity: 0.5; }
.service-card {
  background: var(--bg-white); border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius); padding: 0; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent); transform: scaleX(0); transition: transform 0.4s ease;
  transform-origin: left; z-index: 2;
}
.service-card::after {
  content: ''; position: absolute; bottom: -50px; right: -50px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(0, 212, 254, 0.04);
  transition: all 0.5s ease;
}
.service-card:hover {
  border-color: rgba(0,212,254,0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 212, 254, 0.1), 0 4px 20px rgba(0, 0, 0, 0.04);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { transform: scale(2); opacity: 0.5; }
.service-card-img {
  width: 100%; height: 180px; overflow: hidden; position: relative;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.08);
}
.service-card-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(transparent, rgba(255,255,255,1));
}
.service-card-body {
  padding: 24px 28px 32px;
}
.service-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; color: var(--text-dark); }
.service-card h3 small { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-top: 12px; line-height: 1.7; position: relative; z-index: 1; }

/* ===== Stats (Dark) ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; text-align: center;
}
.stat-item {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.stat-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 212, 254, 0.2);
  transform: translateY(-4px);
}
.stat-number {
  font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--text-white);
}
.stat-number .accent { color: var(--accent); }
.stat-label { color: var(--text-white-muted); font-size: 0.95rem; margin-top: 4px; }

/* ===== Process (Light) ===== */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.process-step {
  background: var(--bg-white); border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius); padding: 36px 28px; position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.process-step::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; border-radius: 0 0 0 80px;
  background: rgba(0, 212, 254, 0.03);
  transition: all 0.4s ease;
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
  border-color: rgba(0,212,254,0.15);
}
.process-step:hover::after { width: 120px; height: 120px; background: rgba(0, 212, 254, 0.06); }
.process-number {
  font-size: 3.5rem; font-weight: 800; background: linear-gradient(135deg, #0a1527, #123767);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 16px; opacity: 0.7;
}
.process-step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; color: var(--text-dark); }
.process-step h3 small { display: block; font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; margin-top: 12px; position: relative; z-index: 1; }

/* ===== About (White) ===== */
.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-text p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.8; }
.about-features { display: flex; flex-direction: column; gap: 16px; }
.about-feature {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg-light); border-radius: var(--radius-sm); padding: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.about-feature:hover {
  border-color: rgba(0,212,254,0.2);
  transform: translateX(6px);
  box-shadow: 0 8px 30px rgba(0, 212, 254, 0.06);
}
.about-feature-icon {
  width: 64px; height: 64px; min-width: 64px; border-radius: 12px;
  overflow: hidden;
}
.about-feature-icon img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
}
.about-feature h4 { font-size: 0.95rem; margin-bottom: 2px; color: var(--text-dark); }
.about-feature p { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
  .about-content { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Contact (Dark) ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.contact-grid,
.contact-info,
.contact-form,
.form-group,
.contact-channel span {
  min-width: 0;
}
.contact-info p,
.contact-channel span,
.form-group label,
.form-group input,
.form-group textarea,
.form-group select {
  overflow-wrap: anywhere;
}
.contact-info h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--text-white); }
.contact-info p { color: var(--text-white-muted); margin-bottom: 24px; line-height: 1.8; }
.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.contact-channel {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-white-muted); font-size: 0.95rem;
  transition: all 0.3s ease;
}
.contact-channel:hover { color: var(--accent); transform: translateX(4px); }
.contact-channel-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; overflow: hidden;
}
.contact-channel-icon img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
}
.contact-channel:hover .contact-channel-icon { background: rgba(0, 212, 254, 0.15); }

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease;
}
.contact-form:focus-within {
  border-color: rgba(0, 212, 254, 0.3);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem; color: var(--text-white-muted); font-weight: 500;
}
.form-group input, .form-group textarea, .form-group select {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text-white);
  font-size: 0.95rem; font-family: inherit; transition: all 0.3s ease;
  outline: none; resize: vertical;
  max-width: 100%;
  min-width: 0;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-white-dim);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 254, 0.1);
  background: rgba(255,255,255,0.1);
}
.form-group select option { background: var(--bg-dark); color: var(--text-white); }
.form-submit {
  width: 100%; margin-top: 8px; padding: 16px; font-size: 1rem;
}

.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.active { display: block; animation: fadeIn 0.5s ease; }
.form-success .checkmark {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 212, 254, 0.15);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 16px;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.form-success h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-white); }
.form-success p { color: var(--text-white-muted); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0% { transform: scale(0); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-section { overflow-x: clip; }
  .contact-form { width: 100%; padding: 24px 18px; }
  .contact-channel { align-items: flex-start; }
  .contact-channel-icon { flex: 0 0 48px; }
  .wa-float .wa-tooltip { display: none; }
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0; border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--bg-white);
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Staggered children animation */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.4s; }

/* Scale in animation */
.scale-in {
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Slide from left */
.slide-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

/* Slide from right */
.slide-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* Language toggle active state */
.lang-toggle.active { border-color: var(--accent); color: var(--accent); }

/* ===== Page Transitions ===== */
body { opacity: 1; transition: opacity 0.3s ease; }
body.page-enter { opacity: 0; }
body.page-loaded { opacity: 1; }
body.page-exit { opacity: 0; }

/* ===== Active Nav ===== */
.nav-links a.active { color: var(--accent) !important; font-weight: 600; }
.nav-links a.active::after { width: 100%; background: var(--accent); }

/* ===== Brand Strip ===== */
.brand-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.brand-logo {
  opacity: 0.4; transition: all 0.4s ease;
  filter: grayscale(100%);
}
.brand-logo:hover {
  opacity: 1; filter: grayscale(0%);
  transform: scale(1.15);
}
@media (max-width: 640px) {
  .brand-strip { gap: 28px; }
}

/* ===== Glassmorphism card layer ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
}

/* ===== Gradient text utility ===== */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Glow effect on hover ===== */
.glow-hover:hover {
  box-shadow: 0 0 40px rgba(0, 212, 254, 0.15);
}

/* ===== WhatsApp Floating Button ===== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s ease; cursor: pointer;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float .wa-tooltip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--text-dark); padding: 8px 16px;
  border-radius: 8px; font-size: 0.8rem; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ===== Case Bubbles (一句話案例) ===== */
.case-section {
  padding: 60px 0 40px;
  background: var(--bg-white);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-case-bubbles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin-top: 28px;
}
.case-bubble {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.hero-case-bubbles .case-bubble {
  background: rgba(255,255,255,0.06);
  border-color: rgba(0,212,254,0.16);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.case-bubble::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: #0a1527; transform: scaleX(0); transition: transform 0.4s ease;
  transform-origin: left;
}
.case-bubble:hover {
  border-color: rgba(0, 5, 42, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 5, 42, 0.1);
}
.case-bubble:hover::before { transform: scaleX(1); }
.case-number {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #0a1527;
  margin-bottom: 8px;
}
.hero-case-bubbles .case-number {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 8px;
}
html[lang="en"] .hero-case-bubbles .case-number {
  font-size: clamp(1.75rem, 2.5vw, 2.2rem);
}
.case-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.hero-case-bubbles .case-title { color: #fff; }
.case-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero-case-bubbles .case-subtitle { color: rgba(255,255,255,0.62); }
#title-contact .contact-title-number {
  display: inline-block;
  font-family: 'Inter', 'Microsoft JhengHei', 'PingFang TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 1em;
  font-weight: 800;
  line-height: inherit;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.case-section-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-case-bubbles {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }
  .hero-case-bubbles .case-bubble {
    padding: 16px 14px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    text-align: left;
  }
  .hero-case-bubbles .case-number {
    grid-row: auto;
    margin-bottom: 8px;
    font-size: clamp(1.52rem, 7.2vw, 1.95rem);
  }
  .hero-case-bubbles .case-title,
  .hero-case-bubbles .case-subtitle {
    font-size: 0.78rem;
    text-align: right;
  }
}

/* ===== Solutions Tabs ===== */
.sol-tabs {
  display: flex; gap: 4px; max-width: 900px; margin: 0 auto 32px;
  background: var(--bg-light); border-radius: 12px; padding: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}
.sol-tab {
  flex: 1; padding: 12px 16px; border-radius: 10px; border: none;
  background: transparent; font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s ease;
  font-family: inherit;
}
.sol-tab:hover { color: var(--text-dark); }
.sol-tab.active {
  background: #fff; color: var(--text-dark); font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.sol-panel { display: none; }
.sol-panel.active { display: block; }
@media (max-width: 640px) {
  .sol-tabs { flex-wrap: wrap; }
  .sol-tab { flex: none; width: 100%; font-size: 0.8rem; }
}

/* ===== Compact Hero for above-fold layout ===== */
.hero.compact {
  min-height: auto;
  padding: 132px 0 40px;
}
.hero.compact .hero-content h1 {
  font-size: clamp(4rem, 7vw, 5.9rem);
  margin-bottom: 4px;
}
@media (max-width: 480px) {
  .hero.compact .hero-content h1 {
    font-size: clamp(2.35rem, 10.8vw, 2.85rem) !important;
    letter-spacing: 0;
    line-height: 1.05;
  }
}
.hero.compact .hero-content p {
  margin-bottom: 24px;
}
