:root {
  --primary: #2980FE;
  --primary-dark: #1267df;
  --text: #1f2937;
  --muted: #667085;
  --soft: #f5f8fc;
  --soft-blue: #eef6ff;
  --line: #e5eaf2;
  --white: #ffffff;
  --deep: #111827;
  --shadow: 0 18px 44px rgba(28, 84, 156, 0.10);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

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%, #f8fbff 42%, #ffffff 100%);
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

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

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

h1 {
  font-size: clamp(2.15rem, 10vw, 4.8rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.65rem, 6vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.15rem;
}

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

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

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

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

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  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: 999px;
}

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

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

.site-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #344054;
  font-weight: 650;
  font-size: 0.95rem;
}

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

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

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

.section {
  padding: 66px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.eyebrow,
.category-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--primary);
  border: 1px solid rgba(41, 128, 254, .18);
  font-weight: 750;
  font-size: .85rem;
}

.web3-hero {
  position: relative;
  padding: 56px 0 38px;
  overflow: hidden;
}

.web3-hero::before {
  content: "";
  position: absolute;
  inset: -180px -120px auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(41, 128, 254, .22), rgba(41, 128, 254, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero-copy p {
  max-width: 640px;
  font-size: 1.04rem;
}

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

.center-actions {
  justify-content: center;
}

.hero-tags,
.visual-tags,
.tag-row,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.visual-tags span,
.tag-row span,
.meta-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #475467;
  font-weight: 650;
  font-size: .9rem;
}

.hero-visual {
  position: relative;
  padding: 20px;
  min-height: 340px;
  border: 1px solid rgba(41, 128, 254, .13);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,246,255,.92)),
    radial-gradient(circle at 70% 20%, rgba(41,128,254,.22), transparent 38%);
  box-shadow: var(--shadow);
}

.hero-visual .phone-card {
  position: relative;
  margin: 14px auto 0;
  width: min(280px, 80%);
  padding: 14px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 52px rgba(30, 70, 120, .14);
}

.visual-tags span {
  position: static;
  background: #fff;
  box-shadow: 0 10px 24px rgba(41, 128, 254, .10);
}

.ecosystem-nav {
  padding: 32px 0 18px;
}

.ecosystem-grid,
.category-grid,
.risk-grid,
.faq-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

.ecosystem-card,
.feature-card,
.risk-card,
.faq-item,
.info-card,
.note-card,
.check-card,
.step-card,
.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 12px 28px rgba(25, 50, 90, .06);
}

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

.ecosystem-card .label,
.feature-link,
.inline-link {
  color: var(--primary);
  font-weight: 800;
}

.ecosystem-card p,
.feature-card p,
.risk-card p,
.faq-item p,
.info-card p,
.note-card p,
.check-card p,
.step-card p {
  margin-bottom: 0;
}

.bento-section,
.web3-section,
.hardware-wallet-section,
.digital-assets-section,
.swap-section,
.privacy-section,
.submit-chain-section,
.developer-center-section {
  position: relative;
}

.split-panel {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.split-copy ul,
.article-content ul,
.clean-list {
  padding-left: 18px;
  color: var(--muted);
  margin: 14px 0 0;
}

.split-copy li,
.article-content li,
.clean-list li {
  margin: 8px 0;
}

.image-frame {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--soft-blue), #ffffff);
  border: 1px solid rgba(41, 128, 254, .12);
  padding: 20px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-band {
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
}

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

.developer-panel {
  display: grid;
  gap: 20px;
}

.code-window {
  border-radius: 22px;
  border: 1px solid #d7e7fb;
  background: #ffffff;
  overflow: hidden;
}

.code-window .bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  background: #f3f7fb;
  border-bottom: 1px solid var(--line);
}

.code-window .bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d0d8e3;
}

.code-window pre {
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  color: #344054;
  font-size: .92rem;
  line-height: 1.7;
}

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

.step-card {
  position: relative;
  padding-left: 76px;
}

.step-number {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 850;
}

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

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

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--deep);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
}

.cta-section {
  text-align: center;
}

.cta-section p {
  max-width: 680px;
  margin-inline: auto;
}

.page-hero {
  padding: 58px 0 24px;
  background: radial-gradient(circle at 70% 10%, rgba(41,128,254,.16), transparent 30%);
}

.page-hero .container {
  max-width: 980px;
}

.article-layout {
  display: grid;
  gap: 22px;
  align-items: start;
}

.article-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.side-stack {
  display: grid;
  gap: 16px;
}

.note-card.blue {
  background: var(--soft-blue);
  border-color: rgba(41,128,254,.18);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.check-card {
  display: grid;
  gap: 6px;
}

.check-card span {
  color: var(--primary);
  font-weight: 850;
}

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

.download-page .download-panel {
  text-align: center;
}

.download-list {
  counter-reset: item;
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.download-list li {
  list-style: none;
  counter-increment: item;
  padding: 16px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.download-list li::before {
  content: counter(item);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.about-values {
  display: grid;
  gap: 16px;
}

.site-footer {
  margin-top: 60px;
  padding: 48px 0 24px;
  background: #f4f7fb;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 26px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

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

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

.footer-bottom {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-direction: column;
  color: var(--muted);
  font-size: .9rem;
}

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

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

@media (min-width: 900px) {
  .container {
    width: min(100% - 56px, 1180px);
  }

  .nav-toggle {
    display: none;
  }

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

  .site-nav a {
    font-size: .9rem;
  }

  .web3-hero {
    padding: 88px 0 58px;
  }

  .hero-grid,
  .split-panel,
  .developer-panel,
  .article-layout {
    grid-template-columns: 1.05fr .95fr;
  }

  .split-panel.reverse .image-frame {
    order: -1;
  }

  .hero-visual {
    min-height: 510px;
  }

  .visual-tags span {
    position: absolute;
  }

  .visual-tags span:nth-child(1) { top: 32px; left: 30px; }
  .visual-tags span:nth-child(2) { top: 90px; right: 26px; }
  .visual-tags span:nth-child(3) { bottom: 88px; left: 24px; }
  .visual-tags span:nth-child(4) { bottom: 34px; right: 38px; }

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

  .ecosystem-grid .wide {
    grid-column: span 2;
  }

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

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

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

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

@media (min-width: 1180px) {
  .site-nav a {
    padding-inline: 13px;
  }

  .section {
    padding: 86px 0;
  }
}
