/* Mobile-first responsive Web3 brand system */
:root {
  --primary: #2980FE;
  --primary-soft: #EAF3FF;
  --primary-light: #F5F9FF;
  --white: #FFFFFF;
  --grey-50: #F8FAFC;
  --grey-100: #EEF2F7;
  --grey-200: #E2E8F0;
  --grey-500: #64748B;
  --grey-700: #334155;
  --grey-900: #0F172A;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --container: 1180px;
}
* { 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(--grey-900);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 38%, #ffffff 100%);
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo, .footer-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--grey-900); letter-spacing: .02em; }
.logo img, .footer-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--grey-200); background: var(--white); border-radius: 14px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--grey-900); border-radius: 99px; }
.site-nav {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 76px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.nav-open .site-nav { display: grid; gap: 8px; }
.site-nav a { padding: 10px 12px; color: var(--grey-700); font-size: 15px; border-radius: 12px; }
.site-nav a.active, .site-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.section { padding: 58px 0; }
.section-head { margin-bottom: 26px; max-width: 760px; }
.section-kicker, .category-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); background: var(--primary-soft); border: 1px solid rgba(41,128,254,.16); font-size: 14px; font-weight: 700; border-radius: 999px; padding: 7px 12px; margin-bottom: 12px; }
h1, h2, h3 { line-height: 1.22; margin: 0 0 14px; color: var(--grey-900); }
h1 { font-size: clamp(34px, 8vw, 68px); letter-spacing: -0.05em; }
h2 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.035em; }
h3 { font-size: 22px; letter-spacing: -0.02em; }
p { margin: 0 0 16px; color: var(--grey-500); }
.lead { font-size: 18px; color: var(--grey-700); }
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(41,128,254,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(41,128,254,.32); }
.text-link { display: inline-flex; color: var(--primary); font-weight: 750; align-items: center; gap: 6px; }
.text-link::after { content: "→"; }
.web3-hero { position: relative; overflow: hidden; padding: 54px 0 40px; }
.web3-hero::before, .web3-hero::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
.web3-hero::before { width: 360px; height: 360px; right: -120px; top: -130px; background: radial-gradient(circle, rgba(41,128,254,.16), transparent 68%); }
.web3-hero::after { width: 260px; height: 260px; left: -120px; bottom: -100px; background: radial-gradient(circle, rgba(41,128,254,.10), transparent 70%); }
.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
.hero-copy { max-width: 690px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0 20px; }
.security-tags, .floating-tags, .mini-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.security-tags span, .floating-tags span, .mini-tags span { padding: 8px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--grey-200); color: var(--grey-700); font-size: 14px; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; padding: 24px; border-radius: 34px; background: linear-gradient(145deg, #f4f9ff, #ffffff); border: 1px solid var(--grey-200); box-shadow: var(--shadow); }
.hero-visual img { max-height: 430px; object-fit: contain; filter: drop-shadow(0 28px 34px rgba(15,23,42,.14)); }
.floating-tags { position: absolute; left: 18px; right: 18px; bottom: 18px; justify-content: center; }
.ecosystem-nav { padding-top: 24px; }
.ecosystem-grid, .category-grid { display: grid; gap: 16px; }
.ecosystem-card, .service-card, .risk-card, .faq-item, .info-card, .side-card, .check-card, .step-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}
.ecosystem-card strong { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; margin-bottom: 12px; }
.ecosystem-card h3 { font-size: 20px; }
.split-section { display: grid; gap: 26px; align-items: center; padding: 32px; border-radius: 34px; border: 1px solid var(--grey-200); background: var(--white); box-shadow: var(--shadow); }
.split-section.soft { background: linear-gradient(135deg, #f7fbff, #ffffff); }
.split-section.reverse .section-media { order: -1; }
.section-media { display: grid; place-items: center; min-height: 260px; border-radius: 28px; background: linear-gradient(145deg, #eef6ff, #ffffff); border: 1px solid var(--grey-200); padding: 20px; overflow: hidden; }
.section-media img { max-height: 360px; object-fit: contain; }
.feature-list, .clean-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.feature-list li, .clean-list li { position: relative; padding-left: 28px; color: var(--grey-700); }
.feature-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 var(--primary-soft); }
.privacy-section, .submit-chain-section, .developer-center-section { border-radius: 34px; padding: 34px; border: 1px solid var(--grey-200); background: linear-gradient(135deg, #ffffff, #f6faff); box-shadow: var(--shadow); }
.privacy-grid, .submit-grid, .developer-grid { display: grid; gap: 18px; }
.safety-panel { padding: 24px; border-radius: 24px; background: var(--grey-50); border: 1px solid var(--grey-200); }
.safety-panel strong { color: var(--primary); }
.code-panel { background: #f8fbff; border: 1px solid var(--grey-200); border-radius: 24px; padding: 20px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--grey-700); overflow: hidden; }
.code-line { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e8eef7; }
.code-line:last-child { border-bottom: 0; }
.code-line span:first-child { color: var(--primary); }
.process-steps { display: grid; gap: 14px; counter-reset: step; }
.step-card { position: relative; padding-left: 76px; min-height: 116px; }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 24px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 12px; font-weight: 800; }
.risk-grid { display: grid; gap: 16px; }
.risk-card { border-left: 4px solid var(--primary); }
.risk-card .label { color: var(--primary); font-weight: 800; font-size: 13px; }
.faq-grid { display: grid; gap: 14px; }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.cta-section { padding: 64px 0 78px; }
.cta-box { text-align: center; padding: 38px 24px; border-radius: 34px; background: linear-gradient(135deg, #edf6ff, #ffffff); border: 1px solid var(--grey-200); box-shadow: var(--shadow); }
.page-hero { padding: 52px 0 28px; }
.page-hero-inner { padding: 34px; border-radius: 34px; background: linear-gradient(135deg, #ffffff, #f4f9ff); border: 1px solid var(--grey-200); box-shadow: var(--shadow); }
.page-layout { display: grid; gap: 22px; padding: 22px 0 64px; }
.content-panel { background: var(--white); border: 1px solid var(--grey-200); border-radius: 28px; padding: 26px; }
.content-panel h2 { font-size: 28px; }
.article-grid { display: grid; gap: 18px; }
.check-grid { display: grid; gap: 14px; margin: 22px 0; }
.check-card h3 { font-size: 18px; }
.note-panel { padding: 20px; border-radius: 22px; background: var(--primary-soft); border: 1px solid rgba(41,128,254,.18); color: var(--grey-700); }
.page-cta { margin-top: 24px; display: flex; justify-content: flex-start; }
.download-page .page-cta { justify-content: center; }
.download-steps { display: grid; gap: 14px; counter-reset: downloadstep; }
.download-steps .step-card::before { counter-increment: downloadstep; content: counter(downloadstep); }
.about-values { display: grid; gap: 16px; }
.site-footer { background: #f8fafc; border-top: 1px solid var(--grey-200); padding: 42px 0 22px; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h3 { font-size: 16px; margin-bottom: 10px; }
.site-footer p { max-width: 430px; }
.site-footer a:not(.footer-logo) { display: block; color: var(--grey-500); margin: 7px 0; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--grey-200); margin-top: 28px; padding-top: 18px; display: grid; gap: 8px; color: var(--grey-500); font-size: 14px; }
@media (min-width: 640px) {
  .ecosystem-grid, .category-grid, .check-grid, .risk-grid, .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; padding: 0; box-shadow: none; border: 0; background: transparent; border-radius: 0; align-items: center; gap: 4px; }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); }
  .ecosystem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ecosystem-grid .wide { grid-column: span 2; }
  .split-section { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); padding: 42px; }
  .split-section.reverse .section-media { order: initial; }
  .split-section.reverse { grid-template-columns: minmax(360px, 1.02fr) minmax(0, .98fr); }
  .privacy-grid, .submit-grid, .developer-grid, .page-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer-bottom span:last-child { text-align: right; }
}
@media (min-width: 1120px) {
  .section { padding: 76px 0; }
  .web3-hero { padding: 84px 0 54px; }
  .risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .container { width: min(100% - 24px, var(--container)); }
  .page-hero-inner, .split-section, .privacy-section, .submit-chain-section, .developer-center-section { padding: 22px; border-radius: 24px; }
  .download-btn { width: 100%; }
}
