@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #13C74A;
  --green-dark: #0fa83d;
  --body-bg: #f5f6f5;
  --footer-text: #888;
  --footer-link: #555;
  --footer-border: #e4e4e4;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--body-bg);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ───────────────────────────────────────
   HERO
─────────────────────────────────────── */
.hero {
  background: var(--green);
  text-align: center;
  /* NO horizontal padding here — wave must bleed edge-to-edge */
  padding: 72px 0 0;
  position: relative;
  flex-shrink: 0;
}

/* Centred wrapper for logo + tagline + buttons — gets the padding */
.hero__inner {
  padding: 0 24px;
}

.hero__logo {
  width: clamp(240px, 40vw, 480px);
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.hero__tagline {
  color: rgba(255,255,255,0.82);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.65;
  margin: 0 auto 44px;
}

/* ── Platform download buttons ── */
.hero__platforms {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, color 0.18s;
}

.platform-btn:hover {
  transform: translateY(-3px);
  color: #ffffff;
}

.platform-btn__circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.platform-btn:hover .platform-btn__circle {
  background: rgba(255,255,255,0.26);
}

.platform-btn__circle svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

/* ── Concave wave — flush to both edges ── */
.hero__wave {
  display: block;
  /* Full viewport width, escaping any ancestor constraints */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  /* Eliminate any sub-pixel gap at the bottom */
  margin-bottom: -2px;
  line-height: 0;
  overflow: hidden;
}

/* ───────────────────────────────────────
   CONTENT  (below wave)
─────────────────────────────────────── */
.content {
  background: var(--body-bg);
  flex: 1;
  padding: 56px 24px 72px;
}

/* ── 3-card grid matching WeChat layout ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 44px 28px 40px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg {
  width: 30px;
  height: 30px;
}

/* Individual icon background colours matching WeChat */
.card--newsroom   .card__icon { background: #eeecf9; }
.card--safety     .card__icon { background: #e6f9ed; }
.card--help       .card__icon { background: #fff5e0; }

.card__label {
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
}

/* ───────────────────────────────────────
   FOOTER  (matching footer.png — untouched)
─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--footer-border);
  background: #fff;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.footer__symbol {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.footer__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--footer-text);
  font-weight: 400;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.footer__links li + li::before {
  content: '·';
  color: #ccc;
  margin-right: 6px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__links a:hover {
  color: var(--green);
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ───────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────── */
@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .hero { padding-top: 52px; }

  .hero__platforms { gap: 14px; }

  .platform-btn__circle {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
