/* =========================================================
   bar.floatselect.com — FLOAT × BARS 邀請制合作頁
   設計系統：沿用 FLOAT × HOLIDAY 卷宗語言
   暗底 × FLOAT 橘 × 派對暗調 × 機密檔案框
   ========================================================= */

:root {
  --ink:        #0a0a0a;
  --ink-2:      #141312;
  --ink-3:      #1f1d1a;
  --paper:      #f5f0e6;
  --paper-dim:  #d8d2c4;
  --paper-faint:rgba(245, 240, 230, 0.42);
  --line:       rgba(245, 240, 230, 0.14);
  --line-soft:  rgba(245, 240, 230, 0.08);

  --float:      #ee8a3a;   /* FLOAT 橘 — 主強調 / CTA */
  --float-deep: #c97225;
  --hot:        #ff3d2e;   /* 紅 — 警示 / flag */
  --neon:       #c4ff00;   /* 螢光綠 — 線標記 */
  --magenta:    #ff2d8f;   /* 洋紅 — 夜店 / 曖昧軸 */

  --display: "Bebas Neue", "Noto Sans TC", system-ui, sans-serif;
  --tc:      "Noto Sans TC", system-ui, sans-serif;
  --serif:   "Noto Serif TC", serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1320px;
  --pad: clamp(28px, 7vw, 120px);
  --mark: clamp(20px, 4vw, 44px);
  --ease: cubic-bezier(0.7, 0, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: #000;
  color: var(--paper);
  font-family: var(--tc);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--magenta); color: #000; }

/* ===== global texture ===== */
.noise {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}
.scanlines {
  position: fixed; inset: 0; z-index: 199; pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 3px);
}

/* ===== section = a "slide / file" ===== */
section, .hero {
  position: relative;
  background: var(--ink);
  padding: clamp(96px, 13vw, 168px) 0;
  overflow: hidden;
}
section + section, .hero + section { border-top: 1px solid var(--line); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 2; }

/* ===== corner marks (L brackets at 4 corners) ===== */
.marks > span {
  position: absolute; width: 30px; height: 30px;
  border: 1px solid var(--paper); opacity: 0.38; z-index: 1; pointer-events: none;
}
.marks .tl { top: var(--mark); left: var(--mark); border-right: 0; border-bottom: 0; }
.marks .tr { top: var(--mark); right: var(--mark); border-left: 0; border-bottom: 0; }
.marks .bl { bottom: var(--mark); left: var(--mark); border-right: 0; border-top: 0; }
.marks .br { bottom: var(--mark); right: var(--mark); border-left: 0; border-top: 0; }

/* ===== stamps ===== */
.stamp-tl, .stamp-br {
  position: absolute; z-index: 3;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.stamp-tl { top: calc(var(--mark) + 14px); left: var(--pad); color: var(--paper-dim); }
.stamp-br { bottom: calc(var(--mark) + 10px); right: var(--pad); color: var(--paper-faint); letter-spacing: 0.2em; }
.stamp-tl b { font-weight: 700; }
.stamp-tl .x { opacity: 0.4; }
.stamp-tl .fl { color: var(--float); }
.stamp-tl .mg { color: var(--magenta); }

/* ===== big background numeral ===== */
.bg-num {
  position: absolute; top: clamp(40px, 8vw, 96px); right: clamp(-60px, -4vw, -20px);
  font-family: var(--display); font-weight: 400; line-height: 0.8; letter-spacing: -0.04em;
  font-size: clamp(280px, 46vw, 720px); color: rgba(238, 138, 58, 0.045);
  user-select: none; pointer-events: none; z-index: 0;
}

/* ===== type ===== */
.cjk {
  font-family: var(--tc); font-weight: 900; letter-spacing: -0.02em; line-height: 1.04;
  color: var(--paper);
}
.serif-em { font-family: var(--serif); font-weight: 700; font-style: italic; }

.h-hero { font-size: clamp(3rem, 11vw, 8.5rem); }
.h-xl   { font-size: clamp(2.6rem, 8.5vw, 7rem); }
.h-lg   { font-size: clamp(2.1rem, 6vw, 4.6rem); }
.h-md   { font-size: clamp(1.5rem, 3.4vw, 2.6rem); }

.fl  { color: var(--float); }
.mg  { color: var(--magenta); }
.neon{ color: var(--neon); }
.dim { color: var(--paper-dim); }
.faint { color: var(--paper-faint); }

.lead {
  font-family: var(--tc); font-size: clamp(1.05rem, 1.7vw, 1.55rem); line-height: 1.65;
  color: var(--paper-dim); max-width: 52ch;
}
.lead strong, .lead b { color: var(--paper); font-weight: 700; }

/* kicker w/ line-mark */
.kicker {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--float); margin-bottom: 36px;
}
.line-mark { width: 48px; height: 1px; background: var(--float); display: inline-block; flex: none; }
.kicker.mg-k { color: var(--magenta); } .kicker.mg-k .line-mark { background: var(--magenta); }
.kicker.neon-k { color: var(--neon); } .kicker.neon-k .line-mark { background: var(--neon); }

/* strike = rotated bar */
.strike { position: relative; color: var(--paper-faint); white-space: nowrap; }
.strike::before {
  content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 5px;
  background: var(--float); transform: rotate(-2deg); border-radius: 2px;
}

/* ===== buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  background: var(--float); color: var(--ink); border: none;
  font-family: var(--tc); font-weight: 900; font-size: 16px; letter-spacing: 0.14em;
  padding: 18px 34px; cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(238,138,58,0.7); pointer-events: none; }
.btn:hover { background: var(--float-deep); transform: translateY(-2px); }
.btn--lg { padding: 22px 46px; font-size: 17px; }

/* =========================================================
   [01] HERO
   ========================================================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: clamp(120px, 14vw, 200px); }
.hero__glow {
  position: absolute; top: 4%; right: -8%; width: 62vw; height: 62vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(238,138,58,0.20), rgba(255,45,143,0.08) 46%, transparent 70%);
  filter: blur(10px); pointer-events: none; z-index: 0;
}
.hero__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(36px, 6vw, 90px); align-items: center; width: 100%; }
.hero__h1 { margin-top: 30px; }
.hero__sub { margin: 44px 0 48px; max-width: 42ch; }

/* card back — generated (black card, white frame + wordmark) */
.hero__card {
  position: relative; aspect-ratio: 5/7; width: 100%; max-width: 360px; margin: 0 auto;
  border-radius: 18px; background: #050505;
  box-shadow: 0 60px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06), 0 0 80px rgba(238,138,58,0.12);
}
.hero__card-frame {
  position: absolute; inset: 18px; border: 1px solid rgba(245,240,230,0.7); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.hero__card-frame::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(245,240,230,0.22); border-radius: 8px; pointer-events: none;
}
.hero__card-logo {
  font-family: var(--display); font-size: clamp(2.6rem, 6.5vw, 4rem);
  letter-spacing: 0.16em; color: var(--paper); line-height: 1; padding-left: 0.16em;
}

/* =========================================================
   [02] PUNCH
   ========================================================= */
.punch__h { margin-top: 0; }
.punch__h .l2 { display: block; margin-top: 18px; }
.punch .lead { margin-top: 64px; }

/* =========================================================
   [03] DIAGNOSIS
   ========================================================= */
.diag__strikes { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 64px); margin: 40px 0 44px; }
.diag__strikes .cjk { font-size: clamp(2rem, 6.5vw, 5.5rem); }
.diag__answer { font-size: clamp(2.2rem, 7vw, 5.5rem); }

/* =========================================================
   [04] MECHANISM
   ========================================================= */
.mech__h { max-width: 20ch; }
.mech .lead { margin-top: 40px; }
.mech .lead strong { color: var(--float); }
.compare { margin-top: clamp(56px, 8vw, 104px); }
.compare__title { font-family: var(--tc); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 2rem); margin-bottom: 28px; letter-spacing: -0.01em; }
.compare__head {
  display: grid; grid-template-columns: 1fr 80px 1fr; gap: 32px; align-items: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 8px;
}
.compare__head .l { color: var(--paper-faint); }
.compare__head .r { color: var(--neon); }
.compare__row {
  display: grid; grid-template-columns: 1fr 80px 1fr; gap: 32px; align-items: center;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.compare__row:last-child { border-bottom: 1px solid var(--line); }
.compare__bad { font-family: var(--tc); font-size: clamp(1.3rem, 2.4vw, 2rem); }
.compare__arrow { text-align: center; font-family: var(--mono); font-size: 30px; color: var(--float); }
.compare__good { font-family: var(--tc); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.4; }
.compare__good span { display: block; color: var(--float); font-weight: 900; margin-top: 4px; }

/* OUR ANSWER — 三個情境（FILE 編號式冷感） */
.scenes { margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); }
.scene { display: grid; grid-template-columns: 130px 1fr; gap: clamp(16px, 3vw, 44px); align-items: baseline; padding: clamp(28px, 4vw, 40px) 0; border-bottom: 1px solid var(--line); }
.scene__n { font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--float); }
.scene__t { font-family: var(--tc); font-size: clamp(1.1rem, 2vw, 1.55rem); line-height: 1.65; color: var(--paper-dim); }
.scene__t strong { color: var(--paper); font-weight: 900; }
.scene__close { margin-top: clamp(44px, 6vw, 64px); font-family: var(--tc); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.2; letter-spacing: -0.01em; }

/* =========================================================
   [05] QR MOMENT (招牌互動 demo)
   ========================================================= */
/* hero headline — full width, controlled break */
.qrm__h {
  font-family: var(--tc); font-weight: 900; letter-spacing: -0.02em; line-height: 1.06;
  font-size: clamp(2.2rem, 5.8vw, 4.8rem);
  max-width: 18ch; color: var(--paper);
  margin: 28px 0 0;
}

/* copy block (full-width, comfortable reading width) */
.qrm__copy { margin-top: clamp(36px, 4.5vw, 60px); max-width: 64ch; display: flex; flex-direction: column; gap: 22px; }
.qrm__copy .lead { max-width: none; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.75; }
.qrm__copy .lead strong { color: var(--paper); font-weight: 700; }

.qrm__punch {
  margin-top: 8px; padding-left: 22px; border-left: 3px solid var(--float);
  font-family: var(--tc); font-weight: 900; line-height: 1.35; letter-spacing: -0.01em;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem); color: var(--paper);
}

/* demo zone — vertical stack: phone hero, then odds info strip */
.qrm__demo {
  margin-top: clamp(64px, 9vw, 110px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(56px, 7vw, 96px);
}

.qrm__phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }

/* decks: 3-col grid — left cards | phone | right cards */
.qrm__decks {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 280px) auto minmax(220px, 280px);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
  justify-content: center;
}
.deck-col { display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 24px); }

.card {
  position: relative; padding: 18px 0 18px 0;
  border-top: 1px solid var(--line);
}
.card:last-child { border-bottom: 1px solid var(--line); }
.card__n {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--float); text-transform: uppercase;
  margin-bottom: 6px;
}
.card__name {
  font-family: var(--tc); font-weight: 900; font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.25; color: var(--paper); letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.card__desc {
  font-family: var(--tc); font-size: 0.92rem; line-height: 1.65; color: var(--paper-dim);
}
.card__ex {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed rgba(245,240,230,0.12);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; line-height: 1.7;
  color: var(--paper-faint);
}
.card--hell { border-top-color: var(--magenta); border-top-width: 2px; }
.card--hell .card__n { color: var(--magenta); }
.card--hell .card__name { color: var(--paper); }

/* disclaimer — quiet mono note at the bottom of section [05] */
.qrm__disclaimer {
  width: 100%;
  margin-top: 0;
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--paper-faint); line-height: 1.7;
  text-align: center;
}
.qrm__controls { display: flex; align-items: center; gap: 18px; }
.qrm__reset { background: none; border: 1px solid var(--paper-dim); color: var(--paper-dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding: 14px 22px; cursor: pointer; transition: all 0.2s; }
.qrm__reset:hover { background: var(--paper); color: var(--ink); }

/* odds info strip — full-width below phone, 3-col inside */
.qrm__odds {
  width: 100%;
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.odds__h {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--paper-dim); text-transform: uppercase;
}
.odds__grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.3fr) minmax(220px, 1fr);
  gap: clamp(36px, 4.5vw, 72px);
  align-items: start;
}
.odds__nums { display: flex; flex-direction: column; gap: 14px; }
.odds__big { display: flex; align-items: baseline; gap: 10px; }
.odds__num { font-family: var(--display); font-size: clamp(3.4rem, 5.5vw, 5rem); line-height: 0.9; color: var(--float); letter-spacing: -0.02em; }
.odds__big--small .odds__num { font-size: clamp(2.4rem, 3.8vw, 3.4rem); }
.odds__pct { font-size: 0.62em; }
.odds__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--paper-dim); text-transform: uppercase; }
.odds__text { font-family: var(--tc); font-size: 1rem; line-height: 1.75; color: var(--paper); }
.odds__text b { color: var(--magenta); font-weight: 700; }
.odds__text .dim { color: var(--paper-dim); }
.odds__psych { padding: 16px 18px; border: 1px dashed var(--paper-dim); }
.odds__psych-h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--paper-dim); margin-bottom: 10px; text-transform: uppercase; }
.odds__psych-t { font-family: var(--tc); font-size: 0.95rem; line-height: 1.7; color: var(--paper); }
.odds__psych-t b { color: var(--float); font-weight: 700; }

/* phone frame */
.phone {
  position: relative; width: 320px; max-width: 84vw; aspect-ratio: 320/660;
  background: #050505; border-radius: 46px; padding: 13px; box-sizing: border-box;
  box-shadow: 0 0 0 2px #1a1a1a, 0 0 0 3px #2a2a2a, 0 60px 110px rgba(0,0,0,0.8), 0 0 80px rgba(238,138,58,0.12);
}
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 100px; height: 28px; background: #050505; border-radius: 14px; z-index: 10; }
.phone__screen { position: relative; width: 100%; height: 100%; background: #0a0a0a; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; }
.phone__status { display: flex; justify-content: space-between; padding: 16px 30px 8px; font-family: var(--mono); font-size: 12px; color: var(--paper); z-index: 5; }

.phone__scr { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; padding: 44px 22px 24px; opacity: 0; transition: opacity 0.45s ease; box-sizing: border-box; }
.phone[data-stage="idle"] .phone__scr--scan,
.phone[data-stage="flipping"] .phone__scr--scan,
.phone[data-stage="scanning"] .phone__scr--scan,
.phone[data-stage="revealed"] .phone__scr--reveal { display: flex; opacity: 1; }

/* scan screen */
.phone__scr--scan { background: radial-gradient(circle at 50% 28%, rgba(238,138,58,0.20), transparent 60%), #0a0a0a; }
.phone__tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: var(--float); text-transform: uppercase; margin-bottom: 10px; }
.phone__head { font-family: var(--tc); font-weight: 900; font-size: 1.35rem; text-align: center; line-height: 1.3; margin-bottom: 26px; }

.cardstage { position: relative; width: 180px; height: 252px; margin: 0 auto; perspective: 1400px; }
.flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(0deg) rotate(-3deg); transition: transform 1s cubic-bezier(0.4,0,0.2,1); }
.phone[data-stage="flipping"] .flipper { transform: rotateY(180deg) rotate(2deg); }
.phone[data-stage="scanning"] .flipper { transform: scale(1.06) rotateY(180deg) rotate(2deg); transition: transform 0.6s ease; }
.phone[data-stage="revealed"] .flipper { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.face--back { background: #050505; }
.face--back .face__logo { font-family: var(--display); font-size: 2rem; letter-spacing: 0.16em; color: var(--paper); padding-left: 0.16em; }
.face--back::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(245,240,230,0.6); border-radius: 9px; }
.face--front { transform: rotateY(180deg); background: #fff; }
.qrcode { width: 130px; height: 130px; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.corners > span { position: absolute; width: 22px; height: 22px; border: 0 solid var(--float); opacity: 0; transition: opacity 0.3s; }
.phone[data-stage="scanning"] .corners > span { opacity: 1; }
.corners > span:nth-child(1){ top:-7px; left:-7px; border-top-width:2px; border-left-width:2px; }
.corners > span:nth-child(2){ top:-7px; right:-7px; border-top-width:2px; border-right-width:2px; }
.corners > span:nth-child(3){ bottom:-7px; left:-7px; border-bottom-width:2px; border-left-width:2px; }
.corners > span:nth-child(4){ bottom:-7px; right:-7px; border-bottom-width:2px; border-right-width:2px; }
.scanline { position: absolute; left:-10px; right:-10px; top:0; height:3px; background: linear-gradient(90deg, transparent, var(--float), transparent); box-shadow: 0 0 14px var(--float); opacity: 0; }
.phone[data-stage="scanning"] .scanline { opacity: 1; animation: scan-move 1.2s ease-in-out infinite; }
@keyframes scan-move { 0%{ transform: translateY(0); } 100%{ transform: translateY(252px); } }

.phone__statusline { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; color: var(--float); text-transform: uppercase; text-align: center; }
.phone__statusline::before { content: "⊹ TAP TO ACTIVATE ⊹"; }
.phone[data-stage="flipping"] .phone__statusline::before { content: "◇ 翻牌中…"; }
.phone[data-stage="scanning"] .phone__statusline::before { content: "● 掃描 QR…"; }

/* reveal screen — holographic god card (對齊好樂迪 CH4 Ritual) */
.phone__scr--reveal { background: radial-gradient(circle at 50% 38%, rgba(238,138,58,0.28), transparent 65%), #0a0a0a; justify-content: flex-start; padding: 32px 18px 14px; }
.reveal__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--float); text-transform: uppercase; margin-bottom: 8px; }
.reveal__tier { font-family: var(--tc); font-weight: 700; font-size: 14px; color: var(--paper); letter-spacing: 0.18em; margin-bottom: 22px; }

@property --holo-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes holo-spin { to { --holo-angle: 360deg; } }
@keyframes holo-pop { 0% { transform: scale(0.55) translateY(28px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes holo-glow { 0%,100% { filter: drop-shadow(0 0 12px rgba(238,138,58,0.5)); } 50% { filter: drop-shadow(0 0 28px rgba(238,138,58,0.9)); } }
@keyframes holo-burst-anim { 0% { opacity: 0; box-shadow: 0 0 0 0 rgba(238,138,58,0.7); } 40% { opacity: 1; box-shadow: 0 0 30px 10px rgba(238,138,58,0.5); } 100% { opacity: 0; box-shadow: 0 0 100px 60px rgba(238,138,58,0); } }

.holo-wrap { position: relative; width: 184px; margin: 0 auto; }
.holo-burst { position: absolute; inset: -16px; border-radius: 18px; opacity: 0; pointer-events: none; z-index: 0; }
.phone[data-stage="revealed"] .holo-burst { animation: holo-burst-anim 0.9s ease-out both; }
.holo-card {
  position: relative; aspect-ratio: 200/290; border-radius: 14px; overflow: hidden; isolation: isolate; padding: 2px;
  background: #000; box-shadow: 0 30px 60px -10px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
}
.holo-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: conic-gradient(from var(--holo-angle, 0deg) at 50% 50%, var(--magenta), var(--float), var(--neon), var(--float), var(--magenta));
  filter: saturate(140%); opacity: 0.9; animation: holo-spin 6s linear infinite;
}
.holo-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: overlay;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,0.4), transparent 42%),
              repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 6px);
}
.phone[data-stage="revealed"] .holo-card { animation: holo-pop 0.85s cubic-bezier(0.4,0,0.2,1) both, holo-glow 3s ease-in-out 0.9s infinite; }
.holo-inner {
  position: relative; z-index: 2; height: 100%; border-radius: 12px;
  background: linear-gradient(160deg, rgba(15,10,30,0.85), rgba(0,0,0,0.95));
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 14px 12px; box-sizing: border-box;
}
.god-row { display: flex; justify-content: space-between; align-items: center; }
.god-star { font-family: var(--display); font-size: 1.35rem; line-height: 1; color: var(--float); }
.god-rarity { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--float); }
.god-glyph { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 4.4rem; line-height: 1; color: var(--float); text-shadow: 0 0 24px rgba(238,138,58,0.7); }
.god-name { font-family: var(--display); font-size: 1.4rem; line-height: 0.95; color: var(--paper); text-transform: uppercase; }
.god-name-sub { display: block; font-family: var(--tc); font-weight: 900; font-size: 1.05rem; letter-spacing: 0; margin-top: 6px; color: var(--paper); }
.god-stats { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: rgba(245,240,230,0.7); border-top: 1px dashed rgba(255,255,255,0.22); padding-top: 12px; margin-top: 14px; }
.god-stats b { color: var(--float); font-weight: 500; }

.reveal__rule { font-family: var(--tc); font-weight: 500; font-size: 13px; color: var(--paper); text-align: center; line-height: 1.75; padding: 0 12px; margin-top: 22px; }
.reveal__rule b { color: var(--float); font-weight: 700; }
.reveal__accept { width: 88%; padding: 13px 0; background: transparent; border: 1px solid var(--paper); border-radius: 100px; color: var(--paper); font-family: var(--tc); font-weight: 700; font-size: 14px; letter-spacing: 0.18em; text-align: center; margin-top: 20px; cursor: default; }
.reveal__foot { display: flex; justify-content: space-between; width: 100%; padding: 0 8px; font-family: var(--mono); font-size: 9px; color: rgba(245,240,230,0.45); letter-spacing: 0.15em; margin-top: 14px; }
.reveal__foot span:first-child { color: var(--float); font-weight: 700; }

.phone__scanfx { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; border-radius: 34px; }
/* ambient scan band sweeping the screen during scanning (好樂迪 phone-scan-overlay 同款) */
.phone__scanfx::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(238,138,58,0.14) 50%, transparent 100%);
}
.phone[data-stage="scanning"] .phone__scanfx::before { opacity: 1; animation: scan-band 1.7s ease-in-out infinite; }
@keyframes scan-band { 0% { transform: translateY(-100%); } 100% { transform: translateY(240%); } }

/* =========================================================
   [06] FORMAT
   ========================================================= */
.format__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.format__intro .lead { max-width: 30ch; }
.format__intro .lead .mg { font-weight: 700; }
.format__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 36px); margin-top: clamp(48px, 7vw, 88px); }
.fcard {
  position: relative; border: 1px solid var(--line); background: var(--ink-2); padding: 34px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.fcard:hover { border-color: var(--float); transform: translateY(-4px); }
.fcard__badge {
  position: absolute; top: 26px; right: 26px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; color: var(--neon); border: 1px solid var(--neon); padding: 4px 10px;
}
.fcard__num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--float); }
.fcard__name { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; margin: 6px 0 2px; letter-spacing: 0.02em; }
.fcard__en { font-family: var(--tc); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--paper); }
.fcard__img {
  margin: 28px auto; width: 100%; max-width: 380px; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(238,138,58,0.12), transparent 64%);
}
.fcard__img img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.65)); }
.fcard__desc { color: var(--paper-dim); font-size: 1rem; line-height: 1.6; }
.fcard__spec { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.fcard__spec li { position: relative; padding: 6px 0 6px 22px; font-size: 0.95rem; color: var(--paper-dim); }
.fcard__spec li::before { content: "▸"; position: absolute; left: 0; color: var(--float); }
.format__close {
  margin-top: clamp(44px, 6vw, 64px); padding: 40px clamp(28px, 4vw, 48px);
  border: 1px solid var(--line); background: linear-gradient(120deg, rgba(238,138,58,0.06), transparent);
  font-family: var(--tc); font-weight: 900; font-size: clamp(1.3rem, 2.8vw, 2.1rem); line-height: 1.45;
}
.format__close strong { color: var(--float); }

/* what's inside — product block */
.format__product { margin-top: clamp(44px, 6vw, 64px); padding-top: clamp(36px, 5vw, 48px); border-top: 1px solid var(--line); max-width: 56ch; }
.format__product .kicker { margin-bottom: 24px; }
.format__product h3 { margin-bottom: 24px; }
.format__product .lead { max-width: none; }
.format__product-punch { margin-top: 28px; font-family: var(--tc); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.6; color: var(--paper-dim); }
.format__product-punch strong { color: var(--paper); font-weight: 900; }

/* =========================================================
   [06] TRACTION
   ========================================================= */
.trac__h { max-width: 22ch; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 40px);
  margin-top: clamp(48px, 7vw, 88px);
}
.stat { border-top: 2px solid var(--paper); padding-top: 24px; }
.stat:first-child { border-top-color: var(--float); }
.stat__num { font-family: var(--display); font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 0.9; color: var(--paper); }
.stat__num .u { font-size: 0.42em; color: var(--float); letter-spacing: 0; }
.stat__label { font-family: var(--tc); font-weight: 900; font-size: 1.15rem; margin-top: 16px; }
.stat__sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); margin-top: 4px; }
.trac__notes { margin-top: 44px; display: flex; flex-direction: column; gap: 8px; }
.trac__notes p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--paper-faint); }
.trac__why { margin-top: clamp(40px, 6vw, 60px); padding-top: clamp(36px, 5vw, 48px); border-top: 1px solid var(--line); max-width: 60ch; }
.trac__why-q { font-family: var(--tc); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--paper); margin-bottom: 22px; letter-spacing: -0.01em; }
.trac__why .lead { max-width: none; }

/* =========================================================
   [07] DEAL
   ========================================================= */
.deal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 40px); margin-top: clamp(48px, 7vw, 80px); }
.deal__col { border: 1px solid var(--line); background: var(--ink-2); padding: 36px; }
.deal__col--you { border-color: rgba(238,138,58,0.45); }
.deal__col h4 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--float); margin-bottom: 24px; }
.deal__col--us h4 { color: var(--magenta); }
.deal__list { list-style: none; }
.deal__list li { position: relative; padding: 14px 0 14px 24px; color: var(--paper-dim); border-top: 1px solid var(--line-soft); }
.deal__list li:first-child { border-top: none; }
.deal__list li::before { content: "▸"; position: absolute; left: 0; color: var(--float); }
.deal__col--us .deal__list li::before { color: var(--magenta); }
.deal__list b { color: var(--paper); font-weight: 900; }
.deal__list small { display: block; color: var(--paper-faint); font-size: 0.85rem; margin-top: 2px; }
.deal__col--full { grid-column: 1 / -1; }
.deal__list--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.deal__list--row li { border-top: none; padding: 0 0 0 24px; }
.deal__punch { margin-top: clamp(44px, 6vw, 64px); text-align: center; padding: 44px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deal__punch .big { font-family: var(--tc); font-weight: 900; font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.2; letter-spacing: -0.01em; }
.deal__punch .big strong { color: var(--float); }
.deal__punch .sub { color: var(--paper-dim); margin-top: 18px; font-size: 1.1rem; }

/* =========================================================
   [08] FAQ
   ========================================================= */
.faq__list { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--paper);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--tc); font-weight: 900; font-size: clamp(1.1rem, 2.1vw, 1.5rem); padding: 30px 0;
  letter-spacing: -0.01em; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--float); }
.faq__icon { flex: none; width: 28px; height: 28px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--float); transition: transform 0.3s var(--ease); }
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq__icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq__item[open] .faq__icon::after { transform: translateX(-50%) scaleY(0); }
.faq__a p { padding: 0 0 32px; color: var(--paper-dim); max-width: 64ch; font-size: 1.05rem; line-height: 1.75; }
.faq__a strong { color: var(--paper); font-weight: 700; }

/* =========================================================
   [09] CTA / FORM
   ========================================================= */
.cta { background: linear-gradient(180deg, var(--ink), rgba(238,138,58,0.05)); }
.cta__sub { margin: 28px 0 0; max-width: 52ch; }
.form { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 26px; max-width: 760px; }
.form__row { display: grid; gap: 26px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 11px; }
.field label .req { color: var(--magenta); }
.field input, .field select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  color: var(--paper); font-family: var(--tc); font-size: 1.05rem; padding: 12px 0; transition: border-color 0.25s;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--float); }
.field select { cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--paper); }
.field input::placeholder { color: var(--paper-faint); }
.checks { display: flex; flex-wrap: wrap; gap: 12px; }
.check {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px;
  border: 1px solid var(--line); cursor: pointer; font-size: 0.95rem; color: var(--paper-dim);
  transition: border-color 0.25s, color 0.25s;
}
.check:hover { border-color: var(--float); color: var(--paper); }
.check input { accent-color: var(--float); }
.form__submit { margin-top: 12px; justify-self: start; }
.form__msg { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; line-height: 1.8; min-height: 18px; }
.form__msg:empty { display: none; }
.form__note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--paper-faint); line-height: 1.9; }

/* 送出成功 */
.form__done { border: 1px solid var(--float); background: rgba(238,138,58,0.06); padding: 40px 32px; text-align: center; }
.form__done-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--float); color: var(--ink); font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.form__done-title { font-family: var(--tc); font-weight: 900; font-size: clamp(20px, 3.4vw, 26px); color: var(--paper); margin-bottom: 10px; }
.form__done-desc { font-family: var(--tc); font-size: 15px; color: var(--paper-dim); line-height: 1.8; }

/* ===== footer ===== */
/* footer — 1:1 復刻 creator.floatselect.com（柔炭底 / 灰標題 / 金連結 / Hanken Grotesk） */
.footer {
  background: #1c1c1c; color: #edece8; padding: 64px 0 48px;
  font-family: "Hanken Grotesk", "Noto Sans TC", sans-serif; line-height: 1.65;
}
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.foot-col h5 { font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; color: #8a8a84; }
.foot-col div { font-weight: 500; font-size: 14px; margin: 6px 0; color: #cfcdc4; }
.foot-col a { color: #b8924a; text-decoration: none; }
.foot-col a:hover { color: #d3ab63; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; }
.foot-logo { height: 34px; width: auto; align-self: flex-start; margin-bottom: 12px; filter: brightness(0) invert(1); }
.foot-tagline { color: #cfcdc4; font-weight: 500; line-height: 1.7; align-self: stretch; max-width: 420px; }
.foot-copy { margin-top: auto; padding-top: 28px; font-size: 13px; color: #7c7c76; }
.foot-bottom { display: none; }

/* ===== scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== responsive ===== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { order: -1; max-width: 280px; }
  .qrm__demo { gap: clamp(40px, 6vw, 56px); }
  .qrm__decks { grid-template-columns: 1fr; gap: 28px; }
  .qrm__phone-wrap { order: -10; }
  .qrm__odds { padding-top: clamp(32px, 5vw, 48px); }
  .odds__grid { grid-template-columns: 1fr; gap: 28px; }
  .scene { grid-template-columns: 1fr; gap: 10px; }
  .format__grid, .deal__grid { grid-template-columns: 1fr; }
  .deal__list--row { grid-template-columns: 1fr; gap: 18px; }
  .deal__list--row li { border-top: 1px solid var(--line-soft); padding: 14px 0 14px 24px; }
  .deal__list--row li:first-child { border-top: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .form__row--2 { grid-template-columns: 1fr; }
  .foot-grid { flex-direction: column; gap: 28px; }
  .foot-copy { display: none; }
  .foot-bottom { display: block; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7c7c76; }
  .compare__head { display: none; }
  .compare__row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .compare__arrow { display: none; }
  .compare__good { padding-top: 14px; border-top: 1px dashed var(--line); }
  .stamp-tl, .stamp-br { font-size: 10px; gap: 8px; }
  .marks > span { width: 22px; height: 22px; }
}
/* ===== Phone polish (≤720px) ===== */
@media (max-width: 720px) {
  /* section spacing — less scroll fatigue */
  section, .hero { padding: clamp(56px, 13vw, 88px) 0; }
  :root { --pad: 20px; --mark: 16px; }
  .hero { padding-top: clamp(88px, 18vw, 130px); min-height: auto; }

  /* heading sizes — let CJK breathe at phone widths */
  .h-hero  { font-size: clamp(1.95rem, 8.5vw, 3.2rem); line-height: 1.1; }
  .hero__h1 { font-size: clamp(2rem, 9vw, 3.4rem); }
  .h-xl    { font-size: clamp(1.85rem, 8vw, 3rem); }
  .h-lg    { font-size: clamp(1.7rem, 6.8vw, 2.4rem); }
  .h-md    { font-size: clamp(1.4rem, 5.5vw, 2rem); }
  .punch__h { font-size: clamp(1.9rem, 8.5vw, 3rem); line-height: 1.1; }
  .diag__strikes .cjk { font-size: clamp(1.55rem, 6.5vw, 2.3rem); }
  .diag__answer { font-size: clamp(1.85rem, 7.8vw, 2.8rem); }
  .mech__h { font-size: clamp(1.85rem, 7.5vw, 2.6rem); }
  .scene__close { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
  .qrm__h { font-size: clamp(1.8rem, 7.2vw, 2.5rem); max-width: 100%; }
  .qrm__punch { font-size: clamp(1.2rem, 5.2vw, 1.7rem); padding-left: 16px; border-left-width: 2px; }
  .trac__h { font-size: clamp(1.85rem, 7.2vw, 2.5rem); }
  .deal__punch .big { font-size: clamp(1.5rem, 6vw, 2rem); }
  .cta__h { font-size: clamp(1.85rem, 7.2vw, 2.5rem); }
  .format__h { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  /* lead / body */
  .lead { font-size: 1rem; line-height: 1.7; }
  .qrm__copy .lead { font-size: 1rem; }
  .qrm__copy { max-width: 100%; gap: 18px; margin-top: clamp(24px, 4vw, 40px); }

  /* stamps — less clutter at edges */
  .stamp-tl, .stamp-br {
    font-size: 9px; gap: 6px; letter-spacing: 0.14em;
    max-width: calc(100% - 80px); flex-wrap: wrap; line-height: 1.4;
  }
  .stamp-br { letter-spacing: 0.16em; }

  /* corner marks subtler */
  .marks > span { width: 16px; height: 16px; opacity: 0.3; }

  /* bg-num — keep atmosphere but don't dominate */
  .bg-num { font-size: clamp(180px, 48vw, 280px); right: -16px; top: clamp(28px, 6vw, 56px); opacity: 0.035; }

  /* kicker tighter */
  .kicker { margin-bottom: 22px; font-size: 12px; gap: 12px; }
  .line-mark { width: 32px; }

  /* buttons */
  .btn { padding: 14px 24px; font-size: 14px; }
  .btn--lg { padding: 16px 30px; font-size: 15px; }

  /* HERO sub */
  .hero__sub { margin: 28px 0 32px; }

  /* DEAL cards compact */
  .deal__col { padding: 24px 20px; }
  .deal__col h4 { margin-bottom: 18px; font-size: 12px; }
  .deal__list li { padding: 12px 0 12px 22px; }

  /* FORMAT cards compact */
  .fcard { padding: 24px 22px; }
  .fcard__name { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .fcard__img { margin: 22px auto; }
  .format__close { padding: 28px 22px; font-size: clamp(1.15rem, 5vw, 1.6rem); }

  /* TRACTION notes */
  .trac__notes p, .trac__why .lead { font-size: 0.95rem; }
  .trac__why-q { font-size: clamp(1.2rem, 5vw, 1.7rem); }

  /* QR demo zone gaps */
  .qrm__demo { margin-top: clamp(40px, 8vw, 64px); padding-top: clamp(32px, 6vw, 48px); gap: clamp(36px, 6vw, 56px); }
  .qrm__decks { gap: clamp(24px, 4vw, 32px); }

  /* odds */
  .odds__num { font-size: clamp(2.6rem, 12vw, 4rem); }
  .odds__big--small .odds__num { font-size: clamp(2rem, 9vw, 3rem); }

  /* form */
  .field input, .field select { font-size: 1rem; }
  .form__note { font-size: 11px; }

  /* disclaimer */
  .qrm__disclaimer { font-size: 10px; letter-spacing: 0.02em; padding-top: clamp(20px, 4vw, 32px); }
}

/* ===== Very narrow phones (≤480px) ===== */
@media (max-width: 480px) {
  /* stats stack 1-col so big numbers don't overflow */
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat__num { font-size: clamp(2.4rem, 11vw, 3.6rem); }

  /* even tighter padding */
  :root { --pad: 16px; --mark: 12px; }
  .marks > span { width: 12px; height: 12px; opacity: 0.25; }

  /* stamps — drop trailing decorative segments to reduce clutter */
  .stamp-tl { font-size: 8.5px; gap: 4px; }
  .stamp-br { font-size: 8.5px; }

  /* slightly smaller hero h1 */
  .hero__h1 { font-size: clamp(1.85rem, 9.5vw, 2.6rem); }

  /* deal punch */
  .deal__punch { padding: 32px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
