:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #eef2f7;
  --text: #151922;
  --muted: #616a79;
  --line: #dfe4ec;
  --accent: #3056d3;
  --accent-dark: #2444aa;
  --accent-light: #7aa0ff;
  --radius: 24px;
  --shadow: 0 18px 50px rgba(28, 38, 63, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

section[id] {
  scroll-margin-top: 90px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 228, 236, 0.8);
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(21, 25, 34, 0.22);
}

nav {
  display: flex;
  gap: 26px;
}

nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 0.78rem;
  font-weight: 700;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 11px;
  border-radius: 999px;
  transition: color 0.2s ease;
}

.lang-switch a[aria-current="true"] {
  background: var(--text);
  color: white;
}

.lang-switch a:hover:not([aria-current="true"]) {
  color: var(--text);
}

/* CJK typography */
html[lang="zh-Hans"] body {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

html[lang="zh-Hant"] body {
  font-family: "Inter", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3,
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3 {
  letter-spacing: 0;
  line-height: 1.2;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hant"] h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.hero {
  position: relative;
  padding: 96px 0 110px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(48, 86, 211, 0.09), transparent 42%),
    radial-gradient(circle at 90% 90%, rgba(48, 86, 211, 0.07), transparent 45%),
    radial-gradient(rgba(21, 25, 34, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
  mask-image: linear-gradient(to bottom, black 60%, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 800;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero entrance animation */
.hero-grid > div:first-child > * {
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
}

.hero-grid > div:first-child > *:nth-child(2) { animation-delay: 0.08s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: 0.16s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: 0.24s; }
.hero-grid > div:first-child > *:nth-child(5) { animation-delay: 0.32s; }

.hero-card {
  opacity: 0;
  animation: fade-up 0.8s ease 0.25s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, #3d63e8, var(--accent-dark));
  color: white;
  box-shadow: 0 6px 18px rgba(48, 86, 211, 0.25);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(48, 86, 211, 0.38);
}

.button.secondary {
  background: white;
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-card {
  min-height: 480px;
  border-radius: 36px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(48, 86, 211, .15), transparent 34%),
    linear-gradient(145deg, #eef2f8, #ffffff);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  width: 220px;
  height: 220px;
  background: rgba(48, 86, 211, 0.12);
  top: -30px;
  right: -30px;
}

.orb-two {
  width: 160px;
  height: 160px;
  background: rgba(90, 112, 170, 0.12);
  bottom: 25px;
  left: -30px;
}

/* Jike phone mockup */
.phone {
  position: relative;
  width: 272px;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1c2436, #0d1119);
  box-shadow:
    0 34px 90px rgba(20, 30, 60, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: rotate(-4deg);
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-10px); }
}

.phone-screen {
  border-radius: 32px;
  background: #f7f8fc;
  padding: 20px 14px 16px;
  overflow: hidden;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.app-name {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.app-sub {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.app-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 16px 0 14px;
}

.app-stats .stat {
  background: white;
  border: 1px solid #e8ecf4;
  border-radius: 13px;
  padding: 9px 8px;
}

.app-stats .stat span {
  display: block;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-stats .stat strong {
  display: block;
  margin-top: 2px;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.app-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #e8ecf4;
  border-radius: 15px;
  padding: 10px 12px;
  margin-top: 8px;
}

.entry-emoji {
  font-size: 1rem;
}

.entry-lines {
  flex: 1;
}

.entry-lines i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #e3e8f2;
  width: 86%;
}

.entry-lines i.short {
  width: 52%;
  margin-top: 5px;
  opacity: 0.7;
}

.entry-amount {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text);
}

.entry-amount.income {
  color: #178a52;
}

.entry-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(48, 86, 211, 0.09);
  padding: 4px 8px;
  border-radius: 999px;
}

.entry-tag.done {
  color: #178a52;
  background: rgba(23, 138, 82, 0.10);
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--surface-alt);
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.body-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.body-copy p:first-child {
  margin-top: 0;
}

.legal-note {
  margin-top: 30px;
  color: var(--text);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.section-heading p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(223, 228, 236, .9);
  background: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(48, 86, 211, 0.35);
  box-shadow: 0 18px 40px rgba(28, 38, 63, 0.10);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #3d63e8, var(--accent-dark));
  color: white;
  box-shadow: 0 6px 16px rgba(48, 86, 211, 0.28);
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  margin: 26px 0 12px;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.coming-soon {
  position: relative;
  margin-top: 24px;
  padding: 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 15%, rgba(76, 116, 255, 0.32), transparent 52%),
    linear-gradient(135deg, #171d2b, #0f1320);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  overflow: hidden;
}

.coming-soon .eyebrow {
  color: #aebeff;
}

.coming-soon h3 {
  margin: 0;
  font-size: 1.6rem;
}

.coming-soon > p {
  max-width: 430px;
  color: #c8ced8;
  margin: 0;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.coming-soon .panel-link {
  display: inline-block;
  margin-top: 12px;
  color: #aebeff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(174, 190, 255, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.coming-soon .panel-link:hover {
  color: white;
  border-color: white;
}

.feature-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c7d4ff;
  background: rgba(122, 160, 255, 0.12);
  border: 1px solid rgba(122, 160, 255, 0.28);
}

.contact-panel {
  padding: 46px;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 60px;
  box-shadow: var(--shadow);
}

.contact-panel > div:first-child > p:last-child {
  color: var(--muted);
}

.contact-box {
  align-self: center;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
}

.contact-box span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}

.contact-box a {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-box a:hover {
  color: var(--accent);
}

.contact-box p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

footer {
  padding: 54px 0 30px;
  background: #11151d;
  color: white;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand .brand-mark {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.footer-grid p {
  color: #aeb5c1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-content: flex-start;
}

.footer-links a {
  color: #ccd1da;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid #282e39;
  color: #8e96a4;
  font-size: .85rem;
}

.copyright a {
  color: inherit;
}

.legal-page {
  padding: 84px 0 110px;
}

.legal-container {
  max-width: 780px;
}

.legal-container h1 {
  font-size: clamp(3rem, 7vw, 5rem);
}

.updated {
  margin: 16px 0 42px;
  color: var(--muted);
}

.legal-container h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
}

.legal-container p {
  color: #4f5867;
}

.legal-container a {
  color: var(--accent);
}

.legal-surface {
  background:
    radial-gradient(circle at 10% 4%, rgba(48, 86, 211, 0.08), transparent 36%),
    radial-gradient(rgba(21, 25, 34, 0.04) 1px, transparent 1px);
  background-size: auto, 26px 26px;
}

.legal-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.legal-hero > p:last-of-type {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.policy-section {
  scroll-margin-top: 162px;
  padding-top: 26px;
}

.policy-section + .policy-section {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.policy-section h3 {
  margin: 26px 0 8px;
  font-size: 1.08rem;
}

.legal-disclaimer {
  margin-top: 48px;
  padding: 20px;
  border: 1px solid #f0cf86;
  border-radius: 16px;
  background: #fff9ea;
  color: #665323;
  font-size: .92rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-grid > div:first-child > *,
  .hero-card {
    opacity: 1;
    animation: none;
  }

  .phone {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  nav {
    gap: 14px;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .hero {
    padding: 70px 0 80px;
  }

  .hero-grid,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-card {
    min-height: 420px;
  }

  .section-heading,
  .coming-soon,
  .footer-grid,
  .copyright {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 540px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 68px;
  }

  nav a {
    font-size: .84rem;
  }

  nav a:nth-child(1) {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-card {
    min-height: 380px;
  }

  .phone {
    width: 240px;
  }

  .section {
    padding: 72px 0;
  }

  .contact-panel {
    padding: 28px;
  }

  .legal-page {
    padding: 60px 0 82px;
  }

  .legal-container h1 {
    font-size: 2.7rem;
  }

}
