:root {
  --ink: #172033;
  --muted: #667085;
  --violet: #5b5ce2;
  --violet-deep: #4546c7;
  --teal: #087f75;
  --coral: #ff7a6b;
  --line: rgba(255, 255, 255, 0.74);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --shadow: 0 24px 70px rgba(33, 47, 87, 0.13);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f3f7ff;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 12%, rgba(91, 92, 226, 0.28), transparent 29rem),
    radial-gradient(circle at 92% 32%, rgba(8, 169, 150, 0.22), transparent 30rem),
    radial-gradient(circle at 45% 92%, rgba(255, 122, 107, 0.2), transparent 34rem),
    linear-gradient(145deg, #f3f7ff 0%, #f0faf8 48%, #f7f1ff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.glass {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  margin-top: 14px;
  padding: 10px 12px 10px 14px;
  border-radius: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.35px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 9px 22px rgba(30, 54, 109, 0.23);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.language-toggle {
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link {
  padding: 11px 13px;
}

.nav-link[aria-current="page"] {
  color: var(--violet);
  background: rgba(91, 92, 226, 0.1);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  padding: 10px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(30, 50, 90, 0.08);
}

.language-toggle::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.nav-link:hover,
.language-toggle:hover {
  color: var(--violet);
  background: rgba(255,255,255,.82);
  transform: translateY(-1px);
}

.nav-link:focus-visible,
.language-toggle:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(91, 92, 226, 0.27);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
  min-height: 650px;
  padding: 72px 2px 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  content: "";
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6.1vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(105deg, var(--violet) 8%, #785fe7 46%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 17px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--violet), #7565e5 55%, var(--teal));
  box-shadow: 0 15px 34px rgba(91, 92, 226, 0.27);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(32, 48, 83, 0.09);
}

.arrow {
  font-size: 18px;
  line-height: 1;
}

.converter-wrap {
  position: relative;
  width: min(100%, 470px);
  margin: 0 auto;
}

.converter-wrap::before,
.converter-wrap::after {
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(2px);
  content: "";
}

.converter-wrap::before {
  top: -30px;
  right: -34px;
  background: rgba(8, 169, 150, 0.22);
}

.converter-wrap::after {
  bottom: -34px;
  left: -32px;
  background: rgba(255, 122, 107, 0.19);
}

.converter-card {
  overflow: hidden;
  padding: 18px;
  border-radius: 38px;
  transform: rotate(1.4deg);
}

.converter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 6px 17px;
}

.converter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.status-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.1);
  content: "";
}

.currency-head,
.rate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.currency-head {
  overflow: hidden;
  margin-bottom: 7px;
  border-radius: 18px;
  background: rgba(255,255,255,.48);
}

.currency-code {
  padding: 14px 16px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
}

.currency-code:first-child {
  color: var(--violet);
  border-right: 1px solid rgba(112, 128, 154, 0.14);
}

.currency-code:last-child {
  color: var(--teal);
}

.rates {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
}

.rate-row:not(:last-child) {
  border-bottom: 1px solid rgba(112, 128, 154, 0.12);
}

.rate-row span {
  padding: 15px 17px;
  font-size: clamp(18px, 3vw, 23px);
  font-variant-numeric: tabular-nums;
}

.rate-row span:first-child {
  color: var(--ink);
  border-right: 1px solid rgba(112, 128, 154, 0.12);
}

.rate-row span:last-child {
  color: var(--teal);
}

.converter-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 6px 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.section {
  padding: 36px 0 86px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2,
.privacy-hero h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.7vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.info-card {
  min-height: 230px;
  padding: 25px;
  border-radius: var(--radius-lg);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 16px;
  color: var(--violet);
  background: rgba(91, 92, 226, 0.1);
  font-size: 19px;
  font-weight: 830;
}

.info-card:nth-child(2) .card-icon {
  color: var(--teal);
  background: rgba(8, 127, 117, 0.1);
}

.info-card:nth-child(3) .card-icon {
  color: #d8584c;
  background: rgba(255, 122, 107, 0.12);
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  align-items: start;
}

.faq-intro,
.faq-list {
  border-radius: var(--radius-xl);
}

.faq-intro {
  position: sticky;
  top: 102px;
  padding: 30px;
}

.faq-intro h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.faq-intro p {
  color: var(--muted);
  line-height: 1.65;
}

.faq-list {
  overflow: hidden;
}

details {
  background: rgba(255, 255, 255, 0.18);
}

details + details {
  border-top: 1px solid rgba(255, 255, 255, 0.75);
}

summary {
  position: relative;
  padding: 24px 62px 24px 26px;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--violet);
  background: rgba(91, 92, 226, 0.09);
  content: "+";
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "−";
}

.answer {
  padding: 0 26px 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.answer p:last-child,
.answer ul:last-child {
  margin-bottom: 0;
}

.answer ul {
  padding-left: 20px;
}

.answer li + li {
  margin-top: 7px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 86px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 36px;
}

.contact-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 127, 117, 0.22), transparent 68%);
  content: "";
}

.contact-card h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.contact-card p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.contact-card .button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.privacy-hero {
  padding: 84px 0 44px;
  text-align: center;
}

.privacy-hero .eyebrow {
  justify-content: center;
}

.privacy-hero p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.updated-pill {
  display: inline-flex;
  margin-top: 22px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 760;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0 88px;
}

.privacy-nav,
.policy-card {
  border-radius: var(--radius-xl);
}

.privacy-nav {
  position: sticky;
  top: 102px;
  padding: 18px;
}

.privacy-nav strong {
  display: block;
  padding: 8px 10px 12px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.privacy-nav a {
  display: block;
  padding: 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.privacy-nav a:hover {
  color: var(--violet);
  background: rgba(91, 92, 226, 0.08);
}

.policy-card {
  padding: clamp(26px, 5vw, 56px);
}

.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 42px;
}

.summary-chip {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 20px;
  background: rgba(255,255,255,.45);
}

.summary-chip strong {
  display: block;
  margin-bottom: 7px;
  color: var(--violet);
  font-size: 15px;
}

.summary-chip:nth-child(2) strong {
  color: var(--teal);
}

.summary-chip:nth-child(3) strong {
  color: #d8584c;
}

.summary-chip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.policy-section {
  scroll-margin-top: 116px;
}

.policy-section + .policy-section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid rgba(112, 128, 154, 0.16);
}

.policy-section h2 {
  margin-bottom: 13px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.policy-section h3 {
  margin: 24px 0 9px;
  font-size: 18px;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.policy-section ul {
  padding-left: 21px;
}

.policy-section li + li {
  margin-top: 8px;
}

.policy-section a,
.text-link {
  color: var(--violet);
  font-weight: 680;
  text-underline-offset: 3px;
}

.note-box {
  margin-top: 20px;
  padding: 17px 18px;
  border-radius: 17px;
  color: var(--teal);
  background: rgba(8, 127, 117, 0.07);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0 36px;
  border-top: 1px solid rgba(112, 128, 154, 0.14);
  color: var(--muted);
  font-size: 13px;
}

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

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--violet);
}

html[data-lang="en"] .lang-zh,
html[data-lang="zh"] .lang-en {
  display: none !important;
}

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

  .hero {
    min-height: 0;
    padding-top: 68px;
  }

  .hero-copy-block {
    text-align: center;
  }

  .hero-copy-block .eyebrow,
  .button-row {
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid .info-card:last-child {
    grid-column: 1 / -1;
  }

  .faq-intro,
  .privacy-nav {
    position: static;
  }

  .privacy-nav {
    display: none;
  }
}

@media (max-width: 650px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    min-height: 60px;
    border-radius: 19px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    display: none;
  }

  .nav-link {
    padding: 9px 10px;
    font-size: 13px;
  }

  .language-toggle {
    min-width: 76px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .hero {
    gap: 50px;
    padding: 58px 0 72px;
  }

  h1 {
    font-size: clamp(41px, 14vw, 58px);
  }

  .converter-card {
    padding: 13px;
    border-radius: 30px;
  }

  .converter-foot {
    font-size: 10px;
  }

  .section {
    padding-bottom: 70px;
  }

  .section-heading {
    gap: 16px;
  }

  .card-grid,
  .policy-summary {
    grid-template-columns: 1fr;
  }

  .card-grid .info-card:last-child {
    grid-column: auto;
  }

  .info-card {
    min-height: 0;
  }

  .contact-card {
    grid-template-columns: 1fr;
    margin-bottom: 68px;
  }

  .contact-card .button {
    width: 100%;
  }

  .privacy-hero {
    padding-top: 62px;
  }

  .policy-card {
    border-radius: 27px;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass {
    background: rgba(255,255,255,.93);
  }
}
