:root {
  --mask: #0f5a3c;
  --mask-deep: #0a3f2a;
  --silk: #f4f6f1;
  --pad: #d9a441;
  --ink: #231815;
  --mat: #e6ebe3;
  --text: #231815;
  --muted: #4d5a52;
  --line: 3px solid var(--ink);
  --lift: 6px 6px 0 var(--ink);
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --tech: 'Chakra Petch', 'Noto Sans TC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font: 400 17px/1.75 var(--sans); color: var(--text); background: var(--silk); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--pad); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--silk); border-radius: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* buttons — the logo's sticker language: thick ink outline + hard offset shadow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: var(--line); border-radius: 12px;
  background: var(--pad); color: var(--ink); font: 900 17px/1 var(--sans);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost { background: var(--silk); }
.btn-sm { padding: 10px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn-line { background: #06c755; color: #fff; }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; background: var(--silk); border-bottom: var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 28px; }
.brand img { height: 52px; width: auto; }
.menu { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 15px; }
.menu a { padding: 6px 2px; border-bottom: 3px solid transparent; }
.menu a:hover { border-color: var(--pad); }
.burger { display: none; width: 46px; height: 46px; border: var(--line); border-radius: 10px; background: var(--silk); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.burger span:first-child { top: 16px; } .burger span:last-child { bottom: 16px; }
.top.open .burger span:first-child { transform: translateY(5px) rotate(45deg); }
.top.open .burger span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* hero: the circuit board */
.board { position: relative; overflow: hidden; background: var(--mask); color: var(--silk); border-bottom: var(--line); min-height: 600px; display: flex; align-items: center; }
.pcb { position: absolute; inset: 0; width: 100%; height: 100%; }
.traces .t { stroke-dasharray: 900; stroke-dashoffset: 900; animation: trace 1.6s cubic-bezier(.6, 0, .2, 1) forwards; }
.traces .t:nth-child(2) { animation-delay: .12s; } .traces .t:nth-child(3) { animation-delay: .24s; }
.traces .t:nth-child(4) { animation-delay: .36s; } .traces .t:nth-child(5) { animation-delay: .48s; }
.traces .t:nth-child(6) { animation-delay: .6s; } .traces .t:nth-child(7) { animation-delay: .72s; } .traces .t:nth-child(8) { animation-delay: .84s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.chip { animation: power 0.5s 1.5s both; }
@keyframes power { from { opacity: .35; } to { opacity: 1; } }
.board-in { position: relative; max-width: 1120px; width: 100%; margin: 0 auto; padding: 80px 24px 88px; }
.board h1 { font: 900 clamp(48px, 8.4vw, 104px)/1.05 var(--sans); letter-spacing: .02em; text-shadow: 5px 5px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.lead { max-width: 30em; margin-top: 26px; font-size: 19px; color: #dfe8e1; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.area { margin-top: 24px; font-size: 14px; color: #b8cbbf; }

/* sections */
.sec { padding: 96px 0; border-bottom: var(--line); }
.sec-mat {
  background-color: var(--mat);
  background-image: linear-gradient(rgba(35, 24, 21, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 24, 21, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}
h2 { font: 900 clamp(32px, 4.4vw, 48px)/1.2 var(--sans); }
.sub { margin-top: 12px; color: var(--muted); max-width: 36em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.card { background: #fff; border: var(--line); border-radius: 16px; box-shadow: var(--lift); padding: 28px 26px 30px; }
.ic { width: 48px; height: 48px; fill: none; stroke: var(--mask); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 16px; font: 900 22px/1.35 var(--sans); }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.why { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.why-list { display: grid; gap: 14px; }
.why-list li { background: #fff; border: var(--line); border-radius: 14px; padding: 18px 22px; display: grid; gap: 2px; }
.why-list b { font: 900 19px/1.4 var(--sans); }
.why-list span { color: var(--muted); font-size: 16px; }

.flow { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border: var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--lift); }
.flow li { counter-increment: step; padding: 28px 24px 30px; position: relative; }
.flow li + li { border-left: var(--line); }
.flow li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mask); color: var(--silk); font: 700 20px var(--tech); margin-bottom: 14px; }
.flow b { display: block; font: 900 20px/1.4 var(--sans); }
.flow span { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; }

.work { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; margin-top: 40px; }
.work-shot { display: block; border: var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--lift); background: #fff; transition: transform .15s, box-shadow .15s; }
.work-shot:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.work h3 { font: 900 26px/1.35 var(--sans); }
.work p { margin-top: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; }
.link { display: inline-block; margin-top: 20px; font-weight: 900; color: var(--mask); border-bottom: 3px solid var(--pad); }

.price { width: 100%; margin-top: 32px; border-collapse: separate; border-spacing: 0; background: #fff; border: var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--lift); }
.price th, .price td { padding: 16px 22px; text-align: left; }
.price thead th { background: var(--mask); color: var(--silk); font-weight: 700; font-size: 15px; }
.price tbody tr + tr td { border-top: 2px solid #dfe5dc; }
.price td:last-child { text-align: right; font-weight: 900; white-space: nowrap; }
.price td.ask { color: var(--muted); font-weight: 500; }
.note { margin-top: 14px; color: var(--muted); font-size: 15px; }

.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: #fff; border: var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 900; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 700 26px var(--tech); color: var(--mask); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

.contact { background: var(--mask); }
.contact-card { background: var(--silk); border: var(--line); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); padding: 48px; max-width: 760px; margin: 0 auto; text-align: center; }
.contact-card > p { margin-top: 10px; color: var(--muted); }
.contact-actions .btn { min-width: 200px; justify-content: center; text-align: center; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.contact-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; max-width: 420px; margin: 28px auto 0; text-align: left; font-size: 15px; }
.contact-meta dt { color: var(--muted); }
.contact-meta dd { font-weight: 700; }
.pending { margin-top: 24px; padding: 14px 18px; border: 2px dashed var(--muted); border-radius: 12px; color: var(--muted); font-size: 15px; }

.foot { background: var(--ink); color: #b7aca8; padding: 40px 0 48px; font-size: 13px; text-align: center; }
.foot img { margin: 0 auto 14px; width: 150px; height: auto; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 28px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li:nth-child(3) { border-left: 0; }
  .flow li:nth-child(n+3) { border-top: var(--line); }
  .work { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--silk); border-bottom: var(--line); padding: 6px 24px 16px; margin: 0;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s linear .25s; }
  .menu a { padding: 12px 0; font-size: 18px; border-bottom: 2px solid #dfe5dc; }
  .top.open .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .burger { display: block; margin-left: auto; }
  .top-cta { display: none; }
  .brand img { height: 44px; }
  .board { min-height: 0; }
  .board-in { padding: 64px 24px 72px; }
  .board h1 { text-shadow: 4px 4px 0 var(--ink); }
  .pcb { opacity: .55; }
  .sec { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; }
  .contact-card { padding: 34px 22px; box-shadow: 6px 6px 0 var(--ink); }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
  .flow li + li { border-left: 0; border-top: var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .traces .t { animation: none; stroke-dashoffset: 0; }
  .chip { animation: none; }
  .btn, .work-shot, .menu { transition: none; }
}

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social a { display: inline-block; padding: 7px 16px; border: 2px solid currentColor; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .15s, color .15s; }
.social-card { margin-top: 26px; padding-top: 22px; border-top: 2px dashed rgba(35,24,21,.25); color: var(--mask); }
.social-card a:hover, .social-card a:focus-visible { background: var(--mask); color: var(--silk); border-color: var(--mask); }
.social-foot { margin: 4px 0 18px; color: #e6dfdb; }
.social-foot a:hover, .social-foot a:focus-visible { background: var(--pad); color: var(--ink); border-color: var(--pad); }
