/* Mobile first responsive styling for XXX Web3 wallet website */
:root {
  --primary: #2980FE;
  --primary-soft: #EAF3FF;
  --primary-light: #F5FAFF;
  --text: #1F2937;
  --muted: #64748B;
  --line: #E5EAF1;
  --soft: #F6F8FB;
  --white: #FFFFFF;
  --deep: #111827;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --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", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F9FF 42%, #FFFFFF 100%);
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { color: var(--muted); margin: 0 0 16px; }
h1, h2, h3 { color: var(--deep); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 8vw, 68px); }
h2 { font-size: clamp(26px, 5vw, 44px); }
h3 { font-size: 20px; }
ul, ol { padding-left: 20px; color: var(--muted); }

.container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}
.section { padding: 64px 0; }
.section.tight { padding: 42px 0; }
.eyebrow, .category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(41, 128, 254, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.eyebrow::before, .category-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(41, 128, 254, 0.11);
}
.lead { font-size: 18px; color: #475569; max-width: 760px; }
.text-center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 28px, 1240px);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--deep);
  white-space: nowrap;
}
.logo { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--deep); border-radius: 99px; }
.site-nav {
  position: absolute;
  top: 72px;
  left: 14px;
  right: 14px;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 20px;
}
.site-nav.open { display: flex; }
.site-nav a {
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--primary-soft); }

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  border: 1px solid var(--primary);
  box-shadow: 0 16px 30px rgba(41, 128, 254, 0.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 42px rgba(41, 128, 254, 0.28); }
.link-more {
  color: var(--primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-more::after { content: "→"; }

.web3-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 50px;
  background:
    radial-gradient(circle at 20% 20%, rgba(41,128,254,0.16), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(41,128,254,0.12), transparent 34%);
}
.web3-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(41,128,254,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(41,128,254,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 34px;
  align-items: center;
}
.hero-copy { max-width: 700px; }
.hero-copy h1 span { color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0; }
.safety-tags, .tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.safety-tags span, .tag-row span, .mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #475569;
  font-weight: 700;
  font-size: 14px;
}
.safety-tags span::before, .mini-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff 0%, #EDF6FF 100%);
  border: 1px solid rgba(41,128,254,.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(41,128,254,.16);
  background: rgba(255,255,255,.48);
}
.hero-visual img { position: relative; z-index: 2; max-height: 360px; object-fit: contain; filter: drop-shadow(0 28px 36px rgba(15,23,42,.16)); }
.float-label {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(41,128,254,.18);
  color: #334155;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.float-label.one { left: 18px; top: 24px; }
.float-label.two { right: 18px; top: 88px; }
.float-label.three { left: 28px; bottom: 92px; }
.float-label.four { right: 28px; bottom: 34px; }

.ecosystem-nav { padding-top: 24px; }
.ecosystem-grid, .category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.ecosystem-card, .feature-card, .risk-card, .faq-item, .info-card, .step-card, .check-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.ecosystem-card {
  min-height: 190px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ecosystem-card:hover { transform: translateY(-4px); border-color: rgba(41,128,254,.34); box-shadow: var(--shadow); }
.ecosystem-card .num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 16px;
}

.split-section {
  display: grid;
  gap: 28px;
  align-items: center;
}
.split-section.reverse .visual-card { order: 0; }
.visual-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(41,128,254,.14);
  background: linear-gradient(145deg, #fff, #F0F7FF);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.visual-card img { max-height: 310px; object-fit: contain; padding: 16px; filter: drop-shadow(0 18px 26px rgba(15,23,42,.12)); }
.copy-panel { padding: 0; }
.copy-panel ul { margin-top: 18px; }
.copy-panel li { margin-bottom: 8px; }
.web3-section, .digital-assets-section { background: #fff; }
.hardware-wallet-section, .swap-section, .privacy-section, .submit-chain-section, .developer-center-section { background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%); }
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}
.bento-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.bento-card.highlight {
  background: linear-gradient(135deg, #F5FAFF, #FFFFFF);
  border-color: rgba(41,128,254,.2);
}

.safety-panel {
  background: linear-gradient(135deg, #F5FAFF 0%, #FFFFFF 100%);
  border: 1px solid rgba(41, 128, 254, .16);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.safety-panel .grid { display: grid; gap: 14px; margin-top: 18px; }
.safety-panel .item {
  border-left: 4px solid var(--primary);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
  counter-reset: step;
}
.step-card { position: relative; padding-top: 28px; }
.step-card .step-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
  margin-bottom: 14px;
}
.risk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}
.risk-card { border-top: 4px solid var(--primary); }
.risk-card strong { color: var(--deep); display: block; margin-bottom: 8px; }
.risk-card .suggestion { color: #475569; font-weight: 700; margin-top: 12px; }

.faq-list { display: grid; gap: 14px; margin-top: 24px; }
.faq-item h3 { font-size: 18px; margin-bottom: 10px; }

.cta-section {
  text-align: center;
  padding: 70px 0;
  background: radial-gradient(circle at 50% 0%, rgba(41,128,254,.13), transparent 38%), linear-gradient(180deg, #FFFFFF, #F2F7FF);
}
.cta-box {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(41,128,254,.16);
  background: rgba(255,255,255,.88);
  padding: 34px 22px;
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 62px 0 36px;
  background: radial-gradient(circle at 15% 15%, rgba(41,128,254,.15), transparent 32%), linear-gradient(180deg, #fff, #F6FAFF);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { margin-bottom: 24px; }
.content-layout {
  display: grid;
  gap: 22px;
  padding: 44px 0 70px;
}
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.article-card h2 { font-size: clamp(24px, 4vw, 34px); margin-top: 8px; }
.side-panel {
  background: linear-gradient(180deg, #F5FAFF, #FFFFFF);
  border: 1px solid rgba(41,128,254,.16);
  border-radius: var(--radius-md);
  padding: 22px;
  align-self: start;
}
.side-panel a { display: block; color: var(--primary); font-weight: 800; margin: 10px 0; }
.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.check-card { padding: 18px; }
.check-card strong { display: block; color: var(--deep); margin-bottom: 6px; }
.download-inline { margin-top: 24px; }

.download-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
.download-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.download-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 10px;
}

.site-footer {
  background: #F8FAFC;
  border-top: 1px solid var(--line);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; }
.site-footer h3 { font-size: 16px; margin-bottom: 12px; }
.site-footer a { display: block; color: #64748B; margin: 8px 0; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 34px;
  padding: 18px;
  text-align: center;
  color: #64748B;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.code-panel {
  background: #0F172A;
  color: #DDE7F7;
  border-radius: 24px;
  padding: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-panel pre { margin: 0; white-space: pre-wrap; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 1.8; }
.code-panel .code-dot { display: inline-block; width: 10px; height: 10px; background: #2980FE; border-radius: 50%; margin-right: 6px; }

@media (min-width: 640px) {
  .ecosystem-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .download-steps { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .web3-hero { padding: 92px 0 72px; }
  .hero-grid, .split-section { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .split-section.reverse .visual-card { order: -1; }
  .ecosystem-grid { grid-template-columns: repeat(4, 1fr); }
  .ecosystem-grid .wide { grid-column: span 2; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .risk-grid { grid-template-columns: repeat(3, 1fr); }
  .safety-panel .grid { grid-template-columns: repeat(3, 1fr); }
  .content-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .article-card { padding: 38px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .download-steps { grid-template-columns: repeat(4, 1fr); }
  .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: 14px; padding: 9px 10px; }
}
@media (min-width: 1100px) {
  .site-nav a { padding: 9px 12px; }
  .bento-grid { grid-template-columns: 1.2fr .8fr 1fr; }
  .bento-card.highlight { grid-column: span 2; }
}
@media (max-width: 420px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero-visual { min-height: 360px; }
  .float-label { font-size: 12px; padding: 8px 10px; }
  .hero-actions .download-btn { width: 100%; }
  .cta-box .download-btn { width: 100%; }
}
