:root {
  color-scheme: light;
  --ga-paper-white: #fafaf7;
  --ga-wix-paper: #fbfaf7;
  --ga-warm-off-white: #f5f1e6;
  --ga-ink: #2f2f2f;
  --ga-text: #333333;
  --ga-muted: #706b61;
  --ga-line: #ded6c7;
  --ga-blue-gray: #617ca0;
  --ga-deep-blue-gray: #324158;
  --ga-cta-yellow: #f7d93b;
  --ga-mustard: #c99700;
  --ga-butter: #ffe8a3;
  --ga-wood-gold: #c9a24a;
  --ga-walnut: #5c4528;
  --ga-action-primary: var(--ga-cta-yellow);
  --ga-focus: var(--ga-deep-blue-gray);
  --ga-radius-md: 8px;
  --ga-shadow-hard: 4px 4px 0 rgba(47, 47, 47, 0.18);
  --ga-shadow-soft: 0 12px 30px rgba(50, 65, 88, 0.08);
  --ga-border: 1px solid var(--ga-line);
  --ink: var(--ga-ink);
  --muted: var(--ga-muted);
  --soft: #817a70;
  --paper: var(--ga-paper-white);
  --cream: var(--ga-warm-off-white);
  --white: #fffdfa;
  --line: var(--ga-line);
  --green: var(--ga-deep-blue-gray);
  --green-soft: #eef2f6;
  --rust: var(--ga-walnut);
  --blue: var(--ga-blue-gray);
  --yellow: var(--ga-action-primary);
  --shadow: 0 18px 48px rgba(50, 65, 88, 0.12);
  --sticky-offset: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-offset);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 210, 192, 0.9);
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1160px, calc(100vw - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--ga-focus);
  border-radius: var(--ga-radius-md);
  background: var(--ga-focus);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  box-shadow: var(--ga-shadow-hard);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: none;
}

.button.yellow {
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--ga-shadow-hard);
}

.button.yellow:hover,
.button.yellow:focus-visible {
  background: #ffe25c;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--cream);
}

.hero.compact {
  min-height: 480px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(250, 247, 241, 0.98) 0%, rgba(250, 247, 241, 0.9) 43%, rgba(250, 247, 241, 0.22) 82%),
    linear-gradient(0deg, rgba(33, 31, 27, 0.12), rgba(33, 31, 27, 0));
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 90px 0 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: end;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ga-deep-blue-gray);
  letter-spacing: 0;
}

h1 {
  max-width: 830px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.16;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.34;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 730px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
}

.actions,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.actions.tight {
  margin-top: 18px;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.section {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.section-head {
  max-width: 790px;
  margin-bottom: 28px;
}

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

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

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

.card,
.product-card,
.route-card,
.route-step,
.feature-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
  box-shadow: var(--ga-shadow-soft);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--green);
  color: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  width: min(1160px, calc(100vw - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.footer-inner span {
  margin-right: auto;
  font-weight: 800;
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.card[id],
section[id] {
  scroll-margin-top: var(--sticky-offset);
}

.product-card.highlight,
.feature-panel {
  border-color: rgba(154, 83, 51, 0.45);
  background: var(--white);
}

.route-card {
  display: grid;
  gap: 12px;
  text-decoration: none;
}

.route-card:hover {
  border-color: var(--rust);
}

.route-step {
  display: grid;
  gap: 12px;
  align-content: start;
}

.route-step.is-primary {
  border-color: rgba(50, 65, 88, 0.34);
  background: #fffefa;
  box-shadow: var(--ga-shadow-hard);
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ga-focus);
  border-radius: 8px;
  background: var(--ga-butter);
  color: var(--ga-deep-blue-gray);
  font-weight: 900;
  line-height: 1;
}

.inline-link {
  width: fit-content;
  color: var(--ga-deep-blue-gray);
  font-weight: 850;
  text-decoration-color: rgba(50, 65, 88, 0.35);
  text-underline-offset: 4px;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--ga-walnut);
  outline: 0;
  text-decoration-color: currentColor;
}

.route-letter {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.soft {
  color: var(--soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

a.pill:hover,
a.pill:focus-visible {
  border-color: rgba(50, 65, 88, 0.42);
  background: var(--ga-butter);
  color: var(--green);
  outline: 0;
  transform: translateY(-1px);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.product-meta .pill {
  min-height: 28px;
  padding: 4px 9px;
  background: #f8f5ee;
  color: var(--muted);
  font-size: 12px;
}

.product-card.highlight .product-meta .pill:first-child {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.price {
  margin: 14px 0 18px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1;
  font-weight: 900;
}

.feature-panel .kicker {
  margin-bottom: 16px;
}

.feature-panel h3 {
  margin-bottom: 12px;
}

.feature-panel .muted {
  margin-bottom: 0;
}

.feature-panel .button {
  margin-top: 0;
}

.category-focus {
  border-color: var(--green);
  background: #fffefa;
  box-shadow: 0 0 0 4px rgba(50, 65, 88, 0.1), var(--shadow);
  animation: category-pop 620ms ease both;
}

@keyframes category-pop {
  0% {
    transform: translateY(0) scale(1);
  }
  22% {
    transform: translateY(-5px) scale(1.012);
  }
  42% {
    transform: translateY(2px) scale(0.998);
  }
  64% {
    transform: translateY(-2px) scale(1.004);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

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

  .category-focus {
    animation: none;
  }
}

.shelf {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.market-list {
  display: grid;
  gap: 14px;
}

.list-row {
  display: grid;
  grid-template-columns: 0.26fr 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.list-row strong {
  font-size: 18px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.journey .card {
  border-top: 5px solid var(--green);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--green);
  color: rgba(255, 255, 255, 0.84);
}

.footer-inner {
  width: min(1160px, calc(100vw - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  :root {
    --sticky-offset: 190px;
  }

  .nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .shelf,
  .journey,
  .list-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .section,
  .hero-content,
  .footer-inner,
  .nav {
    width: min(100vw - 28px, 1160px);
  }

  .button {
    width: 100%;
  }
}
