@font-face {
  font-family: "Bricolage";
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/bricolage.woff2") format("woff2");
}

:root {
  --forest: #0e2318;
  --canopy: #143524;
  --moss: #1d4a33;
  --sap: #2f9e5b;
  --leaf: #8fdcaf;
  --paper: #f1f6ef;
  --mist: #b4cbbc;
  --line: rgba(241, 246, 239, 0.14);
  --spring: linear(0, 0.026, 0.092, 0.183, 0.288, 0.397, 0.503, 0.603, 0.692, 0.771, 0.838, 0.893, 0.937, 0.971, 0.997, 1.015, 1.027, 1.034, 1.038, 1.038, 1.037, 1.034, 1.03, 1.026, 1.022, 1.018, 1);
  --spring-pop: linear(0, 0.027, 0.098, 0.199, 0.319, 0.448, 0.576, 0.697, 0.807, 0.903, 0.982, 1.045, 1.091, 1.123, 1.141, 1.147, 1.145, 1.136, 1.122, 1.105, 1.086, 1.067, 1.049, 1.032, 1.017, 1.005, 1);
  --sans: "Bricolage", "Segoe UI Variable Display", "Segoe UI", "PingFang TC", "Microsoft JhengHei UI", "Noto Sans TC", sans-serif;
  --page: min(1200px, calc(100% - 48px));
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  overflow-x: clip;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  background: var(--forest);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  z-index: 20;
  top: -60px;
  left: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--forest);
  background: var(--paper);
}

.skip:focus {
  top: 12px;
}

/* 導覽 */
.nav {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px max(24px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(14, 35, 24, 0.82);
  backdrop-filter: blur(14px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav nav a {
  color: var(--mist);
  font-size: 15px;
  text-decoration: none;
  transition: color 140ms;
}

.nav nav a:hover {
  color: var(--paper);
}

/* 按鈕 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--forest);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  background: var(--paper);
  transition:
    transform 420ms var(--spring-pop),
    box-shadow 240ms,
    background-color 140ms;
}

.button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px) scale(1.015);
}

.button:active {
  transition-duration: 90ms;
  transform: scale(0.97);
}

.button.ghost {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}

.button.ghost:hover {
  background: rgba(241, 246, 239, 0.08);
}

.button.small {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
}

/* 主視覺 */
.hero {
  position: relative;
  display: grid;
  justify-items: center;
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0 0;
  text-align: center;
}

.hero > * {
  position: relative;
}

.hero .hero-leaf {
  position: absolute;
  top: -30px;
  left: 50%;
  width: 860px;
  max-width: 120vw;
  fill: var(--sap);
  opacity: 0.1;
  pointer-events: none;
  transform: translateX(-50%);
}

h1 {
  font-size: clamp(84px, 15vw, 190px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.char {
  display: inline-block;
  animation: char-in 680ms var(--spring-pop) backwards;
  animation-delay: calc(var(--i) * 46ms + 100ms);
}

@keyframes char-in {
  from {
    opacity: 0;
    transform: translateY(0.3em) scale(0.92);
  }
}

.lead {
  margin-top: 14px;
  color: var(--mist);
  font-size: clamp(22px, 2.6vw, 30px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.meta {
  margin-top: 18px;
  color: var(--mist);
  font-size: 15px;
}

.stage {
  width: 100%;
  margin-top: 56px;
  animation: stage-in 900ms var(--spring) 320ms backwards;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(44px) scale(0.975);
  }
}

video {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canopy);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

/* 支援清單 */
.band {
  margin-top: 88px;
  padding: 24px max(24px, calc((100% - 1200px) / 2));
  border-block: 1px solid var(--line);
  background: var(--canopy);
}

.band ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 0;
  font-size: 19px;
  font-weight: 700;
  list-style: none;
}

/* 功能 */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  width: var(--page);
  margin: 0 auto;
  padding-top: 128px;
}

.feature.flip .feature-text {
  order: 2;
}

.feature.flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
}

.kicker {
  color: var(--leaf);
  font-size: 18px;
  font-weight: 700;
}

h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.feature h2 {
  margin-top: 6px;
}

.feature ul {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  color: var(--mist);
  list-style: none;
}

.feature li {
  position: relative;
  padding-left: 20px;
}

.feature li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sap);
  content: "";
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--paper);
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 0.92em;
  background: var(--moss);
}

.can-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 500ms,
    transform 800ms var(--spring);
}

.can-reveal [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* 完整清單、下載、常見問題 */
.specs,
.get,
.faq {
  width: var(--page);
  margin: 0 auto;
  padding-top: 136px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.spec-grid > div {
  padding: 28px 30px;
  background: var(--forest);
}

.spec-grid h3 {
  font-size: 22px;
  font-weight: 800;
}

.spec-grid ul {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  color: var(--mist);
  font-size: 16px;
  list-style: none;
}

table {
  width: 100%;
  margin-top: 36px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  width: 150px;
  color: var(--mist);
  font-weight: 500;
}

td {
  font-weight: 700;
  overflow-wrap: anywhere;
}

td code {
  font-weight: 400;
}

.get .cta {
  justify-content: flex-start;
}

.faq {
  padding-bottom: 128px;
}

.faq h2 {
  margin-bottom: 24px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 20px 0;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  max-width: 46em;
  padding-bottom: 22px;
  color: var(--mist);
}

footer {
  display: grid;
  gap: 12px;
  padding: 40px max(24px, calc((100% - 1200px) / 2));
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 15px;
  background: var(--canopy);
}

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

footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (max-width: 900px) {
  .nav nav {
    display: none;
  }

  .nav .button {
    margin-left: auto;
  }

  .hero {
    padding-top: 48px;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 84px;
  }

  .feature.flip .feature-text {
    order: 0;
  }

  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .specs,
  .get,
  .faq {
    padding-top: 92px;
  }

  th {
    width: 96px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
