/*
 * Zapproof Zeke ($ZAPZEKE) — the foil shed. Static-grey night, crinkled silver, one volt-yellow accent,
 * chunky signage display type and a monospace "signal" voice; the contract lives in Zeke's shed log.
 * Zapproof Zeke（$ZAPZEKE）——锡箔小屋。雪花灰的夜、皱银、一处电压黄点缀，粗招牌字做标题、
 * 等宽字做"信号"口吻；合约放在 Zeke 的小屋日志里。
 */
:root {
  --night: #16181b;
  --night-2: #1d2024;
  --night-3: #262a2f;
  --foil: #d9dde2;
  --foil-soft: #a9afb7;
  --volt: #ffd400;
  --volt-deep: #e6bf00;
  --signal: #6bff9e;
  --warn: #ff7a59;
  --paper: #f1efe8;
  --ink: #121315;
  --display: 'Bungee', 'Impact', sans-serif;
  --sans: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--foil); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }

/* Header / 页眉 */
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--night) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(217, 221, 226, 0.12); }
.monogram { font: 400 clamp(20px, 1.6vw, 26px)/1 var(--display); color: var(--volt); }
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 40px); font: 600 15px/1 var(--sans); }
.site-nav a { padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s var(--ease); }
.site-nav a:hover { border-color: var(--volt); }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.header-social { font: 700 14px/1 var(--sans); padding: 8px 10px; border: 1.5px solid var(--foil); border-radius: 999px; }
.header-ticker { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--volt); color: var(--ink); font: 400 14px/1 var(--display); transition: transform 0.2s var(--ease); }
.header-ticker:hover { transform: translateY(-1px); }

/* Hero / 首屏 */
.hero { position: relative; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); overflow: hidden; background: radial-gradient(120% 80% at 70% 40%, var(--night-3) 0%, var(--night) 70%); }
.hero-art { position: absolute; inset: 0; }
.foil-wall { position: absolute; inset: 0; background: url(../assets/foil.svg) center / cover; opacity: 0.32; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 55%); mask-image: linear-gradient(to right, transparent 0, #000 55%); }
.hero-art::after { content: ''; position: absolute; right: 8%; top: 18%; width: 46vmin; height: 46vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 212, 0, 0.22), transparent 70%); pointer-events: none; }
.zeke-figure { position: absolute; right: max(var(--gutter), 6vw); bottom: 0; height: 94%; width: auto; max-width: none; z-index: 1; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 46%) 1fr; min-height: inherit; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(72px, 8vw, 96px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(12px, 1vw, 14px)/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--foil-soft); }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: blink 1.6s steps(2, start) infinite; }
.blocked { color: var(--warn); }
@keyframes blink { to { opacity: 0.25; } }
.dot { opacity: 0.55; padding: 0 2px; }
.wordmark { font: 400 clamp(56px, 8.4vw, 132px)/0.92 var(--display); letter-spacing: 0.005em; text-transform: uppercase; color: var(--foil); max-width: 7ch; text-shadow: 0 2px 0 #8b9198, 0 6px 30px rgba(0, 0, 0, 0.55); }
.hero-lede { font: 700 clamp(24px, 2.6vw, 36px)/1.15 var(--sans); color: var(--volt); }
.hero-line { font: 400 clamp(17px, 1.5vw, 21px)/1.45 var(--sans); color: var(--foil-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 6px; font: 700 15px/1 var(--sans); border: 1.5px solid var(--foil); transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-volt { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.btn-volt:hover { background: var(--volt-deep); border-color: var(--volt-deep); }
.btn-foil { background: transparent; color: var(--foil); }
.btn-foil:hover { background: var(--foil); color: var(--ink); }
.btn-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--paper); }
.ca-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px; border-radius: var(--radius); background: rgba(22, 24, 27, 0.72); border: 1px solid rgba(217, 221, 226, 0.22); width: fit-content; }
.ca-label { font: 700 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--volt); }
.ca-short { font: 400 15px/1 var(--mono); color: var(--foil); }
.btn-copy { padding: 10px 14px; border-radius: 6px; border: 1.5px solid var(--volt); background: var(--volt); color: var(--ink); font: 700 14px/1 var(--sans); transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.btn-copy:hover { transform: translateY(-1px); }
.btn-copy.is-copied { background: var(--signal); border-color: var(--signal); }
.btn-copy-sm { padding: 7px 12px; font-size: 13px; }
.hero-note { font: 400 14px/1.5 var(--sans); color: var(--foil-soft); max-width: 56ch; }
.stamp { position: absolute; font: 700 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 14px; border: 1.5px solid var(--foil); border-radius: 6px; color: var(--foil); transform: rotate(-4deg); background: rgba(22, 24, 27, 0.6); }
.stamp-hero { right: var(--gutter); bottom: clamp(20px, 3vw, 36px); }

/* Running head / 跑马灯 */
.running-head { overflow: hidden; background: var(--volt); color: var(--ink); padding: 12px 0; font: 700 13px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.running-track { display: flex; gap: 48px; width: max-content; animation: run 42s linear infinite; }
.running-track span::before { content: '⚡'; margin-right: 14px; }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections / 区块 */
.section { padding: clamp(72px, 9vw, 120px) var(--gutter); }
.kicker { font: 700 clamp(12px, 1vw, 14px)/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--volt); margin-bottom: 18px; }
.kicker-light { color: var(--signal); }
.section h2 { font: 400 clamp(28px, 3.4vw, 50px)/1.05 var(--display); text-transform: uppercase; max-width: 22ch; }
.section p + p { margin-top: 14px; }
.plain { color: var(--foil-soft); }

/* The shed / 小屋 */
.shed { background: var(--night-2); }
.shed-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.shed-copy h2 { margin-bottom: 26px; }
.blocked-list { border-top: 1.5px solid var(--volt); margin-top: 8px; }
.blocked-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(217, 221, 226, 0.16); font: 700 clamp(17px, 1.5vw, 21px)/1.2 var(--sans); }
.blocked-list .status { font: 700 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); }
.blocked-list .status-warn { color: var(--warn); }

/* Rules / 规矩 */
.rules-section { background: var(--night); }
.rules-section h2 { margin-bottom: 40px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rules li { position: relative; padding: 28px 24px 26px; border-radius: var(--radius); border: 1.5px solid rgba(217, 221, 226, 0.3); background: linear-gradient(135deg, #2b2f35 0%, #1f2226 45%, #2a2e33 100%); }
.rule-no { display: inline-block; font: 700 13px/1 var(--mono); letter-spacing: 0.2em; color: var(--volt); margin-bottom: 18px; }
.rules h3 { font: 400 clamp(20px, 1.8vw, 26px)/1.1 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.rules p { color: var(--foil-soft); font-size: 15.5px; }

/* Night shift / 夜班 */
.night { position: relative; min-height: clamp(520px, 72vh, 820px); background: #07080a; color: var(--foil); overflow: hidden; }
.night-sky { position: absolute; inset: 0; background: radial-gradient(1.5px 1.5px at 12% 22%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 34% 12%, #fff 99%, transparent), radial-gradient(2px 2px at 58% 30%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 76% 16%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 88% 40%, #fff 99%, transparent), radial-gradient(2px 2px at 22% 48%, #fff 99%, transparent), radial-gradient(120% 70% at 70% 100%, #2a2f36 0%, #07080a 70%); }
.night-zeke { position: absolute; right: 10%; bottom: 0; height: 78%; width: auto; max-width: none; filter: drop-shadow(0 0 40px rgba(255, 212, 0, 0.15)); }
.night-copy { position: relative; z-index: 1; padding: clamp(56px, 8vw, 110px) var(--gutter) 0; }
.night-line { font: 400 clamp(34px, 5.4vw, 88px)/1 var(--display); text-transform: uppercase; max-width: 15ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.stamp-night { left: var(--gutter); bottom: clamp(20px, 3vw, 36px); transform: rotate(3deg); border-color: var(--volt); color: var(--volt); }

/* Get shielded (light, like the inside of the foil) / 买入区（亮底） */
.get { background: var(--paper); color: var(--ink); }
.get .kicker { color: #8a6d00; }
.get .plain { color: #4a4c50; }
.get-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.wrap img { border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--night); }
.wrap figcaption { margin-top: 10px; font: 700 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #4a4c50; }
.get-copy h2 { margin-bottom: 18px; }
.ticker-inline { font: 400 1em/1 var(--display); color: #8a6d00; }
.get-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ca-block { display: grid; gap: 10px; margin-top: 22px; padding: 16px 18px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); }
.ca-block .ca-label { color: #8a6d00; }
.ca-full { font: 400 14px/1.5 var(--mono); word-break: break-all; color: var(--ink); }
.ca-block .btn-copy { width: fit-content; }

/* Shed log / 小屋日志 */
.log { background: var(--night-2); }
.log-card { max-width: 820px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 10px 10px 0 var(--volt); }
.log-head { text-align: center; margin-bottom: 26px; }
.log-head .kicker { color: #8a6d00; margin-bottom: 12px; }
.log-head h2 { margin: 0 auto; }
.log-sub { margin-top: 10px; font: 700 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #4a4c50; }
.log-rows { border-top: 1.5px solid var(--ink); }
.log-rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(18, 19, 21, 0.2); }
.log-rows dt { font: 700 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #4a4c50; }
.log-rows dd { font: 600 15px/1.45 var(--sans); }
.log-rows dd a { text-decoration: underline; text-underline-offset: 3px; }
.row-ca dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-ca code { font: 400 13px/1.5 var(--mono); word-break: break-all; }
.log-sign { margin-top: 22px; display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; font: 400 14px/1 var(--mono); color: #4a4c50; }
.log-sign .sign { font: 400 28px/1 var(--display); color: #8a6d00; transform: rotate(-3deg); display: inline-block; }

/* Footer / 页脚 */
.site-footer { padding: 32px var(--gutter) 40px; font: 400 13.5px/1.6 var(--sans); color: var(--foil-soft); max-width: 900px; }

/* Reveal / 滚入 */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .running-track, .led { animation: none; }
}

/* Tablet and below: stacked hero with the tall image / 平板及以下：首屏叠放，用竖图 */
@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { justify-content: flex-start; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-inner { order: 1; position: static; display: flex; flex-direction: column; padding: 28px var(--gutter) 0; }
  .hero-copy { position: relative; z-index: 1; max-width: none; gap: 12px; }
  .hero-art { order: 2; position: relative; inset: auto; width: 100%; height: min(110vw, 760px); margin-top: 8px; z-index: 0; }
  .foil-wall { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%); mask-image: linear-gradient(to bottom, transparent 0, #000 40%); }
  .hero-art::after { right: 50%; transform: translateX(50%); top: 6%; width: 80vw; height: 80vw; }
  .zeke-figure { right: 50%; transform: translateX(50%); height: 100%; }
  .stamp-hero { right: 12px; bottom: 12px; z-index: 1; }
  .shed-grid, .get-grid { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
}

/* Phone / 手机 */
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .site-nav { display: none; }
  :root { --gutter: 16px; }
  .hero-note { display: none; }
  .night-zeke { right: 50%; transform: translateX(50%); height: 58%; }
  .wordmark { font-size: clamp(48px, 15vw, 72px); }
  .hero-lede { font-size: 22px; }
  .btn { padding: 11px 15px; font-size: 14px; }
  .night { min-height: 70vh; }
  .night-line { max-width: 10ch; }
  .log-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .log-card { box-shadow: 6px 6px 0 var(--volt); }
}

/* Wide / 超宽 */
@media (min-width: 2000px) {
  body { font-size: 20px; }
  :root { --gutter: 7vw; }
  .hero-copy { max-width: 980px; }
  .wordmark { font-size: clamp(132px, 7.4vw, 200px); }
  .hero-lede, .hero-line, .hero-note { font-size: 1.3em; }
  .btn, .btn-copy { font-size: 18px; padding: 16px 26px; }
  .section h2 { font-size: clamp(50px, 2.8vw, 70px); }
  .log-card { max-width: 1100px; }
  .shed-grid, .get-grid, .rules, .rules-section h2, .site-footer { max-width: 1800px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 3000px) {
  body { font-size: 26px; }
  .wordmark { font-size: clamp(200px, 6.6vw, 260px); }
  .btn, .btn-copy { font-size: 24px; padding: 20px 34px; }
  .shed-grid, .get-grid, .rules, .rules-section h2, .site-footer { max-width: 2600px; }
  .log-card { max-width: 1500px; }
}
