:root {
    --primary: #2980FE;
    --primary-dark: #1164d8;
    --text: #1f2937;
    --muted: #667085;
    --line: #e5eaf3;
    --soft: #f5f8fc;
    --soft-blue: #eef6ff;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(41, 128, 254, 0.10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

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, #f8fbff 0%, #ffffff 34%, #f6f9fd 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: 50;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

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

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

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

.nav-toggle {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
}

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

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

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

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

.section,
.page-section {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.page-section.narrow {
    width: min(920px, calc(100% - 32px));
}

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

h1,
h2,
h3 {
    margin: 0 0 14px;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(34px, 9vw, 64px);
}

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

h3 {
    font-size: 20px;
}

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

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

.section-title {
    max-width: 760px;
    margin-bottom: 22px;
}

.gradient-bg {
    background:
        radial-gradient(circle at 12% 12%, rgba(41,128,254,0.12), transparent 32%),
        radial-gradient(circle at 90% 18%, rgba(41,128,254,0.08), transparent 30%);
}

.web3-dashboard-hero {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 38px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.hero-copy {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(229,234,243,0.9);
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.hero-copy h1 {
    margin-top: 16px;
}

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

.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: 850;
    border: 1px solid var(--primary);
    box-shadow: 0 12px 26px rgba(41,128,254,0.24);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.safe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.safe-tags span,
.tag {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f3f7fb;
    color: #475467;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
}

.hero-panel {
    position: relative;
    display: grid;
    gap: 14px;
}

.device-card {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.device-card img {
    margin: 0 auto;
    max-height: 430px;
    object-fit: contain;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

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

.status-card strong {
    display: block;
    color: #1d2939;
    margin-bottom: 4px;
}

.status-card span {
    color: var(--muted);
    font-size: 13px;
}

.service-index {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.service-card,
.info-card,
.risk-card,
.faq-item,
.step-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.service-card small {
    color: var(--primary);
    font-weight: 850;
}

.service-card a,
.text-link,
.card-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 850;
}

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

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

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

.feature-list li,
.check-list li,
.clean-list li {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    color: #475467;
}

.feature-list li::before,
.check-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: 900;
    margin-right: 8px;
}

.module-image {
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    border: 1px solid var(--line);
    border-radius: 28px;
}

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

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

.boundary-grid,
.category-grid,
.risk-grid,
.faq-grid,
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.boundary-item {
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
}

.dev-console {
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #344054;
}

.dev-console code {
    display: block;
    padding: 9px 0;
    border-bottom: 1px dashed #d8e0ea;
    white-space: normal;
}

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

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

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

.risk-card b {
    color: #1d2939;
}

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

.page-hero {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 18px;
}

.page-layout {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 58px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.article-card h2 {
    font-size: clamp(22px, 4vw, 32px);
    margin-top: 24px;
}

.article-card h2:first-child {
    margin-top: 0;
}

.side-panel,
.safety-panel {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 22px;
    align-self: start;
    position: sticky;
    top: 96px;
}

.side-panel a {
    display: block;
    padding: 10px 0;
    color: var(--primary);
    font-weight: 800;
}

.download-row {
    margin-top: 24px;
}

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

.faq-item h2,
.faq-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.site-footer {
    background: #f2f6fb;
    border-top: 1px solid var(--line);
    margin-top: 20px;
}

.footer-grid {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
}

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

.site-footer a {
    display: block;
    color: #475467;
    padding: 5px 0;
}

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

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

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

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

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

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

    .main-nav a {
        padding: 9px 10px;
        white-space: nowrap;
    }

    .web3-dashboard-hero {
        grid-template-columns: 1.02fr 0.98fr;
        padding: 76px 0 52px;
    }

    .hero-copy {
        padding: 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 {
        grid-template-columns: 1fr 1fr;
        padding: 34px;
    }

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

    .privacy-boundary-section {
        grid-template-columns: 0.9fr 1.1fr;
        padding: 34px;
    }

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

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

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

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

    .article-card {
        padding: 34px;
    }
}

@media (max-width: 380px) {
    .section,
    .page-section,
    .page-layout,
    .page-hero,
    .web3-dashboard-hero,
    .header-inner,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1160px);
    }

    .hero-copy,
    .article-card,
    .digital-assets-hub,
    .web3-ecosystem-section,
    .hardware-wallet-section,
    .swap-service-section,
    .privacy-boundary-section,
    .submit-chain-section,
    .developer-center-section {
        padding: 20px;
        border-radius: 22px;
    }

    .download-btn {
        width: 100%;
    }
}
