/* LAICAI MANAGER download page — brand: navy #0E2937, gold #D6B16C, cream #FAF5EE (docs/brand). */
:root {
  --navy: #0e2937;
  --navy-2: #1d4257;
  --navy-3: #0a1e29;
  --gold: #d6b16c;
  --gold-2: #e8cf9c;
  --cream: #faf5ee;
  --ink: #1e2631;
  --muted: #6b7684;
  --line: #e7e2d8;
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(14, 41, 55, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(800px, 100% - 40px); }
.gold { color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 41, 55, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(214, 177, 108, 0.18);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { border-radius: 9px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word b { font-family: var(--serif); letter-spacing: 0.08em; font-size: 18px; }
.brand__word small { color: var(--gold); letter-spacing: 0.42em; font-size: 9px; margin-top: 4px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 15px; }
.nav__links a:hover { color: #fff; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.lang button {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.75);
  font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; justify-content: center;
  border-radius: 14px; padding: 12px 20px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font: inherit; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.btn span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.btn small { font-size: 12px; font-weight: 500; opacity: .8; }
.btn b { font-size: 18px; }
.btn--lg { padding: 14px 24px; min-width: 200px; justify-content: flex-start; }
.btn--primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 10px 26px rgba(214, 177, 108, 0.35); }
.btn--primary:hover { box-shadow: 0 14px 34px rgba(214, 177, 108, 0.5); }
.btn--glass { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 85% 0%, #24506a 0%, var(--navy) 45%, var(--navy-3) 100%);
  padding: 72px 0 96px;
}
.hero__glow {
  position: absolute; inset: auto -10% -45% -10%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(214, 177, 108, 0.22), transparent 70%);
  pointer-events: none;
}
.hero::after { /* soft hills, like the app's launch page */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--cream);
  clip-path: path("M0,60 C240,10 420,90 720,50 C1000,12 1240,80 1440,40 L1440,90 L0,90 Z");
  clip-path: ellipse(75% 60% at 50% 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 0.08em; font-size: 14px; margin: 0 0 14px; text-transform: uppercase; }
.eyebrow--dark { color: #b48a3f; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.01em; font-weight: 800; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.78); max-width: 34em; margin: 20px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.meta { color: rgba(255, 255, 255, 0.6); font-size: 14px; margin: 14px 0 0; }
.qr {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; padding: 14px 18px 14px 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
}
.qr__code { width: 104px; height: 104px; padding: 8px; background: #fff; border-radius: 12px; flex: none; }
.qr__code img, .qr__code canvas { width: 88px !important; height: 88px !important; }
.qr__title { margin: 0; font-weight: 700; }
.qr__text { margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.65); max-width: 15em; }

.hero__phones { position: relative; height: 560px; }
.phone {
  margin: 0; background: #0b0f14; border-radius: 38px; padding: 9px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  aspect-ratio: 1080 / 2400; overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; background: var(--cream); }
.phone--front { position: absolute; width: 260px; right: 18%; top: 0; rotate: -3deg; z-index: 2; }
.phone--back { position: absolute; width: 230px; right: -2%; top: 70px; rotate: 6deg; opacity: .92; }

/* ---------- stats ---------- */
.stats {
  position: relative; z-index: 3; margin-top: -40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.stats > div { background: #fff; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: 22px; color: var(--navy); }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--navy); margin-bottom: 40px; max-width: 20em; }
.section--cream { background: #f3ece1; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2 { color: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin: 16px 0 8px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: var(--gold); font-size: 22px; font-weight: 800;
}

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); }
.role--dark { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-12px); box-shadow: var(--shadow); }
.role--dark h3 { color: #fff !important; }
.role--dark li { color: rgba(255, 255, 255, 0.78) !important; }
.role__tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--gold-2); padding: 4px 12px; border-radius: 999px; }
.role h3 { font-size: 22px; margin: 16px 0 12px; color: var(--navy); }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.role li { color: var(--muted); padding-left: 24px; position: relative; }
.role li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100% - 1160px) / 2)) 24px;
  scrollbar-width: thin;
}
.shots figure { margin: 0; scroll-snap-align: start; text-align: center; }
.shots figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 28px; }
.steps b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 18px; }
.steps h3 { margin: 16px 0 8px; font-size: 19px; }
.steps p { margin: 0; color: rgba(255, 255, 255, 0.72); }

details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--muted); }

.footer { background: var(--navy-3); color: rgba(255, 255, 255, 0.6); padding: 40px 0 120px; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer p { margin: 0; }
.footer__copy { margin-left: auto !important; }

/* Phone dock: shown on small screens only */
.dock {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: rgba(255, 255, 255, 0.96); border-radius: 18px; box-shadow: 0 12px 40px rgba(14, 41, 55, 0.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dock img { border-radius: 10px; }
.dock div { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.dock b { color: var(--navy); font-size: 15px; }
.dock small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .btn { padding: 10px 20px; }

/* In-app browser overlay */
.inapp {
  position: fixed; inset: 0; z-index: 50; background: rgba(10, 30, 41, 0.94); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px;
}
.inapp[hidden] { display: none; }
.inapp__arrow { position: absolute; top: 12px; right: 22px; font-size: 54px; color: var(--gold); animation: nudge 1.2s ease-in-out infinite; }
.inapp__title { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.inapp__text { color: rgba(255, 255, 255, 0.8); margin: 0 0 24px; max-width: 20em; }
@keyframes nudge { 50% { transform: translate(4px, -6px); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__phones { height: 420px; }
  .phone--front { width: 200px; right: auto; left: 50%; margin-left: -150px; }
  .phone--back { width: 180px; right: auto; left: 50%; margin-left: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .hero { padding: 48px 0 84px; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .btn--lg { min-width: 0; flex: 1 1 200px; }
  .qr { display: none; }
  .roles, .steps { grid-template-columns: 1fr; }
  .role--dark { transform: none; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .shots { grid-auto-columns: 210px; }
  .dock { display: flex; }
  .footer__copy { margin-left: 0 !important; }
}

/* ================= motion ================= */
/* Everything below is decoration: content is fully visible without it,
   and prefers-reduced-motion turns it off. */

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none;
  background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* nav condenses after scrolling */
.nav { transition: background .3s ease, box-shadow .3s ease; }
.nav.is-scrolled { background: rgba(10, 30, 41, 0.94); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); }
.nav__links a { position: relative; transition: color .2s ease; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.nav__links a:hover::after { transform: scaleX(1); }
.lang button { transition: background .25s ease, color .25s ease; }

/* hero: drifting light, sparkles, staggered entrance */
.hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: .55; }
.hero__orb--a { width: 420px; height: 420px; background: #2f6b8a; top: -120px; right: 8%; animation: drift 18s ease-in-out infinite alternate; }
.hero__orb--b { width: 320px; height: 320px; background: rgba(214, 177, 108, 0.45); bottom: -60px; left: -80px; animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift { 0% { translate: 0 0; } 50% { translate: 40px 30px; } 100% { translate: -30px 50px; } }
.hero__glow { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-2);
  box-shadow: 0 0 8px 2px rgba(232, 207, 156, .6); opacity: 0; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0% { opacity: 0; translate: 0 0; } 40% { opacity: .9; } 100% { opacity: 0; translate: 0 -40px; } }

.hero__copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__copy > :nth-child(1) { animation-delay: .05s; }
.hero__copy > :nth-child(2) { animation-delay: .15s; }
.hero__copy > :nth-child(3) { animation-delay: .27s; }
.hero__copy > :nth-child(4) { animation-delay: .39s; }
.hero__copy > :nth-child(5) { animation-delay: .48s; }
.hero__copy > :nth-child(6) { animation-delay: .58s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* gold headline shimmer */
.hero h1 .gold {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 40%, #fff3d6 50%, var(--gold) 60%, var(--gold) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s ease-in-out 1.2s infinite;
}
@keyframes sheen { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0 0; } }

/* phones: slide in, then float */
.phone--front { animation: phoneIn 1s cubic-bezier(.2, .7, .2, 1) .25s both, float 6s ease-in-out 1.3s infinite; }
.phone--back { animation: phoneInBack 1s cubic-bezier(.2, .7, .2, 1) .45s both, float 7s ease-in-out 1.5s infinite reverse; }
@keyframes phoneIn { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes phoneInBack { from { opacity: 0; translate: 60px 40px; } to { opacity: .92; translate: 0 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.hero__phones .phone::after { /* glass glare */
  content: ""; position: absolute; inset: 9px; border-radius: 30px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%);
  background-size: 300% 100%; animation: glare 7s ease-in-out 2s infinite;
}
@keyframes glare { 0% { background-position: 120% 0; } 30%, 100% { background-position: -40% 0; } }
.phone img { transition: opacity .35s ease; }

/* primary button: light sweep + lift */
.btn { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: sweep 4.5s ease-in-out 1.6s infinite; pointer-events: none;
}
@keyframes sweep { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { transition: transform .3s ease; }
.btn:hover svg { transform: scale(1.12) rotate(-6deg); }

/* QR: scanning line */
.qr__code { position: relative; overflow: hidden; }
.qr__code::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 2px; top: 8px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 10px var(--gold);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 8px; opacity: .2; } 50% { top: calc(100% - 10px); opacity: 1; } }

/* scroll reveal (classes added by site.js) */
.js-motion .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms); }
.js-motion .reveal.is-in { opacity: 1; translate: 0 0; }

/* cards */
.card { position: relative; overflow: hidden; }
.card::before { /* gold edge on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--gold), transparent 45%, transparent 55%, var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.card:hover::before { opacity: 1; }
.ico { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease; }
.card:hover .ico { transform: rotate(-8deg) scale(1.08); box-shadow: 0 8px 20px rgba(14, 41, 55, .3); }
.role { transition: box-shadow .3s ease; }
.role:hover { box-shadow: var(--shadow); }
.role li::before { transition: transform .3s ease; }
.role:hover li::before { transform: scale(1.25); }
.stats > div { transition: background .3s ease; }
.stats > div:hover { background: #fffaf2; }

/* screenshots */
.shots figure .phone { position: relative; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.shots figure:hover .phone { transform: translateY(-10px); box-shadow: 0 28px 60px rgba(14, 41, 55, .25); }

/* install steps: pulsing numbers */
.steps b { position: relative; }
.steps b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold);
  animation: ring 2.4s ease-out infinite; }
.steps li:nth-child(2) b::after { animation-delay: .8s; }
.steps li:nth-child(3) b::after { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.steps li { transition: background .3s ease, border-color .3s ease; }
.steps li:hover { background: rgba(255, 255, 255, .1); border-color: rgba(214, 177, 108, .45); }

/* FAQ */
summary::after { transition: transform .3s ease; }
details[open] summary::after { content: "+"; transform: rotate(45deg); }
details[open] p { animation: rise .4s ease both; }
details { transition: box-shadow .3s ease, border-color .3s ease; }
details:hover, details[open] { border-color: rgba(214, 177, 108, .5); box-shadow: 0 8px 24px rgba(14, 41, 55, .07); }

/* language switch: quick crossfade */
[data-i18n] { transition: opacity .18s ease; }
.is-swapping [data-i18n] { opacity: 0; }

/* phone dock slides up */
.dock { animation: dockIn .6s cubic-bezier(.2, .7, .2, 1) 1s both; }
@keyframes dockIn { from { translate: 0 140%; } to { translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-motion .reveal { opacity: 1; translate: none; }
  .sparkles, .progress { display: none; }
}
