/* Mobile-first responsive Web3 wallet official site */
:root {
    --primary: #2980FE;
    --primary-dark: #0F5EDB;
    --ink: #172033;
    --text: #334155;
    --muted: #64748B;
    --line: #E5EAF2;
    --soft: #F6F9FE;
    --softer: #EDF5FF;
    --white: #FFFFFF;
    --radius: 24px;
    --shadow: 0 18px 45px rgba(27, 71, 140, 0.10);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

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

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

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

p {
    margin: 0 0 16px;
}

ul, ol {
    margin: 0;
    padding-left: 22px;
}

li {
    margin: 7px 0;
}

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

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

.nav-shell {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

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

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

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

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
}

.site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

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

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

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

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

.section {
    padding: 66px 0;
}

.section-soft {
    background: linear-gradient(180deg, var(--soft), #ffffff);
}

.section-title {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-title.left {
    text-align: left;
    margin-left: 0;
}

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

h1, h2, h3 {
    color: var(--ink);
    line-height: 1.18;
    margin: 0;
    letter-spacing: -0.035em;
}

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

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

h3 {
    font-size: 20px;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    margin-top: 18px;
}

.gradient-bg {
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: "";
    position: absolute;
    inset: -120px -120px auto auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(41, 128, 254, .22), rgba(41, 128, 254, 0) 65%);
    pointer-events: none;
}

.web3-hero {
    padding: 70px 0 48px;
    position: relative;
}

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

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

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

.trust-tags,
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-tags span,
.hero-tags span,
.mini-tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-height: 420px;
    padding: 24px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(41, 128, 254, .16), rgba(255, 255, 255, .78)),
        #fff;
    border: 1px solid rgba(41, 128, 254, .18);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.app-frame {
    position: relative;
    z-index: 2;
    width: min(76%, 330px);
    margin: 10px auto 0;
    filter: drop-shadow(0 28px 42px rgba(23, 32, 51, .16));
}

.float-card {
    position: absolute;
    z-index: 3;
    max-width: 210px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(23, 32, 51, .10);
    padding: 12px 14px;
}

.float-card strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
}

.float-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.float-one { left: 18px; top: 28px; }
.float-two { right: 20px; top: 92px; }
.float-three { left: 22px; bottom: 96px; }
.float-four { right: 24px; bottom: 28px; }

.ecosystem-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.ecosystem-card,
.feature-card,
.risk-card,
.faq-item,
.info-card,
.step-card,
.panel-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 12px 32px rgba(27, 71, 140, .06);
}

.ecosystem-card {
    position: relative;
    overflow: hidden;
}

.ecosystem-card::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 18px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(41, 128, 254, .18), rgba(41, 128, 254, .04));
}

.ecosystem-card h3,
.feature-card h3,
.risk-card h3,
.info-card h3,
.step-card h3,
.panel-card h3 {
    margin-bottom: 10px;
}

.ecosystem-card p,
.feature-card p,
.risk-card p,
.info-card p,
.step-card p,
.panel-card p {
    color: var(--muted);
    margin-bottom: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 800;
}

.text-link::after {
    content: "→";
    margin-left: 6px;
}

.web3-section,
.hardware-wallet-section,
.digital-assets-section,
.swap-section,
.privacy-section,
.submit-chain-section,
.developer-center-section,
.product-section {
    display: grid;
    gap: 26px;
    align-items: center;
}

.service-visual {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.service-visual img {
    margin: 0 auto;
    border-radius: 22px;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 20px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    margin: 0;
    padding: 12px 14px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
}

.safety-panel {
    background: linear-gradient(135deg, #ffffff, #f1f7ff);
    border: 1px solid rgba(41, 128, 254, .18);
    border-radius: 30px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.safety-panel .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.submit-chain-section .panel-card,
.developer-center-section .panel-card {
    min-height: 100%;
}

.code-panel {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: #1e293b;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    overflow: auto;
}

.code-panel span {
    color: var(--primary);
}

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

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

.step-number {
    position: absolute;
    left: 20px;
    top: 22px;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    font-weight: 900;
}

.risk-grid,
.category-grid,
.info-grid,
.quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

.risk-label {
    display: inline-flex;
    color: var(--primary);
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

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

.faq-item h3 {
    margin-bottom: 8px;
}

.cta-section {
    text-align: center;
    background:
        radial-gradient(circle at 15% 15%, rgba(41, 128, 254, .16), transparent 30%),
        linear-gradient(135deg, #ffffff, #eef6ff);
    border-top: 1px solid var(--line);
}

.cta-box {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 22px;
    border-radius: 30px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(41,128,254,.16);
}

.site-footer {
    padding: 52px 0 24px;
    background: #111827;
    color: #CBD5E1;
}

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

.footer-brand {
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 36px;
    height: 36px;
}

.site-footer h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 28px;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #94A3B8;
    font-size: 13px;
}

.page-hero {
    padding: 64px 0 36px;
    background:
        radial-gradient(circle at 80% 0%, rgba(41,128,254,.15), transparent 30%),
        linear-gradient(180deg, #fff, #f6f9fe);
    border-bottom: 1px solid var(--line);
}

.page-hero .lead {
    max-width: 780px;
}

.content-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(27, 71, 140, .06);
}

.article-card h2 {
    font-size: 26px;
    margin: 10px 0 14px;
}

.aside-card {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 22px;
    position: sticky;
    top: 94px;
}

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

.download-wrap {
    margin-top: 22px;
}

.only-cta {
    margin-top: 28px;
}

@media (min-width: 620px) {
    .ecosystem-nav,
    .quick-grid,
    .risk-grid,
    .category-grid,
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (min-width: 920px) {
    .container {
        width: min(100% - 56px, 1180px);
    }

    .nav-toggle {
        display: none;
    }

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

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

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

    .web3-hero .hero-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
        gap: 56px;
    }

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

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

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

    .web3-section,
    .hardware-wallet-section,
    .digital-assets-section,
    .swap-section,
    .submit-chain-section,
    .developer-center-section,
    .product-section {
        grid-template-columns: 1fr 1fr;
        gap: 42px;
    }

    .privacy-section {
        grid-template-columns: .9fr 1.1fr;
        gap: 34px;
    }

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

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

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

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

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

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

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

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