:root {
    --primary: #2980FE;
    --primary-dark: #1266dd;
    --primary-soft: #eef5ff;
    --blue-gray: #f4f8ff;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --line: #e4eaf2;
    --text: #263241;
    --muted: #66758a;
    --deep: #172033;
    --shadow: 0 18px 48px rgba(22, 44, 72, .09);
    --small-shadow: 0 10px 30px rgba(22, 44, 72, .07);
    --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, #f7fbff 0%, #ffffff 34%, #f7f9fc 100%);
    line-height: 1.75;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 16px; color: var(--muted); }
h1, h2, h3 { color: var(--deep); line-height: 1.18; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 9vw, 4.8rem); }
h2 { font-size: clamp(1.75rem, 6vw, 3rem); }
h3 { font-size: 1.2rem; }
main { min-height: 64vh; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(228,234,242,.78);
}
.header-inner {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--deep); }
.logo img { width: 38px; height: 38px; border-radius: 12px; object-fit: contain; }
.nav-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 14px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; }
.nav-toggle span { display: block; height: 2px; background: var(--deep); border-radius: 8px; }
.main-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--small-shadow);
}
.main-nav.open { display: grid; }
.main-nav a { padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 650; font-size: .95rem; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); background: var(--primary-soft); }

.container, .section, .page-container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 58px 0; }
.section-heading { display: grid; gap: 12px; margin-bottom: 26px; }
.section-heading.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.eyebrow, .badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid #d8e8ff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .86rem;
    font-weight: 750;
}
.kicker { color: var(--primary); font-weight: 750; }

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(41, 128, 254, .22);
    border: 1px solid var(--primary);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.download-btn:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 18px 34px rgba(41,128,254,.28); }

.app-hero {
    position: relative;
    padding: 52px 0 28px;
    overflow: hidden;
}
.app-hero:before {
    content: "";
    position: absolute;
    inset: -180px -30% auto auto;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(41,128,254,.18), rgba(41,128,254,0) 67%);
    pointer-events: none;
}
.hero-grid { display: grid; gap: 34px; align-items: center; }
.hero-copy { display: grid; gap: 18px; position: relative; z-index: 2; }
.hero-copy p { font-size: 1.05rem; max-width: 650px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 8px 12px; font-size: .9rem; }
.app-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.phone-stage {
    width: min(330px, 82vw);
    padding: 18px;
    border-radius: 38px;
    background: linear-gradient(145deg, #ffffff, #eef5ff);
    border: 1px solid #dfeaff;
    box-shadow: var(--shadow);
}
.phone-stage img { border-radius: 30px; margin: 0 auto; object-fit: contain; }
.floating-card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 13px 15px;
    box-shadow: var(--small-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--deep);
    font-weight: 750;
}
.floating-card small { display: block; color: var(--muted); font-weight: 600; }
.floating-card .dot, .mini-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: 0 0 10px; }
.float-1, .float-2, .float-3, .float-4 { margin-top: 10px; width: 100%; }

.ability-bar {
    display: grid;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--small-shadow);
}
.ability-item { padding: 16px; border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid #edf2f8; }
.ability-item strong { display: block; color: var(--deep); margin-bottom: 4px; }
.ability-item strong:before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 8px; }
.ability-item span { color: var(--muted); font-size: .94rem; }

.feature-showcase { display: grid; gap: 18px; }
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--small-shadow);
    display: grid;
    gap: 16px;
    overflow: hidden;
}
.feature-card img { width: 100%; max-height: 230px; object-fit: contain; background: var(--blue-gray); border-radius: 20px; padding: 12px; }
.text-link { color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.text-link:after { content: "→"; }

.product-section { display: grid; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 22px; box-shadow: var(--small-shadow); }
.product-section.alt, .cold-wallet-panel { background: linear-gradient(135deg, var(--blue-gray), #ffffff); }
.product-section .media-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 16px; box-shadow: var(--small-shadow); }
.product-section .media-card img { margin: 0 auto; max-height: 360px; object-fit: contain; }
.check-list, .soft-list { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.check-list li, .soft-list li { position: relative; padding-left: 28px; color: var(--text); }
.check-list li:before, .soft-list li:before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: inset 0 0 0 4px #ddecff; }
.split-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.process-steps { display: grid; gap: 14px; counter-reset: step; }
.step-card {
    counter-increment: step;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--small-shadow);
    position: relative;
}
.step-card:before { content: counter(step, decimal-leading-zero); display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 850; margin-bottom: 14px; }
.step-card h3 { margin-bottom: 8px; }

.risk-grid { display: grid; gap: 14px; }
.risk-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: 20px; padding: 18px; box-shadow: var(--small-shadow); }
.risk-card h3 { margin-bottom: 8px; }
.risk-card p { font-size: .95rem; }
.risk-card .suggest { display: block; color: var(--deep); font-weight: 750; margin-bottom: 8px; }

.ecosystem-grid, .category-grid { display: grid; gap: 14px; }
.eco-card, .category-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--small-shadow); }
.eco-card b, .category-card b { display: block; color: var(--deep); margin-bottom: 8px; font-size: 1.05rem; }

.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--small-shadow); }
.faq-item h3 { margin-bottom: 8px; }

.cta-section {
    margin: 58px auto 70px;
    width: min(1160px, calc(100% - 32px));
    text-align: center;
    border-radius: 32px;
    padding: 42px 20px;
    background: linear-gradient(135deg, #eaf3ff, #ffffff 54%, #f7fbff);
    border: 1px solid #dfeaff;
    box-shadow: var(--small-shadow);
}
.cta-section p { max-width: 680px; margin: 14px auto 22px; }

.page-hero { padding: 46px 0 26px; }
.page-hero-card { background: linear-gradient(135deg, #ffffff, #f1f7ff); border: 1px solid var(--line); border-radius: 30px; padding: 28px; box-shadow: var(--small-shadow); display: grid; gap: 14px; }
.page-hero-card h1 { font-size: clamp(2rem, 8vw, 3.6rem); }
.page-layout { width: min(1100px, calc(100% - 32px)); margin: 0 auto 70px; display: grid; gap: 22px; }
.content-panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--small-shadow); }
.content-panel h2 { font-size: clamp(1.45rem, 5vw, 2.2rem); margin: 0 0 14px; }
.content-panel h3 { margin: 22px 0 10px; }
.side-panel { display: grid; gap: 14px; align-content: start; }
.note-card, .guide-card, .mini-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--small-shadow);
}
.note-card { background: linear-gradient(180deg, #fff, #f8fbff); }
.note-card strong, .guide-card strong, .mini-panel strong { display: block; color: var(--deep); margin-bottom: 8px; }
.operation-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 18px 0; }
.operation-list li { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 16px; padding: 14px; }
.operation-list b { color: var(--primary); display: block; margin-bottom: 4px; }
.download-strip { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.download-strip p { margin-bottom: 14px; }

.download-page .download-steps { display: grid; gap: 12px; margin-top: 20px; }
.download-step { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.download-step b { color: var(--primary); margin-right: 8px; }

.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0; display: grid; gap: 28px; }
.footer-brand p { max-width: 480px; margin-top: 12px; }
.footer-links { display: grid; gap: 18px; }
.footer-links div { display: grid; gap: 8px; }
.footer-links strong { color: var(--deep); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; color: var(--muted); padding: 16px; font-size: .9rem; }

@media (min-width: 640px) {
    .ability-bar, .ecosystem-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-showcase { grid-template-columns: repeat(2, 1fr); }
    .risk-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .main-nav { position: static; display: flex; align-items: center; gap: 2px; padding: 0; border: 0; box-shadow: none; background: transparent; }
    .main-nav a { font-size: .94rem; }
    .app-hero { padding: 86px 0 48px; }
    .hero-grid { grid-template-columns: 1.02fr .98fr; }
    .app-visual { min-height: 540px; }
    .phone-stage { width: 360px; }
    .float-1, .float-2, .float-3, .float-4 { position: absolute; width: auto; margin: 0; }
    .float-1 { left: 0; top: 60px; }
    .float-2 { right: 0; top: 120px; }
    .float-3 { left: 22px; bottom: 130px; }
    .float-4 { right: 32px; bottom: 72px; }
    .ability-bar { grid-template-columns: repeat(5, 1fr); }
    .product-section { grid-template-columns: 1fr 1fr; padding: 34px; }
    .product-section.reverse .media-card { order: 2; }
    .risk-grid { grid-template-columns: repeat(3, 1fr); }
    .ecosystem-grid { grid-template-columns: repeat(4, 1fr); }
    .page-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
    .page-layout.wide { grid-template-columns: 1fr; }
    .content-panel { padding: 34px; }
    .footer-inner { grid-template-columns: 1.05fr 1.4fr; }
}

@media (min-width: 1120px) {
    .process-steps { grid-template-columns: repeat(3, 1fr); }
}
