* {
  box-sizing: border-box;
}

:root {
  --primary: #2980FE;
  --primary-soft: #EAF3FF;
  --primary-faint: #F4F8FF;
  --white: #FFFFFF;
  --bg: #F7F9FC;
  --bg-blue: #F3F7FF;
  --line: #E5EAF2;
  --line-strong: #D6DFEC;
  --text: #1F2937;
  --muted: #64748B;
  --deep: #111827;
  --card: #FFFFFF;
  --radius: 24px;
  --radius-lg: 30px;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
  --shadow-soft: 0 12px 32px rgba(41, 128, 254, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 34%, #F7F9FC 100%);
  line-height: 1.72;
  overflow-x: hidden;
}

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

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

p {
  margin: 0 0 16px;
}

ul, ol {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 7px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 234, 242, 0.86);
}

.header-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--deep);
  letter-spacing: 0.02em;
}

.logo,
.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--deep);
  border-radius: 99px;
}

.site-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.site-nav.open {
  display: grid;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow-container {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.page-main {
  padding: 42px 0 72px;
}

.section {
  padding: 58px 0;
}

.section-title {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-kicker,
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin: 0 0 14px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(41, 128, 254, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 760px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: #FFFFFF;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(41, 128, 254, 0.26);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(41, 128, 254, 0.32);
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 750;
  margin-top: 8px;
}

.link-chip::after {
  content: "→";
}

.web3-dashboard-hero {
  position: relative;
  padding: 42px 0 36px;
  overflow: hidden;
}

.web3-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(41, 128, 254, 0.18), rgba(41, 128, 254, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,248,255,0.92));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-copy h1 {
  margin: 0 0 16px;
  color: var(--deep);
  font-size: clamp(36px, 8vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy p {
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

.security-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-tags span,
.tag-list span,
.mini-tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-console {
  position: relative;
  display: grid;
  gap: 14px;
}

.product-frame {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-frame img {
  margin: 0 auto;
  max-height: 430px;
  object-fit: contain;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.status-card {
  padding: 16px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.06);
}

.status-card strong {
  display: block;
  color: var(--deep);
  margin-bottom: 4px;
}

.status-card span {
  color: var(--muted);
  font-size: 14px;
}

.service-index {
  padding-top: 34px;
}

.service-index-grid,
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

.service-card,
.info-card,
.risk-card,
.faq-item,
.step-card,
.page-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.045);
}

.service-card {
  padding: 22px;
  min-height: 176px;
}

.service-card .number,
.step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 12px;
  font-weight: 900;
}

.service-card h3,
.info-card h3,
.risk-card h3,
.step-card h3,
.page-card h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 20px;
  line-height: 1.3;
}

.service-card p,
.info-card p,
.risk-card p,
.step-card p,
.page-card p {
  color: var(--muted);
}

.digital-assets-hub,
.web3-ecosystem-section,
.hardware-wallet-section,
.swap-service-section,
.submit-chain-section,
.developer-center-section {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hardware-wallet-section {
  background: linear-gradient(135deg, var(--bg-blue), #FFFFFF);
}

.swap-service-section {
  background: linear-gradient(135deg, #FFFFFF, #F5F8FE);
}

.module-image {
  padding: 20px;
  background: var(--primary-faint);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.module-image img {
  margin: 0 auto;
  max-height: 360px;
  object-fit: contain;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 0;
  padding: 12px 12px 12px 38px;
  border: 1px solid var(--line);
  background: var(--primary-faint);
  border-radius: 16px;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
}

.privacy-boundary-section {
  padding: 26px;
  border: 1px solid rgba(41, 128, 254, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(41, 128, 254, 0.08), rgba(255,255,255,0.94)),
    var(--white);
}

.boundary-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.boundary-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.boundary-card strong {
  display: block;
  color: var(--deep);
  margin-bottom: 6px;
}

.boundary-card span {
  color: var(--muted);
}

.submit-chain-section .ecosystem-list {
  display: grid;
  gap: 12px;
}

.ecosystem-item {
  padding: 16px;
  border: 1px dashed rgba(41, 128, 254, 0.38);
  background: #FFFFFF;
  border-radius: 18px;
}

.developer-center-section {
  background: linear-gradient(135deg, #F8FBFF, #FFFFFF);
}

.code-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #F7FAFF;
  color: var(--deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
}

.code-panel div {
  padding: 8px 0;
  border-bottom: 1px solid rgba(214, 223, 236, 0.76);
}

.code-panel div:last-child {
  border-bottom: 0;
}

.process-steps {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.step-card {
  padding: 20px;
  border-left: 4px solid var(--primary);
}

.risk-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.risk-card {
  padding: 20px;
  border-top: 3px solid var(--primary);
}

.risk-card small {
  display: block;
  color: var(--primary);
  font-weight: 850;
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-item {
  padding: 20px;
}

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 18px;
}

.faq-item p {
  color: var(--muted);
}

.cta-section {
  padding: 42px 24px;
  margin-top: 26px;
  text-align: center;
  border: 1px solid rgba(41, 128, 254, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(41, 128, 254, 0.14), rgba(41, 128, 254, 0) 38%),
    linear-gradient(135deg, #FFFFFF, #F2F7FF);
  box-shadow: var(--shadow-soft);
}

.cta-section h2 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: clamp(26px, 5vw, 42px);
}

.cta-section p {
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--muted);
}

.page-hero {
  padding: 42px 0 26px;
}

.page-hero-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(41, 128, 254, 0.13), rgba(255,255,255,0) 42%),
    var(--white);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 0 0 14px;
  color: var(--deep);
  font-size: clamp(32px, 7vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  color: var(--muted);
  font-size: 17px;
}

.content-layout {
  display: grid;
  gap: 22px;
}

.article-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.045);
}

.article-card h2 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 25px;
  letter-spacing: -0.02em;
}

.article-card h3 {
  margin: 22px 0 8px;
  color: var(--deep);
  font-size: 20px;
}

.aside-panel,
.safety-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--primary-faint);
}

.aside-panel h2,
.safety-panel h2 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 22px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin: 0;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.download-panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(41, 128, 254, 0.22);
  background: linear-gradient(135deg, #FFFFFF, #F1F7FF);
  border-radius: var(--radius);
}

.download-panel p {
  color: var(--muted);
}

.download-steps {
  counter-reset: item;
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.download-steps li {
  counter-increment: item;
  position: relative;
  margin: 0;
  padding: 16px 16px 16px 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.download-steps li::before {
  content: counter(item);
  position: absolute;
  left: 16px;
  top: 17px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 900;
}

.about-grid {
  display: grid;
  gap: 18px;
}

.about-grid .info-card {
  padding: 22px;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0 24px;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.footer-grid p {
  color: var(--muted);
  max-width: 520px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 17px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 640px) {
  .service-index-grid,
  .category-grid,
  .boundary-grid,
  .risk-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    font-size: 13px;
    padding: 8px 9px;
  }

  .web3-dashboard-hero {
    padding: 72px 0 50px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 30px;
  }

  .hero-copy {
    padding: 46px;
  }

  .hero-console {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-index-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-index-grid .service-card:nth-child(1),
  .service-index-grid .service-card:nth-child(7) {
    grid-column: span 2;
  }

  .digital-assets-hub,
  .web3-ecosystem-section,
  .hardware-wallet-section,
  .swap-service-section,
  .submit-chain-section,
  .developer-center-section {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 34px;
    padding: 36px;
  }

  .web3-ecosystem-section .module-image,
  .hardware-wallet-section .module-image {
    order: -1;
  }

  .privacy-boundary-section {
    padding: 36px;
  }

  .boundary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .risk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
  }

  .article-card {
    padding: 34px;
  }

  .aside-panel {
    position: sticky;
    top: 96px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1120px) {
  .site-nav a {
    font-size: 14px;
    padding: 9px 11px;
  }

  .hero-console {
    transform: translateY(10px);
  }

  .product-frame {
    margin-left: 18px;
  }

  .status-grid {
    margin-top: -34px;
    padding-right: 18px;
  }
}

@media (max-width: 380px) {
  .container,
  .narrow-container,
  .header-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy,
  .page-hero-card,
  .article-card,
  .digital-assets-hub,
  .web3-ecosystem-section,
  .hardware-wallet-section,
  .swap-service-section,
  .submit-chain-section,
  .developer-center-section,
  .privacy-boundary-section {
    padding: 20px;
    border-radius: 22px;
  }

  .site-nav {
    left: 11px;
    right: 11px;
    grid-template-columns: 1fr;
  }
}
