/* mili.3mi.ai 官網(首頁、/beta)。token 數值照 3mi.ai/DESIGN_SYSTEM.md */
:root {
  --canvas: #f7faf9;
  --surface: #ffffff;
  --border: #e2eae8;
  --text: #111614;
  --text-2: #4a5653;
  --brand-light: #00b8a9;
  --brand: #007f73;
  --brand-subtle: #e0f5f2;
  --action: #111614;
  --on-action: #f7faf9;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17,22,20,.04);
  --shadow-md: 0 1px 2px rgba(17,22,20,.04), 0 8px 24px rgba(17,22,20,.06);
  --shadow-lg: 0 2px 6px rgba(17,22,20,.05), 0 18px 40px rgba(17,22,20,.10);
  --ease: cubic-bezier(.32,.72,0,1);
  --font: "GenYoGothicTW", "Noto Sans TC", -apple-system, "PingFang TC", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font);
  line-height: 1.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.icon { width: 20px; height: 20px; flex: none; }

/* 頂欄 */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(247,250,249,.82); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-bottom: 1px solid var(--border); }
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--canvas); backdrop-filter: none; } }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text-2); font-size: 15px; padding: 8px 10px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--brand); text-decoration: none; background: var(--brand-subtle); }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 500; font-size: 16px; transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 100ms var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--brand); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .actions { flex-direction: row; flex-wrap: wrap; } }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(0,127,115,.3); background: var(--brand-subtle); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.eyebrow { color: var(--brand); font-weight: 500; font-size: 14px; letter-spacing: .08em; margin-bottom: 12px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.65; }

/* 首頁 hero */
.hero { padding: 48px 0 56px; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .hero { padding: 80px 0 88px; } .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
.hero-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.hero-head img { width: 72px; height: 72px; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.hero h1 { font-size: clamp(2.35rem, 8vw, 3.65rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 8px; }
.hero .en { font-size: 12px; letter-spacing: .2em; color: var(--text-2); margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.15rem, 3.6vw, 1.45rem); line-height: 1.7; color: var(--text-2); margin-bottom: 32px; }
.hero .note { margin-top: 16px; }
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art .shot { width: min(300px, 78vw); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero-art .mascot { position: absolute; width: 120px; left: max(0px, calc(50% - 220px)); bottom: -16px; filter: drop-shadow(0 8px 16px rgba(17,22,20,.12)); }
@media (max-width: 799px) { .hero-art .mascot { width: 96px; left: 4px; } }

/* 區塊 */
.section { padding: 56px 0; }
@media (min-width: 800px) { .section { padding: 88px 0; } }
.section-white { background: var(--surface); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.75rem, 5vw, 2.35rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head { max-width: 640px; margin-bottom: 40px; }

.features { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature { background: var(--canvas); padding: 24px; }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-subtle); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--text-2); line-height: 1.7; }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; margin: 0 -16px; -webkit-overflow-scrolling: touch; }
.shots img { flex: none; width: 220px; border-radius: var(--r-md); box-shadow: var(--shadow-md); scroll-snap-align: center; }
@media (min-width: 960px) { .shots { overflow: visible; margin: 0; padding: 0; justify-content: space-between; } .shots img { width: calc((100% - 64px) / 5); } }

.cta { margin-top: 48px; padding: 32px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); text-align: center; box-shadow: var(--shadow-sm); }
.cta h2 { margin-bottom: 8px; }
.cta .actions { justify-content: center; margin-top: 24px; }

/* /beta */
.page { padding: 40px 0 64px; }
@media (min-width: 800px) { .page { padding: 64px 0 96px; } }
.page .wrap { max-width: 760px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; margin-bottom: 32px; }
.page h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; margin: 20px 0 16px; }
.page .lead { font-size: 18px; color: var(--text-2); margin-bottom: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 24px; }
@media (min-width: 640px) { .card { padding: 32px; } }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.card-title .icon { color: var(--brand); width: 24px; height: 24px; }
.card-title h2 { font-size: 24px; letter-spacing: -0.02em; }
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-subtle); color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 17px; margin-bottom: 2px; }
.steps p { color: var(--text-2); }
.card-soft { background: var(--brand-subtle); border-color: transparent; box-shadow: none; }

/* 頁尾 */
.foot { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 14px; color: var(--text-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--brand); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }
