:root {
    --primary: #2980FE;
    --primary-dark: #1765d6;
    --text: #1f2937;
    --muted: #667085;
    --soft: #f4f7fb;
    --soft-blue: #eef6ff;
    --line: #dbe3ef;
    --white: #ffffff;
    --card: #ffffff;
    --shadow: 0 18px 50px rgba(31, 41, 55, .08);
    --radius: 24px;
    --radius-lg: 32px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 44%, #ffffff 100%);
    line-height: 1.72;
    overflow-x: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(219, 227, 239, .8);
}

.header-inner {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #182230;
    letter-spacing: .02em;
    flex: 0 0 auto;
}

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

.nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 99px;
}

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

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

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

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

.container,
.section-inner {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

main {
    display: block;
}

.section {
    padding: 52px 0;
}

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

.kicker::before,
.category-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(41, 128, 254, .12);
}

h1,
h2,
h3 {
    line-height: 1.18;
    margin: 0 0 16px;
    color: #101828;
}

h1 {
    font-size: clamp(36px, 8vw, 68px);
    letter-spacing: -.05em;
}

h2 {
    font-size: clamp(28px, 5vw, 44px);
    letter-spacing: -.035em;
}

h3 {
    font-size: 21px;
    letter-spacing: -.015em;
}

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

.lead {
    font-size: 18px;
    color: #475467;
}

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

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

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

.web3-hero {
    position: relative;
    padding: 62px 0 36px;
    overflow: hidden;
}

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

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

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

.hero-copy .lead {
    max-width: 680px;
}

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

.security-tags,
.hero-badges,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.security-tags span,
.hero-badges span,
.tag-row span,
.small-tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 380px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #eef6ff 0%, #ffffff 60%);
    border: 1px solid rgba(41, 128, 254, .16);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    overflow: hidden;
}

.hero-visual::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(41, 128, 254, .2);
    border-radius: 50%;
}

.hero-visual img {
    position: relative;
    z-index: 2;
    max-height: 410px;
    filter: drop-shadow(0 22px 36px rgba(35, 66, 105, .18));
}

.float-tag {
    position: absolute;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(219, 227, 239, .9);
    color: #344054;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 10px 24px rgba(31, 41, 55, .08);
}

.float-tag.one { top: 24px; left: 22px; }
.float-tag.two { top: 74px; right: 22px; }
.float-tag.three { bottom: 74px; left: 18px; }
.float-tag.four { bottom: 24px; right: 26px; }

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

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

.ecosystem-grid,
.category-grid,
.risk-grid,
.faq-grid,
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ecosystem-card,
.info-card,
.risk-card,
.faq-item,
.step-card,
.feature-card,
.check-card,
.side-panel,
.download-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 10px 30px rgba(31, 41, 55, .04);
}

.ecosystem-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 188px;
}

.ecosystem-card .mini-label {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(41, 128, 254, .1);
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
}

.ecosystem-card p {
    flex: 1;
}

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

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

.split-card.soft {
    background: linear-gradient(140deg, #f4f8ff 0%, #ffffff 78%);
}

.split-card.reverse .visual-box {
    order: -1;
}

.visual-box {
    border-radius: 28px;
    background: linear-gradient(145deg, #f3f8ff, #ffffff);
    border: 1px solid rgba(41, 128, 254, .14);
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.visual-box::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px dashed rgba(41, 128, 254, .22);
}

.visual-box img {
    position: relative;
    z-index: 2;
    max-height: 310px;
    filter: drop-shadow(0 16px 28px rgba(31, 41, 55, .12));
}

.bullet-list,
.check-list,
.link-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

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

.bullet-list li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(41, 128, 254, .12);
}

.privacy-panel {
    display: grid;
    gap: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.submit-chain-card,
.developer-card,
.cta-section {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(41, 128, 254, .18);
    background: linear-gradient(140deg, #eef6ff 0%, #ffffff 72%);
    padding: 26px;
    box-shadow: var(--shadow);
}

.developer-panel {
    background: #182230;
    color: #d0d5dd;
    border-radius: 24px;
    padding: 22px;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.8;
}

.developer-panel strong {
    color: #ffffff;
}

.code-line {
    display: block;
    color: #b7c7dd;
}

.code-line em {
    color: #7cc0ff;
    font-style: normal;
}

.process-steps {
    display: grid;
    gap: 16px;
    counter-reset: step;
}

.step-card {
    position: relative;
}

.step-number,
.risk-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-weight: 900;
    margin-bottom: 14px;
}

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

.risk-card h3,
.faq-item h3 {
    font-size: 19px;
}

.cta-section {
    text-align: center;
    margin-bottom: 64px;
}

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

.sub-hero {
    padding: 58px 0 26px;
}

.sub-hero-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(41, 128, 254, .16);
    background: linear-gradient(140deg, #eef6ff 0%, #ffffff 72%);
    padding: 28px;
    box-shadow: var(--shadow);
}

.sub-hero-card h1 {
    font-size: clamp(34px, 7vw, 58px);
    max-width: 860px;
}

.sub-hero-card p {
    max-width: 850px;
    font-size: 17px;
}

.article-layout {
    display: grid;
    gap: 22px;
    padding: 28px 0 64px;
}

.content-main {
    display: grid;
    gap: 22px;
}

.content-block {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 12px 34px rgba(31, 41, 55, .04);
}

.content-block h2 {
    font-size: clamp(25px, 4.5vw, 34px);
}

.side-panel {
    align-self: start;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.side-panel .link-list a,
.link-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    color: var(--primary);
    font-weight: 800;
    border-bottom: 1px solid var(--line);
}

.side-panel .link-list a:last-child,
.link-list a:last-child {
    border-bottom: 0;
}

.download-zone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    border: 1px solid rgba(41, 128, 254, .16);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.download-page-grid {
    display: grid;
    gap: 22px;
    padding: 30px 0 64px;
}

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

.step-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
}

.step-list b {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: var(--soft-blue);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.faq-list .faq-item {
    padding: 24px;
}

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

.footer-grid {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.footer-grid h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-grid a:not(.brand) {
    display: block;
    color: #667085;
    margin: 8px 0;
}

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

.footer-brand p {
    max-width: 360px;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    margin-top: 34px;
    padding: 18px 16px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

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

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

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

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

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

    .site-nav a {
        font-size: 14px;
        padding: 8px 10px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(360px, .82fr);
    }

    .split-card,
    .privacy-panel,
    .submit-chain-card,
    .developer-card,
    .download-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-card.reverse .visual-box {
        order: 2;
    }

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

    .ecosystem-card:nth-child(1),
    .ecosystem-card:nth-child(7) {
        grid-column: span 2;
    }

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

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

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

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

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

    .web3-hero {
        padding-top: 82px;
    }

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