/* PianoAnyway marketing — refined, bilingual-ready */
:root {
  --bg0: #0b0f14;
  --bg1: #121820;
  --ink: #f2f4f7;
  --muted: #9aa6b5;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #dcc56f;
  --gold-soft: #e8d7a0;
  --max: 40rem;
  --font-display: "Fraunces", "Noto Serif TC", "Noto Serif SC", "Songti TC", "Songti SC", serif;
  --font-body: "Source Sans 3", "Noto Sans TC", "Noto Sans SC", "PingFang TC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft JhengHei", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: 0.01em;
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* CJK: slightly tighter tracking, clearer rhythm */
:lang(zh),
:lang(zh-Hant),
:lang(zh-Hans) {
  letter-spacing: 0.02em;
  line-height: 1.75;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(95, 140, 185, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(180, 140, 90, 0.08), transparent 50%),
    linear-gradient(180deg, #0b0f14 0%, #10161e 48%, #0b0f14 100%);
}

a {
  color: var(--gold);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-soft);
}

.wrap {
  width: min(100% - 2.25rem, 56rem);
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.lang-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
}

.lang-pick label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lang-pick select {
  appearance: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 2rem 0.4rem 0.9rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa6b5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-pick select:hover,
.lang-pick select:focus {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(12rem, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: center;
  padding: 2.25rem 0 2.75rem;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.4rem, 7vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

:lang(zh) .hero h1,
:lang(zh-Hant) .hero h1,
:lang(zh-Hans) .hero h1 {
  letter-spacing: -0.01em;
}

.hero .line {
  margin: 0;
  max-width: 22rem;
  color: color-mix(in srgb, var(--ink) 90%, var(--muted));
  font-size: clamp(1.05rem, 2.2vw, 1.18rem);
  line-height: 1.45;
  font-weight: 450;
}

.hero .line + .line {
  margin-top: 0.35rem;
}

:lang(zh) .hero .line,
:lang(zh-Hant) .hero .line,
:lang(zh-Hans) .hero .line {
  line-height: 1.65;
  max-width: 24rem;
}

.hero .sub {
  margin: 1rem 0 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero-visual {
  margin: 0;
  justify-self: end;
  width: min(100%, 22rem);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22%;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0 0 2.75rem;
}

.gallery .shot {
  margin: 0;
}

.gallery .shot img,
.gallery .shot-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  object-fit: cover;
}

.gallery .shot img {
  border-radius: 22%;
}

.gallery .shot-frame {
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(0, 0, 0, 0.25);
}

.gallery .shot-frame span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.gallery figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  margin-top: 2rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  color: #1a1610;
  background: linear-gradient(180deg, #edd98a, #c9a84c);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.btn-primary:hover {
  color: #1a1610;
  filter: brightness(1.04);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-note {
  margin: 0;
  width: 100%;
  color: var(--muted);
  font-size: 0.84rem;
}

.points {
  display: grid;
  gap: 0;
  padding: 0 0 3.75rem;
  border-top: 1px solid var(--line);
}

.point {
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.point:last-child {
  border-bottom: 0;
}

.point h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.point p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

:lang(zh) .point p,
:lang(zh-Hant) .point p,
:lang(zh-Hans) .point p {
  line-height: 1.75;
}

[data-lang-panel][hidden] {
  display: none !important;
}

.shot-pending {
  margin: 1rem 0 1.25rem;
}

.shot-placeholder {
  padding: 1.15rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.shot-pending img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.page {
  padding: 1.75rem 0 4rem;
}

.page h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page .lede {
  margin: 0 0 1.35rem;
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.98rem;
}

.page .lang-pick {
  margin: 0 0 1.75rem;
}

.toc {
  margin: 0 0 2.25rem;
  padding: 1.05rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.toc strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
}

.toc ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.toc li + li {
  margin-top: 0.4rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.faq-block {
  margin: 0 0 2.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.25rem;
}

.faq-block h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 650;
}

.faq-block p,
.faq-block li {
  color: color-mix(in srgb, var(--ink) 80%, var(--muted));
}

.faq-block p {
  margin: 0 0 0.75rem;
}

.faq-block p:last-child {
  margin-bottom: 0;
}

.faq-block ul {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.2rem;
}

.faq-block li + li {
  margin-top: 0.35rem;
}

.faq-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.75rem 0 1rem;
}

.faq-block th,
.faq-block td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.faq-block th {
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-weight: 600;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.5rem 0 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--gold);
}

.foot-legal span:first-child {
  max-width: 38rem;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 1.75rem;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 16rem);
    order: -1;
  }

  .gallery {
    grid-template-columns: 1fr;
    max-width: 18rem;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 1.5rem, 56rem);
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .cta-note {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .nav a,
  .lang-pick select {
    transition: none;
  }
}
