* {
    box-sizing: border-box;
}

:root {
    --primary: #2980FE;
    --primary-dark: #1468de;
    --text: #1f2937;
    --muted: #667085;
    --line: #e5e7eb;
    --soft: #f7f9fc;
    --soft-blue: #eef6ff;
    --panel: #ffffff;
    --deep: #101828;
    --radius: 24px;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
}

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

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

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

p {
    margin: 0 0 16px;
}

h1, h2, h3 {
    color: var(--deep);
    line-height: 1.18;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(34px, 8vw, 68px);
}

h2 {
    font-size: clamp(28px, 5vw, 44px);
}

h3 {
    font-size: 20px;
}

.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.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    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;
    color: var(--deep);
    white-space: nowrap;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.brand-text {
    font-size: 18px;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--deep);
    margin: 2px 0;
    border-radius: 999px;
}

.site-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 12px;
}

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

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

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

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

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

.section {
    padding: 64px 0;
}

.section-kicker,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: var(--primary);
    background: var(--soft-blue);
    border: 1px solid rgba(41, 128, 254, 0.14);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
    max-width: 760px;
}

.web3-hero {
    position: relative;
    padding: 48px 0 46px;
    overflow: hidden;
}

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

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

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-copy .lead {
    margin-bottom: 24px;
}

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

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

.security-tags span,
.floating-tags span,
.mini-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 24px;
    border-radius: 32px;
    background: linear-gradient(145deg, #eff7ff, #ffffff 55%, #f7f9fc);
    border: 1px solid rgba(41, 128, 254, 0.14);
    box-shadow: var(--shadow);
}

.hero-visual img {
    max-height: 430px;
    object-fit: contain;
    filter: drop-shadow(0 22px 32px rgba(31, 41, 55, 0.16));
}

.floating-tags {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    justify-content: center;
}

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

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

.ecosystem-card,
.feature-card,
.risk-card,
.faq-item,
.info-card,
.step-card,
.article-card,
.check-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.04);
}

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

.ecosystem-card .tag {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.feature-section,
.web3-section,
.hardware-wallet-section,
.digital-assets-section,
.swap-section,
.privacy-section,
.submit-chain-section,
.developer-center-section {
    padding: 64px 0;
}

.feature-grid,
.split-grid,
.article-layout {
    display: grid;
    gap: 26px;
    align-items: center;
}

.feature-panel {
    padding: 26px;
    border-radius: 32px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.soft-panel {
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
}

.image-panel {
    padding: 22px;
    border-radius: 32px;
    background: linear-gradient(145deg, #ffffff, #eef6ff);
    border: 1px solid rgba(41, 128, 254, 0.12);
    min-height: 280px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.image-panel img {
    max-height: 360px;
    object-fit: contain;
}

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

.points-list li,
.clean-list li {
    position: relative;
    padding-left: 26px;
    color: #475467;
}

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

.privacy-section .privacy-grid,
.submit-chain-section .submit-grid,
.developer-center-section .developer-grid {
    display: grid;
    gap: 18px;
}

.info-card,
.check-card {
    padding: 22px;
}

.code-panel {
    background: #f8fafc;
    border: 1px solid #dce7f3;
    color: #344054;
    border-radius: 28px;
    padding: 22px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 14px;
    overflow: hidden;
}

.code-line {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #e7edf5;
}

.code-line:last-child {
    border-bottom: 0;
}

.process-steps {
    padding: 64px 0;
    background: linear-gradient(180deg, rgba(238, 246, 255, 0.58), rgba(255,255,255,0));
}

.steps-grid {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.step-card {
    padding: 20px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    font-weight: 900;
    margin-bottom: 14px;
}

.risk-section {
    padding: 64px 0;
}

.risk-grid {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

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

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

.faq-section {
    padding: 64px 0;
    background: var(--soft);
}

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

.faq-item {
    padding: 22px;
}

.faq-item h3 {
    font-size: 18px;
}

.cta-section {
    padding: 72px 0;
}

.cta-card {
    text-align: center;
    padding: 38px 24px;
    border-radius: 34px;
    background: linear-gradient(135deg, #eef6ff, #ffffff 58%, #f7f9fc);
    border: 1px solid rgba(41, 128, 254, 0.14);
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 56px 0 34px;
    background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
}

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

.article-page {
    padding: 48px 0 72px;
}

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

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

.article-sidebar {
    display: grid;
    gap: 16px;
}

.article-card {
    padding: 20px;
}

.download-strip {
    margin-top: 28px;
    padding: 22px;
    border-radius: 26px;
    background: var(--soft-blue);
    border: 1px solid rgba(41, 128, 254, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.guide-list {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.guide-item {
    padding: 18px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 20px;
}

.guide-item strong {
    color: var(--deep);
}

.about-grid {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.site-footer {
    background: #101828;
    color: #d0d5dd;
    padding: 48px 0 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 12px;
}

.footer-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

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

.site-footer a {
    display: block;
    color: #d0d5dd;
    margin: 8px 0;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 34px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 18px;
    font-size: 14px;
    color: #98a2b3;
}

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

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

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

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

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

    .hero-grid,
    .feature-grid,
    .split-grid,
    .developer-center-section .developer-grid,
    .submit-chain-section .submit-grid,
    .privacy-section .privacy-grid,
    .article-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .article-layout {
        align-items: start;
        grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
    }

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

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

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

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

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

    .section,
    .feature-section,
    .web3-section,
    .hardware-wallet-section,
    .digital-assets-section,
    .swap-section,
    .privacy-section,
    .submit-chain-section,
    .developer-center-section,
    .process-steps,
    .risk-section,
    .faq-section,
    .cta-section {
        padding: 84px 0;
    }
}

@media (min-width: 1100px) {
    .site-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .web3-hero {
        padding: 74px 0 60px;
    }

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