:root {
  color-scheme: dark;
  --ink: #0d102a;
  --panel: #141833;
  --stroke: #2a3051;
  --text: #f0f4fc;
  --muted: #a4aabf;
  --mint: #bdf8ff;
  --lavender: #b9b7ff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
.container { width: min(100% - 80px, 1200px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--ink);
  padding: 12px 16px;
}

.site-header { border-bottom: 1px solid #202332; }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-content { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-name { font-size: 20px; font-weight: 760; letter-spacing: -0.025em; white-space: nowrap; }
.brand-name span { color: #adb2c8; font-size: 15px; font-weight: 650; margin-left: 5px; }
.main-nav, .footer-content nav { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: 14px; }
.footer-content nav { flex-wrap: wrap; justify-content: flex-end; }
.main-nav a:hover, .footer-content nav a:hover { color: var(--text); }
.button {
  min-height: 52px;
  padding: 0 19px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 680;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.button-outline { border-color: #34394f; background-color: #161a2a; }
.button-outline:hover { border-color: #6d6693; background-color: #20243a; }
.button-primary { background-color: var(--mint); color: #101c1a; }
.button-primary:hover { background-color: #d1fce9; }
.header-login { min-height: 40px; font-size: 14px; background-color: transparent; }
.download-icon {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 15px;
  border-bottom: 1.5px solid currentColor;
}
.download-icon::before, .download-icon::after { content: ""; position: absolute; left: 50%; }
.download-icon::before { top: 0; height: 8px; border-left: 1.5px solid; }
.download-icon::after {
  width: 6.5px;
  height: 6.5px;
  top: 3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateX(-40%) rotate(45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b1025;
  border-bottom: 1px solid #23273a;
}
.hero-layout {
  display: flex;
  align-items: center;
  min-height: clamp(510px, 43vw, 640px);
  padding-block: 70px;
}
.hero-content { width: 50%; position: relative; z-index: 2; }
.early-access {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #d9d9ff;
  letter-spacing: .08em;
  font-size: 14px;
  font-weight: 650;
}
.early-access span { width: 28px; height: 2px; background: var(--lavender); }
.hero h1 {
  font-size: clamp(47px, 5.35vw, 80px);
  font-weight: 800;
  line-height: 1.19;
  letter-spacing: -0.035em;
  margin-block: 23px 21px;
}
.hero h1 span { color: #c5c2ff; }
.hero-description { max-width: 400px; color: #c1c8d9; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual {
  position: absolute;
  inset: 0 0 0 22%;
  z-index: 0;
  pointer-events: none;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 55%;
  mask-image: linear-gradient(90deg, transparent, #0003 16%, #000d 39%, black 56%);
}
.hero-signal, .hero-protocol {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #575171;
  border-radius: 10px;
  background: #141829ed;
  box-shadow: 0 12px 35px #0a091966;
  color: #f4f2ff;
  font-size: 13px;
  font-weight: 700;
}
.hero-signal { left: 9%; top: 24%; }
.hero-protocol { right: 8%; bottom: 15%; }
.hero-signal small, .hero-protocol small { display: block; color: #afb5ce; margin-top: 3px; font-size: 11px; font-weight: 500; }
.hero-signal > i { width: 14px; height: 14px; border-radius: 50%; border: 4px solid #263a40; background: var(--mint); }
.protocol-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #322d4a;
  color: var(--lavender);
}
.protocol-icon i { position: relative; width: 9px; height: 7px; margin-top: 3px; border: 1px solid; border-radius: 2px; }
.protocol-icon i::before { position: absolute; content: ""; width: 5px; height: 5px; border: 1px solid; border-bottom: 0; border-radius: 3px 3px 0 0; left: 1px; bottom: 6px; }

.section { padding-block: 81px; }
.section-heading h2 { font-size: clamp(29px, 3.4vw, 45px); letter-spacing: -0.06em; font-weight: 760; line-height: 1.2; }
.section-heading p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 12px; }
.features-section .section-heading, .download-section .section-heading { text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 33px; }
.feature-card {
  min-width: 0;
  padding: 27px;
  background: linear-gradient(155deg, #161a2b, var(--panel) 68%);
  border: 1px solid var(--stroke);
  border-radius: 14px;
}
.feature-card h3 { font-size: 18px; margin-top: 20px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 8px; }
.feature-icon, .platform-icon { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid #494068; border-radius: 11px; background: #2c2545; color: var(--lavender); }
.feature-latency { grid-auto-flow: column; justify-content: center; align-items: end; gap: 3px; padding-bottom: 12px; }
.feature-latency span { width: 3px; height: 5px; background: currentColor; border-radius: 2px; }
.feature-latency span:nth-child(2) { height: 9px; }
.feature-latency span:nth-child(3) { height: 13px; }
.feature-latency span:nth-child(4) { height: 17px; }
.feature-rules { align-content: center; gap: 4px; }
.feature-rules span { position: relative; width: 20px; height: 1px; background: currentColor; }
.feature-rules span::after { position: absolute; top: -2px; left: 3px; content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.feature-rules span:nth-child(2)::after { left: 12px; }
.feature-rules span:nth-child(3)::after { left: 6px; }
.feature-tunnel { background: #1d3540; color: var(--mint); border-color: #345561; }
.feature-tunnel span { position: relative; width: 16px; height: 12px; margin-top: 6px; border: 1.5px solid; border-radius: 3px; }
.feature-tunnel span::before { content: ""; position: absolute; width: 9px; height: 8px; left: 2px; bottom: 10px; border: 1.5px solid; border-bottom: 0; border-radius: 6px 6px 0 0; }

.download-section { border-block: 1px solid #22263a; background: radial-gradient(ellipse at 55% 121%, #242643, #111522 64%); }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: min(800px, 100%); margin: 32px auto 0; }
.platform-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #34394d;
  border-radius: 13px;
  padding: 18px;
  background: #171b2b;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.platform-card:hover { border-color: #716895; background: #20243b; }
.platform-icon { flex: 0 0 47px; }
.platform-label { flex: 1; display: grid; gap: 4px; }
.platform-label strong { font-size: 18px; }
.platform-label small { color: var(--muted); font-size: 13px; }
.platform-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--muted); background: #24283d; }
.windows-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(transparent 46%, #2c2545 46% 54%, transparent 54%), linear-gradient(90deg, transparent 46%, #2c2545 46% 54%, transparent 54%), currentColor;
}
.platform-android .platform-icon { background: #1d3540; border-color: #345561; color: var(--mint); }
.android-icon { position: relative; width: 23px; height: 12px; margin-top: 4px; border-radius: 13px 13px 2px 2px; background: currentColor; }
.android-icon::before, .android-icon::after { content: ""; position: absolute; width: 1px; height: 7px; top: -4px; background: currentColor; }
.android-icon::before { transform: rotate(-28deg); left: 4px; }
.android-icon::after { transform: rotate(28deg); right: 4px; }
.android-icon i { position: absolute; left: 6px; top: 5px; width: 2px; height: 2px; border-radius: 50%; background: #1d3540; box-shadow: 9px 0 #1d3540; }

.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.text-link { display: inline-block; margin-top: 17px; color: var(--mint); font-size: 14px; }
.text-link:hover { text-decoration: underline; }
.faq-list { border-top: 1px solid var(--stroke); }
.faq-list details { border-bottom: 1px solid var(--stroke); }
.faq-list summary {
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--lavender); font-size: 20px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); font-size: 14px; line-height: 1.7; padding-bottom: 20px; }
.site-footer { border-top: 1px solid var(--stroke); }
.footer-content { min-height: 86px; }

@media (max-width: 960px) {
  .container { width: min(100% - 48px, 1200px); }
  .hero-layout { min-height: 460px; padding-block: 52px; }
  .button { min-height: 47px; padding-inline: 14px; }
  .header-login { min-height: 40px; }
  .hero-signal { left: 9%; top: 18%; }
  .hero-protocol { right: 12%; bottom: 7%; }
  .feature-card { padding: 20px; }
  .section { padding-block: 64px; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 36px); }
  .header-content { min-height: 64px; flex-wrap: wrap; gap: 0 10px; padding-top: 10px; }
  .brand-name { font-size: 18px; }
  .brand-name span { font-size: 13px; margin-left: 3px; }
  .brand img { width: 32px; height: 32px; }
  .main-nav { order: 1; flex: 0 0 100%; flex-wrap: wrap; gap: 0 16px; font-size: 13px; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  .header-login { font-size: 13px; }
  .hero-layout { display: block; min-height: 0; padding-block: 39px 0; }
  .hero-content { width: 100%; }
  .hero h1 { margin-block: 14px; font-size: clamp(42px, 10.5vw, 62px); }
  .hero-description { max-width: 35ch; font-size: 14px; }
  .hero-actions { margin-top: 22px; }
  .hero-visual { position: relative; inset: auto; margin: -10px -18px 0; height: clamp(175px, 50vw, 300px); }
  .hero-image { object-position: 64% 64%; mask-image: linear-gradient(180deg, transparent, black 33%); }
  .hero-signal, .hero-protocol { padding: 7px 9px; font-size: 11px; gap: 6px; text-align: left; }
  .hero-signal { top: 19%; left: 5%; }
  .hero-protocol { right: 7%; bottom: 13%; }
  .hero-signal small, .hero-protocol small { font-size: 10px; }
  .section { padding-block: 48px; }
  .feature-grid, .download-grid, .faq-layout { grid-template-columns: 1fr; gap: 13px; }
  .feature-grid, .download-grid { margin-top: 23px; }
  .feature-card h3 { margin-top: 14px; }
  .faq-list { margin-top: 10px; }
  .footer-content { min-height: 72px; gap: 10px; }
  .footer-content nav { gap: 11px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .platform-card { transition: none; }
}

.hero:has(.hero-image[src="/assets/suyu-phones.webp"]) {
  background: radial-gradient(ellipse at 74% 46%, #26244d, transparent 51%), #0b1025;
}
.hero-layout:has(.hero-image[src="/assets/suyu-phones.webp"]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-block: 30px;
}
.hero-layout:has(.hero-image[src="/assets/suyu-phones.webp"]) .hero-content { width: 100%; }
.hero-visual:has(.hero-image[src="/assets/suyu-phones.webp"]) {
  position: relative;
  inset: auto;
  height: auto;
  margin: 0;
  min-width: 0;
  pointer-events: auto;
}
.hero-image[src="/assets/suyu-phones.webp"] {
  height: clamp(360px, 35vw, 520px);
  object-fit: contain;
  object-position: center;
  mask-image: none;
}
.phone-stage {
  position: relative;
  height: clamp(360px, 35vw, 520px);
  isolation: isolate;
}
.phone-stage::before {
  content: "";
  position: absolute;
  inset: 3% -6% 0;
  z-index: -1;
  background: radial-gradient(ellipse at 59% 46%, #8570cf80, transparent 61%),
              radial-gradient(ellipse at 33% 75%, #447b9466, transparent 53%);
  filter: blur(12px);
}
.preview-phone {
  --phone-x: 63%;
  --phone-y: 4%;
  --phone-tilt: 9deg;
  --phone-scale: .70;
  position: absolute;
  left: var(--phone-x);
  top: 50%;
  height: 91%;
  aspect-ratio: 1080 / 2400;
  padding: 4px;
  border: 1px solid #aaa6bd;
  border-radius: clamp(18px, 2vw, 30px);
  transform: translate(-50%, calc(-50% + var(--phone-y))) rotate(var(--phone-tilt)) scale(var(--phone-scale));
  transition: transform .4s ease, opacity .25s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: linear-gradient(115deg, #c6c5d9, #424054 24%, #1b1b2b 56%, #9e9bac 90%, #514f67);
  box-shadow: 3px 16px 24px #05051473;
  cursor: pointer;
}
.preview-phone[data-layer="front"], .preview-phone[data-layer="back"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.preview-phone[data-layer="front"] {
  --phone-x: 40%;
  --phone-y: 0%;
  --phone-tilt: -5deg;
  --phone-scale: 1;
  z-index: 2;
  cursor: zoom-in;
}
.preview-phone[data-layer="back"] {
  --phone-x: 70%;
  --phone-y: 3%;
  --phone-tilt: 11deg;
  --phone-scale: .83;
  z-index: 1;
}
.preview-phone[data-layer="back"] img { filter: brightness(.91); }
.preview-phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  border: 2px solid #141320;
  background: #101128;
}
.screen-picker {
  width: max-content;
  max-width: 100%;
  display: flex;
  margin: 9px auto 0;
  padding: 3px;
  border: 1px solid #4b4969;
  border-radius: 24px;
  background: #191b33;
}
.screen-picker button, .screen-zoom button {
  border: 0;
  border-radius: 20px;
  padding: 9px 14px;
  min-height: 38px;
  background: transparent;
  color: #c2c4d9;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.screen-picker button[aria-pressed="true"] { background: #c8c2ff; color: #211c3d; }
.hero-visual button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.screen-zoom { border: none; padding: 0; background: transparent; }
.screen-zoom::backdrop { background: #080a18eb; }
.screen-zoom img { max-width: 90vw; max-height: 84vh; max-height: 84dvh; border-radius: 14px; }
.screen-zoom button { display: block; margin: 8px auto 0; background: #343149; color: #fff; }
@media (min-width: 761px) and (max-width: 940px) {
  .preview-phone[data-layer="back"] { --phone-x: 73%; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-phone { transition: none; }
}
@media (max-width: 680px) {
  .hero-layout:has(.hero-image[src="/assets/suyu-phones.webp"]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-block: 34px 25px;
  }
  .hero-image[src="/assets/suyu-phones.webp"], .phone-stage { height: clamp(320px, 88vw, 450px); }
  .hero-visual:has(.hero-image[src="/assets/suyu-phones.webp"]) { width: min(100%, 490px); margin-inline: auto; }
}
