:root {
  color-scheme: light;
  --ink: #16352f;
  --muted: #5d7a72;
  --teal: #1f7a6a;
  --teal-deep: #0f4a40;
  --lime: #c8e86a;
  --sand: #e8f2ec;
  --paper: #f3faf6;
  --line: rgba(22, 53, 47, 0.1);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Manrope", "PingFang TC", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(200, 232, 106, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 60% at 5% 90%, rgba(31, 122, 106, 0.18), transparent 50%),
    linear-gradient(165deg, #eef8f3 0%, #f7fcf9 42%, #e4f1eb 100%);
  animation: wash 14s ease-in-out infinite alternate;
}

@keyframes wash {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(-8deg) saturate(1.05); }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.brand-mini img.nav-mark,
.foot-brand img.nav-mark {
  border-radius: 22%;
  background: #000;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15, 74, 64, 0.12);
}

.koala {
  position: relative;
  width: min(92%, 480px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(15, 74, 64, 0.18));
  animation: bob 6s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.top-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 122, 106, 0.1);
  color: var(--teal-deep) !important;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 28px 24px 48px;
}

.hero-copy { max-width: 34rem; animation: rise 0.9s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  line-height: 1.05;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 16px;
  border-radius: 14px;
  background: #111;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 14px 36px rgba(15, 74, 64, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 74, 64, 0.28);
}
.store-btn span { display: grid; line-height: 1.1; text-align: left; }
.store-btn small { font-size: 0.68rem; font-weight: 500; opacity: 0.85; }
.store-btn strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.store-btn-dark { background: var(--teal-deep); }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  animation: float-in 1.1s 0.15s ease both;
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.glow {
  position: absolute;
  width: min(78vw, 460px);
  height: min(78vw, 460px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.9), transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(200, 232, 106, 0.55), rgba(31, 122, 106, 0.2) 55%, transparent 70%);
  filter: blur(2px);
  animation: pulse 5.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.features h2,
.download-band h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
}

.features-lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 42ch;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-list li {
  padding: 8px 4px 8px 0;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 1.05rem;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.download-band {
  max-width: 1120px;
  margin: 0 auto 48px;
  padding: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(31, 122, 106, 0.12), rgba(200, 232, 106, 0.22)),
    #fff;
  border: 1px solid var(--line);
}

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

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
}

.muted { color: var(--muted); font-size: 0.92rem; }
.muted a { color: inherit; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
  }
  .hero-visual {
    order: -1;
    min-height: 300px;
  }
  .koala { width: min(78%, 360px); }
  .feature-list { grid-template-columns: 1fr; }
  .download-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .top-nav a:not(.top-cta) { display: none; }
  .brand { font-size: 1.7rem; }
  .lead { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere, .koala, .glow, .hero-copy, .hero-visual { animation: none; }
}
