/* Kimi homepage: nav, hero, peek, culture band, steps, value band, journey, FAQ, final call to action, footer. */
:root { --maxw: 1140px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: hidden; }
h1, h2, h3, .display { line-height: 1.06; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.accent { color: var(--jade); }
.dot { color: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border-radius: 999px;
  font-family: var(--kimi-font-display); font-weight: 700; font-size: 17px; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-app {
  min-height: 60px; padding: 0 20px; gap: 12px;
  background: var(--badge); color: #fff; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(17, 24, 21, 0.16);
  font-family: var(--kimi-font-body); touch-action: manipulation;
}
.btn-app:hover { background: #1d2a25; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(17, 24, 21, 0.2); }
.btn-app:active { transform: translateY(0) scale(0.98); }
.btn-app svg { width: 24px; height: 26px; flex-shrink: 0; }
.btn-app .lbl { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.1; }
.btn-app .lbl small { font-size: 10px; font-weight: 600; opacity: 0.8; }
.btn-app .lbl strong { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 384px; }
.action-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 4px; border-radius: 8px;
  color: var(--muted); font-size: 15px; font-weight: 700;
  transition: color 0.18s var(--ease); touch-action: manipulation;
}
.action-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.action-link:hover { color: var(--jade); }
.btn:focus-visible, .action-link:focus-visible { outline: 3px solid var(--jade); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .btn, .action-link { transition: none; }
  .btn-app:hover, .btn-app:active { transform: none; }
}

/* ---------- Device frame ---------- */
.device {
  width: min(288px, 78%);
  background: #16201d; border-radius: 44px; padding: 9px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s var(--ease);
}
.device .scr { border-radius: 36px; overflow: hidden; background: var(--rice); }
.device .scr img { width: 100%; height: auto; display: block; }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(3deg); }
.device:hover { transform: rotate(0deg) translateY(-6px); }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(234, 223, 201, 0.8);
}
@media (prefers-reduced-transparency: reduce) { header.nav { background: var(--rice); backdrop-filter: none; } }
.nav-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; color: var(--muted); font-size: 15px; transition: color 0.15s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn-app { width: 140px; min-height: 46px; padding: 0 12px; gap: 8px; box-shadow: 0 4px 12px rgba(17, 24, 21, 0.1); }
.nav-cta .btn-app svg { width: 18px; height: 18px; }
.nav-cta .btn-app .lbl { gap: 2px; }
.nav-cta .btn-app .lbl small { font-size: 8px; }
.nav-cta .btn-app .lbl strong { font-size: 14px; }
.nav-download { display: none; min-height: 44px; padding: 0 18px; gap: 8px; background: var(--jade); color: #fff; font-family: var(--kimi-font-body); font-size: 14px; box-shadow: 0 4px 12px rgba(9, 102, 77, 0.18); }
.nav-download svg { width: 18px; height: 18px; }
.nav-download:hover { background: var(--jade-deep); }
@media (max-width: 720px) {
  .nav-inner { height: 68px; }
  .nav-links { display: none; }
  .nav-cta .btn-app { display: none; }
  .nav-download { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(130% 100% at 88% -10%, rgba(248, 190, 101, 0.28) 0%, transparent 46%),
    linear-gradient(180deg, var(--rice) 0%, #f6f4e6 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 40px; align-items: center; padding: 62px 22px 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  color: var(--jade); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 20px; box-shadow: var(--shadow-card);
}
.eyebrow img { width: 16px; height: 16px; }
.eyebrow b { color: var(--ink); }
.hero h1 { font-size: clamp(38px, 6.2vw, 62px); font-weight: 700; }
.hero-sub { margin: 20px 0 30px; max-width: 32ch; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); font-weight: 500; line-height: 1.5; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
#download { scroll-margin-top: 100px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.hero-blob {
  position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, #ffffff 0%, #e2f4e7 58%, var(--mist) 100%); z-index: 0;
}
.hero-visual .device { position: relative; z-index: 2; }
.ktile {
  position: absolute; z-index: 3; background: #fff; border-radius: 16px;
  box-shadow: 0 14px 26px rgba(24, 38, 34, 0.14); display: grid; place-items: center;
  font-family: var(--kimi-font-zh); font-weight: 700; color: var(--ink);
}
.ktile.k1 { width: 62px; height: 62px; font-size: 30px; top: 8%; left: 2%; color: var(--jade); }
.ktile.k2 { width: 54px; height: 54px; font-size: 26px; top: 26%; right: 0%; color: var(--coral); }
.ktile.k3 { width: 50px; height: 50px; font-size: 24px; bottom: 20%; left: 0%; }
.ktile.k4 { width: 46px; height: 46px; font-size: 22px; bottom: 6%; right: 8%; color: var(--jade); }

.float { animation: floaty 6s ease-in-out infinite; }
.float.slow { animation-duration: 8s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---------- Section shell ---------- */
.band { padding: 74px 0; }
.band-peek { background: linear-gradient(180deg, #f6f4e6 0%, var(--rice) 100%); }
.band-how { background: linear-gradient(180deg, var(--rice) 0%, var(--mist-soft) 100%); }
.band-journey { background: linear-gradient(180deg, var(--rice) 0%, #fbf5ea 100%); }
.sec-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.sec-head .kicker { display: inline-block; color: var(--jade); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 700; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 18px; font-weight: 500; line-height: 1.5; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { display: grid; place-items: center; }
.split-copy h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 700; }
.split-copy p { margin-top: 16px; color: var(--muted); font-size: 18px; font-weight: 500; line-height: 1.55; max-width: 46ch; }
.checks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 16px; }
.checks .tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--jade); color: #fff; display: grid; place-items: center; font-size: 14px; font-family: var(--kimi-font-body); }
.checks li.apricot .tick { background: var(--apricot); color: var(--ink); }

.scene-card { width: min(440px, 100%); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid rgba(255, 255, 255, 0.7); position: relative; }
.scene-card .cap { position: absolute; left: 16px; bottom: 14px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-family: var(--kimi-font-display); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-card); }
.scene-card .cap .zh { font-weight: 700; color: var(--jade); }
/* Illustrated stand-in until scene art exists: mist field with Kimi celebrating. */
.scene-card.scene-placeholder {
  aspect-ratio: 5 / 4; display: grid; place-items: center;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
    repeating-linear-gradient(-38deg, rgba(9, 102, 77, 0.05) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, var(--mist) 0%, #f3e3c2 100%);
}
.scene-card.scene-placeholder img { width: 46%; height: auto; margin-bottom: 34px; filter: drop-shadow(0 18px 24px rgba(7, 79, 61, 0.22)); }

/* ---------- Culture (scene) band ---------- */
.scene-band { position: relative; border-radius: 34px; overflow: hidden; min-height: 380px; display: grid; align-items: center; }
.scene-band.scene-placeholder {
  background:
    radial-gradient(70% 90% at 85% 20%, rgba(205, 237, 215, 0.28) 0%, transparent 60%),
    repeating-linear-gradient(-38deg, rgba(255, 248, 236, 0.06) 0 3px, transparent 3px 34px),
    linear-gradient(105deg, #063b2e 0%, var(--jade-deep) 45%, #0b7a5b 100%);
}
.scene-glyphs {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%); z-index: 0;
  font-family: var(--kimi-font-zh); font-weight: 700; font-size: clamp(120px, 18vw, 230px); line-height: 1;
  color: rgba(255, 248, 236, 0.07); letter-spacing: 0.04em; white-space: nowrap; user-select: none;
}
.scene-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 20px; align-items: center; padding: 46px 44px; }
.scene-inner h2 { color: #fff; font-size: clamp(28px, 4.2vw, 42px); font-weight: 700; max-width: 16ch; }
.scene-inner p { color: #d7ece0; font-weight: 500; font-size: 18px; line-height: 1.55; margin-top: 16px; max-width: 40ch; }
.scene-mascot { justify-self: center; width: min(200px, 60%); height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35)); }

/* ---------- 3-step ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 auto; padding-left: 22px; padding-right: 22px; list-style: none; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 30px 26px; box-shadow: var(--shadow-card); }
.step .num { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-family: var(--kimi-font-display); font-weight: 700; font-size: 22px; color: #fff; background: var(--jade); margin-bottom: 18px; box-shadow: 0 10px 20px rgba(9, 102, 77, 0.28); }
.step:nth-child(2) .num { background: var(--apricot); color: var(--ink); box-shadow: 0 10px 20px rgba(248, 190, 101, 0.4); }
.step:nth-child(3) .num { background: var(--ink); box-shadow: 0 10px 20px rgba(24, 38, 34, 0.26); }
.step h3 { font-size: 22px; font-weight: 600; }
.step p { margin-top: 8px; color: var(--muted); font-weight: 500; font-size: 15.5px; line-height: 1.5; }

/* ---------- Jade value band ---------- */
.value-band { background: radial-gradient(120% 120% at 12% 0%, #0d7d5e 0%, var(--jade-deep) 60%); color: #fff; border-radius: 34px; padding: 54px 40px; overflow: hidden; position: relative; }
.value-band h2 { color: #fff; font-size: clamp(26px, 3.8vw, 40px); font-weight: 700; max-width: 18ch; }
.value-band .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.value-band .stat .big { font-family: var(--kimi-font-display); font-weight: 700; font-size: clamp(34px, 5vw, 50px); color: #fff; line-height: 1.1; }
.value-band .stat .big .accent { color: var(--apricot); }
.value-band .stat .lbl { color: #c4e3d2; font-weight: 600; margin-top: 4px; font-size: 15px; }
.value-band .glow { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(205, 237, 215, 0.35), transparent 70%); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--kimi-font-display); font-weight: 600; font-size: 18px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--mist-soft); display: grid; place-items: center; color: var(--jade); font-weight: 700; transition: transform 0.2s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-weight: 500; line-height: 1.6; padding: 0 0 20px; font-size: 16px; }
.faq details p a { color: var(--jade); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.final { background: linear-gradient(180deg, var(--jade) 0%, #063f31 100%); color: #fff; text-align: center; overflow: hidden; position: relative; }
.final h2 { color: #fff; font-size: clamp(30px, 5vw, 50px); font-weight: 700; max-width: 16ch; margin: 0 auto; }
.final p { color: #cfe8db; font-weight: 500; font-size: 18px; margin: 18px auto 30px; max-width: 40ch; }
.final .hero-actions { align-items: center; }
.final .store-buttons { justify-content: center; }
.final .btn-app { background: #fff; color: var(--badge); border-color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.final .btn-app:hover { background: var(--rice); }
.final .btn-app .lbl small { opacity: 0.72; }
.final .action-link { color: #cfe8db; }
.final .action-link:hover { color: #fff; }
.final .btn:focus-visible, .final .action-link:focus-visible { outline-color: var(--apricot); }
.final-mascot { width: 160px; height: auto; margin: 34px auto 0; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35)); }

/* ---------- Footer ---------- */
footer.ft { background: var(--night); color: #a9c2b8; padding: 40px 0; }
.ft-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ft-brand { display: inline-flex; align-items: center; gap: 10px; }
.ft-brand img { height: 28px; width: auto; }
.ft-links { display: flex; gap: 22px; flex-wrap: wrap; }
.ft-links a { color: #a9c2b8; font-weight: 600; font-size: 15px; transition: color 0.15s; }
.ft-links a:hover { color: #fff; }
.ft-copy { color: #6f8a80; font-size: 14px; font-weight: 500; width: 100%; margin-top: 6px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 44px 22px 56px; text-align: center; }
  .hero h1 { font-size: clamp(38px, 6.6vw, 58px); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { align-items: center; }
  .store-buttons { justify-content: center; }
  .hero-visual { width: min(470px, 100%); min-height: 0; justify-self: center; }
  .split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .split.reverse .split-media { order: -1; }
  .split-copy p { margin-left: auto; margin-right: auto; }
  .checks { justify-items: center; }
  .checks li { justify-content: flex-start; text-align: left; }
  .scene-inner { grid-template-columns: 1fr; text-align: center; padding: 40px 26px; }
  .scene-inner h2 { margin: 0 auto; }
  .scene-inner p { margin-left: auto; margin-right: auto; }
  .scene-mascot { order: -1; margin-bottom: 8px; }
  .scene-glyphs { top: auto; bottom: -10px; transform: none; right: 50%; translate: 50% 0; }
  .steps { grid-template-columns: 1fr; }
  .value-band .stats { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .value-band h2 { margin: 0 auto; text-align: center; }
}
@media (max-width: 560px) {
  .hero-grid { gap: 30px; padding-top: 36px; padding-bottom: 44px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 46px); line-height: 1.08; }
  .eyebrow { font-size: 12px; gap: 6px; padding: 8px 12px; margin-bottom: 18px; }
  .hero-sub { font-size: 17px; line-height: 1.55; margin-top: 18px; margin-bottom: 24px; }
  .store-buttons { max-width: 360px; gap: 10px; }
  .store-buttons .btn-app { min-height: 56px; gap: 8px; padding: 0 16px; }
  .store-buttons .btn-app svg { width: 22px; height: 24px; }
  .store-buttons .btn-app .lbl small { font-size: 9px; }
  .store-buttons .btn-app .lbl strong { font-size: 16px; }
  .hero-visual { width: min(360px, 100%); }
  .hero-visual .device { width: 72%; max-width: 248px; animation: none; transform: none; }
  .hero-visual .ktile { border-radius: 13px; }
  .hero-visual .k1 { width: 44px; height: 44px; font-size: 24px; top: 12%; left: 0; }
  .hero-visual .k2 { width: 44px; height: 44px; font-size: 24px; top: 28%; right: 0; }
  .hero-visual .k3 { width: 40px; height: 40px; font-size: 22px; bottom: 20%; left: 2%; }
  .hero-visual .k4 { width: 38px; height: 38px; font-size: 21px; bottom: 6%; right: 4%; }
  .band { padding: 54px 0; }
  .value-band { padding: 38px 24px; border-radius: 26px; }
  .scene-band { border-radius: 26px; }
  footer.ft { padding: 32px 0; }
  .ft-inner { justify-content: center; text-align: center; }
  .ft-links { justify-content: center; gap: 12px 18px; }
  .device { width: min(258px, 74%); }
}
