:root {
    --primary: #2980FE;
    --primary-soft: #EAF3FF;
    --primary-lighter: #F5F9FF;
    --white: #ffffff;
    --bg: #F6F8FC;
    --surface: #ffffff;
    --surface-2: #F9FBFF;
    --line: #E5EAF2;
    --text: #172033;
    --muted: #667085;
    --muted-2: #8A94A6;
    --dark: #1F2937;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow: 0 18px 55px rgba(23, 32, 51, 0.08);
    --shadow-soft: 0 10px 28px rgba(41, 128, 254, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.75;
    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, 0.92);
    border-bottom: 1px solid rgba(229, 234, 242, 0.86);
    backdrop-filter: blur(18px);
}

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

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

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

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

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

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

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

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

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--dark);
    border-radius: 999px;
}

main {
    background:
        radial-gradient(circle at top left, rgba(41, 128, 254, 0.12), transparent 28rem),
        linear-gradient(180deg, #FFFFFF 0%, #F6F8FC 26%, #FFFFFF 100%);
}

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

.section,
.home-section {
    padding: 54px 0;
}

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

.kicker::before,
.category-badge::before,
.panel-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(41, 128, 254, 0.14);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.22;
    letter-spacing: -0.03em;
    color: var(--text);
}

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

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

h3 {
    font-size: 20px;
}

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

.lead {
    font-size: 17px;
    color: #4A5568;
}

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

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(41, 128, 254, 0.32);
    background: #1F73EA;
}

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

.text-link:hover,
.more-link:hover {
    text-decoration: underline;
}

.web3-dashboard-hero {
    padding: 48px 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 20px;
}

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

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

.hero-visual {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(245,249,255,0.92));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(41, 128, 254, 0.16);
}

.product-visual {
    position: relative;
    width: min(330px, 82%);
    margin: 0 auto;
    z-index: 1;
    filter: drop-shadow(0 24px 38px rgba(23, 32, 51, 0.12));
}

.status-panel {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.status-card {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
}

.status-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
}

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

.status-card span:last-child,
.status-card small {
    color: var(--muted-2);
    font-size: 12px;
}

.section-heading {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin-bottom: 26px;
}

.section-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

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

.service-card,
.info-card,
.risk-card,
.faq-item,
.step-card,
.feature-card,
.check-card,
.related-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.04);
}

.service-card {
    padding: 20px;
    display: grid;
    gap: 12px;
}

.service-card .number {
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
}

.service-card p {
    min-height: 52px;
}

.module-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.module-card.alt {
    background: linear-gradient(135deg, #FFFFFF, var(--primary-lighter));
}

.module-copy {
    display: grid;
    gap: 16px;
}

.module-copy ul,
.page-content ul,
.page-content ol,
.sidebar-card ul,
.check-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.module-copy li,
.page-content li,
.sidebar-card li,
.check-list li {
    margin: 8px 0;
}

.module-image {
    min-height: 220px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, #EEF5FF, #FFFFFF);
    border: 1px solid var(--line);
    overflow: hidden;
}

.module-image img {
    max-height: 340px;
    object-fit: contain;
}

.privacy-boundary-section .boundary-grid,
.submit-chain-section .submit-grid,
.developer-center-section .developer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.info-card,
.check-card,
.related-card {
    padding: 22px;
    display: grid;
    gap: 12px;
}

.info-card.highlight {
    border-left: 5px solid var(--primary);
    background: linear-gradient(135deg, #FFFFFF, #F5F9FF);
}

.code-panel {
    padding: 22px;
    border-radius: 26px;
    background: #F8FAFE;
    border: 1px solid var(--line);
    color: var(--dark);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    overflow: hidden;
}

.code-panel .line {
    display: block;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(229, 234, 242, 0.9);
}

.code-panel .blue {
    color: var(--primary);
    font-weight: 800;
}

.process-steps,
.risk-grid,
.faq-grid,
.category-grid,
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.step-card {
    padding: 20px;
    display: grid;
    gap: 10px;
    position: relative;
}

.step-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}

.risk-card {
    padding: 20px;
    border-top: 4px solid var(--primary);
    display: grid;
    gap: 10px;
}

.risk-card strong {
    color: var(--text);
}

.faq-item {
    padding: 20px;
}

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

.cta-section {
    padding: 54px 0 70px;
}

.cta-card {
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
    padding: 36px 22px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #FFFFFF 0%, #EEF5FF 100%);
    box-shadow: var(--shadow-soft);
}

.page-hero {
    padding: 46px 0 24px;
}

.page-hero-inner {
    display: grid;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F9FF 100%);
    box-shadow: var(--shadow-soft);
}

.page-layout {
    padding: 26px 0 66px;
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

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

.content-panel,
.sidebar-card,
.guide-panel,
.safety-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.04);
}

.content-panel h2,
.guide-panel h2,
.safety-panel h2 {
    margin-bottom: 10px;
    font-size: 26px;
}

.sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
}

.sidebar-card h3 {
    margin-bottom: 10px;
}

.download-panel {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.download-steps {
    counter-reset: step;
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.download-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.download-steps li::before {
    content: counter(step);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

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

.footer-brand {
    display: grid;
    gap: 14px;
}

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

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.footer-links h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
}

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

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

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

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

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

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

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

    .web3-dashboard-hero {
        padding: 76px 0 44px;
    }

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

    .hero-visual {
        padding: 28px;
    }

    .section,
    .home-section {
        padding: 72px 0;
    }

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

    .service-card.large {
        grid-column: span 2;
    }

    .module-card {
        grid-template-columns: 1.05fr 0.95fr;
        padding: 36px;
    }

    .module-card.reverse {
        grid-template-columns: 0.95fr 1.05fr;
    }

    .module-card.reverse .module-image {
        order: -1;
    }

    .privacy-boundary-section .boundary-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .submit-chain-section .submit-grid {
        grid-template-columns: 0.95fr 1.05fr;
    }

    .developer-center-section .developer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .page-hero {
        padding: 64px 0 30px;
    }

    .page-hero-inner {
        padding: 38px;
        grid-template-columns: 1fr auto;
        align-items: end;
    }

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

    .page-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1.25fr;
        align-items: start;
    }

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

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

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

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

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

    .download-btn {
        width: 100%;
    }

    .hero-tags span,
    .inline-tags span,
    .meta-tags span {
        font-size: 12px;
    }

    .module-card,
    .page-hero-inner,
    .content-panel,
    .sidebar-card,
    .guide-panel,
    .safety-panel {
        padding: 18px;
    }
}
