/* ===========================================================
   BRmesh site — styles
   =========================================================== */

:root {
  --ink:        #0b1220;
  --body:       #374151;
  --muted:      #6b7280;
  --faint:      #9ca3af;
  --line:       #e8ebf0;
  --soft:       #f6f8fb;
  --brand:      #4f46e5;
  --brand-2:    #0ea5e9;
  --radius:     18px;
  --shadow-sm:  0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow-md:  0 4px 12px rgba(16,24,40,.06), 0 12px 28px rgba(16,24,40,.06);
  --shadow-lg:  0 8px 20px rgba(16,24,40,.08), 0 24px 48px rgba(16,24,40,.10);
  --maxw:       1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }
a { color: var(--brand); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(232,235,240,.9);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--ink);
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 9px;
  object-fit: contain;
  flex: none;
}

.site-header nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.site-header nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.site-header nav a:hover { color: var(--ink); background: var(--soft); }
.site-header nav a.active { color: var(--ink); background: var(--soft); font-weight: 600; }

/* ---------------- Layout ---------------- */

main { padding: 8px 0 88px; }
main.narrow { max-width: 820px; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { margin-bottom: 10px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; margin: 0 0 10px; }
h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
p  { margin: 0 0 14px; }

.lead { font-size: 18px; color: var(--muted); margin-bottom: 0; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  margin: 32px 0 56px;
  padding: 68px 52px;
  border-radius: 28px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(79,70,229,.55), transparent 60%),
    radial-gradient(700px 380px at 92% 8%,  rgba(14,165,233,.45), transparent 62%),
    linear-gradient(160deg, #0b1220 0%, #141c33 55%, #0d1424 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 52px);
  max-width: 16ch;
  margin-bottom: 18px;
}

.hero .lead {
  color: rgba(255,255,255,.74);
  font-size: 19px;
  max-width: 54ch;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.hero .tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

/* ---------------- Feature cards ---------------- */

.section { margin: 0 0 56px; }
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d9dfe8;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(14,165,233,.12));
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

/* ---------------- Gallery ---------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-md); }
.shot img { display: block; width: 100%; height: auto; }

/* ---------------- Badges / download ---------------- */

.badges { display: flex; flex-wrap: wrap; gap: 18px; }
.badges a {
  display: inline-flex;
  transition: transform .18s ease, filter .18s ease;
  border-radius: 14px;
}
.badges a:hover { transform: translateY(-3px); filter: brightness(1.04); }
.badges img { height: 60px; width: auto; display: block; }

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.store {
  display: block;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.store:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d9dfe8; }
.store .badges { margin-top: 20px; }
.store p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* ---------------- Privacy policy ---------------- */

.note {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f7f9ff, #f4f7fe);
  border: 1px solid #e3e9fb;
  color: var(--body);
  margin: 0 0 34px;
}

.policy-item {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.policy-item:hover { box-shadow: var(--shadow-md); border-color: #d9dfe8; }
.policy-item .letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-right: 12px;
  flex: none;
}
.policy-item h3 { display: flex; align-items: center; }

.policy-meta {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 30px;
}

/* ---------------- Contact ---------------- */

.contact-card {
  margin-top: 30px;
  padding: 48px 40px;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(79,70,229,.5), transparent 60%),
    radial-gradient(600px 280px at 85% 100%, rgba(14,165,233,.45), transparent 62%),
    linear-gradient(160deg, #0b1220, #141c33);
  box-shadow: var(--shadow-lg);
}
.contact-card p { color: rgba(255,255,255,.72); margin-bottom: 22px; }

.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-mail:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.24); }
.btn-mail span { letter-spacing: .01em; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

/* ---------------- CTA strip ---------------- */

.cta {
  margin-top: 20px;
  padding: 38px 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0; color: var(--muted); }

/* ---------------- Footer ---------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  background: #fcfdfe;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--brand); }

/* ---------------- Responsive ---------------- */

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 48px 26px; border-radius: 22px; margin-top: 22px; }
  main { padding-bottom: 64px; }
  .site-header .wrap { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .site-header nav a { padding: 7px 11px; font-size: 14px; }
  .cta { padding: 28px 24px; }
  .contact-card { padding: 36px 24px; }
}

/* ---------------- WeChat in-app browser guide ---------------- */
/* Only rendered when the page is opened inside WeChat (see assets/wechat.js) */

/* keeps the footer clear of the fixed bottom bar */
.wx-env { padding-bottom: 58px; }

.wx-mask {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 12, 22, .68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 20px;
}
.wx-mask.is-open { display: flex; }

/* arrow pointing at the "..." menu, top right */
.wx-arrow {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  animation: wx-nudge 1.6s ease-in-out infinite;
}
.wx-arrow svg { transform: rotate(90deg); }   /* points up towards the menu */
@keyframes wx-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.wx-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 26px 24px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
  text-align: center;
  animation: wx-rise .22s ease-out;
}
@keyframes wx-rise {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.wx-box h3 { font-size: 19px; margin: 0 0 10px; }
.wx-box p  { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.wx-box p b { color: var(--ink); }

.wx-close {
  display: block;
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.wx-close:active { filter: brightness(.94); }

/* persistent bottom bar */
.wx-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #0b1220;
  color: rgba(255, 255, 255, .88);
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .18);
}
.wx-bar b { color: #fff; }
.wx-bar button {
  flex: none;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

