/* ============================================================
   HIGH M HONG KONG LIMITED — Loyalty Program & CRM Website
   Style: Smile.io-inspired (white + Klein blue + deep navy + large type)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0E121B;            /* deep navy text */
  --body: #151828;
  --muted: #5B6472;
  --blue: #3149FB;           /* primary Klein blue */
  --blue-soft: #7F92FF;
  --blue-bg: #E0F0FF;        /* light blue tint */
  --brand-deep: #0A2463;     /* logo deep indigo */
  --brand-cyan: #00D4FF;     /* logo cyan accent */
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --line: #E8EBF0;
  --dark: #0E121B;           /* deep section bg */
  --dark-2: #151828;
  --oklch-primary: oklch(0.52 0.25 265);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14,18,27,.06), 0 1px 3px rgba(14,18,27,.06);
  --shadow-md: 0 12px 32px -12px rgba(14,18,27,.18);
  --shadow-lg: 0 24px 60px -20px rgba(14,18,27,.28);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --font-head: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --font-cn: 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: .01em;
}
body.lang-zh { font-family: var(--font-cn); line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(49,73,251,.15); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #E9ECF5; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.lang-zh h1, .lang-zh h2, .lang-zh h3, .lang-zh h4 { font-family: var(--font-cn); letter-spacing: 0; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.section-alt h2, .section-alt h3, .section-dark h2, .section-dark h3 { color: inherit; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #FFFFFF; }
.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 span { color: var(--muted); font-weight: 400; }
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-bg);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}
.lang-zh .kicker { letter-spacing: .06em; font-weight: 600; }
.section-dark .kicker { color: #BBD0FF; background: rgba(49,73,251,.22); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.lang-zh .btn { font-family: var(--font-cn); font-weight: 600; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(49,73,251,.6); }
.btn-primary:hover { background: var(--oklch-primary); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(49,73,251,.55); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-dark { background: #fff; color: var(--dark); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(255,255,255,.35); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--brand-deep), var(--blue));
  color: #fff;
  font-size: .85rem;
  text-align: center;
  padding: 9px var(--sp-4);
  font-weight: 500;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: var(--sp-5); height: 72px; }
.brand { display: flex; align-items: center; gap: var(--sp-3); margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: .02em; line-height: 1.1; }
.brand-name small { display: block; font-size: .58rem; font-weight: 600; color: var(--muted); letter-spacing: .18em; }
.nav-links { display: flex; gap: var(--sp-5); }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--muted); padding: 6px 2px; position: relative; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.lang-switch {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: 0; background: transparent;
  padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  transition: all .15s;
}
.lang-switch button[data-active="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); padding: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--sp-9) 0 var(--sp-8); }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 400px at 15% -10%, rgba(49,73,251,.10), transparent 60%),
    radial-gradient(700px 460px at 90% 10%, rgba(0,212,255,.12), transparent 60%),
    radial-gradient(560px 400px at 50% 110%, rgba(10,36,99,.08), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.badge {
  font-size: .75rem; font-weight: 600; color: var(--brand-deep);
  background: rgba(0,212,255,.12); border: 1px solid rgba(10,36,99,.12);
  padding: 5px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.badge svg { color: var(--blue); }
.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 strong {
  background: linear-gradient(92deg, var(--brand-deep), var(--blue), var(--brand-cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto var(--sp-6); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.hero-art { max-width: 960px; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- Logo / integration wall ---------- */
.logo-wall { padding: var(--sp-6) 0; border-top: 1px solid var(--line); background: var(--bg); }
.logo-wall p { text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-5) var(--sp-7); }
.logo-row span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #A6B0BF;
  letter-spacing: .01em; user-select: none;
}

/* ---------- Feature cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.fcard {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(49,73,251,.35); }
.section-alt .fcard { background: #fff; }
.fcard .f-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(49,73,251,.12), rgba(0,212,255,.14));
  color: var(--blue);
  margin-bottom: var(--sp-1);
}
.fcard h3 { font-size: 1.2rem; }
.fcard p { color: var(--muted); font-size: .95rem; flex: 1; }
.fcard a.card-link { font-weight: 600; font-size: .9rem; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); text-align: center; }
.stat .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-deep), var(--blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lang-zh .stat .num { font-family: var(--font-cn); font-weight: 700; }
.stat p { color: var(--muted); margin-top: var(--sp-2); font-size: .95rem; }
.stat .label { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-top: 4px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Feature split rows ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); align-items: center; }
.feature.reverse { direction: rtl; }
.feature > * { direction: ltr; }
.feature-copy h2 { margin: var(--sp-3) 0; }
.feature-copy h2 span { color: var(--muted); font-weight: 400; }
.feature-copy p { color: var(--muted); font-size: 1.02rem; }
.feature-visual {
  background: linear-gradient(145deg, #F3F7FF, #EAF4FF);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-6); display: grid; place-items: center;
}
.feature-visual svg { width: 100%; height: auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); counter-reset: step; }
.step { position: relative; padding: var(--sp-6); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.section-alt .step { background: #fff; }
.step .num-badge {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--blue));
  margin-bottom: var(--sp-4);
}
.step h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Dark section ---------- */
.section-dark .section-head h2 span { color: #8A94AD; }
.section-dark p { color: #B9C2D4; }
.dark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.dark-card { background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: var(--sp-6); }
.dark-card .d-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(49,73,251,.25); color: #BBD0FF; display: grid; place-items: center; margin-bottom: var(--sp-4); }
.dark-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: var(--sp-2); }
.dark-card p { font-size: .92rem; color: #9AA4BC; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--brand-deep), var(--blue) 55%, #00A3D8);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center; color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto var(--sp-6); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: var(--sp-8) 0 var(--sp-7); text-align: center; position: relative; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 50% -20%, rgba(49,73,251,.10), transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: var(--sp-5); }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--blue); }
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero h1 strong { background: linear-gradient(92deg, var(--brand-deep), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Detail grid ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); margin-top: var(--sp-7); }
.detail-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); }
.section-alt .detail-item { background: #fff; }
.detail-item h4 { display: flex; align-items: center; gap: var(--sp-3); font-size: 1.02rem; margin-bottom: var(--sp-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-blue { background: var(--blue); }
.dot-cyan { background: var(--brand-cyan); }
.dot-deep { background: var(--brand-deep); }
.dot-soft { background: var(--blue-soft); }
.detail-item p { color: var(--muted); font-size: .93rem; }

/* ---------- Check list ---------- */
.check-list li { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--body); font-size: .97rem; margin-bottom: var(--sp-3); }
.tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  background: rgba(49,73,251,.12); color: var(--blue);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-7); align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: inherit; font-size: .95rem;
  background: var(--bg-soft); color: var(--body); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,73,251,.12); background: #fff;
}
.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); }
.info-card {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-5);
}
.info-card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.icon-blue { background: rgba(49,73,251,.12); color: var(--blue); }
.icon-cyan { background: rgba(0,212,255,.14); color: #0096C8; }
.icon-deep { background: rgba(10,36,99,.1); color: var(--brand-deep); }
.icon-soft { background: rgba(127,146,255,.15); color: var(--blue-soft); }
.info-card h4 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #9AA4BC; padding: var(--sp-8) 0 var(--sp-6); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; margin-bottom: var(--sp-3); }
.footer-brand p { font-size: .9rem; max-width: 280px; }
.footer-col h5 { color: #fff; font-family: var(--font-head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.lang-zh .footer-col h5 { font-family: var(--font-cn); letter-spacing: .04em; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a { font-size: .9rem; color: #9AA4BC; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-5); font-size: .85rem; }
.legal { display: flex; gap: var(--sp-4); }
.legal a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-3, .cards-2, .steps, .stats, .dark-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: var(--sp-6); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: var(--sp-3) var(--sp-5);
    display: none; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .hero { padding: var(--sp-7) 0; }
}

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