:root {
  --brand: #9e1b2a;
  --bg: #f8f5f1;
  --ink: #2b1b1d;
  --ink-2: #6d5a5c;
  --line: rgba(158, 27, 42, .22);
  --arrow: rgba(158, 27, 42, .55);
  --cell: clamp(22px, 3.2vw, 34px);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #c4303f;
    --bg: #121012;
    --ink: #efe8e6;
    --ink-2: #a39597;
    --line: rgba(196, 48, 63, .3);
    --arrow: rgba(196, 48, 63, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
section {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
a { color: inherit; text-decoration: none; }

/* 第 1 段：箭頭場＋蝦子 */
.hero {
  position: relative;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
  cursor: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.field {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), var(--cell));
  grid-auto-rows: var(--cell);
  font-family: var(--mono);
  font-size: calc(var(--cell) * .62);
  line-height: 1;
  color: var(--arrow);
}
.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cell);
  height: var(--cell);
}
.cell.near { opacity: 0; }
.shrimp {
  position: absolute;
  left: 0; top: 0;
  width: calc(var(--cell) * 5.2);
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 0 calc(var(--cell) * .6) var(--bg));
}
.shrimp svg { display: block; width: 100%; height: auto; }
.hint {
  position: absolute;
  left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 18px;
  color: var(--brand);
  opacity: .7;
  cursor: pointer;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hint { animation: none; } }

/* 第 2 段：slogan */
.slogan { text-align: center; gap: 12px; }
.slogan h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 56px);
  letter-spacing: -.01em;
  color: var(--brand);
}
.slogan p {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--ink-2);
  letter-spacing: .18em;
}

/* 第 3 段：產品 */
.products ul {
  list-style: none;
  margin: 0; padding: 0;
  width: min(100%, 560px);
  border-top: 1px solid var(--line);
}
.products li { border-bottom: 1px solid var(--line); }
.products li > a, .products li > div {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  font-size: 15px;
}
.products li > a { transition: background .15s; border-radius: 6px; }
.products li > a:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.products .icon { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.products .name { font-weight: 600; color: var(--ink); }
.products .desc { color: var(--ink-2); font-size: 13px; grid-column: 2; }
.products .arrow { grid-column: 3; grid-row: 1 / span 2; font-family: var(--mono); color: var(--brand); opacity: .7; }
@media (min-width: 600px) {
  .products li > a, .products li > div { grid-template-columns: 20px auto 1fr auto; }
  .products .desc { grid-column: 3; }
  .products .arrow { grid-column: 4; grid-row: auto; }
}

/* 第 4 段：聯絡 */
.contact { position: relative; }
.contact > a {
  font-family: var(--mono);
  font-size: clamp(20px, 3.4vw, 34px);
  color: var(--brand);
  border-bottom: 2px solid var(--line);
  padding-bottom: 4px;
}
.contact > a:hover { border-color: var(--brand); }
.contact footer {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: .04em;
}
