:root {
  color-scheme: light dark;
  --bg: #101316;
  --bg-2: #15191d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --text: #eef1f3;
  --muted: #a3adb5;
  --subtle: #76828b;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8fa1ae;
  --accent-strong: #d8dee2;
  --button-bg: #e8edf0;
  --button-text: #11161a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --mx: 50%;
  --my: 12%;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f5;
  --bg-2: #e9ecee;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #151a1e;
  --muted: #58646d;
  --subtle: #7a858d;
  --line: rgba(21, 26, 30, 0.13);
  --accent: #64727d;
  --accent-strong: #1f2a32;
  --button-bg: #151a1e;
  --button-text: #f6f7f8;
  --shadow: 0 24px 70px rgba(40, 50, 58, 0.15);
}

[data-theme="dark"] {
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f5f5;
    --bg-2: #e9ecee;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --text: #151a1e;
    --muted: #58646d;
    --subtle: #7a858d;
    --line: rgba(21, 26, 30, 0.13);
    --accent: #64727d;
    --accent-strong: #1f2a32;
    --button-bg: #151a1e;
    --button-text: #f6f7f8;
    --shadow: 0 24px 70px rgba(40, 50, 58, 0.15);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 9%, transparent), transparent 28rem),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg) 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  pointer-events: none;
  animation: grid-drift 28s linear infinite;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--text) 8%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  position: relative;
  padding: 6px 2px;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent-strong);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-link {
  padding: 5px 9px !important;
  border: 1px solid transparent;
  border-radius: 8px;
}

.language-link.active {
  color: var(--button-text);
  background: var(--button-bg);
  border-color: transparent;
  font-weight: 800;
}

.language-link.active::after {
  display: none;
}

.theme-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.theme-switcher button {
  min-width: 42px;
  padding: 5px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
}

.theme-switcher button[aria-pressed="true"] {
  color: var(--button-text);
  background: var(--button-bg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 4vw, 68px);
  padding: clamp(46px, 6vw, 84px) clamp(18px, 4vw, 56px) clamp(36px, 5vw, 58px);
}

.hero-copy {
  max-width: 680px;
  animation: rise-in 700ms ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--accent);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(3rem, 6.2vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.lead {
  max-width: 640px;
  margin-bottom: 14px;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: clamp(1.04rem, 1.75vw, 1.34rem);
  line-height: 1.48;
}

.lead.chinese {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-weight: 800;
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent, color-mix(in srgb, var(--text) 10%, transparent), transparent);
  content: "";
  transform: translateX(-110%);
  transition: transform 520ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(110%);
}

.button.primary {
  background: var(--button-bg);
  border-color: transparent;
  color: var(--button-text);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--text) 12%, transparent);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.facts div {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.facts div:hover {
  background: var(--surface-strong);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  transform: translateY(-2px);
}

.facts dt {
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 980px;
  justify-self: end;
  margin: 0;
  padding: clamp(8px, 1.2vw, 12px);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: float-panel 7.5s ease-in-out infinite;
}

.hero-media:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
}

.hero-media img {
  width: 100%;
  border-radius: 6px;
}

.section {
  padding: clamp(50px, 6vw, 84px) clamp(18px, 4vw, 56px);
}

.intro,
.compare {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.compare p:last-child {
  max-width: 860px;
  margin-bottom: 0;
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.steps li {
  position: relative;
  overflow: hidden;
}

.feature-grid article {
  min-height: 178px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.feature-grid article::before,
.steps li::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--text) 6%, transparent), transparent 55%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.feature-grid article:hover,
.steps li:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: var(--surface-strong);
  transform: translateY(-4px);
}

.feature-grid article:hover::before,
.steps li:hover::before {
  opacity: 1;
}

.feature-grid h3,
.feature-grid p,
.steps h3,
.steps p {
  position: relative;
}

.feature-grid p,
.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.band {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.steps span {
  position: relative;
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  background: color-mix(in srgb, var(--surface-strong) 85%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 900;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-list span {
  position: relative;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-list span:hover {
  background: var(--surface-strong);
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  transform: translateY(-3px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 56px 56px, 56px 56px;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-panel {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media {
    max-width: 900px;
  }

  .hero-media {
    justify-self: start;
  }
}

@media (max-width: 980px) {
  .intro,
  .compare {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  .facts,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-media {
    animation: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
