* {
  box-sizing: border-box;
}

:root {
  --primary: #2980FE;
  --primary-dark: #1769de;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5edf7;
  --soft: #f5f8fc;
  --soft-blue: #eef6ff;
  --white: #ffffff;
  --deep: #111827;
  --shadow: 0 16px 42px rgba(30, 64, 175, 0.08);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.site-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 78px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

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

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

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

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 44px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow,
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--primary);
  font-weight: 750;
  font-size: 14px;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  color: var(--deep);
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(34px, 8vw, 64px);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(26px, 5vw, 42px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

.lead {
  font-size: 18px;
  color: #46556b;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(41, 128, 254, 0.24);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 18px 30px rgba(41, 128, 254, 0.30);
}

.text-link {
  color: var(--primary);
  font-weight: 800;
}

.web3-hero {
  position: relative;
  padding: 72px 0 52px;
  overflow: hidden;
}

.web3-hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -220px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 128, 254, 0.18), rgba(41, 128, 254, 0));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

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

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

.security-tags span,
.floating-tags span,
.tag-row span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  color: #334155;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.hero-visual {
  position: relative;
  min-height: 360px;
  border-radius: 32px;
  padding: 24px;
  background: linear-gradient(145deg, #ffffff, #eef6ff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-device {
  width: min(420px, 84%);
  margin: 0 auto;
  filter: drop-shadow(0 24px 32px rgba(41, 128, 254, 0.16));
}

.floating-tags {
  margin-top: 20px;
  justify-content: center;
}

.ecosystem-nav {
  padding: 22px 0 64px;
}

.ecosystem-grid,
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ecosystem-card,
.info-card,
.risk-card,
.faq-item,
.page-card,
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.ecosystem-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ecosystem-card .label {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  border-radius: 32px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.split-section.reverse {
  background: linear-gradient(135deg, #f7fbff, #ffffff);
}

.feature-image {
  border-radius: 28px;
  background: var(--soft-blue);
  padding: 22px;
  border: 1px solid var(--line);
}

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

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

.feature-list li,
.check-list li,
.clean-list li {
  position: relative;
  padding-left: 28px;
  color: #475569;
}

.feature-list li::before,
.check-list li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(41, 128, 254, 0.12);
}

.web3-section {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.hardware-wallet-section,
.privacy-section,
.process-section {
  background: var(--soft);
}

.digital-assets-section,
.submit-chain-section {
  background: #ffffff;
}

.swap-section {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.developer-center-section {
  background: #f7fbff;
}

.privacy-panel,
.submit-panel,
.developer-panel,
.safety-panel,
.cta-section {
  border-radius: 32px;
  border: 1px solid var(--line);
  padding: 26px;
  background: linear-gradient(135deg, #ffffff, #f1f7ff);
  box-shadow: var(--shadow);
}

.privacy-grid,
.submit-grid,
.developer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

.code-panel span {
  display: block;
  color: var(--primary);
  margin-bottom: 8px;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step-card {
  position: relative;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 850;
  margin-bottom: 14px;
}

.risk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.cta-section {
  text-align: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(41, 128, 254, .14), transparent 30%),
    linear-gradient(135deg, #ffffff, #eef6ff);
}

.cta-section p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  padding: 64px 0 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(41, 128, 254, .15), transparent 24%),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.page-hero-inner {
  max-width: 820px;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 34px 0 72px;
}

.article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.article h2 {
  font-size: 28px;
  margin-top: 24px;
}

.side-panel {
  background: var(--soft-blue);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  align-self: start;
}

.callout {
  border-radius: 24px;
  background: #f7fbff;
  border: 1px solid var(--line);
  padding: 20px;
  margin: 22px 0;
}

.download-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.download-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.download-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.site-footer {
  background: #f8fafc;
  border-top: 1px solid var(--line);
  padding: 44px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.site-footer h3 {
  font-size: 16px;
}

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

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

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 640px) {
  .ecosystem-grid,
  .category-grid,
  .risk-grid,
  .faq-grid,
  .download-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .article {
    padding: 34px;
  }
}

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

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

  .site-nav a {
    font-size: 14px;
    padding: 9px 10px;
  }

  .hero-grid {
    grid-template-columns: 1.08fr .92fr;
  }

  .web3-hero {
    padding: 100px 0 68px;
  }

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

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

  .split-section,
  .privacy-grid,
  .submit-grid,
  .developer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 34px;
  }

  .split-section.reverse .feature-image {
    order: -1;
  }

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

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

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

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

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

@media (min-width: 1120px) {
  .site-nav a {
    padding: 9px 12px;
  }

  .section {
    padding: 82px 0;
  }
}
