:root {
  --bg: #f6fbf8;
  --paper: #ffffff;
  --ink: #16231e;
  --muted: #607069;
  --line: rgba(23, 34, 29, .12);
  --brand: #18a779;
  --brand-dark: #0d7054;
  --blue: #2d7ff9;
  --coral: #ff775c;
  --gold: #c08a2f;
  --shadow: 0 24px 70px rgba(31, 75, 57, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(88, 200, 151, .22), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(45, 127, 249, .12), transparent 28%),
    linear-gradient(180deg, #f6fbf8 0%, #ffffff 42%, #eef6f7 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 48px rgba(17, 34, 29, .10);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; overflow: hidden; background: #e7f7f0; box-shadow: 0 10px 24px rgba(31, 143, 106, .18); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.header-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nav { display: flex; align-items: center; gap: 20px; color: #4f5d55; font-size: 14px; font-weight: 800; }
.nav a:hover { color: var(--brand-dark); }
.nav-login { height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 13px; background: linear-gradient(135deg, #10251e, #18a779); color: #fff !important; box-shadow: 0 12px 28px rgba(31, 143, 106, .22); }
.lang-select-wrap { position: relative; flex: 0 0 auto; }
.lang-trigger {
  height: 38px;
  min-width: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(23, 34, 29, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 34, 29, .07);
}
.lang-trigger:after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang-flag-img, .lang-flag {
  width: 20px;
  height: 13px;
  flex: 0 0 20px;
  border-radius: 3px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .14);
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  width: 210px;
  padding: 9px;
  border: 1px solid rgba(23, 34, 29, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(17, 34, 29, .16);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #405066;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button.active { background: #eef7f3; color: var(--brand-dark); }
.flag-en, .lang-flag-img[data-flag="en"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24'%3E%3Crect width='38' height='24' fill='%23fff'/%3E%3Cg fill='%23b22234'%3E%3Crect width='38' height='2'/%3E%3Crect y='4' width='38' height='2'/%3E%3Crect y='8' width='38' height='2'/%3E%3Crect y='12' width='38' height='2'/%3E%3Crect y='16' width='38' height='2'/%3E%3Crect y='20' width='38' height='2'/%3E%3C/g%3E%3Crect width='16' height='13' fill='%233c3b6e'/%3E%3C/svg%3E"); }
.flag-zh, .lang-flag-img[data-flag="zh"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Crect width='36' height='24' fill='%23de2910'/%3E%3Cpolygon fill='%23ffde00' points='6,3 7.1,6.2 10.5,6.2 7.8,8.2 8.8,11.4 6,9.5 3.2,11.4 4.2,8.2 1.5,6.2 4.9,6.2'/%3E%3C/svg%3E"); }
.flag-tw, .lang-flag-img[data-flag="zh-Hant"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Crect width='36' height='24' fill='%23fe0000'/%3E%3Crect width='18' height='12' fill='%23000095'/%3E%3Ccircle cx='9' cy='6' r='3.2' fill='%23fff'/%3E%3Ccircle cx='9' cy='6' r='1.7' fill='%23000095'/%3E%3C/svg%3E"); }
.flag-ja, .lang-flag-img[data-flag="ja"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Crect width='36' height='24' fill='%23fff'/%3E%3Ccircle cx='18' cy='12' r='6.2' fill='%23bc002d'/%3E%3C/svg%3E"); }
.flag-ko, .lang-flag-img[data-flag="ko"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Crect width='36' height='24' fill='%23fff'/%3E%3Ccircle cx='18' cy='12' r='5' fill='%23cd2e3a'/%3E%3Cpath d='M13 12a5 5 0 0 0 10 0 2.5 2.5 0 0 0-5 0 2.5 2.5 0 0 1-5 0z' fill='%230047a0'/%3E%3C/svg%3E"); }
.flag-es, .lang-flag-img[data-flag="es"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Crect width='36' height='24' fill='%23aa151b'/%3E%3Crect y='6' width='36' height='12' fill='%23f1bf00'/%3E%3C/svg%3E"); }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 30%, rgba(80, 197, 163, .22), transparent 28%),
    linear-gradient(135deg, #f3fbf7 0%, #ffffff 48%, #eef7fb 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/landing-assets/hero-family-care.png") center / cover no-repeat;
  transform: scale(1.02);
  opacity: .24;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 251, 248, .96) 0%, rgba(246, 251, 248, .90) 42%, rgba(246, 251, 248, .54) 72%, rgba(246, 251, 248, .82) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .70) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 74px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 34px;
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero h1 {
  margin: 0;
  width: min(620px, 100%);
  font-size: clamp(48px, 8vw, 94px);
  line-height: .95;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-text {
  max-width: 600px;
  margin: 22px 0 0;
  color: #4e5f58;
  font-size: 20px;
  line-height: 1.58;
}
.hero-actions, .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.primary-action, .secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
}
.primary-action { background: linear-gradient(135deg, #20b985, #148a67); color: #fff; box-shadow: 0 16px 34px rgba(31, 143, 106, .30); }
.secondary-action { border: 1px solid rgba(17, 98, 75, .18); color: var(--brand-dark); background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); }
.primary-action:hover, .secondary-action:hover, .nav-login:hover { transform: translateY(-1px); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 118px));
  gap: 10px;
  margin-top: 40px;
}
.hero-metrics div {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(23, 34, 29, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(31, 75, 57, .07);
}
.hero-metrics strong { display: block; font-size: 21px; }
.hero-metrics span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.hero-device {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}
.hero-device:before {
  content: "";
  position: absolute;
  width: 72%;
  height: 62%;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .18);
  transform: rotate(-4deg) translateY(14px);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .22);
}
.hero-device img {
  position: relative;
  width: min(680px, 112%);
  max-width: none;
  filter: drop-shadow(0 34px 54px rgba(31, 75, 57, .24));
}
.hero-status-card {
  position: absolute;
  z-index: 2;
  min-width: 184px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 16px;
  background: rgba(255, 255, 255, .90);
  color: #17221d;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}
.hero-status-card span, .hero-status-card em {
  display: block;
  color: #647067;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.hero-status-card strong {
  display: block;
  margin: 5px 0;
  font-size: 22px;
  line-height: 1.1;
}
.status-top { top: 54px; left: 4px; }
.status-bottom { right: 4px; bottom: 70px; }

.trust-strip {
  width: min(1180px, calc(100% - 40px));
  margin: -50px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.trust-strip div {
  min-height: 120px;
  padding: 20px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.trust-strip div:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(31, 75, 57, .10); }
.trust-strip strong { display: block; font-size: 16px; }
.trust-strip span { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 0;
}
.section-heading { max-width: 720px; margin-bottom: 30px; }
.section-heading h2, .split-copy h2, .privacy-band h2, .support-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature, .app-grid article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(37, 68, 55, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover, .app-grid article:hover { transform: translateY(-3px); border-color: rgba(31, 143, 106, .24); box-shadow: 0 26px 58px rgba(37, 68, 55, .13); }
.feature img { width: 54px; height: 54px; object-fit: contain; }
.feature h3, .app-grid h3 { margin: 22px 0 10px; font-size: 21px; }
.feature p, .app-grid p, .split-copy p, .support-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: center;
}
.split-copy p { margin-top: 18px; max-width: 560px; }
.steps { display: grid; gap: 10px; margin-top: 28px; }
.steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.steps span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e7f7f0;
  color: var(--brand-dark);
  font-weight: 950;
}
.steps strong { font-size: 16px; }
.steps em { color: var(--muted); font-size: 14px; font-style: normal; }
.screen-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #10251e, #1b4035);
  box-shadow: 0 24px 64px rgba(31, 75, 57, .16);
}
.screen-wall img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(23, 34, 29, .12);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .18);
}
.screen-wall img:nth-child(2) { transform: translateY(-28px); }

.app-section { padding-top: 104px; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.app-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 16px;
  background: #eef7f3;
  border: 1px solid rgba(31, 143, 106, .12);
}
.app-grid article:last-child img { object-fit: contain; background: #f7fbf9; }
.store-art { display: block; }
.app-actions { display: grid; gap: 8px; margin-top: 16px; }
.app-store-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  text-align: center;
}
.play-link { background: #188038; }
.app-actions span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.privacy-band {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 44px;
  margin-top: 92px;
  border-radius: 22px;
  background: linear-gradient(135deg, #10251e, #183f35);
  color: #fff;
}
.privacy-band .eyebrow { color: #ffd08b; }
.privacy-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.privacy-links a {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  font-weight: 850;
}

.support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 74px;
}
.support-copy { max-width: 680px; }
.support-section .secondary-action { color: var(--brand-dark); border-color: rgba(31, 143, 106, .24); background: #fff; }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 960px) {
  .site-header { height: auto; min-height: 66px; align-items: flex-start; flex-direction: column; padding: 12px; gap: 10px; }
  .header-right { width: 100%; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .nav { flex: 1 1 auto; width: auto; overflow-x: auto; gap: 14px; padding-bottom: 3px; }
  .hero-content { padding-top: 132px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-device { min-height: 390px; }
  .hero-device img { width: min(620px, 100%); }
  .status-top { top: 14px; left: 18px; }
  .status-bottom { right: 18px; bottom: 20px; }
  .trust-strip, .feature-grid, .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section, .privacy-band { grid-template-columns: 1fr; }
  .support-section { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header, .section, .trust-strip, .site-footer, .hero-content { width: min(100% - 24px, 1180px); }
  .site-header { position: absolute; }
  .header-right { align-items: flex-start; }
  .nav {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding: 2px 2px 4px;
    font-size: 13px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .lang-trigger { height: 32px; min-width: 66px; padding: 0 8px; }
  .lang-current { font-size: 11px; }
  .lang-menu { right: 0; width: 190px; }
  .nav-login { display: none; }
  .hero { min-height: auto; padding: 104px 0 18px; }
  .hero-content { padding-top: 0; }
  .hero h1 { font-size: 40px; line-height: 1; }
  .hero-text { font-size: 17px; }
  .hero-actions { margin-top: 22px; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .hero-metrics div { min-height: 58px; padding: 10px; }
  .hero-metrics strong { font-size: 17px; }
  .hero-metrics span { font-size: 12px; }
  .hero-device { min-height: 220px; margin-top: 0; }
  .hero-device img { width: 108%; }
  .hero-status-card { min-width: 146px; padding: 11px 12px; }
  .hero-status-card strong { font-size: 17px; }
  .status-top { top: 4px; left: 0; }
  .status-bottom { display: none; }
  .trust-strip, .feature-grid, .app-grid, .privacy-links { grid-template-columns: 1fr; }
  .trust-strip { margin-top: 12px; }
  .section { padding-top: 64px; }
  .screen-wall { grid-template-columns: 1fr; }
  .screen-wall img:nth-child(2) { transform: none; }
  .privacy-band { padding: 28px 18px; }
  .site-footer { flex-direction: column; }
}
