/* ============================================================
   BetterMeAndCat · Landing
   北极星：一只橙猫在暖阳里向你招手
   暖奶油 + 像素贴纸 · 单一浅色身份（产品本身即浅色）
   ============================================================ */

:root {
  /* 色板（取自 App 像素图标） */
  --cream: #f7f0e4;
  --cream-2: #fbf6ec;
  --cream-deep: #efe4d1;
  --paper: #fffdf8;
  --ink: #2e1e14;
  --ink-soft: #6d5743;
  --muted: #a3906f;
  --orange: #e88b3e;
  --orange-deep: #d4762a;
  --orange-soft: #f6d3a6;
  --teal: #2f9b94;
  --teal-soft: #bfe4e0;
  --yellow: #f5c84e;
  --yellow-soft: #fbe7a8;
  --grass: #7fb84e;
  --line: #e2d4bd;
  --line-strong: #d4c0a0;

  --shadow-pix: 6px 6px 0 var(--ink);
  --shadow-pix-sm: 4px 4px 0 var(--ink);
  --shadow-soft: 0 24px 60px rgba(72, 46, 24, 0.18);

  --display: "Baloo 2", "Marker Felt", "PingFang SC", "Microsoft YaHei", sans-serif;
  --pixel: "Press Start 2P", "SFMono-Regular", Menlo, monospace;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
}

/* fix accidental tokens */
:root {
  --og-ok: 1;
}

* { box-sizing: border-box; }

/* ---------- i18n：中英切换（无 JS 时默认显示中文） ---------- */
.i18n { display: none; }
html[data-lang="zh"] .i18n.zh,
html[data-lang="en"] .i18n.en { display: revert; }

/* 语言切换按钮 */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0.45rem 0.6rem;
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-pix-sm);
  cursor: pointer;
  transition: transform 90ms ease, box-shadow 90ms ease, background 140ms ease;
}
.lang-toggle:hover { background: var(--yellow-soft); }
.lang-toggle:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }


html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 15% -5%, rgba(245, 200, 78, 0.28), transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(232, 139, 62, 0.16), transparent 38%),
    radial-gradient(rgba(176, 142, 94, 0.16) 1.4px, transparent 1.4px);
  background-size: auto, auto, 26px 26px;
  background-position: 0 0, 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1180px, calc(100% - 8vw));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem; left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-sm);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- eyebrow / pixel labels ---------- */
.pix-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #9c4a12;
  text-transform: uppercase;
}
.pix-label::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--orange);
  box-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink);
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(247, 240, 228, 0.82);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand img {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-pix-sm);
  image-rendering: pixelated;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 140ms ease;
}
.site-nav a:hover { color: var(--orange-deep); }
.nav-cta { white-space: nowrap; }

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff8ee;
  box-shadow: var(--shadow-pix-sm);
  transition: transform 90ms ease, box-shadow 90ms ease, background 140ms ease, color 140ms ease;
}
.btn:hover { background: var(--yellow); color: var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn .arrow { font-weight: 800; }

.btn-lg {
  padding: 1rem 1.4rem;
  font-size: 1rem;
  box-shadow: var(--shadow-pix);
  border-radius: var(--radius);
}
.btn-lg:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn-store {
  align-items: center;
  text-align: left;
  gap: 0.85rem;
}
.btn-store img { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--ink); image-rendering: pixelated; }
.btn-store .lines { display: flex; flex-direction: column; line-height: 1.15; }
.btn-store .lines small { font-size: 0.68rem; font-weight: 600; opacity: 0.72; }
.btn-store .lines strong { font-size: 1.02rem; font-family: var(--display); font-weight: 800; }

/* ================= HERO ================= */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  margin: 1.2rem 0 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 .mark {
  position: relative;
  color: var(--orange-deep);
  white-space: nowrap;
}
.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: 0.04em;
  height: 0.34em;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1.2deg);
  border-radius: 3px;
}
.hero-sub {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-sub-en {
  margin: 0 0 2rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 1.4rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.hero-trust div { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-trust strong { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.hero-trust span { font-size: 0.74rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }

/* hero visual: floating phones + mascot */
.hero-visual {
  position: relative;
  min-height: clamp(380px, 48vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone {
  border-radius: 34px;
  border: 3px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone--front {
  position: relative;
  z-index: 3;
  width: clamp(200px, 25vw, 290px);
  aspect-ratio: 393/852;
  will-change: transform;
}
.phone--back {
  position: absolute;
  z-index: 2;
  width: clamp(166px, 21vw, 240px);
  aspect-ratio: 393/852;
  right: 2%;
  top: 6%;
  transform: rotate(5deg);
  opacity: 0.96;
  will-change: transform;
}
.mascot {
  position: absolute;
  z-index: 4;
  left: -2%;
  bottom: 4%;
  width: clamp(90px, 13vw, 150px);
  height: auto;
  border-radius: 20px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-pix);
  image-rendering: pixelated;
  will-change: transform;
}
.sun {
  position: absolute;
  z-index: 1;
  top: -3%; left: 8%;
  width: clamp(70px, 9vw, 110px);
  height: auto;
  will-change: transform;
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: clamp(320px, 72vw, 440px); }
  .mascot { left: 4%; }
}

/* ================= SECTION FRAME ================= */
section.band { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 {
  margin: 0.8rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
.section-head p {
  margin: 0.7rem 0 0;
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

/* ================= CORE LOOP ================= */
.loop { background: var(--cream-2); border-block: 2px solid var(--line); }
.loop-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.loop-card {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pix);
  padding: 1.6rem 1.5rem 1.7rem;
  will-change: transform;
}
.loop-card .num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-family: var(--pixel);
  font-size: 0.72rem;
  background: var(--teal);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.loop-card:nth-child(2) .num { background: var(--orange-deep); }
.loop-card:nth-child(3) .num { background: #5f9e3a; }
.loop-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}
.loop-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.72; }

@media (max-width: 760px) { .loop-steps { grid-template-columns: 1fr; } }

/* ================= FEATURES ================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.6vw, 2rem);
}
.feature {
  display: grid;
  grid-template-columns: minmax(96px, 34%) 1fr;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pix-sm);
  overflow: hidden;
  will-change: transform;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.feature:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.feature-shot {
  border-right: 2.5px solid var(--ink);
  background: var(--cream-deep);
  overflow: hidden;
}
.feature-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  min-height: 100%;
}
.feature-body {
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
}
.feature-body .tag {
  font-family: var(--pixel);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  color: #1f6f69;
  text-transform: uppercase;
}
.feature-body h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1.15;
  color: var(--ink);
}
.feature-body p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; }

@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .feature { grid-template-columns: 40% 1fr; } }

/* ================= DOWNLOAD ================= */
.download { background: var(--cream-2); border-top: 2px solid var(--line); }
.download-inner {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow-pix);
  padding: clamp(2rem, 4vw, 3.4rem);
}
.download-inner h2 {
  margin: 0.8rem 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.download-inner p { margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.72; }
.download-inner .en { font-style: italic; font-size: 0.86rem; color: var(--muted); }
.download-actions { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.download-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.4rem; }
.download-tags > span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow-soft);
}

@media (max-width: 760px) { .download-inner { grid-template-columns: 1fr; } }

/* ================= FOOTER ================= */
.site-footer {
  padding-block: 2.4rem;
  border-top: 2px solid var(--line);
  background: var(--cream);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.site-footer .fam { display: flex; align-items: center; gap: 0.6rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--orange-deep); }
.site-footer .links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ================= reveal defaults ================= */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; }
}
