@font-face {
  font-family: "PDF God Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("PlusJakartaSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "PDF God Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("PlusJakartaSans-SemiBold.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --ink: #f4f7ff;
  --muted: #aeb9d4;
  --quiet: #7987a8;
  --night: #07101f;
  --night-soft: #0d1930;
  --panel: rgba(17, 31, 59, 0.78);
  --line: rgba(183, 205, 255, 0.16);
  --cyan: #7ef5e8;
  --violet: #a99cff;
  --lime: #d8ff7b;
  --danger-soft: #ffd7d7;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(109, 84, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 12% 32%, rgba(58, 224, 216, 0.12), transparent 24rem),
    var(--night);
  font-family: "PDF God Sans", "PingFang TC", "Noto Sans TC", sans-serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: var(--cyan);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--lime);
}

a:focus-visible,
button:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

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

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

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.65rem, 8vw, 6.6rem);
  font-weight: 600;
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

p,
li {
  color: var(--muted);
}

strong {
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--night);
  background: var(--lime);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(73, 68, 255, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy small {
  margin-top: 0.25rem;
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.language-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 31, 0.62);
  backdrop-filter: blur(18px);
}

.language-switch a {
  min-width: 3.2rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  text-decoration: none;
}

.language-switch a:hover {
  color: var(--night);
  background: var(--cyan);
}

.lang-panel {
  display: none;
}

#zh {
  display: block;
}

#en:target {
  display: block;
}

#en:target ~ #zh {
  display: none;
}

#zh:target {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: 74vh;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 span,
.gradient-text {
  color: transparent;
  background: linear-gradient(112deg, var(--ink) 12%, var(--cyan) 56%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
}

.lede {
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  color: #081221;
  background: var(--lime);
  box-shadow: 0 14px 40px rgba(216, 255, 123, 0.15);
}

.button:hover {
  color: #081221;
  background: var(--cyan);
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  isolation: isolate;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(126, 245, 232, 0.24);
  border-radius: 50%;
  content: "";
}

.hero-art::before {
  width: 95%;
  aspect-ratio: 1;
}

.hero-art::after {
  width: 68%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbit 30s linear infinite;
}

.icon-stage {
  width: min(72vw, 330px);
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 31%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.icon-stage img {
  border-radius: 28%;
}

.signal {
  position: absolute;
  padding: 0.48rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 16, 31, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  font-size: 0.72rem;
  backdrop-filter: blur(12px);
}

.signal.one {
  top: 12%;
  right: 0;
}

.signal.two {
  bottom: 14%;
  left: -2%;
}

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1.3fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.25rem;
}

.section-heading p {
  margin-bottom: 0.45rem;
}

.feature-grid,
.trust-grid,
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.trust-card,
.data-card,
.notice,
.legal-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
}

.feature-card,
.trust-card,
.data-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.feature-card:nth-child(3n + 1) {
  background: linear-gradient(145deg, rgba(22, 53, 76, 0.88), rgba(17, 31, 59, 0.72));
}

.feature-number {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.72rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.notice {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.notice::after {
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(169, 156, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-top: 4rem;
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0.3rem;
  color: var(--quiet);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
  font-size: 0.78rem;
}

.legal-hero {
  max-width: 880px;
  padding: clamp(4rem, 10vw, 8rem) 0 2.5rem;
}

.legal-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.2rem);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.legal-meta span {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
  padding: 1rem 0 4rem;
}

.legal-nav {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 16, 31, 0.78);
}

.legal-nav a {
  padding: 0.35rem 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--cyan);
}

.legal-copy {
  display: grid;
  gap: 1rem;
}

.legal-section {
  padding: clamp(1.35rem, 4vw, 2.4rem);
  scroll-margin-top: 1rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.2rem;
}

.legal-section li + li {
  margin-top: 0.55rem;
}

.term {
  color: var(--cyan);
  font-weight: 600;
}

.retained {
  border-left: 3px solid var(--lime);
}

.warning {
  border-left: 3px solid var(--danger-soft);
}

.request-box {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 1.1rem;
  border: 1px dashed rgba(216, 255, 123, 0.45);
  border-radius: 14px;
  background: rgba(216, 255, 123, 0.045);
}

.request-box p {
  margin-bottom: 0;
}

.mono {
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  .hero,
  .section-heading,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 350px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .brand-copy small {
    display: none;
  }

  .language-switch a {
    min-width: 2.8rem;
    padding-inline: 0.55rem;
  }

  .feature-grid,
  .trust-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111827;
    background: #ffffff;
  }

  body::before,
  .language-switch,
  .legal-nav {
    display: none;
  }

  p,
  li,
  .site-footer p {
    color: #374151;
  }

  .legal-section {
    border-color: #d1d5db;
    background: #ffffff;
    box-shadow: none;
    break-inside: avoid;
  }
}
