/* =========================================================
   TOPlayer · 高阶玩家 — Home V1
   Turborepo-style: pure black · pink→blue gradient · bold type
   · terminal CLI · benchmark bars. Mapped to a high-performance
   strategy/execution engine. Original content & styles.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Aboreto&display=swap');

:root {
    --bg: #000000;
    --bg-2: #0a0a0a;
    --panel: #0e0e10;
    --panel-2: #141417;
    --border: rgba(255, 255, 255, 0.09);
    --border-2: rgba(255, 255, 255, 0.16);

    --text: #ededed;
    --muted: #a0a0a5;
    --dim: #6e6e75;

    --pink: #BCFF2F;
    --violet: #a3e635;
    --blue: #84cc16;
    --grad: linear-gradient(120deg, #d4ff5a 0%, #BCFF2F 50%, #9ae600 100%);
    --grad-soft: rgba(188, 255, 47, 0.14);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    --maxw: 1120px;
    --nav-h: 60px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'PingFang SC', 'Microsoft YaHei', sans-serif;
    --mono: 'SFMono-Regular', ui-monospace, 'JetBrains Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(188, 255, 47, 0.35); color: #0a1400; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* glow */
.glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow::before {
    content: ''; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 520px;
    background: radial-gradient(460px 280px at 50% 0%, rgba(188,255,47,.20), transparent 70%),
                radial-gradient(420px 260px at 30% 10%, rgba(154,230,0,.16), transparent 70%),
                radial-gradient(440px 260px at 72% 12%, rgba(132,204,22,.16), transparent 72%);
    filter: blur(6px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 20px; border-radius: 999px;
    font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease;
    white-space: nowrap;
}
.btn-primary { background: #BCFF2F; color: #0a1400; }
.btn-primary:hover { background: #cbff5a; transform: translateY(-1px); }
.btn-secondary { background: var(--panel-2); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { background: #1c1c20; }
.btn-grad { position: relative; background: var(--bg); color: #fff; border: none; }
.btn-grad::before { content: ''; position: absolute; inset: 0; padding: 1px; border-radius: 999px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.btn-grad:hover { background: #0a0a0a; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
    background: rgba(0,0,0,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.nav.scrolled { border-color: var(--border); }
.nav-bar { height: var(--nav-h); display: flex; align-items: center; gap: 6px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.brand-mark { width: 25px; height: 25px; flex-shrink: 0; border-radius: 7px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.brand-cn { color: var(--dim); font-size: 12px; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; margin-left: 16px; }
.nav-links a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: 14px; color: var(--muted); border-radius: 7px; transition: color .15s ease, background .15s ease; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.github-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 8px; font-size: 13px; color: var(--text); }
.github-btn:hover { background: var(--panel-2); }
.github-btn .star { color: var(--muted); }
.nav-right .tlink { font-size: 14px; color: var(--muted); padding: 0 8px; height: 32px; display: inline-flex; align-items: center; }
.nav-right .tlink:hover { color: var(--text); }
.nav-right .btn { height: 34px; }
.nav-toggle { display: none; margin-left: auto; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); width: 38px; height: 38px; border-radius: 9px; font-size: 16px; cursor: pointer; }
.nav-mobile { display: none; padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 11px 6px; color: var(--muted); font-size: 14.5px; border-radius: 8px; }
.nav-mobile a:hover { color: var(--text); background: var(--panel-2); }
.nav-mobile .row { display: flex; gap: 8px; margin-top: 10px; }
.nav-mobile .row .btn { flex: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 132px 0 70px; text-align: center; }
.hero .container { position: relative; z-index: 1; }
.announce { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); position: relative; background: var(--bg); }
.announce::before { content: ''; position: absolute; inset: 0; padding: 1px; border-radius: 999px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.announce b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.hero h1 { margin-top: 26px; font-size: clamp(44px, 8vw, 92px); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; }
.hero p.sub { margin: 24px auto 0; max-width: 560px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* terminal */
.term { max-width: 540px; margin: 38px auto 0; border: 1px solid var(--border); border-radius: var(--radius); background: #0c0c0e; overflow: hidden; text-align: left; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.term-top { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.term-top .d { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2e; }
.term-top .t { margin-left: 8px; font-size: 11px; color: var(--dim); font-family: var(--mono); }
.term-body { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-family: var(--mono); font-size: 14px; }
.term-body .pr { color: var(--pink); }
.term-body code { color: var(--text); flex: 1; }
.term-body .copy { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 14px; transition: color .15s ease; }
.term-body .copy:hover { color: var(--text); }

/* hero product shots (3 parallel cards) */
.hero-shots { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; text-align: left; }
.shot { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: 0 24px 60px rgba(0,0,0,.5); overflow: hidden; }
.shot.center { transform: none; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.shot-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #2a2a30; }
.shot-bar .t { margin-left: 6px; font-size: 13px; color: var(--dim); font-family: var(--mono); }
.shot-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }

/* hero-shots: record entry (记一笔) */
.rec { display: grid; gap: 8px; }
.rec-f { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; }
.rec-f .rl { font-size: 12px; color: var(--dim); }
.rec-f .ri { font-size: 12.5px; font-family: var(--mono); color: var(--text); border: 1px solid var(--border); border-radius: 7px; background: var(--bg-2); padding: 7px 9px; }
.rec-f .ri.up { color: #ff5a6e; }
.rec-f .ri.down { color: #4ade80; }
.rec-f .ri .in { color: #ff5a6e; }
.rec-f .ri .out { color: #4ade80; }
.rec-f .ri .sep { color: var(--dim); margin: 0 6px; }
.rec-save { margin-top: 20px; height: 44px; border: none; border-radius: 8px; background: var(--grad); color: #000; font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* hero-shots: record analysis (记录分析) */
.ana { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ana-kpi { border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2); padding: 11px; }
.ana-kpi .l { font-size: 12px; color: var(--dim); }
.ana-kpi .v { font-size: 18px; font-weight: 800; margin-top: 4px; font-family: var(--mono); }
.ana-kpi .v.up { color: #ff5a6e; }
.ana-kpi .v.down { color: #4ade80; }
.ana-bar { margin-top: 10px; height: 8px; border-radius: 6px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--border); }
.ana-bar > i { display: block; height: 100%; width: 58%; background: var(--grad); }
.ana-note { margin-top: 7px; font-size: 10.5px; color: var(--dim); }

/* hero-shots: cable list (缆法列表) */
.cable { display: grid; gap: 8px; }
.cable-i { border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2); padding: 9px 11px; }
.cable-i .cn { font-size: 13px; font-weight: 600; }
.cable-i .cm { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--dim); }
.cable-i .cm .cv { font-family: var(--mono); color: #d9ff8a; }
.cable-i .cm .rk { color: var(--muted); }
.cable-i .cm b { color: #ff708f; font-weight: 700; }
.scard { border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2); padding: 9px; margin-bottom: 8px; }
.scard:last-child { margin-bottom: 0; }
.scard .st { font-size: 12px; font-weight: 500; }
.scard .sm { font-size: 10.5px; color: var(--dim); margin-top: 5px; display: flex; gap: 6px; align-items: center; }
.sdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.skpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.skpi { border: 1px solid var(--border); border-radius: 9px; padding: 10px; background: var(--bg-2); }
.skpi .l { font-size: 10.5px; color: var(--dim); }
.skpi .v { font-size: 16px; font-weight: 700; margin-top: 3px; }
.skpi .v.up { color: #4ade80; }
.sarea { height: 72px; border: 1px solid var(--border); border-radius: 9px; background: linear-gradient(180deg, rgba(188,255,47,.18), transparent); position: relative; overflow: hidden; }
.sarea svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ssig { border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2); padding: 10px 12px; margin-bottom: 8px; }
.ssig:last-child { margin-bottom: 0; }
.ssig .l { font-size: 10.5px; color: var(--dim); }
.ssig .v { font-size: 17px; font-weight: 700; margin-top: 3px; }
.ssig .v.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .hero-shots { grid-template-columns: 1fr; } }

/* ---------- Section ---------- */
.section { position: relative; padding: 88px 0; }
.section-head { max-width: 700px; }
.section-head.center { margin: 0 auto; text-align: center; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title { margin-top: 14px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------- Benchmark ---------- */
.bench-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); padding: 30px; }
.bench { display: grid; gap: 16px; }
.brow { display: grid; grid-template-columns: 120px 1fr 86px; gap: 16px; align-items: center; }
.brow .bl { font-size: 13.5px; color: var(--muted); }
.brow .bl.win { color: var(--text); font-weight: 600; }
.btrack { height: 34px; background: var(--panel-2); border-radius: 8px; overflow: hidden; }
.bbar { height: 100%; width: 0; border-radius: 8px; background: #2a2a30; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.bbar.win { background: var(--grad); }
.bbar.mute { background: #1e1e22; }

/* metric tabs */
.metric-tabs { display: flex; width: fit-content; margin: 0 auto 22px; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); }
.mtab { border: none; background: none; color: var(--muted); font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: color .15s ease, background .15s ease; }
.mtab:hover { color: var(--text); }
.mtab.active { color: #fff; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border-2); }
@media (max-width: 560px) { .metric-tabs { width: auto; } .mtab { flex: 1; padding: 8px 10px; } }
.brow .bt { font-size: 13px; color: var(--muted); font-family: var(--mono); text-align: right; }
.brow .bt.win { color: var(--text); font-weight: 600; }
.bench-note { margin-top: 18px; font-size: 12.5px; color: var(--dim); }

/* grouped comparison metrics */
.metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.metric { padding: 24px; }
.metric .bench { gap: 14px; }
.metric .brow { grid-template-columns: 96px 1fr 44px; gap: 12px; }
.metric .btrack { height: 26px; }
.metric-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.metric-h .mt { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.metric-h .mt i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 14px; }
.metric-h .uplift { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: var(--grad-soft); border: 1px solid rgba(188,255,47,.28); }
.metric-h .uplift .g { font-family: var(--mono); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .metrics { grid-template-columns: 1fr; } .metric .brow { grid-template-columns: 120px 1fr 56px; } }

/* ---------- Feature cards ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 26px; transition: border-color .18s ease, transform .18s ease; position: relative; overflow: hidden; }
.fcard:hover { border-color: var(--border-2); transform: translateY(-3px); }
.fcard .fi { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--grad); margin-bottom: 16px; }
.fcard h3 { font-size: 17px; font-weight: 700; }
.fcard p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Feature rows (text left, demo right) ---------- */
.frows { margin-top: 64px; display: grid; gap: 28px; }
.frow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
     border-radius: var(--radius-lg); padding: 40px; }
.frow-kicker { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.frow-text h3 { margin-top: 12px; font-size: clamp(22px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
.frow-text p { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.frow-list { margin-top: 20px; list-style: none; display: grid; gap: 11px; }
.frow-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.frow-list li i { margin-top: 3px; font-size: 11px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* demo card frame */
.demo-card { border: 1px solid var(--border); border-radius: var(--radius); background: #0c0c0e; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.demo-top { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-bottom: 1px solid var(--border); }
.demo-top .d { width: 8px; height: 8px; border-radius: 50%; background: #2a2a2e; }
.demo-top .t { margin-left: 6px; font-size: 11px; color: var(--dim); font-family: var(--mono); }
.demo-body { padding: 20px; }

/* row1: baccarat road + trigger */
.road { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.road .bead { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; border: 1px solid var(--border); }
.road .bead.b { color: #ff708f; border-color: rgba(255,45,126,.4); background: rgba(255,45,126,.08); }
.road .bead.p { color: #6fb6ff; border-color: rgba(59,158,255,.4); background: rgba(59,158,255,.08); }
.road .bead.t { color: var(--dim); border-style: dashed; }
.road .bead.hit { box-shadow: 0 0 0 2px var(--violet), 0 0 14px rgba(188,255,47,.6); }
.trig { margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); padding: 12px 14px; }
.trig-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.trig-row + .trig-row { margin-top: 10px; }
.trig-row .tv { font-family: var(--mono); color: var(--text); font-weight: 600; }
.trig-row .tv.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2ec27e; margin-right: 6px; box-shadow: 0 0 0 3px rgba(46,194,126,.18); }

/* row2: betting sequence */
.seq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seq i { color: var(--dim); font-size: 12px; }
.seq-step { width: 60px; height: 60px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); display: grid; place-content: center; justify-items: center; gap: 2px; }
.seq-step .n { font-size: 20px; font-weight: 800; font-family: var(--mono); }
.seq-step .u { font-size: 10px; color: var(--dim); }
.seq-step.on { border-color: rgba(188,255,47,.35); }
.seq-step.on .n { color: #d9ff8a; }
.seq-step.cur { border-color: transparent; background: var(--grad); }
.seq-step.cur .n, .seq-step.cur .u { color: #000; }
.seq-rows { margin-top: 16px; display: grid; gap: 8px; }
.seq-r { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; background: var(--panel); }
.seq-r.cur { border-color: rgba(188,255,47,.35); color: var(--text); }
.seq-r .amt { font-family: var(--mono); font-weight: 600; color: var(--text); }
.seq-r .amt.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* row3: matrix grid */
.matrix { display: grid; grid-template-columns: repeat(5, 0.1fr); gap: 8px; }
.matrix .cell { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); }
.matrix .cell.win { background: rgba(188,255,47,.18); border-color: rgba(188,255,47,.35); }
.matrix .cell.lose { background: rgba(255,45,126,.12); border-color: rgba(255,45,126,.3); }
.matrix .cell.cur { background: var(--grad); border-color: transparent; box-shadow: 0 0 14px rgba(188,255,47,.5); }
.matrix-meta { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.matrix-meta b { color: var(--text); font-family: var(--mono); }
.matrix-meta .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* ---------- Logos ---------- */
.logos { text-align: center; }
.logos .lab { font-size: 12.5px; color: var(--dim); letter-spacing: .04em; }
.logos-row { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 54px; flex-wrap: wrap; }
.logos-row img { height: 26px; filter: brightness(0) invert(1); opacity: .38; transition: opacity .25s ease; }
.logos-row img:hover { opacity: .7; }

/* infinite auto-scrolling logo marquee (Supabase-style) */
.logo-marquee {
    margin-top: 26px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.logo-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: logoScroll 50s linear infinite;
    will-change: transform;
}
.logo-track img {
    height: 46px;
    width: auto;
    margin: 0 34px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: .38;
}
@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Split code showcase ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .split-media { order: -1; }
.split-text h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
.split-text p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.split-list { margin-top: 20px; list-style: none; display: grid; gap: 11px; }
.split-list li { display: flex; gap: 10px; font-size: 14.5px; }
.split-list li i { margin-top: 4px; font-size: 11px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.code { border: 1px solid var(--border); border-radius: var(--radius); background: #0c0c0e; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.code-top { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-bottom: 1px solid var(--border); }
.code-top .d { width: 8px; height: 8px; border-radius: 50%; background: #2a2a2e; }
.code-top .t { margin-left: 6px; font-size: 11px; color: var(--dim); font-family: var(--mono); }
.code pre { padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.85; overflow-x: auto; }
.tok-kw { color: #ff7ab2; } .tok-fn { color: #82b1ff; } .tok-str { color: #9ece6a; } .tok-num { color: #ff9e64; } .tok-prop { color: #7dcfff; } .cmt { color: var(--dim); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 16px; background: var(--panel); }
.stat .v { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* ---------- Testimonials ---------- */
.quotes { columns: 3; column-gap: 16px; }
.quote { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 16px; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--panel); transition: border-color .18s ease, transform .18s ease; }
.quote:hover { border-color: var(--border-2); transform: translateY(-2px); }
.quote.lg p { font-size: 16px; }
.quote p { font-size: 14.5px; color: var(--text); line-height: 1.6; }
.quote .by { margin-top: 18px; display: flex; align-items: center; gap: 11px; }
.quote .av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.quote .nm { font-size: 13.5px; font-weight: 600; } .quote .rl { font-size: 12px; color: var(--dim); }

/* masonry testimonial wall: columns of stacked cards (staggered), whole row scrolls right→left */
.wall {
    position: relative; height: 460px; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 66%, transparent), linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(#000 66%, transparent), linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-composite: intersect;
}
.wall-track {
    display: flex; align-items: flex-start; gap: 16px; width: max-content;
    animation: wallScroll 60s linear infinite;
    will-change: transform;
}
.wall:hover .wall-track { animation-play-state: paused; }
.col { display: flex; flex-direction: column; gap: 16px; width: 300px; flex-shrink: 0; }
@keyframes wallScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tw { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 20px 22px; transition: border-color .18s ease; }
.tw:hover { border-color: var(--border-2); }
.tw-h { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.tw .av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.tw .nm { font-size: 14px; font-weight: 600; }
.tw .hd { font-size: 12px; color: var(--dim); margin-top: 2px; }
.tw p { font-size: 14px; color: var(--text); line-height: 1.62; }

@media (max-width: 560px) { .col { width: 260px; } .wall { height: 420px; } }
@media (prefers-reduced-motion: reduce) {
    .wall { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .wall-track { animation: none; flex-wrap: wrap; width: auto; }
    .col[aria-hidden="true"] { display: none; }
    .col:nth-child(even) { margin-top: 0; }
}

/* ---------- Changelog ---------- */
.cl-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cl-item { background: var(--panel); padding: 22px 24px; display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: center; transition: background .15s ease; }
.cl-item:hover { background: var(--panel-2); }
.cl-item .d { font-size: 13px; color: var(--dim); font-family: var(--mono); }
.cl-item .ttl { font-size: 15px; font-weight: 500; }
.cl-item .ver { font-size: 12px; font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Download band ---------- */
.dl-band { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; background: radial-gradient(460px 200px at 12% -20%, var(--grad-soft), transparent 70%), var(--panel); }
.dl-band h3 { font-size: 24px; font-weight: 800; }
.dl-band p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.dl-badges { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.dl-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border-radius: 10px; background: #fff; color: #000; transition: transform .15s ease; }
.dl-badge:hover { transform: translateY(-2px); }
.dl-badge.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--border-2); }
.dl-badge i { font-size: 22px; } .dl-badge .s { font-size: 10px; opacity: .7; display: block; } .dl-badge .b { font-size: 14px; font-weight: 600; }
.dl-qr { width: 116px; height: 116px; border-radius: 14px; background: #fff; padding: 9px; }
.dl-qr svg { width: 100%; height: 100%; }

/* ---------- CTA ---------- */
.cta { text-align: center; position: relative; }
.cta h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.cta p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.cta .row { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 36px 140px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 260px; }
.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.footer-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); transition: all .15s ease; }
.footer-social a:hover { color: var(--text); border-color: var(--border-2); }
/* footer status button (Resend-style "all systems operational") */
.status-btn {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 20px;
    height: 34px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--border-2); background: var(--panel-2);
    font-size: 13px; color: var(--muted); transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.status-btn:hover { color: var(--text); border-color: #2e6b4e; background: #131715; }
.status-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #2ec27e; flex-shrink: 0; }
.status-dot::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2ec27e;
    animation: statusPulse 1.8s ease-out infinite;
}
@keyframes statusPulse {
    0% { transform: scale(1); opacity: .7; }
    100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .status-dot::after { animation: none; } }

.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 13.5px; transition: color .15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 68px; padding-top: 34px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--dim); font-size: 12.5px; }

/* ---------- Sub-page ---------- */
.page-hero { position: relative; padding: 128px 0 36px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; margin-top: 18px; }
.page-hero p { margin: 14px auto 0; max-width: 580px; color: var(--muted); font-size: 17px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; }
.back-link:hover { color: var(--text); }

/* forms */
.form-card { max-width: 600px; margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.field .hint { color: var(--dim); font-weight: 400; font-size: 12.5px; }
.field input, .field textarea, .field select { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14.5px; font-family: inherit; padding: 12px 14px; transition: border-color .15s ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); }
.chip-group { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font-size: 13.5px; cursor: pointer; transition: all .15s ease; user-select: none; }
.chip.active { background: var(--grad-soft); border-color: var(--violet); color: #d9ff8a; }
.form-success { display: none; text-align: center; padding: 46px 20px; }
.form-success.show { display: block; }
.form-success .ico { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-soft); color: #d9ff8a; font-size: 26px; }

/* article list */
.post-list { max-width: 800px; margin: 0 auto; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post { background: var(--panel); display: grid; grid-template-columns: 130px 1fr; gap: 22px; padding: 24px; transition: background .15s ease; }
.post:hover { background: var(--panel-2); }
.post .meta { color: var(--dim); font-size: 12.5px; }
.post .tag { display: inline-block; margin-bottom: 9px; font-size: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post h3 { font-size: 16.5px; font-weight: 700; }
.post p { margin-top: 7px; color: var(--muted); font-size: 14px; }

/* timeline */
.timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 1.5px; background: var(--border-2); }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--grad-soft); }
.tl-item .ver { font-family: var(--mono); font-size: 12.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-item .date { color: var(--dim); font-size: 12.5px; margin-left: 9px; }
.tl-item h3 { font-size: 16.5px; font-weight: 700; margin: 9px 0 8px; }
.tl-item ul { list-style: none; display: grid; gap: 7px; }
.tl-item ul li { display: flex; gap: 9px; color: var(--muted); font-size: 14px; }
.tl-item ul li i { margin-top: 4px; font-size: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
    .nav-links, .nav-right { display: none; }
    .nav-toggle { display: inline-flex; }
    .feats { grid-template-columns: 1fr; }
    .frow { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
    .frow-media { order: 2; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .split.flip .split-media { order: 0; }
    .stats { grid-template-columns: 1fr 1fr; }
    .quotes { columns: 2; }
    .cl-item { grid-template-columns: 1fr; gap: 6px; }
    .dl-band { grid-template-columns: 1fr; gap: 26px; }
    .dl-qr { display: none; }
    .brow { grid-template-columns: 96px 1fr 64px; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: span 2; }
    .post { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
    .section { padding: 60px 0; }
    .hero { padding: 108px 0 50px; }
    .hero-cta .btn { width: 100%; }
    .term { margin-top: 28px; }
    .stats { grid-template-columns: 1fr; }
    .quotes { columns: 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .form-card { padding: 24px; }
    .dl-band { padding: 28px; }
    .bench-wrap { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    .bbar { transition: none; }
}

/* ===== brand logo (toplayer.svg) + wordmark font ===== */
.brand-mark{background:url('../assets/images/toplayer.svg') center/contain no-repeat;border-radius:0;box-shadow:none;color:transparent;font-size:0;}
.brand{font-family:'Aboreto',var(--font);}
.brand-cn{font-family:var(--font);}

/* ===== language switch (中 / EN) ===== */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; height: 34px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--panel-2); }
.lang-opt { border: none; background: none; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); height: 26px; min-width: 30px; padding: 0 10px; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.lang-opt:hover { color: var(--text); }
.lang-opt.active { background: rgb(82 255 0 / 12%); color: #BCFF2F; }

/* ===== footer legal lines ===== */
.footer-legal { margin-top: 22px; display: grid; gap: 10px; }
.footer-legal p { font-size: 12px; line-height: 1.6; color: var(--dim); max-width: 760px; }
.footer-legal p:first-child { color: var(--muted); font-family: var(--mono); }

/* footer-bottom: align social icons with copyright line */
.footer-bottom { align-items: center; }
.footer-bottom .footer-social { margin-top: 0; }

/* ===== articles list (OKX-trends-style layout, v8 theme) ===== */
.art-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.art-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font-size: 13.5px; font-family: inherit; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.art-tab:hover { color: var(--text); border-color: var(--border-2); }
.art-tab.active { background: #BCFF2F; color: #0a1400; border-color: #BCFF2F; font-weight: 600; }

.art-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #15170d, #0c0e07); }
.art-thumb::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 95% at 22% 0%, rgba(188,255,47,.24), transparent 60%); }
.art-thumb .ico { position: relative; font-size: 32px; color: #BCFF2F; opacity: .92; }
.art-thumb .wm { position: absolute; right: 14px; bottom: 11px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.32); }

.art-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 600; color: #c6ff66; background: var(--grad-soft); border: 1px solid rgba(188,255,47,.26); padding: 3px 10px; border-radius: 999px; }

.art-feat { display: grid; grid-template-columns: 1.05fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); margin-bottom: 40px; transition: border-color .18s ease; }
.art-feat:hover { border-color: var(--border-2); }
.art-feat .art-thumb { aspect-ratio: auto; min-height: 300px; }
.art-feat .art-thumb .ico { font-size: 46px; }
.art-fbody { padding: 38px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.art-fbody .feat-k { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.art-fbody h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.22; }
.art-fbody p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.art-fbody .art-meta { font-size: 12.5px; color: var(--dim); display: flex; gap: 10px; align-items: center; }

.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.art-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); transition: border-color .18s ease, transform .18s ease; display: flex; flex-direction: column; }
.art-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.art-card .art-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.art-card h3 { font-size: 16px; font-weight: 700; line-height: 1.38; }
.art-card .art-meta { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--dim); display: flex; gap: 9px; align-items: center; }
.art-card .art-meta .sep { color: var(--border-2); }
.art-hidden { display: none !important; }
.art-more { margin: 40px auto 0; display: flex; }

@media (max-width: 900px) { .art-feat { grid-template-columns: 1fr; } .art-feat .art-thumb { min-height: 200px; } .art-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .art-grid { grid-template-columns: 1fr; } .art-fbody { padding: 24px; } }

/* footer brand logo (above the description) */
.footer-logo { margin-bottom: 16px; }

/* widen content area (reduce side gaps) */
:root { --maxw: 1250px; }

/* ===== dev-log / changelog timeline (built on .timeline / .tl-item) ===== */
.timeline { max-width: 760px; }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-type { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; }
.tl-type.feature { color: #0a1400; background: #BCFF2F; }
.tl-type.improve { color: #c6ff66; background: var(--grad-soft); border-color: rgba(188,255,47,.26); }
.tl-type.fix { color: #9fb0c9; background: rgba(120,140,170,.14); border-color: rgba(120,140,170,.26); }
.tl-item h3 { margin-top: 12px; }
