* {
    box-sizing: border-box;
}

:root {
    --primary: #2980FE;
    --primary-soft: #EAF3FF;
    --primary-lighter: #F4F9FF;
    --white: #FFFFFF;
    --surface: #F7F9FC;
    --surface-2: #EEF4FB;
    --line: #DDE6F0;
    --text: #1D2B3A;
    --muted: #647386;
    --deep: #142033;
    --shadow: 0 18px 45px rgba(29, 43, 58, 0.08);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 38%, #F6F8FC 100%);
    color: var(--text);
    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: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(221, 230, 240, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.section,
.web3-dashboard-hero {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--deep);
}

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

.nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--deep);
    font-size: 22px;
}

.site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    grid-template-columns: 1fr;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

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

.site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

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

main {
    min-height: 70vh;
}

.web3-dashboard-hero {
    display: grid;
    gap: 28px;
    padding: 54px 0 28px;
}

.hero-copy,
.hero-console,
.section-card,
.service-card,
.safety-panel,
.faq-item,
.page-hero,
.page-main-card,
.side-card,
.cta-section,
.download-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -80px -110px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(41, 128, 254, 0.18), rgba(41, 128, 254, 0));
}

.eyebrow,
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    color: var(--deep);
    line-height: 1.2;
}

h1 {
    margin-top: 18px;
    font-size: clamp(34px, 8vw, 62px);
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(26px, 5vw, 40px);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 20px;
}

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

.hero-copy p {
    font-size: 18px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(41, 128, 254, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(41, 128, 254, 0.3);
}

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

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

.security-tags span,
.tag-list span,
.mini-tags span {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--primary-lighter);
    color: var(--deep);
    font-size: 13px;
    font-weight: 700;
}

.hero-console {
    padding: 20px;
    display: grid;
    gap: 14px;
    background: linear-gradient(145deg, #FFFFFF 0%, #F1F7FF 100%);
}

.product-frame {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: 22px;
    background: linear-gradient(150deg, #F4F9FF, #FFFFFF);
    display: grid;
    place-items: center;
    padding: 22px;
}

.product-frame img {
    max-height: 340px;
    object-fit: contain;
    filter: drop-shadow(0 24px 42px rgba(20, 32, 51, 0.18));
}

.status-grid,
.service-index,
.category-grid,
.risk-grid,
.faq-summary,
.info-grid,
.check-grid {
    display: grid;
    gap: 16px;
}

.status-card,
.index-card,
.info-card,
.check-card,
.risk-card,
.step-card,
.doc-entry,
.matrix-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    padding: 18px;
}

.status-card strong,
.index-card strong,
.info-card strong,
.check-card strong,
.risk-card strong,
.step-card strong,
.doc-entry strong,
.matrix-card strong {
    display: block;
    color: var(--deep);
    margin-bottom: 6px;
}

.status-card small,
.index-card small,
.info-card small,
.check-card small,
.doc-entry small {
    color: var(--muted);
}

.section {
    padding: 34px 0;
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.section-card {
    padding: 24px;
    overflow: hidden;
}

.service-index {
    grid-template-columns: 1fr;
}

.index-card {
    position: relative;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.index-card::before {
    content: attr(data-code);
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

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

.digital-assets-hub,
.web3-ecosystem-section,
.hardware-wallet-section,
.swap-service-section,
.submit-chain-section,
.developer-center-section {
    display: grid;
    gap: 22px;
    align-items: center;
}

.digital-assets-hub {
    background: linear-gradient(135deg, #FFFFFF 0%, #F4F9FF 100%);
}

.web3-ecosystem-section {
    background: var(--white);
}

.hardware-wallet-section {
    background: linear-gradient(135deg, #F5F8FC 0%, #FFFFFF 100%);
}

.swap-service-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F7FAFD 100%);
}

.module-image {
    border-radius: 24px;
    padding: 20px;
    background: var(--primary-lighter);
    border: 1px solid var(--line);
}

.module-image img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
}

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

.feature-list li,
.check-list li,
.clean-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}

.feature-list li::before,
.check-list li::before,
.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
}

.privacy-boundary-section {
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #F3F8FF, #FFFFFF);
    border: 1px solid var(--line);
}

.boundary-layout,
.eco-layout,
.dev-layout,
.content-layout,
.download-layout {
    display: grid;
    gap: 20px;
}

.safety-panel {
    padding: 22px;
    border-left: 5px solid var(--primary);
}

.boundary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.boundary-pills span {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--deep);
    font-weight: 700;
}

.eco-list,
.dev-docs {
    display: grid;
    gap: 12px;
}

.dev-terminal {
    border-radius: 22px;
    overflow: hidden;
    background: #15233A;
    color: #E9F2FF;
    border: 1px solid rgba(41, 128, 254, 0.18);
}

.dev-terminal .bar {
    display: flex;
    gap: 7px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.dev-terminal .bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E9F2FF;
    opacity: 0.72;
}

.dev-terminal pre {
    margin: 0;
    padding: 22px;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.7;
}

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

.step-card {
    position: relative;
    padding-left: 64px;
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-weight: 900;
}

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

.risk-card em {
    display: block;
    margin-top: 10px;
    color: var(--deep);
    font-style: normal;
    font-weight: 800;
}

.faq-item {
    padding: 20px;
}

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

.cta-section {
    text-align: center;
    padding: 34px 22px;
    background: linear-gradient(135deg, #FFFFFF 0%, #EEF6FF 100%);
}

.site-footer {
    margin-top: 40px;
    padding: 36px 0 20px;
    background: #F1F5FA;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    gap: 22px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
}

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

.footer-bottom {
    width: min(1120px, calc(100% - 32px));
    margin: 22px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.page-hero {
    width: min(1000px, calc(100% - 32px));
    margin: 38px auto 22px;
    padding: 28px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F2F8FF 100%);
}

.page-hero h1 {
    font-size: clamp(32px, 7vw, 52px);
}

.page-wrap {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 24px;
}

.content-layout {
    align-items: start;
}

.page-main-card,
.side-card,
.download-panel {
    padding: 24px;
}

.side-card {
    position: sticky;
    top: 94px;
}

.reading-grid {
    display: grid;
    gap: 16px;
}

.note-box {
    border-radius: 18px;
    padding: 18px;
    background: var(--primary-lighter);
    border: 1px solid var(--line);
}

.download-layout {
    width: min(1000px, calc(100% - 32px));
    margin: 38px auto;
}

.download-panel {
    text-align: center;
}

.large-number {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-weight: 900;
    margin-bottom: 10px;
}

@media (min-width: 620px) {
    .service-index,
    .status-grid,
    .category-grid,
    .check-grid,
    .faq-summary,
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .risk-grid {
        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;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

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

    .web3-dashboard-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
        padding-top: 74px;
    }

    .hero-copy {
        padding: 42px;
    }

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

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

    .index-card:nth-child(1),
    .index-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,
    .boundary-layout,
    .eco-layout,
    .dev-layout,
    .download-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .web3-ecosystem-section .module-image,
    .hardware-wallet-section .module-image {
        order: -1;
    }

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

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

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

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

    .footer-inner {
        grid-template-columns: 1.3fr 0.7fr;
        align-items: start;
    }
}

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