:root {
  --color-primary: #0f172a;
  --color-accent: #2563eb;
  --color-accent-light: #3b82f6;
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --font-base: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -4px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -8px rgba(15, 23, 42, 0.12), 0 4px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 48px -12px rgba(15, 23, 42, 0.16), 0 6px 20px -6px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 8px 24px -6px rgba(37, 99, 235, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(170deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.65) 40%, rgba(30, 41, 59, 0.55) 100%);
}

.hero-logo {
  height: 5rem;
  width: auto;
  max-width: 14rem;
  border-radius: 1.125rem;
  box-shadow: 0 12px 40px -10px rgba(37, 99, 235, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: transform 0.23s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.25s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.btn-outline-dark:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-nav.scrolled .nav-link,
.site-nav.scrolled .brand-text {
  color: var(--color-primary);
}

.site-nav.scrolled .mobile-menu-btn svg {
  color: var(--color-primary);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.site-nav.scrolled .nav-link:hover,
.site-nav.scrolled .nav-link.active {
  color: var(--color-accent);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.brand-text {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.site-nav.scrolled .brand-text {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #fff;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-nav.scrolled .mobile-menu-btn:hover {
  background: var(--color-surface);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

/* Section headings */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 640px;
}

/* Cards */
.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.25);
}

.card:hover::after {
  transform: scaleX(1);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

/* Feature list */
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Stats */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-accent);
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--color-border);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -0.45rem;
  top: 0.25rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 2px 8px rgba(37, 99, 235, 0.08);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* Footer */
.footer {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  color: rgba(255, 255, 255, 0.62);
}

.footer .max-w-7xl {
  padding-top: 3.5rem;
}

.footer-accent {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0) 0%, rgba(59, 130, 246, 0.5) 45%, rgba(34, 211, 238, 0.5) 55%, rgba(37, 99, 235, 0) 100%);
}

.footer a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  max-width: 30rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(59, 130, 246, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

.footer-title {
  position: relative;
  padding-left: 0.875rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-list li {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-list a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-list a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-links-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links-label {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(59, 130, 246, 0.45);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0 2.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-top-link:hover {
  color: #fff !important;
}

/* Back to top floating button */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px -6px rgba(37, 99, 235, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
  .footer-links-row {
    gap: 0.5rem;
  }
}

/* Cursor glow — tech / water-skim feel */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 40;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(34, 211, 238, 0.07) 38%, rgba(37, 99, 235, 0) 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.cursor-glow--core {
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.28) 0%, rgba(59, 130, 246, 0.10) 42%, rgba(37, 99, 235, 0) 72%);
}

.cursor-glow.visible {
  opacity: 1;
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

/* Service tags */
.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-tag:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
  color: var(--color-accent);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .carousel-slide {
    min-height: 440px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
  z-index: 10;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.carousel-dot.active {
  width: 1.75rem;
  background: #fff;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.23s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.btn-light:hover {
  background: #f8fafc;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.18);
}

.btn-light:active {
  transform: translateY(0) scale(0.98);
}
