* {
    box-sizing: border-box;
}

:root {
    --primary: #2980FE;
    --primary-dark: #1766d8;
    --text: #1f2937;
    --muted: #667085;
    --soft: #f5f8fc;
    --soft-blue: #eef6ff;
    --line: #e5eaf2;
    --white: #ffffff;
    --deep: #263241;
    --radius: 24px;
    --shadow: 0 18px 50px rgba(35, 88, 150, .10);
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    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(--deep);
    letter-spacing: .02em;
}

.brand img,
.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: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

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

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

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

.main-nav a {
    color: var(--muted);
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 12px;
}

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

.content-container,
.section,
.page-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 56px 0;
}

.section-title {
    margin-bottom: 24px;
}

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

h1,
h2,
h3 {
    color: var(--deep);
    line-height: 1.22;
}

h1 {
    font-size: clamp(36px, 7vw, 64px);
    margin: 18px 0 18px;
    letter-spacing: -.05em;
}

h2 {
    font-size: clamp(26px, 4.5vw, 42px);
    margin: 12px 0;
    letter-spacing: -.035em;
}

h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

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

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

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

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

.link-more {
    display: inline-flex;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 800;
}

.web3-dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 40px;
}

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

.hero-grid {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 28px;
    align-items: center;
}

.hero-copy {
    padding: 6px 0;
}

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

.security-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.security-tags span,
.tag-list span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    color: #4b5b70;
    font-size: 13px;
}

.hero-console {
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 18px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow);
}

.device-frame {
    position: relative;
    padding: 20px;
    border-radius: 26px;
    background: linear-gradient(145deg, #f7fbff, #eef6ff);
    border: 1px solid rgba(41,128,254,.12);
    overflow: hidden;
}

.device-frame img {
    width: min(360px, 100%);
    margin: 0 auto;
    filter: drop-shadow(0 22px 34px rgba(35, 88, 150, .16));
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

.status-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
}

.status-card strong {
    display: block;
    color: var(--deep);
}

.status-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.service-index,
.category-grid,
.risk-grid,
.faq-grid,
.card-grid {
    display: grid;
    gap: 16px;
}

.service-card,
.info-card,
.risk-card,
.faq-item,
.process-card,
.page-card,
.check-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 12px 36px rgba(35, 88, 150, .06);
}

.service-card {
    min-height: 188px;
}

.service-card .mini-label,
.mini-label {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 16px;
}

.split-panel,
.digital-assets-hub,
.web3-ecosystem-section,
.hardware-wallet-section,
.swap-service-section,
.submit-chain-section,
.developer-center-section {
    display: grid;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.hardware-wallet-section,
.privacy-boundary-section {
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
}

.panel-image {
    border-radius: 26px;
    background: linear-gradient(145deg, #f8fbff, #eef6ff);
    padding: 18px;
    border: 1px solid rgba(41,128,254,.12);
}

.panel-image img {
    margin: auto;
    max-height: 380px;
    object-fit: contain;
}

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

.feature-list li,
.clean-list li,
.check-list li {
    position: relative;
    padding-left: 26px;
    color: #4b5b70;
}

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

.privacy-boundary-section {
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 24px;
    display: grid;
    gap: 20px;
    box-shadow: var(--shadow);
}

.boundary-grid {
    display: grid;
    gap: 14px;
}

.boundary-item {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(41,128,254,.14);
    border-radius: 20px;
    padding: 18px;
}

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

.eco-list div,
.doc-entry {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    padding: 18px;
}

.code-panel {
    background: #1f2937;
    color: #dbeafe;
    border-radius: 24px;
    padding: 20px;
    overflow: hidden;
}

.code-panel code {
    display: block;
    color: #dbeafe;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 13px;
}

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

.process-card {
    position: relative;
}

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

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

.risk-card b {
    color: var(--deep);
}

.faq-item details {
    cursor: pointer;
}

.faq-item summary {
    font-weight: 800;
    color: var(--deep);
}

.faq-item p {
    margin-top: 12px;
}

.cta-section {
    text-align: center;
    padding: 52px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, #eef6ff, #ffffff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.page-layout {
    display: grid;
    gap: 24px;
    align-items: start;
    padding-bottom: 64px;
}

.page-main {
    display: grid;
    gap: 20px;
}

.page-card h2,
.check-card h2 {
    margin-top: 0;
}

.side-panel {
    display: grid;
    gap: 16px;
}

.note-panel {
    background: linear-gradient(135deg, #f7fbff, #ffffff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.download-area {
    margin-top: 18px;
}

.table-like {
    display: grid;
    gap: 12px;
}

.table-like div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

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

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

.site-footer h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    color: var(--muted);
    margin: 7px 0;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

@media (min-width: 640px) {
    .status-grid,
    .service-index,
    .category-grid,
    .risk-grid,
    .faq-grid,
    .card-grid,
    .boundary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .main-nav {
        position: static;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        width: auto;
    }

    .main-nav a {
        font-size: 14px;
        padding: 9px 10px;
    }

    .hero-grid {
        grid-template-columns: 1.02fr .98fr;
        gap: 42px;
    }

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

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

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

    .digital-assets-hub,
    .web3-ecosystem-section,
    .hardware-wallet-section,
    .swap-service-section,
    .submit-chain-section,
    .developer-center-section,
    .privacy-boundary-section {
        grid-template-columns: 1fr 1fr;
        padding: 34px;
    }

    .hardware-wallet-section .panel-image,
    .swap-service-section .panel-image {
        order: -1;
    }

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

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

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

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

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

@media (min-width: 1100px) {
    .main-nav a {
        padding: 9px 12px;
    }

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

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

@media (max-width: 420px) {
    .header-inner,
    .content-container,
    .section,
    .page-wrap,
    .hero-grid,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .download-btn {
        width: 100%;
    }

    .hero-actions .download-btn {
        width: auto;
        min-width: 168px;
    }

    .service-card,
    .info-card,
    .risk-card,
    .faq-item,
    .process-card,
    .page-card,
    .check-card {
        padding: 18px;
    }
}
