:root {
  --bg: #050b16;
  --bg-soft: #081120;
  --bg-panel: rgba(12, 20, 39, 0.72);
  --bg-panel-strong: rgba(10, 16, 30, 0.88);
  --line: rgba(124, 146, 255, 0.18);
  --text: #e6f0ff;
  --muted: #95a7c7;
  --primary: #7c8cff;
  --secondary: #17d8ff;
  --accent: #8d5bff;
  --success: #37f2b6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(23, 216, 255, 0.14), transparent 25%),
    radial-gradient(circle at 82% 10%, rgba(141, 91, 255, 0.18), transparent 30%),
    radial-gradient(circle at 50% 78%, rgba(124, 140, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #040914 0%, #07101d 46%, #091528 100%);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.contact-detail-image {
  width: min(100%, 30rem);
  height: auto;
}

.contact-detail-image[src$="contact-line-1.gif"] {
  width: 11.25rem;
}

.contact-footer-image {
  width: 11.25rem;
  height: auto;
  margin-left: auto;
}

#contact-details {
  scroll-margin-top: 7rem;
}

@media (max-width: 1023px) {
  .contact-footer-image {
    margin-left: 0;
  }
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 88%);
  pointer-events: none;
}

.mesh-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(23, 216, 255, 0.09), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(141, 91, 255, 0.14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(124, 140, 255, 0.12), transparent 32%);
  pointer-events: none;
}

.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle-field span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(23, 216, 255, 0.95), rgba(124, 140, 255, 0.2));
  box-shadow: 0 0 16px rgba(23, 216, 255, 0.75);
  animation: particle-float linear infinite;
  opacity: 0.7;
}

.particle-field span:nth-child(1) { left: 8%; top: 18%; animation-duration: 14s; animation-delay: -1s; }
.particle-field span:nth-child(2) { left: 16%; top: 70%; animation-duration: 11s; animation-delay: -4s; }
.particle-field span:nth-child(3) { left: 24%; top: 36%; animation-duration: 16s; animation-delay: -6s; }
.particle-field span:nth-child(4) { left: 35%; top: 78%; animation-duration: 13s; animation-delay: -3s; }
.particle-field span:nth-child(5) { left: 46%; top: 24%; animation-duration: 12s; animation-delay: -8s; }
.particle-field span:nth-child(6) { left: 56%; top: 65%; animation-duration: 15s; animation-delay: -7s; }
.particle-field span:nth-child(7) { left: 67%; top: 20%; animation-duration: 14s; animation-delay: -2s; }
.particle-field span:nth-child(8) { left: 76%; top: 60%; animation-duration: 10s; animation-delay: -5s; }
.particle-field span:nth-child(9) { left: 86%; top: 30%; animation-duration: 17s; animation-delay: -9s; }
.particle-field span:nth-child(10) { left: 92%; top: 72%; animation-duration: 12s; animation-delay: -4s; }

@keyframes particle-float {
  0% { transform: translateY(0) scale(1); opacity: 0.18; }
  30% { opacity: 0.92; }
  100% { transform: translateY(-130px) scale(1.6); opacity: 0; }
}

.glass {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-strong {
  background: var(--bg-panel-strong);
  border: 1px solid rgba(124, 146, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glow-ring {
  position: relative;
  isolation: isolate;
}

.glow-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(23, 216, 255, 0.28), rgba(124, 140, 255, 0.12), rgba(141, 91, 255, 0.28));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.8;
}

.hero-orb {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.88), rgba(23, 216, 255, 0.42) 14%, rgba(23, 216, 255, 0.06) 40%, transparent 68%),
    radial-gradient(circle at 74% 60%, rgba(141, 91, 255, 0.45), transparent 42%),
    linear-gradient(135deg, rgba(124, 140, 255, 0.22), rgba(23, 216, 255, 0.08));
  box-shadow:
    inset 0 0 60px rgba(255, 255, 255, 0.06),
    0 0 120px rgba(23, 216, 255, 0.12),
    0 0 160px rgba(141, 91, 255, 0.1);
}

.section-kicker {
  color: #78f4ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.section-title {
  background: linear-gradient(90deg, #ffffff 0%, #b4cbff 42%, #78f4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted {
  color: var(--muted);
}

.border-soft {
  border-color: rgba(255, 255, 255, 0.1);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 216, 255, 0.18);
  background: rgba(10, 18, 34, 0.6);
  color: #d2e8ff;
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  color: #03111d;
  background: linear-gradient(90deg, #4ce1ff 0%, #7c8cff 100%);
  box-shadow: 0 12px 40px rgba(76, 225, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(76, 225, 255, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  color: #e8f4ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(23, 216, 255, 0.08);
  border-color: rgba(23, 216, 255, 0.28);
  transform: translateY(-2px);
}

.nav-link {
  position: relative;
  color: #c6d3ea;
  font-size: 0.92rem;
  transition: color 0.28s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 216, 255, 0.95), rgba(124, 140, 255, 0.95));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

.nav-link-active {
  color: #ffffff;
}

.nav-cta-active {
  background: rgba(23, 216, 255, 0.18);
  border-color: rgba(23, 216, 255, 0.36);
  color: #cbf7ff;
}

.card-hover {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 216, 255, 0.26);
}

.nav-blur {
  background: rgba(5, 11, 22, 0.55);
}

.stats-grid {
  display: grid;
  gap: 1rem;
}

.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 216, 255, 0.45), rgba(141, 91, 255, 0.42), transparent);
}

.content-prose p {
  color: var(--muted);
  line-height: 1.9;
}

.content-prose ul {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.9;
}

.content-prose li + li {
  margin-top: 0.45rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(141, 91, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.table-scroll {
  overflow-x: auto;
}

.table-soft {
  width: 100%;
  border-collapse: collapse;
}

.table-soft th,
.table-soft td {
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.table-soft th {
  color: #d6e8ff;
  font-size: 0.9rem;
}

.table-soft td {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: fixed;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.75rem 1rem;
  clip: auto;
  white-space: normal;
  background: #7cf0ff;
  color: #03101b;
  border-radius: 999px;
  z-index: 1000;
}

[x-cloak] {
  display: none !important;
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .hero-orb {
    min-height: 280px;
  }
}
