:root {
  --sage: #6a8f63;
  --sage-deep: #3f5f3a;
  --sage-soft: #a8c4a1;
  --orange: #d4895a;
  --orange-deep: #b86a3a;
  --ink: #2a2824;
  --muted: #6a655c;
  --paper: #eef3eb;
  --paper-warm: #f3efe6;
  --white: #fbfcf9;
  --shadow: 0 18px 50px rgba(63, 95, 58, 0.18);
  --radius: 16px;
  --font-brand: "ZCOOL XiaoWei", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(168, 196, 161, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(212, 137, 90, 0.22), transparent 50%),
    linear-gradient(165deg, #e8f0e4 0%, #f2eee5 45%, #e4ecdf 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Ambient layers */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: drift 14s var(--ease) infinite alternate;
}

.ambient__glow--sage {
  width: 55vw;
  height: 55vw;
  top: -15%;
  left: -10%;
  background: rgba(106, 143, 99, 0.28);
}

.ambient__glow--warm {
  width: 45vw;
  height: 45vw;
  right: -8%;
  bottom: 5%;
  background: rgba(212, 137, 90, 0.2);
  animation-delay: -4s;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.08); }
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--sage-deep);
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.45);
}

.site-nav a[aria-current="page"] {
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.65);
}

/* Home hero */
.page-home {
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
  min-height: calc(100vh - 72px);
}

.hero__visual {
  position: relative;
  margin-bottom: 1.5rem;
  animation: rise 0.9s var(--ease) both;
}

.hero__halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(168, 196, 161, 0.25) 45%, transparent 70%);
  animation: pulse 5s ease-in-out infinite;
}

.hero__logo {
  position: relative;
  width: clamp(160px, 28vw, 220px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(63, 95, 58, 0.22));
  animation: float 4.5s ease-in-out infinite;
}

.hero__name {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--sage-deep);
  line-height: 1.1;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero__tagline {
  margin: 1rem 0 0;
  max-width: 26em;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--muted);
  font-weight: 400;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.25rem;
  animation: rise 0.9s var(--ease) 0.32s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 168px;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn--android {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(106, 143, 99, 0.35);
}

.btn--android:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(63, 95, 58, 0.4);
}

.btn--ios {
  background: rgba(255, 255, 255, 0.72);
  color: var(--sage-deep);
  box-shadow: 0 10px 28px rgba(42, 40, 36, 0.08);
  backdrop-filter: blur(8px);
}

.btn--ios:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(42, 40, 36, 0.12);
}

.btn:active {
  transform: translateY(0);
}

/* Toast / modal */
.toast {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(42, 40, 36, 0.38);
  backdrop-filter: blur(6px);
  animation: fade-in 0.25s var(--ease);
}

.toast[hidden] {
  display: none;
}

.toast__panel {
  width: min(100%, 360px);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcf9 0%, #eef3eb 100%);
  box-shadow: var(--shadow);
  text-align: center;
  animation: pop 0.35s var(--ease);
}

.toast__title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.55rem;
  color: var(--sage-deep);
  letter-spacing: 0.04em;
}

.toast__desc {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.toast__close {
  margin-top: 1.35rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--sage);
  color: var(--white);
  font-weight: 500;
  transition: background 0.2s var(--ease);
}

.toast__close:hover {
  background: var(--sage-deep);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* About page */
.about {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.about__intro {
  margin-bottom: 3.5rem;
  animation: rise 0.8s var(--ease) both;
}

.about__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.about__title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
  line-height: 1.25;
}

.about__lead {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36em;
}

.feature {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(106, 143, 99, 0.22);
  animation: rise 0.8s var(--ease) both;
}

.feature:nth-of-type(1) { animation-delay: 0.05s; }
.feature:nth-of-type(2) { animation-delay: 0.1s; }
.feature:nth-of-type(3) { animation-delay: 0.15s; }
.feature:nth-of-type(4) { animation-delay: 0.2s; }

.feature__title {
  margin: 0 0 1rem;
  font-family: var(--font-brand);
  font-size: clamp(1.45rem, 3.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--sage-deep);
  line-height: 1.35;
}

.feature__body p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.02rem;
}

.feature__body p:last-child {
  margin-bottom: 0;
}

.about__cta {
  margin-top: 2.5rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid rgba(106, 143, 99, 0.22);
  text-align: center;
}

.about__cta > p {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  color: var(--sage-deep);
  letter-spacing: 0.06em;
}

.about__cta .hero__actions {
  margin-top: 1.25rem;
  animation: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.site-footer p {
  margin: 0;
}

.site-footer__icp {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__icp:hover {
  color: var(--sage-deep);
  text-decoration: underline;
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 1rem;
  }

  .brand-mark span {
    font-size: 1.15rem;
  }

  .site-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .btn {
    width: 100%;
  }

  .about {
    width: calc(100% - 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
