:root {
  --primary: #2980FE;
  --primary-dark: #1268dc;
  --primary-soft: #eaf3ff;
  --primary-softer: #f5f9ff;
  --text: #1f2937;
  --muted: #667085;
  --light: #f6f8fb;
  --line: #e6edf5;
  --white: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(35, 72, 125, 0.10);
  --soft-shadow: 0 10px 30px rgba(41, 128, 254, 0.10);
  --radius: 24px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 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(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(230, 237, 245, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  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(--dark);
  letter-spacing: -0.02em;
}

.logo,
.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);
  color: var(--dark);
  font-size: 22px;
  cursor: pointer;
}

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

.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);
}

.app-hero,
.page-hero,
.download-hero {
  position: relative;
  padding: 48px 0 28px;
}

.app-hero:before,
.gradient-bg:before {
  content: "";
  position: absolute;
  inset: -120px -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(41,128,254,0.20), rgba(41,128,254,0.03) 62%, transparent 70%);
  pointer-events: none;
}

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

.eyebrow,
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(41,128,254,0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--dark);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(34px, 8vw, 64px);
}

h2 {
  font-size: clamp(26px, 5.2vw, 42px);
}

h3 {
  font-size: 20px;
}

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

.hero-copy p,
.page-hero p,
.download-hero p {
  margin-top: 18px;
  font-size: 16px;
  max-width: 680px;
}

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

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

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

.safe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.safe-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #475467;
  font-size: 13px;
  font-weight: 650;
}

.app-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(41,128,254,0.10), rgba(255,255,255,0.76)),
    radial-gradient(circle at 70% 20%, rgba(41,128,254,0.14), transparent 35%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.app-visual:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -80px;
  bottom: -80px;
  background: rgba(41,128,254,0.12);
  border-radius: 50%;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(270px, 78%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 34px;
  background: #ffffff;
  border: 1px solid rgba(41,128,254,0.14);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.14);
}

.phone-frame img {
  width: 100%;
  border-radius: 26px;
  object-fit: cover;
}

.floating-card {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(230,237,245,0.94);
  box-shadow: var(--soft-shadow);
  color: var(--text);
}

.floating-card b {
  display: block;
  color: var(--dark);
  font-size: 14px;
}

.floating-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.float-stack {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.icon-dot {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.section {
  padding: 54px 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 720px;
}

.ability-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.ability-item,
.feature-card,
.info-card,
.risk-card,
.faq-item,
.category-card,
.step-card,
.check-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.04);
}

.ability-item {
  padding: 18px;
  border-top: 3px solid var(--primary);
}

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

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

.feature-card {
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.feature-card img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  padding: 12px;
  border-radius: 22px;
  background: var(--primary-softer);
}

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

.product-section,
.wallet-panel,
.cold-wallet-panel,
.swap-panel,
.dapp-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--soft-shadow);
}

.cold-wallet-panel {
  background: linear-gradient(135deg, #f5f9ff, #ffffff);
}

.product-image {
  padding: 20px;
  border-radius: 26px;
  background: var(--primary-softer);
  border: 1px solid var(--line);
}

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

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

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

.feature-list li:before,
.check-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 3px solid var(--primary);
}

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

.category-card,
.risk-card,
.step-card,
.info-card,
.check-card {
  padding: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
}

.category-card:before,
.risk-card:before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--primary);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}

.step-card {
  position: relative;
}

.step-num {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  font-weight: 850;
  margin-bottom: 12px;
}

.safety-panel {
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f4f8ff, #ffffff);
  border: 1px solid var(--line);
}

.risk-card h3,
.category-card h3,
.step-card h3,
.info-card h3,
.check-card h3,
.faq-item h3 {
  margin-bottom: 8px;
}

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

.faq-item {
  padding: 18px;
}

.cta-section {
  text-align: center;
  padding: 40px 24px;
  border-radius: 32px;
  border: 1px solid rgba(41,128,254,0.14);
  background:
    radial-gradient(circle at 20% 0%, rgba(41,128,254,0.14), transparent 34%),
    linear-gradient(135deg, #f4f8ff, #ffffff);
  box-shadow: var(--soft-shadow);
}

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

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.article-body {
  display: grid;
  gap: 20px;
}

.article-body > p,
.article-body .content-panel {
  font-size: 16px;
}

.content-panel {
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(16,24,40,0.04);
}

.side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

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

.download-card .download-btn {
  width: 100%;
  margin-top: 16px;
}

.note-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(41,128,254,0.16);
  background: var(--primary-soft);
  color: #365372;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.site-footer {
  margin-top: 56px;
  padding: 44px 0 22px;
  background: #f5f8fc;
  border-top: 1px solid var(--line);
}

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

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

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 6px 0;
  font-size: 14px;
}

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

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

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

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

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

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

  .site-nav a {
    padding: 9px 11px;
    white-space: nowrap;
  }

  .app-hero {
    padding: 76px 0 38px;
  }

  .hero-grid,
  .product-section,
  .wallet-panel,
  .cold-wallet-panel,
  .swap-panel,
  .dapp-panel {
    grid-template-columns: 1.02fr .98fr;
  }

  .cold-wallet-panel,
  .dapp-panel {
    grid-template-columns: .98fr 1.02fr;
  }

  .cold-wallet-panel .product-image,
  .dapp-panel .product-image {
    order: -1;
  }

  .app-visual {
    min-height: 560px;
  }

  .float-stack {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    margin: 0;
  }

  .float-stack .floating-card {
    position: absolute;
    width: 185px;
  }

  .float-stack .floating-card:nth-child(1) { left: 10px; top: 56px; }
  .float-stack .floating-card:nth-child(2) { right: 8px; top: 96px; }
  .float-stack .floating-card:nth-child(3) { left: 22px; bottom: 86px; }
  .float-stack .floating-card:nth-child(4) { right: 22px; bottom: 58px; }

  .ability-bar {
    grid-template-columns: repeat(5, 1fr);
  }

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

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

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

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

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

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

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

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