:root {
  --amber: #F2A045;
  --light: #F6C275;
  --black: #0A0A0A;
  --cream: #F5EFE6;
  --cream-70: rgba(245, 239, 230, 0.72);
  --cream-55: rgba(245, 239, 230, 0.58);
  --cream-12: rgba(245, 239, 230, 0.12);
  --serif: "Cormorant Garamond", Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html { background: var(--black); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:lang(zh) body, body:lang(zh) { line-height: 1.75; }

a { color: inherit; }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
  border-radius: 2px;
}

.product { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: var(--amber); }

/* Nav */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  position: relative;
  z-index: 2;
}

.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

.mark span { font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: -0.01em; }

.top nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--cream-70); }

.top nav a { text-decoration: none; }

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

.top nav .lang { color: var(--cream); padding-left: 26px; border-left: 1px solid var(--cream-12); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 0 64px var(--gutter);
  min-height: min(760px, calc(100vh - 80px));
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 13em;
}

.hero h1:lang(zh) { font-size: clamp(38px, 5vw, 70px); line-height: 1.2; letter-spacing: 0; max-width: 11em; }

.hero h1 .keep { display: inline-block; }

.lede { margin-top: 28px; max-width: 34em; font-size: 18px; color: var(--cream-70); }

.cta {
  display: inline-block;
  margin-top: 32px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--black);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.cta:hover { background: var(--light); }

.orbit { justify-self: end; width: min(100%, 640px); padding-right: var(--gutter); }

.orbit svg { display: block; width: 100%; height: auto; overflow: visible; }

.orbit text {
  fill: var(--cream);
  font-family: var(--sans);
  font-size: 19px;
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--black);
  stroke-width: 12px;
  stroke-linejoin: round;
}

.orbit .ring { fill: none; stroke: var(--amber); stroke-opacity: 0.55; }

.orbit .step { animation: grow 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-origin: 0 0; }

.orbit .s2 { animation-delay: 350ms; }

.orbit .s3 { animation-delay: 700ms; }

@keyframes grow {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1); }
}

/* Sections */
section.block { padding: 72px var(--gutter); border-top: 1px solid var(--cream-12); }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2:lang(zh) { line-height: 1.3; letter-spacing: 0; }

.intro { margin-top: 14px; max-width: 38em; color: var(--cream-70); }

/* Paths */
.paths { list-style: none; margin-top: 44px; }

.paths li {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2.4fr) minmax(170px, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 30px 0;
  border-top: 1px solid var(--cream-12);
}

.paths h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.2; }

.paths .body { max-width: 36em; }

.paths .body strong { font-weight: 500; font-size: 17px; display: block; margin-bottom: 6px; }

.paths .body p { color: var(--cream-70); }

.paths .for { margin-top: 10px; font-size: 14px; color: var(--cream-55); }

.go { justify-self: end; text-align: right; font-size: 15px; color: var(--cream); text-underline-offset: 4px; text-decoration-color: var(--amber); }

.go:hover { color: var(--light); }

/* Apps */
.apps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 44px; }

.apps img { display: block; width: 72px; height: 72px; border-radius: 16px; }

.apps h3 { margin-top: 18px; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }

.apps .kind { font-size: 14px; color: var(--cream-55); }

.apps p.desc { margin-top: 8px; color: var(--cream-70); max-width: 26em; }

.apps .links { margin-top: 12px; display: flex; gap: 18px; font-size: 14px; }

.apps .links a { text-underline-offset: 4px; text-decoration-color: var(--cream-55); }

/* About */
.about { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 3.4fr); gap: 32px; margin-top: 44px; }

.about dl { display: grid; gap: 28px; max-width: 42em; }

.about dt { font-size: 14px; color: var(--cream-55); }

.about dd { margin-top: 4px; font-family: var(--serif); font-size: 25px; line-height: 1.3; }

.about dd.plain { font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--cream-70); }

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--cream-12);
  font-size: 14px;
  color: var(--cream-55);
}

footer div { display: flex; flex-wrap: wrap; gap: 8px 22px; }

footer a { text-decoration: none; }

footer a:hover { color: var(--cream); }

@media (max-width: 900px) {
  .top nav a:not(.lang) { display: none; }
  .top nav .lang { border: 0; padding: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 16px var(--gutter) 40px; }
  .orbit { justify-self: center; width: 100%; max-width: 520px; margin: 8px 0 0; padding-right: 0; }
  .paths li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 26px 0; }
  .go { justify-self: start; text-align: left; }
  .apps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  section.block { padding: 56px var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit .step { animation: none; }
}
