:root {
  --bg: #f7f3ea;
  --card: #fffdf8;
  --ink: #16232b;
  --muted: #56656d;
  --line: #e4dccb;
  --sea: #0e6a6c;
  --sea-ink: #ffffff;
  --sea-soft: #e3efec;
  --clay: #b45a29;
  --clay-soft: #f5e6d8;
  --shadow: 0 1px 2px rgba(22, 35, 43, .05), 0 10px 28px rgba(22, 35, 43, .06);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", Roboto, sans-serif;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1619;
    --card: #162126;
    --ink: #ebe7de;
    --muted: #a3aeb3;
    --line: #27363c;
    --sea: #56b8b3;
    --sea-ink: #0b1a1b;
    --sea-soft: #173130;
    --clay: #e4935f;
    --clay-soft: #33251c;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}
img, svg { max-width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 5.4vw, 50px); text-wrap: balance; }
h1:lang(id) { font-size: clamp(30px, 4.2vw, 42px); }
h2 { font-size: clamp(25px, 3.6vw, 34px); text-wrap: balance; }
h3 { font-size: 19px; }
p { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--serif); font-size: 19px; letter-spacing: .02em; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 13px; white-space: nowrap; border-left: 1px solid var(--line); padding-left: 10px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.nav .section-link { display: none; }
@media (min-width: 900px) { .nav .section-link { display: inline; } }
@media (max-width: 520px) { .brand small { display: none; } .nav { gap: 10px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--sea); transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--sea); color: var(--sea-ink); }
.btn-solid:hover { background: color-mix(in srgb, var(--sea) 88%, var(--ink)); }
.btn-line { color: var(--sea); background: transparent; }
.btn-line:hover { background: var(--sea-soft); }
.btn-sm { min-height: 36px; padding: 5px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 84px 0 56px; } .hero .wrap { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--clay);
  background: var(--clay-soft); border-radius: 999px; padding: 4px 14px; margin-bottom: 20px;
}
.lede { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-note { color: var(--muted); font-size: 15px; margin-top: 14px; }

.route {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 22px 18px; box-shadow: var(--shadow);
}
.route svg { display: block; width: 100%; height: auto; }
.route .land { fill: var(--sea-soft); stroke: var(--sea); stroke-width: 1.5; }
.route .path { fill: none; stroke: var(--clay); stroke-width: 2.2; stroke-dasharray: 6 7; stroke-linecap: round; }
.route .dot { fill: var(--clay); }
.route .ring { fill: none; stroke: var(--clay); stroke-width: 1.5; opacity: .45; }
.route text { fill: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.route text.sub { fill: var(--muted); font-weight: 400; font-size: 11.5px; }
.route p { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }

/* stats */
.stats { padding: 8px 0 24px; }
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 820px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); padding: 20px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); color: var(--sea); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 6px; }
.proof { color: var(--muted); font-size: 14.5px; margin-top: 12px; }

/* sections */
section[id] { scroll-margin-top: 62px; }
section.block { padding: 64px 0; }
section.block.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 40em; margin-bottom: 32px; }
.head p { color: var(--muted); margin-top: 12px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--clay); letter-spacing: .08em; margin-bottom: 8px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow);
}
.alt .card { background: var(--bg); box-shadow: none; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--sea-soft); color: var(--sea);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

/* timeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 58px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sea); color: var(--sea-ink); font-weight: 700; font-family: var(--serif);
}
.steps li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15.5px; margin-top: 2px; }
.steps .days { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--clay); margin-top: 6px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .steps li { padding: 58px 0 0; }
  .steps li::after { left: 46px; right: -14px; top: 19px; bottom: auto; width: auto; height: 2px; }
}
.note { color: var(--muted); font-size: 15px; margin-top: 18px; }

/* two lists */
.split { display: grid; gap: 16px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.split .card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tag { font-family: var(--sans); font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.tag.clay { background: var(--clay-soft); color: var(--clay); }
.tag.sea { background: var(--sea-soft); color: var(--sea); }
.list { margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding: 9px 0 9px 28px; border-top: 1px dashed var(--line); font-size: 16px; }
.list li:first-child { border-top: 0; }
.list li::before {
  content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; border-radius: 3px;
  background: var(--sea);
}
.list.clay li::before { background: var(--clay); }
ol.list { counter-reset: item; }
ol.list li { counter-increment: item; }
ol.list li::before {
  content: counter(item); width: 20px; height: 20px; left: 0; top: 12px; border-radius: 50%;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; color: var(--card);
}

/* formula */
.formula { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 820px) { .formula { grid-template-columns: 1fr auto 1fr; } }
.formula .card { text-align: center; }
.formula .card b { display: block; font-family: var(--serif); font-size: 24px; color: var(--sea); margin: 4px 0; }
.formula .or { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.example {
  margin-top: 18px; background: var(--clay-soft); border-radius: var(--radius); padding: 14px 18px;
  font-size: 16px;
}

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.alt .faq details { background: var(--bg); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; font-weight: 400; color: var(--sea);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 16px; }

/* contact */
.contact { padding: 72px 0; }
.contact-card {
  background: var(--sea); color: var(--sea-ink); border-radius: 22px; padding: 36px 24px;
  display: grid; gap: 28px;
}
@media (min-width: 820px) { .contact-card { grid-template-columns: 1.1fr .9fr; padding: 48px; align-items: center; } }
.contact-card h2 { color: inherit; }
.contact-card p { opacity: .88; margin-top: 12px; }
.person { background: color-mix(in srgb, var(--sea-ink) 10%, transparent); border-radius: 16px; padding: 22px; }
.person b { font-family: var(--serif); font-size: 21px; display: block; }
.person .role { opacity: .8; font-size: 15px; }
.person dl { margin: 16px 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 16px; }
.person dt { opacity: .75; }
.person dd { margin: 0; overflow-wrap: anywhere; }
.person a { color: inherit; }
.person .cta { margin-top: 0; }
.contact-card .btn-solid { background: var(--sea-ink); color: var(--sea); border-color: var(--sea-ink); }
.contact-card .btn-line { color: var(--sea-ink); border-color: color-mix(in srgb, var(--sea-ink) 60%, transparent); }
.contact-card .btn-line:hover { background: color-mix(in srgb, var(--sea-ink) 12%, transparent); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 8px; }
footer a { color: var(--muted); }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
