:root {
  color-scheme: light;
  --ink: #101722;
  --muted: #64706d;
  --line: #dbe7e4;
  --paper: #fbfdfc;
  --panel: #ffffff;
  --mint: #006b5f;
  --mint-2: #2dd4bf;
  --green: #006c49;
  --rose: #bc0b3b;
  --amber: #d97808;
  --blue: #2563eb;
  --shadow: 0 24px 80px rgba(0, 36, 32, 0.14);
  --soft-shadow: 0 12px 40px rgba(16, 23, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(45, 212, 191, 0.2), transparent 30rem),
    linear-gradient(180deg, #f7fbfa 0%, #ffffff 42%, #f4f8f7 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 107, 95, 0.16);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--mint);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.55);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 231, 228, 0.75);
  background: rgba(251, 253, 252, 0.84);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  padding: env(safe-area-inset-top) 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mint), var(--mint-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 107, 95, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}

.nav-links a:hover {
  background: rgba(0, 107, 95, 0.08);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(16, 23, 34, 0.18);
}

.nav-cta:hover,
.button:hover {
  background: var(--mint);
  color: #fff;
}

.button.secondary {
  background: rgba(0, 107, 95, 0.1);
  color: var(--mint);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(0, 107, 95, 0.16);
}

main {
  display: block;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 107, 95, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--mint);
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--soft-shadow);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin-top: 1.35rem;
  max-width: 760px;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
  font-weight: 900;
}

.hero-copy {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: #3d4b48;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2.6rem;
}

.trust-item {
  border: 1px solid rgba(219, 231, 228, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 1rem;
}

.trust-item strong {
  display: block;
  font-size: 1.25rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.phone-stage {
  position: relative;
  min-height: 610px;
}

.phone {
  position: relative;
  width: min(100%, 360px);
  margin-left: auto;
  border: 1px solid rgba(16, 23, 34, 0.14);
  border-radius: 46px;
  background: #101722;
  padding: 12px;
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  min-height: 650px;
  border-radius: 36px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef7f4 100%);
  padding: 1.2rem;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  color: #18231f;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dff9f4, #ffffff);
}

.screen-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.balance-card {
  border-radius: 24px;
  background: linear-gradient(145deg, var(--mint), #07443d);
  color: #fff;
  padding: 1.25rem;
  box-shadow: 0 20px 42px rgba(0, 107, 95, 0.26);
}

.balance-card .label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.balance-card .amount {
  margin-top: 0.45rem;
  font-size: 2.2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.mini-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}

.mini {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.82rem;
}

.mini b {
  display: block;
  font-variant-numeric: tabular-nums;
}

.section-title {
  margin: 1.25rem 0 0.8rem;
  font-size: 0.98rem;
  font-weight: 800;
}

.transaction {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border-radius: 18px;
  background: #fff;
  padding: 0.8rem;
  box-shadow: 0 8px 20px rgba(16, 23, 34, 0.06);
}

.transaction + .transaction {
  margin-top: 0.65rem;
}

.tx-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: rgba(0, 107, 95, 0.1);
  color: var(--mint);
  font-weight: 800;
}

.transaction p {
  overflow: hidden;
  margin: 0;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction span {
  color: var(--muted);
  font-size: 0.82rem;
}

.tx-amount {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.tx-amount.expense {
  color: var(--rose);
}

.budget-panel {
  margin-top: 0.8rem;
  border-radius: 22px;
  background: #fff;
  padding: 1rem;
}

.progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e5efec;
}

.progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--mint-2));
}

.floating-note {
  position: absolute;
  right: min(0px, 2vw);
  bottom: 46px;
  max-width: 230px;
  border: 1px solid rgba(219, 231, 228, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  box-shadow: var(--soft-shadow);
}

.floating-note b {
  display: block;
}

.floating-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-header p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  border: 1px solid rgba(219, 231, 228, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 1.4rem;
  box-shadow: var(--soft-shadow);
}

.feature-card h3 {
  font-size: 1.18rem;
}

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

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.showcase-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.9rem;
}

.screenshot-card {
  overflow: hidden;
  border: 1px solid rgba(16, 23, 34, 0.12);
  border-radius: 8px;
  background: #101722;
  box-shadow: var(--soft-shadow);
}

.screenshot-card:nth-child(2) {
  margin-top: 2.25rem;
}

.screenshot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top center;
}

.icon-pill {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(0, 107, 95, 0.1);
  color: var(--mint);
  font-weight: 900;
}

.privacy-band {
  background: #101722;
  color: #fff;
}

.privacy-band .section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 3rem;
}

.privacy-band p,
.privacy-band li {
  color: rgba(255, 255, 255, 0.74);
}

.privacy-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: steps;
}

.step {
  counter-increment: steps;
  border-left: 3px solid var(--mint);
  background: #fff;
  padding: 1.1rem;
  box-shadow: var(--soft-shadow);
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 1.25rem;
  color: var(--mint);
  font-weight: 900;
}

.cta-band {
  width: min(1180px, calc(100% - 2rem));
  margin: 4rem auto;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 107, 95, 0.92), rgba(16, 23, 34, 0.96)),
    #101722;
  color: #fff;
  padding: clamp(2rem, 6vw, 4rem);
}

.cta-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.doc-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.2rem 0;
}

.doc-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}

.doc-hero h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--muted);
}

.doc-content {
  display: grid;
  gap: 1.75rem;
  padding-top: 2rem;
}

.doc-content section {
  border: 1px solid rgba(219, 231, 228, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--soft-shadow);
}

.doc-content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.doc-content p,
.doc-content li {
  color: #42514e;
}

.doc-content ul,
.doc-content ol {
  padding-left: 1.3rem;
}

.doc-content code {
  border-radius: 6px;
  background: #eef6f4;
  color: var(--mint);
  padding: 0.1rem 0.35rem;
}

.notice {
  border-left: 4px solid var(--mint);
  background: rgba(0, 107, 95, 0.08);
  padding: 1rem 1.2rem;
}

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

@media (max-width: 920px) {
  .hero-grid,
  .privacy-band .section {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: auto;
  }

  .phone {
    margin: 0 auto;
  }

  .floating-note {
    position: static;
    margin: 1rem auto 0;
  }

  .feature-grid,
  .showcase,
  .guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .nav {
    min-height: auto;
    padding-top: calc(env(safe-area-inset-top) + 0.85rem);
    padding-bottom: 0.85rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .trust-strip,
  .feature-grid,
  .screenshot-grid,
  .guide-steps {
    grid-template-columns: 1fr;
  }

  .screenshot-card:nth-child(2) {
    margin-top: 0;
  }

  .phone {
    width: min(100%, 330px);
  }

  .phone-screen {
    min-height: 590px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
