/* ---- Local Fonts (Inter woff2 + System CJK fallback) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-800.woff2') format('woff2');
}

/* =========================================
   CyberWeb Design — Demo Showcase Center
   style.css  (v2 — with real screenshots)
   ========================================= */

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

:root {
  --navy:        #0A1428;
  --navy-mid:    #0D1A35;
  --navy-light:  #112040;
  --navy-card:   #0F1E3A;
  --cyan:        #00F5FF;
  --cyan-dim:    #00C8D4;
  --cyan-glow:   rgba(0, 245, 255, 0.15);
  --cyan-glow2:  rgba(0, 245, 255, 0.08);
  --white:       #FFFFFF;
  --white-80:    rgba(255,255,255,0.80);
  --white-60:    rgba(255,255,255,0.60);
  --white-30:    rgba(255,255,255,0.30);
  --white-20:    rgba(255,255,255,0.20);
  --white-10:    rgba(255,255,255,0.10);
  --white-06:    rgba(255,255,255,0.06);
  --glass-bg:    rgba(15, 30, 58, 0.70);
  --glass-border:rgba(0, 245, 255, 0.18);
  --glass-hover: rgba(0, 245, 255, 0.12);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --font-sans:   'Inter', 'PingFang TC', 'Apple LiGothic Medium', 'Microsoft JhengHei', 'Microsoft YaHei', 'Noto Sans TC', 'Source Han Sans TC', sans-serif;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ---- Neural Mesh Canvas ---- */
#neural-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(10, 20, 40, 0.80);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 245, 255, 0.12);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 20, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.30));
  transition: filter var(--transition);
  flex-shrink: 0;
}

.nav-logo:hover .logo-img {
  filter: drop-shadow(0 0 16px rgba(0, 245, 255, 0.6));
}

/* Logo brand text block */
.logo-text-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.logo-brand-zh {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-brand-en {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--white-60);
  letter-spacing: 0.04em;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--cyan);
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--cyan));
}
.logo-text  { color: var(--white); }
.logo-accent{ color: var(--cyan); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-60);
  letter-spacing: 0.01em;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: var(--white-06);
}

/* Consult CTA Button (matches main site) */
.btn-consult {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00F5FF 0%, #00C8D4 100%);
  color: #0A1428;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.30);
  white-space: nowrap;
}

.btn-consult:hover {
  background: linear-gradient(135deg, #33F8FF 0%, #00E0EC 100%);
  box-shadow: 0 0 28px rgba(0, 245, 255, 0.55);
  transform: translateY(-1px);
}

/* Keep old back-home for compatibility */
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--white-80);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.btn-back-home:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.25);
  transform: translateY(-1px);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(0, 245, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  animation: fade-up 0.8s ease both;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fade-up 0.8s 0.15s ease both;
}

.title-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, #7B9FFF 60%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--white-60);
  font-weight: 400;
  margin-bottom: 48px;
  animation: fade-up 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fade-up 0.8s 0.45s ease both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--white-60);
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px; height: 36px;
  background: var(--white-10);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-30);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-up 1s 1s ease both;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--white-30);
  border-bottom: 2px solid var(--white-30);
  transform: rotate(45deg);
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* ---- Demos Section ---- */
.demos-section {
  position: relative;
  z-index: 1;
  padding: 80px 24px 100px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--white-60);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Demo Grid ---- */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Last 2 cards: centre them in the bottom row */
.demos-grid .demo-card:nth-child(4) { grid-column: 1; }
.demos-grid .demo-card:nth-child(5) { grid-column: 2; }

/* ---- Demo Card ---- */
.demo-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.demo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 245, 255, 0.12);
}

.card-inner {
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), background var(--transition);
}

.demo-card:hover .card-inner {
  border-color: rgba(0, 245, 255, 0.45);
  background: rgba(15, 30, 58, 0.85);
}

/* ---- Card Thumbnail (real screenshot) ---- */
.card-thumbnail {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-mid);
}

.card-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-card:hover .card-screenshot {
  transform: scale(1.04);
}

/* ---- Card Overlay ---- */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.demo-card:hover .card-overlay { opacity: 1; }

.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--cyan);
  background: rgba(0, 245, 255, 0.10);
  color: var(--cyan);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  transform: translateY(8px);
}

.demo-card:hover .overlay-btn { transform: translateY(0); }

.overlay-btn:hover {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

/* ---- Card Body ---- */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 50px;
}

.beauty-tag     { background: rgba(232,121,160,0.15); color: #f8b4d9; border: 1px solid rgba(232,121,160,0.3); }
.finance-tag    { background: rgba(0,245,255,0.10);   color: var(--cyan); border: 1px solid rgba(0,245,255,0.25); }
.property-tag   { background: rgba(212,175,55,0.12);  color: #f5e27a; border: 1px solid rgba(212,175,55,0.3); }
.consulting-tag { background: rgba(59,130,246,0.12);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.ecommerce-tag  { background: rgba(0,200,180,0.12);   color: #5ff5e8; border: 1px solid rgba(0,200,180,0.3); }

.card-type {
  font-size: 0.7rem;
  color: var(--white-30);
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title-en {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--white-60);
  line-height: 1.65;
  flex: 1;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--white-06);
  color: var(--white-60);
  border: 1px solid var(--white-10);
  letter-spacing: 0.03em;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-hover);
  color: var(--cyan);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  align-self: flex-start;
  margin-top: auto;
}

.card-cta:hover {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.4);
  transform: translateX(3px);
}

.card-cta svg { transition: transform var(--transition); }
.card-cta:hover svg { transform: translateX(4px); }

/* ---- CTA Section ---- */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 0 24px 100px;
}

.cta-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(0,245,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1rem;
  color: var(--white-60);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--cyan) 0%, #00c8d4 100%);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0, 245, 255, 0.5);
}

.cta-btn svg { transition: transform var(--transition); }
.cta-btn:hover svg { transform: translateX(4px); }

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--white-06);
  padding: 32px 24px 28px;
}

.footer-disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--white-30);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--white-06);
  border: 1px solid var(--white-10);
  margin-bottom: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--white-20);
  text-align: center;
}

/* ---- Animations ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .demos-grid { grid-template-columns: repeat(2, 1fr); }
  .demos-grid .demo-card:nth-child(4),
  .demos-grid .demo-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 16px; height: 68px; }
  .logo-img { height: 42px; }
  .logo-brand-zh { font-size: 0.9rem; }
  .logo-brand-en { font-size: 0.62rem; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.5rem; }
  .demos-section { padding: 60px 16px 80px; }
  .demos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .demos-grid .demo-card:nth-child(4),
  .demos-grid .demo-card:nth-child(5) { grid-column: auto; }
  .cta-card { padding: 40px 24px; }
  .footer { padding: 24px 16px 20px; }
}

@media (max-width: 480px) {
  .btn-back-home { padding: 8px 14px; font-size: 0.8rem; }
  .hero-title { font-size: 2.2rem; }
  .card-thumbnail { height: 190px; }
}
