@font-face {
  font-family: 'PowerGrotesk';
  src: url('/static/claw/fonts/PowerGrotesk-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'ReplicaLL';
  src: url('/static/claw/fonts/ReplicaLL-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Soehne';
  src: url('/static/claw/fonts/soehne-buch.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Soehne';
  src: url('/static/claw/fonts/soehne-halbfett.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #b24346;
  --ink: #101115;
  --cream: #ece9e4;
  --shadow: #0b0b0d;
  --font-display: 'Impact', 'Arial Black', sans-serif;
  --font-nav: 'ReplicaLL', 'Bangers', 'Impact', sans-serif;
  --font-body: 'Soehne', 'Trebuchet MS', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { width: 100%; }

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 30% -20%, #c45459 0%, var(--bg) 58%, #a43b3e 100%);
  color: #fff;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px;
  background: rgba(178, 67, 70, 0.72);
  backdrop-filter: blur(6px);
}

.brand,
.connect,
.menu a {
  font-family: var(--font-nav);
  color: #f7f2ed;
  text-decoration: none;
  letter-spacing: 0.06em;
  font-weight: 400;
  text-transform: uppercase;
}

.brand { justify-self: start; font-size: 1.6rem; }
.connect { justify-self: end; font-size: 1.2rem; }

.menu {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.menu a { font-size: 1.05rem; opacity: 0.95; }

.hero {
  position: relative;
  min-height: 100vh;
  padding: 92px 2vw 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.logo {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 18vw, 16rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--cream);
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
  /* 多层 text-shadow 模拟厚描边 + 硬投影 (beanz1 风格) */
  text-shadow:
    /* 描边层：8方向 × 2层 = 粗黑边 */
    -5px -5px 0 var(--ink),
     5px -5px 0 var(--ink),
    -5px  5px 0 var(--ink),
     5px  5px 0 var(--ink),
     0   -5px 0 var(--ink),
     0    5px 0 var(--ink),
    -5px  0   0 var(--ink),
     5px  0   0 var(--ink),
    -7px -7px 0 var(--ink),
     7px -7px 0 var(--ink),
    -7px  7px 0 var(--ink),
     7px  7px 0 var(--ink),
    /* 硬投影层：大偏移，纯黑，无模糊 */
     14px 16px 0 var(--shadow),
     15px 17px 0 var(--shadow),
     16px 18px 0 var(--shadow);
  opacity: 1;
  z-index: 2;
  animation: logoFadeIn 600ms ease-out both, logoFloat 4s ease-in-out 0.8s infinite;
  user-select: none;
  margin-top: clamp(20px, 4vw, 60px);
  margin-bottom: -160px;
}

.lineup {
  margin: 0 auto 0;
  width: min(1320px, 96vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 5;
  padding-bottom: 14px;
}

.ch {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin-left: -6px;
  margin-right: -6px;
  height: clamp(190px, 22vw, 360px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  /* 初始不设 transition，避免页面加载时 panelbeanz.in 的 transform 变化触发伸缩 */
  transition: none;
}

/* 页面加载完成后才启用 hover 动画 */
.ch.ready {
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}

.ch.ready:hover {
  transform: scale(1.15);
  z-index: 10;
}

.ch img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.3));
  transition: filter 0.2s;
}

.ch:hover img {
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.4));
}

/* tooltip: 右上角黑色块 + 白色名字 */
.ch span {
  position: absolute;
  right: 50%;
  top: 0px;
  transform: translateX(50%);
  background: var(--ink);
  color: #fff;
  font: 600 0.7rem/1 var(--font-nav);
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
  z-index: 20;
}

.ch:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* 每只 beanz 随机高度，参差不齐 */
.ch:nth-child(1)  { height: clamp(170px, 20vw, 320px); }
.ch:nth-child(2)  { height: clamp(210px, 24vw, 400px); }
.ch:nth-child(3)  { height: clamp(160px, 18vw, 300px); }
.ch:nth-child(4)  { height: clamp(230px, 26vw, 420px); }
.ch:nth-child(5)  { height: clamp(190px, 22vw, 360px); }
.ch:nth-child(6)  { height: clamp(150px, 17vw, 280px); }
.ch:nth-child(7)  { height: clamp(220px, 25vw, 400px); }
.ch:nth-child(8)  { height: clamp(175px, 20vw, 330px); }
.ch:nth-child(9)  { height: clamp(200px, 23vw, 380px); }
.ch:nth-child(10) { height: clamp(165px, 19vw, 310px); }

.about {
  margin: clamp(3.2rem, 7vh, 5.2rem) auto 1.4rem;
  max-width: 1180px;
  text-align: center;
  padding: 0 1rem;
}

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: 0.035em;
  color: #f7f2ed;
  text-transform: uppercase;
  line-height: 1.04;
}

.about p {
  margin: 14px auto 0;
  font-size: clamp(0.92rem, 1.08vw, 1.12rem);
  line-height: 1.32;
  max-width: 820px;
  color: rgba(255,250,245,.9);
}

.cards.panelbeanz {
  width: min(1320px, 94vw);
  margin: 1.7rem auto 2.4rem;
  padding: 0 .8rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(4px, 0.5vw, 8px);
}

.card {
  min-height: clamp(90px, 8vw, 130px);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(16px);
  transition: transform .18s ease, filter .18s ease;
  cursor: pointer;
}

.card.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .36s ease, transform .36s ease;
}

.card:hover { transform: translateY(-4px); filter: saturate(1.07); }

.card h3 {
  margin: 8px 10px;
  font: 700 clamp(0.85rem, 1vw, 1.1rem)/1.02 var(--font-nav);
  letter-spacing: 0.025em;
  text-transform: none;
}

.card h3 small {
  display: block;
  font-size: 0.65em;
  opacity: 0.6;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ── 人格弹窗 (beanz3 风格) ── */
.claw-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.claw-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.claw-modal {
  position: relative;
  width: min(920px, 94vw);
  min-height: 480px;
  border-radius: 24px;
  color: #fff;
  background: #1a1a1f;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 380px 1fr;
  overflow: hidden;
}

.claw-modal-overlay.open .claw-modal {
  transform: translateY(0) scale(1);
}

.claw-modal-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.claw-modal-img img {
  width: 85%;
  max-height: 420px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
}

.claw-modal-body {
  padding: 36px 32px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.claw-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  z-index: 10;
}

.claw-modal-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.claw-modal-mbti {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  padding: 6px 18px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  margin-bottom: 10px;
  width: fit-content;
}

.claw-modal-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 4px;
  color: #fff;
}

.claw-modal-tag {
  font-family: var(--font-nav);
  font-size: 0.95rem;
  opacity: 0.5;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: #fff;
}

.claw-modal-desc {
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

@media (max-width: 640px) {
  .claw-modal {
    grid-template-columns: 1fr;
    width: min(400px, 94vw);
    min-height: auto;
  }
  .claw-modal-img {
    padding: 24px 40px 0;
    max-height: 200px;
  }
  .claw-modal-img img {
    max-height: 180px;
  }
  .claw-modal-body {
    padding: 20px 24px 28px;
  }
}

.mini {
  position: absolute;
  right: 0px;
  bottom: -2px;
  width: 30%;
  max-width: 90px;
  height: auto;
  object-fit: contain;
}

.c-frida { background: #d595c0; }
.c-ed { background: #62aaa7; }
.c-johnny { background: #6b5152; }
.c-toshi { background: #17181d; }
.c-jay { background: #ebe9e6; color: #35353a; }
.c-jelly { background: #8e79c9; }
.c-link { background: #4c485f; }
.c-gus { background: #386cb9; }
.c-penny { background: #cfab69; }
.c-pip { background: #7e9db5; }

/* ── CTA 按钮 ── */
.hero-cta {
  margin-top: 20px;
}

.btn-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-nav);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 12px;
  border: 3px solid rgba(0,0,0,0.1);
  box-shadow: 0 6px 0 rgba(0,0,0,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.25);
}

/* ── 功能区：首页同款左右交替布局 ── */
.features {
  max-width: 960px;
  margin: 2rem auto 1.5rem;
  padding: 0 1.5rem;
}

.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.feat-row:nth-child(even) .feat-info { order: 2; }
.feat-row:nth-child(even) .feat-svg { order: 1; }

.feat-card {
  display: contents;
}

.feat-info {
  min-width: 0;
}

.feat-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-svg svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.15));
}

/* SVG 配色：白色系，红色背景上突出显示 */
.feat-svg svg rect[fill="#141420"] { fill: rgba(255,255,255,0.18); }
.feat-svg svg rect[fill="#1C1C2E"] { fill: rgba(255,255,255,0.22); }
.feat-svg svg rect[fill="#0D0D12"] { fill: rgba(255,255,255,0.12); }
.feat-svg svg [stroke="#2A2A42"] { stroke: rgba(255,255,255,0.35); }
.feat-svg svg [fill="#2A2A42"] { fill: rgba(255,255,255,0.2); }
.feat-svg svg text[fill="#7878A0"] { fill: rgba(255,255,255,0.85); }
.feat-svg svg text[fill="#B8B8CC"] { fill: #fff; }
.feat-svg svg [stroke="#3D3D5C"] { stroke: rgba(255,255,255,0.35); }
.feat-svg svg circle[fill="#141420"] { fill: rgba(255,255,255,0.18); }
.feat-svg svg circle[fill="#1C1C2E"] { fill: rgba(255,255,255,0.22); }
.feat-svg svg rect[fill="#1C1C2E"] { fill: rgba(255,255,255,0.22); }
.feat-svg svg [fill="#E63946"] { fill: #fff; }
.feat-svg svg [stroke="#E63946"] { stroke: #fff; }
.feat-svg svg [fill="#FF6B6B"] { fill: #fff; }
.feat-svg svg [stroke="#FF6B6B"] { stroke: #fff; }
.feat-svg svg text[fill="#FF6B6B"] { fill: #fff; font-weight: bold; }
.feat-svg svg text[fill="#00C853"] { fill: #fff; font-weight: bold; }
.feat-svg svg [stroke="rgba(0,200,83,0.4)"] { stroke: rgba(255,255,255,0.6); }
.feat-svg svg rect[fill="rgba(0,200,83,0.12)"] { fill: rgba(255,255,255,0.18); }
.feat-svg svg rect[fill="rgba(0,200,83,0.08)"] { fill: rgba(255,255,255,0.12); }
.feat-svg svg rect[fill="rgba(230,57,70,0.1)"] { fill: rgba(255,255,255,0.15); }
.feat-svg svg rect[fill="rgba(230,57,70,0.08)"] { fill: rgba(255,255,255,0.12); }
.feat-svg svg rect[fill="rgba(230,57,70,0.12)"] { fill: rgba(255,255,255,0.18); }
.feat-svg svg rect[fill="rgba(230,57,70,0.15)"] { fill: rgba(255,255,255,0.2); }
.feat-svg svg circle[fill="rgba(230,57,70,0.06)"] { fill: rgba(255,255,255,0.12); }
.feat-svg svg circle[fill="rgba(230,57,70,0.1)"] { fill: rgba(255,255,255,0.18); }
.feat-svg svg line[stroke="#111216"] { stroke: rgba(255,255,255,0.5); }
.feat-svg svg [fill="#111216"], .feat-svg svg [fill="#121214"], .feat-svg svg [fill="#131316"] { fill: rgba(255,255,255,0.7); }

.feat-tag {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.feat-info h3 {
  font-family: var(--font-nav);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.feat-info p {
  font-size: clamp(0.82rem, 0.95vw, 0.95rem);
  line-height: 1.5;
  color: rgba(255,250,245,0.75);
}

/* ── 底部 CTA ── */
.bottom-cta {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.bottom-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--cream);
  text-shadow:
    -3px -3px 0 var(--ink),
     3px -3px 0 var(--ink),
    -3px  3px 0 var(--ink),
     3px  3px 0 var(--ink),
     6px 7px 0 var(--shadow);
  margin-bottom: 8px;
}

.bottom-cta p {
  color: rgba(255,250,245,0.7);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  margin-bottom: 20px;
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(24px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* picked from Azuki's panelbeanz behavior and adapted */
.panelbeanz {
  width: 100%;
  min-height: auto;
  box-sizing: border-box;
}

.panelbeanz.description {
  padding-bottom: 10px;
}

.panelbeanz:not(.first):not(.in) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(75px);
}

.panelbeanz.in {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

@media (max-width: 1180px) {
  .lineup {
    width: min(760px, 92vw);
    gap: 0;
  }
  .cards {
    width: min(580px, 72vw);
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    padding: 0 .6rem;
  }
  .connect { display: none; }
  .topbar { grid-template-columns: auto 1fr; gap: 14px; }
  .menu { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .topbar { position: sticky; top: 0; padding: 12px 14px; }
  .menu a { font-size: .85rem; }
  .brand { font-size: 1.2rem; }
  .logo {
    font-size: clamp(3rem, 14vw, 5rem);
    margin-bottom: -10px;
    margin-top: 10px;
    text-shadow:
      -3px -3px 0 var(--ink),
       3px -3px 0 var(--ink),
      -3px  3px 0 var(--ink),
       3px  3px 0 var(--ink),
       0   -3px 0 var(--ink),
       0    3px 0 var(--ink),
      -3px  0   0 var(--ink),
       3px  0   0 var(--ink),
       8px  9px 0 var(--shadow),
       9px 10px 0 var(--shadow);
  }
  .hero { min-height: auto; padding-top: 50px; }
  .lineup {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 8px;
    padding: 0 4px 10px;
  }
  .ch { flex: 1 1 0; min-width: 0; max-width: none; margin: 0 -2px; }
  .ch:nth-child(n) { height: clamp(60px, 14vw, 110px); }
  .ch span { font-size: 0.5rem; padding: 3px 5px; }
  .about h2 { font-size: clamp(1.2rem, 4vw, 1.6rem); }
  .about p { font-size: clamp(0.82rem, 3vw, 0.95rem); }
  .cards.panelbeanz {
    grid-template-columns: repeat(2, 1fr);
    width: 95vw;
    gap: 6px;
  }
  .card { min-height: clamp(70px, 18vw, 100px); }
  .card h3 { font-size: 0.8rem; margin: 6px 8px; }
  .mini { width: 28%; max-width: 60px; }
  .feat-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .feat-row:nth-child(even) .feat-info { order: 0; }
  .feat-row:nth-child(even) .feat-svg { order: 0; }
  .feat-svg svg { max-width: 220px; }
  .features { padding: 0 1rem; }
  .feat-info h3 { font-size: 1rem; }
  .feat-info p { font-size: 0.82rem; }
  .bottom-cta h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .bottom-cta p { font-size: 0.85rem; }
  .btn-cta { padding: 12px 28px; font-size: 0.95rem; }
  .claw-modal {
    grid-template-columns: 1fr;
    width: min(400px, 94vw);
    min-height: auto;
  }
  .claw-modal-img { padding: 24px 40px 0; max-height: 200px; }
  .claw-modal-img img { max-height: 180px; }
  .claw-modal-body { padding: 20px 24px 28px; }
}
