:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #69736c;
  --paper: #f4f1e9;
  --card: #fffdf7;
  --line: rgba(23, 33, 27, 0.14);
  --green: #285f45;
  --lime: #d8ed9d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.hero {
  min-height: 86vh;
  padding: 0 clamp(24px, 6vw, 96px);
  background:
    radial-gradient(circle at 82% 26%, rgba(216, 237, 157, 0.48), transparent 27%),
    linear-gradient(135deg, #f8f5ec 0%, #edf2e5 100%);
  border-bottom: 1px solid var(--line);
}

.nav,
.hero-content,
.apps-section,
.about,
footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.08em;
}

.nav-contact,
.hero-link,
.card-link {
  font-weight: 700;
  text-decoration: none;
}

.nav-contact {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

.hero-content {
  display: flex;
  min-height: calc(86vh - 98px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 0 110px;
}

.eyebrow,
.app-status {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin: 20px 0 28px;
  font-size: clamp(44px, 7.8vw, 100px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--green);
}

.intro {
  max-width: 560px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.apps-section {
  padding: 120px 24px;
}

.section-heading {
  margin-bottom: 48px;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.app-card {
  position: relative;
  display: grid;
  min-height: 330px;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

a.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(23, 33, 27, 0.1);
}

.app-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 19px;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.plateno .app-icon {
  background: linear-gradient(135deg, #194e4b, #b28d32);
}

.gamemate .app-icon {
  background: linear-gradient(135deg, #f06428, #f2bd2d);
}

.piggy .app-icon {
  background: linear-gradient(135deg, #f28ba8, #9f6bd2);
}

.tabata .app-icon {
  background: linear-gradient(135deg, #e34c35, #f59d36);
}

.app-status {
  margin-bottom: 8px;
  font-size: 10px;
}

.app-card h3 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.app-card p:not(.app-status) {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
}

.card-link {
  color: var(--green);
  font-size: 14px;
}

.card-link.muted {
  color: #9a6555;
}

.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
  padding: 110px clamp(24px, 6vw, 80px);
  border-radius: 32px;
  background: var(--green);
  color: #fff;
}

.about .eyebrow {
  color: var(--lime);
}

.about > p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 70px 24px;
}

.footer-logo {
  font-size: 24px;
}

footer > div {
  text-align: right;
}

footer a:not(.logo) {
  font-weight: 700;
  text-decoration: none;
}

footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 650px;
  }

  .app-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .apps-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .app-card {
    min-height: 300px;
  }

  .about {
    gap: 32px;
    margin: 0 16px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 36px;
  }

  footer > div {
    text-align: left;
  }
}

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

  .app-card {
    transition: none;
  }
}
