:root {
  --bg: #070b16;
  --bg-soft: #0e1425;
  --card: rgba(20, 28, 48, 0.72);
  --border: rgba(120, 160, 255, 0.18);
  --primary: #4d8dff;
  --accent: #8b5cff;
  --cyan: #35e0d8;
  --text: #eaf0ff;
  --muted: #97a4c4;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(77, 141, 255, 0.22), transparent 60%),
    radial-gradient(800px 600px at 92% 6%, rgba(139, 92, 255, 0.20), transparent 62%),
    radial-gradient(700px 500px at 60% 108%, rgba(53, 224, 216, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.app-container { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 6vw;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 24px rgba(77, 141, 255, 0.35);
}

.logo-text { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }

.logo-en {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  display: none;
}

@media (min-width: 768px) { .logo-en { display: inline; } }

.nav { display: none; gap: 28px; }
@media (min-width: 860px) { .nav { display: flex; } }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s;
}
.nav a:hover { color: var(--text); }

/* ---------- Banner ---------- */
.banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 70px 6vw 90px;
}

@media (min-width: 960px) {
  .banner { grid-template-columns: 1.05fr 0.95fr; padding: 96px 6vw 120px; }
}

.banner-tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--cyan);
  border: 1px solid rgba(53, 224, 216, 0.35);
  background: rgba(53, 224, 216, 0.08);
  margin-bottom: 24px;
}

.banner-title {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(120deg, #ffffff 10%, #a9c6ff 50%, #cbb6ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}

.banner-desc { color: var(--muted); font-size: 16px; max-width: 560px; }

.banner-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 32px rgba(77, 141, 255, 0.38);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(77, 141, 255, 0.5); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(120, 160, 255, 0.5); transform: translateY(-3px); }

.banner-img-wrapper { display: flex; justify-content: center; }

.banner-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 30% 25%, rgba(77, 141, 255, 0.35), transparent 60%),
              radial-gradient(circle at 75% 80%, rgba(139, 92, 255, 0.35), transparent 60%),
              #0a1020;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.orb { position: absolute; border-radius: 50%; filter: blur(28px); opacity: 0.75; }
.orb-1 {
  width: 220px; height: 220px; top: 8%; left: 6%;
  background: linear-gradient(135deg, #4d8dff, #35e0d8);
  animation: floatY 7s ease-in-out infinite;
}
.orb-2 {
  width: 260px; height: 260px; bottom: 4%; right: 2%;
  background: linear-gradient(135deg, #8b5cff, #ff5ea8);
  animation: floatY 9s ease-in-out infinite reverse;
}

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140, 170, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 255, 0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-26px); }
}

/* ---------- Sections ---------- */
section { padding: 90px 6vw; position: relative; }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title .title-en {
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.title-line {
  width: 78px; height: 4px; margin: 22px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

/* ---------- Value cards ---------- */
.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.value-card {
  padding: 34px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(120, 160, 255, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.card-icon { font-size: 28px; margin-bottom: 14px; }
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, transparent, rgba(14, 20, 37, 0.85), transparent); }

.section-header { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin-bottom: 16px; }
.section-header p { color: var(--muted); font-size: 15.5px; }

.service-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.tag {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #bcd0ff;
  border: 1px solid var(--border);
  background: rgba(77, 141, 255, 0.10);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.service-item {
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-item:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 255, 0.5);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.5);
}
.item-icon { font-size: 30px; margin-bottom: 16px; }
.service-item h3 { font-size: 19px; margin-bottom: 12px; }
.service-item p { color: var(--muted); font-size: 14.5px; }

.item-features { list-style: none; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.item-features li { color: #a9bad9; font-size: 13.5px; padding-left: 18px; position: relative; }
.item-features li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

/* ---------- Process ---------- */
.process-title { text-align: center; margin-bottom: 56px; }
.process-title h2 { font-size: clamp(24px, 3.4vw, 38px); letter-spacing: 3px; font-weight: 800; }
.process-title .title-sub { color: var(--muted); margin-top: 10px; font-size: 15px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.step-item {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: rgba(18, 25, 44, 0.6);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.step-item:hover { transform: translateY(-8px); border-color: rgba(53, 224, 216, 0.45); }
.step-item.active { border-color: rgba(77, 141, 255, 0.6); box-shadow: 0 22px 48px rgba(77, 141, 255, 0.20); }

.step-num {
  font-size: 30px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.step-item h4 { font-size: 17px; margin-bottom: 8px; }
.step-item p { color: var(--muted); font-size: 14px; }

/* ---------- Clients ---------- */
.clients { text-align: center; }
.clients-title {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 36px;
}
.clients-logos {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.client-logo {
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  color: #b9c8e8;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s, color 0.3s, border-color 0.3s;
}
.client-logo:hover { transform: scale(1.06); color: #fff; border-color: rgba(120, 160, 255, 0.5); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 18, 0.85);
  padding: 66px 6vw 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 44px;
}
@media (min-width: 800px) { .footer-content { grid-template-columns: 1.2fr 1fr; } }

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-desc { color: var(--muted); font-size: 14.5px; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-icon {
  padding: 8px 16px; border-radius: 999px; font-size: 13px;
  color: #b9c8e8; border: 1px solid var(--border);
}

.footer-right h4 { font-size: 17px; margin-bottom: 18px; }
.contact-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--muted); font-size: 13.5px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--text); }

/* ---------- Floating ---------- */
.service-float {
  position: fixed; right: 24px; bottom: 96px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  cursor: pointer; font-size: 14px; font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 34px rgba(77, 141, 255, 0.42);
  transition: transform 0.25s;
}
.service-float:hover { transform: translateY(-4px); }

.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; font-size: 20px; font-weight: 700;
  color: #fff; background: rgba(30, 42, 70, 0.9);
  border: 1px solid var(--border);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.25s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); }

/* ---------- Animations ---------- */
.fade-in-up { animation: fadeInUp 0.9s ease both; }
.fade-in-right { animation: fadeInRight 1s ease both; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-title, .animate-card, .animate-service, .animate-step, .animate-clients, .animate-footer {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .animate-title, .animate-card, .animate-service, .animate-step, .animate-clients, .animate-footer { opacity: 1; transform: none; }
}
