@font-face {
  font-family: "Rubik";
  src: url("/assets/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/Rubik-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #14332d;
  --muted: #5b6d67;
  --deep: #0b4538;
  --deep-2: #14333b;
  --mint: #c9f6df;
  --mint-2: #e9faf2;
  --page: #f4faf6;
  --surface: #ffffff;
  --line: rgba(11, 69, 56, 0.14);
  --accent: #d96c58;
  --shadow: 0 22px 58px rgba(27, 66, 54, 0.12), 0 4px 14px rgba(27, 66, 54, 0.07);
  color-scheme: light dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 5%, rgba(132, 240, 191, 0.28), transparent 28rem),
    linear-gradient(180deg, #f8fcf9 0%, var(--page) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 252, 249, 0.86);
  border-bottom: 1px solid rgba(11, 69, 56, 0.08);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px rgba(11, 69, 56, .16); }
.wordmark { font: 600 1.45rem/1 "Rubik", sans-serif; letter-spacing: -.04em; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--deep); }
.lang-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
}
.lang-switch button {
  border: 0;
  min-width: 44px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { color: white; background: var(--deep); }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  padding-block: clamp(72px, 9vw, 120px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(154, 238, 197, .34);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--deep); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 700px;
  margin-block: 26px 22px;
  font: 600 clamp(3.7rem, 8.2vw, 7.2rem)/.92 "Rubik", sans-serif;
  letter-spacing: -.075em;
}
.lead { max-width: 620px; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.34rem); line-height: 1.65; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.button.primary { color: white; background: var(--deep); box-shadow: 0 10px 24px rgba(11, 69, 56, .2); }
.button.secondary { background: rgba(255,255,255,.72); border-color: var(--line); }
.availability { margin-top: 18px; color: var(--muted); font-size: .9rem; }

.phone-stage { position: relative; min-height: 670px; display: grid; place-items: center; }
.phone-stage::before {
  content: "";
  position: absolute;
  width: 450px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 240, 192, .8), rgba(142, 240, 192, 0));
  filter: blur(10px);
}
.phone {
  position: relative;
  width: min(365px, 88vw);
  min-height: 690px;
  padding: 15px;
  border-radius: 54px;
  background: #111917;
  box-shadow: 0 38px 90px rgba(10, 56, 45, .3), inset 0 0 0 1px rgba(255,255,255,.18);
  transform: rotate(2.2deg);
}
.screen {
  min-height: 660px;
  padding: 24px 18px 26px;
  overflow: hidden;
  border-radius: 42px;
  background: #f3f8f4;
}
.island { width: 102px; height: 28px; margin: -15px auto 18px; border-radius: 999px; background: #111917; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.app-wordmark { font: 600 2.1rem/1 "Rubik", sans-serif; letter-spacing: -.06em; }
.key-chip { padding: 7px 10px; border-radius: 999px; color: var(--deep); background: white; font-size: .78rem; font-weight: 700; }
.today-card {
  min-height: 250px;
  padding: 18px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(145deg, #146653, #0b4538);
  box-shadow: 0 18px 30px rgba(11, 69, 56, .2);
}
.today-top { display: flex; justify-content: space-between; align-items: center; }
.pill { color: var(--deep); background: white; padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.hourglass { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); }
.usage { margin: 42px 0 4px; font: 600 2.7rem/1 "Rubik", sans-serif; letter-spacing: -.04em; }
.usage small { font-size: 1.25rem; opacity: .85; }
.today-copy { font-size: .9rem; opacity: .84; }
.apps-row { display: flex; align-items: center; gap: 9px; margin-top: 28px; }
.apps-row img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,.16); }
.apps-row span { font-size: .76rem; opacity: .88; }
.toggle { margin-left: auto; width: 48px; height: 28px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.28); }
.toggle::after { content: ""; display: block; width: 22px; height: 22px; margin-left: 20px; border-radius: 50%; background: white; }
.mode-title { margin: 22px 4px 8px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.mode-card { display: flex; align-items: center; gap: 15px; padding: 16px; border: 1px solid rgba(217,108,88,.45); border-radius: 22px; background: white; }
.mode-emoji { font-size: 2.3rem; }
.mode-card strong { display: block; font-size: 1rem; }
.mode-card small { display: block; color: var(--muted); }
.app-icon-float { position: absolute; width: 82px; border-radius: 23px; box-shadow: var(--shadow); }
.app-icon-float.one { top: 16%; right: -18px; transform: rotate(8deg); }
.app-icon-float.two { bottom: 12%; left: -36px; transform: rotate(-9deg); }

.section { padding-block: clamp(74px, 10vw, 124px); }
.section.alt { border-block: 1px solid var(--line); background: rgba(255,255,255,.52); }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section h2 { margin-bottom: 16px; font: 600 clamp(2.15rem, 4vw, 3.6rem)/1.08 "Rubik", sans-serif; letter-spacing: -.05em; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 10px 30px rgba(27,66,54,.05); }
.feature-card .icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; border-radius: 15px; background: var(--mint-2); font-size: 1.5rem; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.18rem; }
.feature-card p { margin: 0; color: var(--muted); }
.privacy-banner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; padding: clamp(30px, 5vw, 58px); border-radius: 34px; color: white; background: var(--deep); box-shadow: var(--shadow); }
.privacy-banner .hand { font-size: clamp(5rem, 12vw, 9rem); text-align: center; }
.privacy-banner h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.privacy-banner p { color: rgba(255,255,255,.78); }
.privacy-banner a { text-underline-offset: 5px; font-weight: 700; }
.company-line { margin-top: 38px; color: var(--muted); font-size: .95rem; }

.legal-main { padding-block: clamp(56px, 8vw, 100px); }
.legal-shell { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(34px, 7vw, 90px); align-items: start; }
.legal-aside { position: sticky; top: 104px; }
.legal-aside .kicker { color: var(--deep); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-aside h1 { margin: 12px 0 14px; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; }
.updated { color: var(--muted); font-size: .88rem; }
.legal-content { padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.legal-content section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 12px; font-size: 1.4rem; }
.legal-content h3 { margin: 24px 0 8px; font-size: 1rem; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul { padding-left: 22px; }
.support-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-block: 26px; }
.support-card { padding: 20px; border-radius: 19px; background: var(--mint-2); }
.support-card strong { display: block; margin-bottom: 5px; }
.support-card p { margin: 0; font-size: .94rem; }

.site-footer { padding-block: 34px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.copyright { margin: 0; color: var(--muted); font-size: .84rem; }
[data-lang="en"] { display: none; }
html[lang="en"] [data-lang="zh"] { display: none; }
html[lang="en"] [data-lang="en"] { display: revert; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .phone-stage { min-height: 700px; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-banner { grid-template-columns: 1fr; gap: 12px; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .site-header .wordmark { font-size: 1.26rem; }
  .lang-switch button { min-width: 40px; padding-inline: 9px; }
  h1 { font-size: clamp(3.25rem, 18vw, 5.1rem); }
  .phone-stage { min-height: 620px; }
  .phone { min-height: 620px; border-radius: 46px; }
  .screen { min-height: 590px; border-radius: 35px; }
  .app-icon-float { width: 64px; }
  .support-cards { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eff7f3;
    --muted: #a9bbb4;
    --page: #111412;
    --surface: #1b1c1f;
    --line: rgba(255,255,255,.1);
    --mint-2: #16372f;
    --shadow: 0 22px 58px rgba(0,0,0,.24), 0 4px 14px rgba(0,0,0,.2);
  }
  body { background: radial-gradient(circle at 88% 5%, rgba(15, 88, 70, .35), transparent 28rem), var(--page); }
  .site-header { background: rgba(17,20,18,.86); }
  .lang-switch, .button.secondary { background: rgba(27,28,31,.8); }
  .section.alt { background: rgba(27,28,31,.35); }
  .screen { background: #161b18; }
  .mode-card, .key-chip { background: #262a28; }
  .today-card { background: var(--deep-2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
