:root {
  --blue-900: #0b1f3a;
  --blue-700: #124a8c;
  --blue-500: #1b7ad1;
  --green-500: #2ecc71;
  --green-400: #48e59b;
  --ink: #0f172a;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(3, 10, 26, 0.35);
  --grid-size: 36px;
  --grid-size-lg: 180px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Spline Sans", sans-serif;
  background: radial-gradient(
      900px 600px at 75% -10%,
    rgba(27, 122, 209, 0.32),
    transparent 60%
  ),
  radial-gradient(
    700px 600px at -5% 15%,
      rgba(46, 204, 113, 0.26),
    transparent 60%
  ),
    #0b1220;
  color: #f8fafc;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

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

.bg-orbit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  mix-blend-mode: screen;
}

.bg-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid::before,
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
}

.bg-grid::before {
  background-image: linear-gradient(
      90deg,
      rgba(26, 35, 55, 0.5) 1px,
      transparent 1px
    ),
    linear-gradient(
      0deg,
      rgba(26, 35, 55, 0.5) 1px,
      transparent 1px
    );
  background-size: var(--grid-size) var(--grid-size);
  opacity: 0.6;
}

.bg-grid::after {
  background-image: linear-gradient(
      90deg,
      rgba(46, 204, 113, 0.2) 1px,
      transparent 1px
    ),
    linear-gradient(
      0deg,
      rgba(27, 122, 209, 0.22) 1px,
      transparent 1px
    );
  background-size: var(--grid-size-lg) var(--grid-size-lg);
  opacity: 0.35;
}

.grid-scan {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.4;
  will-change: transform;
}

.grid-scan-x {
  top: calc(var(--grid-size) * 6);
  left: -40vw;
  width: clamp(160px, 28vw, 360px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(46, 204, 113, 0.85) 35%,
    rgba(27, 122, 209, 0.95) 65%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(72, 229, 155, 0.35);
  animation: scan-x 11s linear infinite;
}

.grid-scan-y {
  top: -40vh;
  left: calc(var(--grid-size) * 4);
  height: clamp(150px, 28vh, 320px);
  width: 1px;
  background: linear-gradient(
    0deg,
    transparent 0%,
    rgba(27, 122, 209, 0.9) 35%,
    rgba(72, 229, 155, 0.95) 65%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(27, 122, 209, 0.35);
  animation: scan-y 13s linear infinite;
}

.scan-1 {
  animation-delay: 0s;
  opacity: 0.45;
  top: calc(var(--grid-size) * 6);
}

.scan-2 {
  animation-delay: -6s;
  opacity: 0.3;
  top: calc(var(--grid-size) * 13);
}

.scan-3 {
  animation-delay: -2s;
  opacity: 0.45;
  left: calc(var(--grid-size) * 9);
}

.scan-4 {
  animation-delay: -8s;
  opacity: 0.3;
  left: calc(var(--grid-size) * 16);
}

.bg-orbit span {
  position: absolute;
  border-radius: 999px;
  opacity: 0.75;
  filter: blur(0px);
  animation: bubble-float 18s ease-in-out infinite;
}

.bubble-lg {
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(40, 170, 255, 0.55),
    transparent 70%
  );
  top: 6%;
  right: 12%;
  animation-duration: 16s;
  box-shadow: 0 0 60px rgba(40, 170, 255, 0.25);
}

.bubble-md {
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(88, 255, 199, 0.5),
    transparent 70%
  );
  top: 48%;
  left: 6%;
  animation-delay: -6s;
  animation-duration: 18s;
  box-shadow: 0 0 60px rgba(88, 255, 199, 0.22);
}

.bubble-ring {
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbit 24s linear infinite;
}

.bubble-sm {
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(120, 200, 255, 0.42),
    transparent 70%
  );
  top: 18%;
  left: 72%;
  animation-delay: -10s;
  animation-duration: 14s;
}

.bubble-xs {
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle,
    rgba(120, 255, 210, 0.38),
    transparent 70%
  );
  bottom: 22%;
  right: 16%;
  animation-delay: -3s;
  animation-duration: 12s;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 7vw;
  background: rgba(7, 11, 22, 0.75);
  backdrop-filter: blur(16px);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Spline Sans", "Noto Sans", sans-serif;
  font-size: 20px;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: rgba(248, 250, 252, 0.7);
}

.site-nav a:hover {
  color: #ffffff;
}

.store-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.store-links .btn {
  padding: 10px 18px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-label {
  font-size: 11px;
  letter-spacing: 0.6px;
  color: rgba(248, 250, 252, 0.6);
  text-transform: uppercase;
}

.lang-select {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(248, 250, 252, 0.9);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.6px;
  appearance: none;
}

.lang-select:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--blue-500), var(--green-500));
  color: #031425;
  box-shadow: 0 12px 24px rgba(46, 204, 113, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  padding: 80px 7vw 60px;
  z-index: 1;
}

.hero-copy h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 18px 0 16px;
}

.lead {
  font-size: 18px;
  color: rgba(248, 250, 252, 0.75);
  line-height: 1.7;
  max-width: 520px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(27, 122, 209, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.3);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: rgba(248, 250, 252, 0.6);
  font-size: 13px;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-stack {
  display: grid;
  gap: 20px;
  transform: perspective(900px) rotateY(-14deg) rotateX(4deg)
    translateY(-8px);
}

.phone {
  margin: 0;
  width: min(280px, 70vw);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  padding: 10px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.phone picture {
  display: block;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.hero-phone {
  transform: translateX(0);
  opacity: 1;
}

.hero-phone.swap {
  transition: none;
  transform: translateX(80px);
}

.hero-slider {
  position: relative;
  width: 100%;
}

.hero-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.hero-frame.is-active {
  opacity: 1;
  position: relative;
}

.hero-frame.is-enter {
  opacity: 1;
  transform: translateX(0);
}

.hero-frame.is-start {
  opacity: 1;
  transform: translateX(80px);
}

.section {
  padding: 70px 7vw;
  position: relative;
  z-index: 1;
}

.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 8px 0 12px;
}

.section-heading p {
  color: rgba(248, 250, 252, 0.7);
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--green-400);
}

.feature-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}

.feature-card {
  background: rgba(10, 18, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px;
  border-radius: 18px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 229, 155, 0.4);
}

.feature-card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

.feature-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.72);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(72, 229, 155, 0.9),
    rgba(27, 122, 209, 0.65)
  );
  box-shadow: 0 10px 22px rgba(27, 122, 209, 0.25);
  position: relative;
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.gallery-section .gallery {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  position: relative;
  cursor: default;
  scroll-behavior: smooth;
  touch-action: pan-x;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 2vw;
  z-index: 2;
  transform: translateY(-50%);
}

.gallery-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 12, 24, 0.75);
  color: #f8fafc;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(6, 12, 28, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
}

.gallery picture {
  display: block;
  width: clamp(200px, 26vw, 280px);
  flex: 0 0 auto;
  aspect-ratio: 1320 / 2868;
  scroll-snap-align: start;
}

.gallery-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.gallery-dots button {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(248, 250, 252, 0.25);
}

.gallery-dots button.is-active {
  width: 28px;
  background: linear-gradient(120deg, var(--blue-500), var(--green-500));
}

.gallery::before,
.gallery::after {
  content: "";
  position: sticky;
  top: 0;
  width: 36px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.gallery::before {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 11, 22, 0.9), transparent);
}

.gallery::after {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 11, 22, 0.9), transparent);
}

.gallery {
  scrollbar-width: none;
}

.gallery.dragging {
  cursor: grabbing;
}

.gallery::-webkit-scrollbar {
  height: 0;
}

.scroll-hint {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55);
}

.scroll-hint::after {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(72, 229, 155, 0.8), transparent);
  border-radius: 999px;
  animation: hint-sweep 1.8s ease-in-out infinite;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(4, 10, 22, 0.5);
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: translateY(-6px);
}

.split-section .split-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 30px;
}

.panel {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel ul {
  padding-left: 18px;
  color: rgba(248, 250, 252, 0.7);
}

.highlight {
  background: linear-gradient(
    140deg,
    rgba(18, 74, 140, 0.35),
    rgba(46, 204, 113, 0.15)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.callout {
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(7, 11, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 520px;
}

.cta {
  padding-top: 40px;
}

.cta-card {
  padding: 36px;
  border-radius: 22px;
  background: radial-gradient(
      420px 240px at 10% 20%,
      rgba(72, 229, 155, 0.25),
      transparent
    ),
    rgba(10, 18, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.site-footer {
  padding: 30px 7vw 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(248, 250, 252, 0.6);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-email a {
  color: inherit;
}

.email-icon {
  display: inline-flex;
  color: rgba(248, 250, 252, 0.7);
}

.beian-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-links {
    width: 100%;
    gap: 10px;
  }
}

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

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

@keyframes bubble-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 22px, 0);
  }
}

@keyframes orbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes scan-x {
  0% {
    transform: translateX(0);
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(140vw);
    opacity: 0.2;
  }
}

@keyframes scan-y {
  0% {
    transform: translateY(0);
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(140vh);
    opacity: 0.2;
  }
}

@keyframes hint-sweep {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(6px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .phone-stack {
    transform: none;
  }

  .gallery-controls {
    display: none;
  }

  .gallery-dots {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
