:root {
  --bg-primary: #09090b;
  --bg-elevated: #18181b;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --text-primary: #fafafa;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --bs-primary: #8b5cf6;
  --bs-primary-rgb: 139, 92, 246;
  --bs-body-bg: #09090b;
  --bs-body-color: #fafafa;
  --bs-secondary-color: #a1a1aa;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --bs-link-color: #a78bfa;
  --bs-link-hover-color: #c4b5fd;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.navbar-glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(9, 9, 11, 0.7);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-glass.scrolled {
  background: rgba(9, 9, 11, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-right: 10px;
}

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.925rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3rem;
}

.card-dark {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card-dark:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(139, 92, 246, 0.12);
  border-radius: 10px;
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.card-dark h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-dark p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .process-steps .col-md-3:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: var(--border);
    z-index: 0;
  }
}

@media (max-width: 767.98px) {
  .process-step {
    text-align: left;
    display: flex;
    gap: 1.25rem;
    padding: 0 0 2rem 0;
  }

  .process-step:last-child {
    padding-bottom: 0;
  }

  .step-number {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .process-step-body {
    padding-top: 0.35rem;
  }

  .process-steps .col-12:not(:last-child) .process-step::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: var(--border);
  }
}

.cta-box {
  background: var(--bg-elevated);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 100%;
}

.contact-info-item i {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 2px;
}

.contact-info-item a {
  color: var(--text-primary);
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--accent);
}

.contact-info-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-primary);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-beian {
  margin-top: 0.5rem;
}

.footer-beian a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-beian a:hover {
  color: var(--text-primary);
}

/* Sub pages */
.page-hero {
  position: relative;
  padding: 140px 0 64px;
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-glow {
  top: 0;
  width: 500px;
  height: 300px;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.page-hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.page-content {
  padding-bottom: 96px;
}

.contact-details {
  max-width: 560px;
  margin: 0 auto;
}

.contact-details .contact-info-item {
  margin-bottom: 1rem;
}

.contact-details .contact-info-item:last-child {
  margin-bottom: 0;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}