:root {
  --bg: #fafbfc;
  --text: #1a2332;
  --muted: #6b7684;
  --line: #e5e8ed;
  --card: #ffffff;
  --primary: #0d8a4a;
  --primary-strong: #096238;
  --chip-bg: #f0faf6;
  --chip-text: #145a35;
  --shadow: 0 12px 28px rgba(13, 28, 45, 0.06);
  --shadow-hover: 0 16px 32px rgba(15, 156, 87, 0.15);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -8%, rgba(15, 156, 87, 0.12), rgba(15, 156, 87, 0) 38%),
    radial-gradient(circle at -15% 15%, rgba(24, 126, 209, 0.08), rgba(24, 126, 209, 0) 44%),
    linear-gradient(0deg, rgba(20, 112, 188, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 100% 28px, auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 740px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px calc(48px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 8px;
  z-index: 10;
  margin-bottom: 16px;
  padding: 2px 0;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: #1c2a3a;
  color: #fff;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.hero {
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 156, 87, 0.2), rgba(15, 156, 87, 0));
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(13, 138, 74, 0.28),
    rgba(13, 138, 74, 0) 28%,
    rgba(19, 105, 182, 0) 72%,
    rgba(19, 105, 182, 0.22)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-tag {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cfe6da;
  background: #f4fbf7;
  color: #1b5b39;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 14ch;
  font-weight: 700;
}

.subcopy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 57ch;
  line-height: 1.6;
}

.cta-group {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 4px 12px rgba(13, 138, 74, 0.12);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid rgba(20, 121, 68, 0.35);
  outline-offset: 2px;
}

.btn::after {
  content: "→";
  font-size: 1.1rem;
  margin-left: 12px;
}

.join-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.pill-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pill {
  border-radius: 12px;
  border: 1px solid #d9eadf;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 14px;
  line-height: 1.5;
}

.section {
  margin-bottom: 20px;
  padding: 24px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.3;
  position: relative;
  padding-bottom: 10px;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(13, 138, 74, 0.35));
}

.steps {
  counter-reset: flowstep;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.steps li {
  margin: 0 0 12px;
  padding: 12px 14px 12px 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fcfdff;
  position: relative;
  line-height: 1.6;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li::before {
  counter-increment: flowstep;
  content: counter(flowstep);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #dff3e8;
  color: #17663d;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.rule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.rule-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfcfd;
}

.rule-grid article,
.faq article,
.steps li,
.shot {
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rule-grid h3 {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  color: #3c4a58;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.rule-grid p {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

.hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.gallery {
  display: grid;
  gap: 12px;
}

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19;
  object-fit: cover;
}

.shot figcaption {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #f9fbff;
  line-height: 1.5;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfcfd;
}

.faq h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.foot-note {
  padding: 0 2px;
}

.foot-note p {
  margin: 4px 0 0;
  color: #728091;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.d1 {
  animation-delay: 20ms;
}

.d2 {
  animation-delay: 70ms;
}

.d3 {
  animation-delay: 120ms;
}

.d4 {
  animation-delay: 170ms;
}

.d5 {
  animation-delay: 220ms;
}

.d6 {
  animation-delay: 270ms;
}

.d7 {
  animation-delay: 310ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 620px) {
  .page {
    padding-top: 24px;
  }

  .pill-list {
    grid-template-columns: 1fr 1fr;
  }

  .rule-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    width: auto;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .btn,
  .card,
  .rule-grid article,
  .faq article,
  .steps li,
  .shot {
    transition: none;
  }
}
