/* YinYang Food site: type, base, nav, buttons, hero, phones, overview.
   Sections are in sections.css, sub-pages in pages.css, motion and glass in motion.css. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: Georgia, "Noto Serif", "Songti SC", "Noto Serif SC", "Times New Roman", serif; /* the app's title face */
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --r: 16px;     /* the app's card radius */
  --r-lg: 24px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--sub); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-deep); }
p a, li a, td a { text-decoration: underline; text-decoration-color: rgba(var(--red-rgb), .35); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--red-rgb), .2); color: var(--text); }
h1, h2, h3 { color: var(--text); font-family: var(--serif); font-weight: 700; letter-spacing: -.012em; line-height: 1.1; text-wrap: balance; }
strong { color: var(--text); font-weight: 600; }
code { font-family: var(--mono); }
[lang^="zh"] { letter-spacing: .04em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--paper); font-weight: 600;
}
.skip:focus { top: 12px; color: var(--paper); }

/* ── Nav: the app's 3px red–gold–jade bar on top ─────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(245, 235, 224, .78); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
}
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--top-bar); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.22rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.wordmark:hover { color: var(--text); }
.wordmark svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 6px rgba(var(--red-rgb), .18)); }
.yang { color: var(--red); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; }
.nav-links a { position: relative; padding: 6px 0; color: var(--sub); }
.nav-links a:hover, .nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--red);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; font: inherit; font-size: .98rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  cursor: pointer; border: 0; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-primary {
  color: var(--paper); background: linear-gradient(100deg, #ab3a33, var(--red-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 30px -12px rgba(var(--red-rgb), .75), 0 0 44px -12px rgba(var(--gold-rgb), .55);
}
.btn-primary:hover {
  color: var(--paper); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 16px 38px -12px rgba(var(--red-rgb), .9), 0 0 56px -10px rgba(var(--gold-rgb), .65);
}
.btn-ghost { color: var(--text); background: rgba(250, 244, 235, .55); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-ghost:hover { color: var(--text); background: rgba(250, 244, 235, .95); box-shadow: inset 0 0 0 1px rgba(44, 24, 16, .4); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn .sep { opacity: .6; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero: the Five Elements wheel above the name ────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; text-align: center;
}
.hero-visual { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding-top: 2vh; }
.wuxing { width: clamp(230px, min(88vw, calc(100svh - 520px)), 560px); height: auto; overflow: visible; }
.wuxing text { font-family: var(--serif); font-weight: 700; }
.hero-copy { position: relative; padding-bottom: clamp(48px, 9vh, 100px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(250, 244, 235, .6);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.kicker .dot, .pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none;
  box-shadow: 0 0 0 4px rgba(var(--red-rgb), .12), 0 0 10px rgba(var(--red-rgb), .5);
}
.hero h1 { margin-top: 20px; font-size: clamp(3.1rem, 9.4vw, 7rem); letter-spacing: -.03em; line-height: .98; }
.hero-zh { margin-top: 14px; font-family: var(--serif); font-size: clamp(.95rem, 1.6vw, 1.1rem); font-style: italic; letter-spacing: .14em; color: var(--gold-text); }
.hero-sub { margin-top: 14px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: var(--text); text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 24px; list-style: none;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 28px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--red), transparent); transform-origin: top; }

/* ── Phones: real screenshots in a device frame ──────── */
.phone {
  position: relative; padding: 9px; border-radius: 44px; background: linear-gradient(150deg, #4a372b, var(--ink) 55%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 48px 90px -42px rgba(70, 36, 14, .7), 0 26px 60px -40px rgba(var(--red-rgb), .55);
}
.phone img { width: 100%; aspect-ratio: 720 / 1559; border-radius: 35px; background: var(--bg); }

/* ── Overview: three real screens, a lead and the numbers ─ */
.overview { position: relative; z-index: 1; padding-top: clamp(24px, 4vw, 56px); }
.phones { display: grid; grid-template-columns: 1fr 1.16fr 1fr; align-items: center; gap: clamp(14px, 3vw, 44px); max-width: 940px; margin: 0 auto; }
.phones .phone { margin: 0; }
.phones .left { transform: translateY(34px) rotate(-4deg); }
.phones .right { transform: translateY(34px) rotate(4deg); }
.phones .main { z-index: 1; }
.overview .caption { margin-top: 30px; text-align: center; }
.caption, figcaption { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.overview-lead { max-width: 780px; margin: clamp(40px, 6vw, 64px) auto 0; text-align: center; font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 1.55; color: var(--text); }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(36px, 5vw, 52px); list-style: none;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: rgba(250, 244, 235, .55);
}
.stats li { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats .v { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.15; color: var(--red); }
.stats .k { margin-top: 6px; font-size: .88rem; line-height: 1.4; }
