:root {
  --bg: #f6f4ef;
  --ink: #1c1b19;
  --muted: #5e584f;
  --line: #ddd6cb;
  --accent: #1e5c45;
  --accent-soft: #e5efe9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang HK", "Noto Sans TC", "Heiti TC", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(246, 244, 239, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.logo {
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav { display: flex; gap: 22px; }

nav a {
  text-decoration: none;
  font-size: 15px;
}

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

main { padding-bottom: 24px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: center;
  padding: 56px 0 28px;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
}

h1, h2, .app-name, .step strong, .work-name strong {
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-weight: 600;
}

h1, h2 { margin: 0; }

h1 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.18;
  letter-spacing: 0.02em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
}

.lead {
  max-width: 40em;
  margin: 16px 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 8px 0 0;
}

.text-link {
  color: var(--accent);
  text-underline-offset: 4px;
}

.text-link.quiet { color: var(--ink); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 28px;
  margin: 32px 0 0;
}

.facts div { margin: 0; }

.facts b {
  display: block;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.facts span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.phone {
  justify-self: end;
  width: 232px;
  padding: 10px;
  border-radius: 32px;
  background: #24312c;
  box-shadow: 0 22px 40px rgba(28, 27, 25, 0.14);
}

.screen {
  min-height: 430px;
  padding: 14px 14px 18px;
  border-radius: 24px;
  background: #f8f5ef;
  color: var(--ink);
}

.status {
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.app-kicker {
  margin: 22px 0 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.app-name {
  margin: 2px 0 14px;
  font-size: 26px;
}

.pet {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 14px;
  background: var(--accent);
  color: #f6f4ef;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f6f4ef;
  color: var(--accent);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-weight: 600;
}

.pet span b {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.pet span {
  font-size: 12px;
  line-height: 1.35;
}

.app-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--accent);
  color: #f6f4ef;
}

.app-card span { font-size: 13px; }
.app-card strong { font-size: 28px; font-family: "Songti TC", serif; }

.app-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.app-row span { color: var(--muted); }
.app-row b { font-weight: 600; }

.app-btn {
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 999px;
  background: #1c1b19;
  color: #f6f4ef;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.08em;
}

section[id] {
  padding: 64px 0 8px;
  scroll-margin-top: 116px;
}

.rows,
.works,
.ask {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.rows li,
.works li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.rows li:last-child,
.works li:last-child { border-bottom: 1px solid var(--line); }

.rows span,
.works p,
.steps span {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.step,
.steps li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.steps b {
  display: block;
  color: var(--accent);
  font-family: "Songti TC", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.steps strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 22px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.features li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.features li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.features strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: 20px;
}

.features span {
  color: var(--muted);
}

.work-name em {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
}

section.studio {
  margin-top: 72px;
  padding: 32px 28px 28px;
  border-radius: 18px;
  background: var(--accent-soft);
}

.studio .lead { margin-bottom: 0; color: var(--ink); }

.ask {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.ask li {
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

address {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  font-style: normal;
  font-size: 17px;
  line-height: 1.6;
}

address p { margin: 0; }

address a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

address a:hover { text-decoration: underline; text-underline-offset: 4px; }

address span { color: var(--muted); }

footer {
  margin-top: 28px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p { margin: 0 0 4px; }

@media (max-width: 760px) {
  .hero,
  .steps,
  .features,
  .rows li,
  .works li { grid-template-columns: 1fr; }
  .phone { justify-self: center; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .studio { padding: 28px 22px; }
}

@media (max-width: 560px) {
  .bar { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px 0; }
  .facts b { font-size: 24px; }
  address { font-size: 16px; }
  .wrap { width: min(920px, calc(100% - 36px)); }
}

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