:root {
    --primary: #2980FE;
    --primary-soft: #EAF3FF;
    --primary-soft-2: #F4F8FF;
    --bg: #F6F8FB;
    --card: #FFFFFF;
    --line: #E3E8F0;
    --text: #1F2937;
    --muted: #6B7280;
    --muted-2: #94A3B8;
    --deep: #111827;
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --shadow: 0 18px 50px rgba(22, 49, 94, .08);
    --shadow-soft: 0 10px 30px rgba(41, 128, 254, .10);
}

* { 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, #FFFFFF 0%, var(--bg) 42%, #FFFFFF 100%);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
main { min-height: 70vh; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, .86);
}
.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--deep); letter-spacing: -.02em; }
.brand-logo, .footer-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 12px; }
.brand-text { white-space: nowrap; }
.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;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--deep); border-radius: 2px; }
.site-nav {
    display: none;
    position: absolute;
    left: 16px; right: 16px; top: 78px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.site-nav.open { display: grid; gap: 4px; }
.site-nav a { padding: 10px 12px; color: var(--muted); border-radius: 12px; font-size: 15px; }
.site-nav a.active, .site-nav a:hover { color: var(--primary); background: var(--primary-soft); }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 54px 0; }
.section-title { margin: 0 0 12px; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.16; letter-spacing: -.04em; color: var(--deep); }
.section-lead { margin: 0 0 26px; color: var(--muted); max-width: 760px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-weight: 700; font-size: 13px; }
.kicker { font-size: 13px; color: var(--primary); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.download-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 22px;
    color: #fff; background: var(--primary); border-radius: 999px;
    font-weight: 800; box-shadow: 0 14px 32px rgba(41, 128, 254, .25);
    transition: transform .18s ease, box-shadow .18s ease;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(41, 128, 254, .32); }
.text-link { color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "→"; }

.web3-dashboard-hero {
    position: relative;
    padding: 48px 0 40px;
    overflow: hidden;
}
.web3-dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 460px;
    background: radial-gradient(circle at 20% 10%, rgba(41, 128, 254, .18), transparent 34%), radial-gradient(circle at 85% 20%, rgba(41, 128, 254, .12), transparent 30%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 28px; align-items: center; }
.hero-copy h1 { margin: 16px 0; font-size: clamp(38px, 9vw, 72px); line-height: 1.04; color: var(--deep); letter-spacing: -.06em; }
.hero-copy p { margin: 0 0 22px; color: var(--muted); font-size: 17px; max-width: 650px; }
.security-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.security-tags span { padding: 8px 12px; border: 1px solid var(--line); background: #fff; border-radius: 999px; color: var(--muted); font-size: 13px; }
.hero-console {
    position: relative;
    background: linear-gradient(145deg, #fff, #F4F8FF);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
}
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.console-state { color: var(--primary); font-weight: 800; font-size: 13px; }
.product-visual { background: #fff; border-radius: 26px; padding: 18px; border: 1px solid var(--line); min-height: 230px; display: grid; place-items: center; }
.status-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.status-card { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.status-card strong { display: block; color: var(--deep); }
.status-card span { color: var(--muted); font-size: 13px; }

.service-index { padding: 22px 0 42px; }
.index-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.service-grid, .category-grid { display: grid; gap: 14px; }
.service-card, .info-card, .risk-card, .faq-item, .step-card, .mini-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}
.service-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 184px; }
.service-card .label { width: fit-content; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; }
.service-card h3, .info-card h3 { margin: 0; color: var(--deep); font-size: 20px; }
.service-card p, .info-card p, .mini-card p, .risk-card p, .step-card p { margin: 0; color: var(--muted); }

.module-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 22px;
    display: grid;
    gap: 24px;
    align-items: center;
}
.module-card.alt { background: linear-gradient(135deg, var(--primary-soft-2), #fff); }
.module-copy h2 { margin: 10px 0 12px; font-size: clamp(26px, 5vw, 42px); line-height: 1.18; color: var(--deep); letter-spacing: -.04em; }
.module-copy p { margin: 0 0 18px; color: var(--muted); }
.module-points { display: grid; gap: 10px; padding: 0; margin: 0 0 18px; list-style: none; }
.module-points li { display: flex; gap: 10px; color: var(--text); }
.module-points li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 11px; border-radius: 50%; background: var(--primary); }
.module-image { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 16px; display: grid; place-items: center; }
.web3-ecosystem-section .module-card { background: linear-gradient(135deg, #fff, #F7FAFF); }
.hardware-wallet-section { background: linear-gradient(180deg, transparent, #F4F8FF, transparent); }
.privacy-boundary-section .privacy-panel, .submit-chain-section .submit-panel, .developer-center-section .developer-panel {
    border-radius: var(--radius-lg);
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
}
.boundary-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.boundary-tags span { padding: 8px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 13px; }
.panel-grid { display: grid; gap: 14px; }
.info-card, .mini-card { padding: 18px; }
.code-panel { background: #F8FAFC; border: 1px solid #DCE6F2; border-radius: 22px; padding: 18px; color: #334155; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; overflow: auto; }
.code-panel span { color: var(--primary); }

.process-steps { display: grid; gap: 14px; counter-reset: steps; }
.step-card { padding: 18px; position: relative; overflow: hidden; }
.step-card .step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: #fff; background: var(--primary); font-weight: 900; margin-bottom: 12px; }
.risk-grid { display: grid; gap: 14px; }
.risk-card { padding: 18px; border-left: 4px solid var(--primary); }
.risk-card h3 { margin: 0 0 8px; color: var(--deep); }
.risk-card .suggest { margin-top: 10px; color: var(--primary); font-weight: 800; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; }
.faq-item h3 { margin: 0 0 8px; color: var(--deep); }
.faq-item p { margin: 0; color: var(--muted); }
.cta-section { padding: 56px 0 72px; }
.cta-card { text-align: center; border-radius: var(--radius-lg); padding: 34px 20px; background: linear-gradient(135deg, #F4F8FF, #FFFFFF); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.cta-card h2 { margin: 0 0 12px; color: var(--deep); font-size: clamp(26px, 5vw, 42px); }
.cta-card p { margin: 0 auto 22px; color: var(--muted); max-width: 720px; }

.page-hero { padding: 48px 0 28px; }
.page-head {
    border-radius: var(--radius-lg);
    padding: 28px;
    background: linear-gradient(135deg, #fff, #F4F8FF);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.page-head h1 { margin: 14px 0 12px; color: var(--deep); font-size: clamp(32px, 7vw, 56px); line-height: 1.1; letter-spacing: -.05em; }
.page-head p { margin: 0; color: var(--muted); max-width: 820px; }
.content-layout { display: grid; gap: 20px; align-items: start; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.article-card h2 { color: var(--deep); margin-top: 0; }
.article-card p { color: var(--muted); }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; position: sticky; top: 96px; }
.check-list, .number-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li, .number-list li { padding: 12px 14px; border-radius: 14px; background: #F8FAFC; border: 1px solid var(--line); color: var(--text); }
.number-list { counter-reset: page-steps; }
.number-list li { counter-increment: page-steps; display: flex; gap: 10px; }
.number-list li::before { content: counter(page-steps); width: 24px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center; flex: 0 0 24px; color: #fff; background: var(--primary); font-weight: 800; font-size: 12px; }
.download-inline { margin-top: 22px; }
.faq-page { display: grid; gap: 14px; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; gap: 20px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--primary); }

@media (min-width: 640px) {
    .service-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .risk-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; }
    .site-nav { position: static; display: flex; align-items: center; gap: 2px; padding: 0; border: 0; box-shadow: none; background: transparent; }
    .site-nav a { font-size: 14px; padding: 8px 10px; }
    .hero-grid { grid-template-columns: .95fr 1.05fr; gap: 34px; }
    .web3-dashboard-hero { padding: 76px 0 54px; }
    .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .service-grid .wide { grid-column: span 2; }
    .module-card { grid-template-columns: 1.05fr .95fr; padding: 32px; }
    .module-card.reverse { grid-template-columns: .92fr 1.08fr; }
    .module-card.reverse .module-copy { order: 2; }
    .module-card.reverse .module-image { order: 1; }
    .panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .submit-panel { grid-template-columns: .9fr 1.1fr; }
    .developer-panel { grid-template-columns: 1fr 1fr; }
    .content-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-shell { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1120px) {
    .site-nav a { padding: 9px 12px; }
}
